@rnacanvas/forms.edit 13.1.2 → 13.1.4
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["forms.edit"]=e():t["forms.edit"]=e()}(this,(()=>(()=>{var t={51:t=>{"use strict";t.exports="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgOTYgOTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIGlkPSJJY29uc19DaGVja21hcmsiIG92ZXJmbG93PSJoaWRkZW4iPjxwYXRoIGQ9Ik04Ni4xIDE1LjggMzQuOSA2NC4yIDEwLjMgMzkgMS44IDQ3LjEgMzQuNSA4MC43IDQzLjEgNzIuNyA5NC4yIDI0LjJaIiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMy42NjY2NyIgZmlsbD0iI0ZGRkZGRiIvPjwvc3ZnPg=="},56:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},72:t=>{"use strict";var e=[];function n(t){for(var n=-1,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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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))}}},127:function(t){var e;e=()=>(()=>{var t={369: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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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,{Linkers:()=>y,Stems:()=>g,areConflicting:()=>h,areCrossing:()=>f,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>u,basePairs:()=>b,deepCopy:()=>i,knotless:()=>p,mountainPlotTraversal:()=>v,parseDotBracket:()=>w,radializable:()=>m,sorted:()=>o});var t=n(854),e=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 i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map((function(t){return e([],t,!0)}))}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort((function(t,e){return t[0]-e[0]})),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every((function(t){return n[t]==r[t]}))}function u(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function h(t,e){return(0,s.min)(t)==(0,s.min)(e)&&(0,s.max)(t)!=(0,s.max)(e)||(0,s.min)(t)!=(0,s.min)(e)&&(0,s.max)(t)==(0,s.max)(e)}function l(t){if(0==t.length)return[];for(var e=[],n=0;n<(0,s.max)(t.flat());n++)e.push(void 0);return t.forEach((function(t){e[t[0]-1]=t[1],e[t[1]-1]=t[0]})),e}function c(t){var e=l(t),n=[],r=!1;return e.forEach((function(t,e){var i=e+1;null==t||(i<t?n.push(i):i==t||n.pop()!=t&&(r=!0))})),!r}function f(t,e){return!c([t,e])}var d=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 p(t){var e=[],n=i(t);return n.sort((function(t,e){return Math.abs(t[0]-t[1])-Math.abs(e[0]-e[1])})),n.forEach((function(t){c(d(d([],e,!0),[t],!1))&&e.push(t)})),e}function m(t){var e=i(t);e.sort((function(t,e){var n=t[0],r=t[1],i=e[0],s=e[1];return Math.abs(n-r)-Math.abs(i-s)}));var n=[],r=[];return e.forEach((function(t){var e=t[0],i=t[1];e==i||null!=r[e-1]||null!=r[i-1]||(n.push([e,i]),r[e-1]=i,r[i-1]=e)})),p(n)}var g=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=this.targetStructure[1];if(0==t.length)return[];var e=o(t),n=[],r=[];return e.forEach((function(t){var e=0==r.length?null:r[r.length-1];!e||u(e,t)?r.push(t):(n.push(r),r=[t])})),n.push(r),n},t}(),y=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=(new(g.bind.apply(g,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))}([void 0],this.targetStructure,!1)))).get().flatMap((function(t){return[t.map(s.min),t.map(s.max)]}));t.forEach(s.sortNumbers),t.sort((function(t,e){return(0,s.min)(t)-(0,s.min)(e)}));for(var e=[],n=t.shift(),r=t.shift();n&&r;){for(var i=[],o=(0,s.max)(n),a=(0,s.min)(r),u=o;u<=a;u++)i.push(u);e.push(i),n=r,r=t.shift()}return e},t}();function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach((function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))})),s}function w(t){var e=t.split(""),n=[".","(",")"];e.forEach((function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))}));var r=[],i=[];if(e.forEach((function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}})),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function b(t,e){return e.forEach((function(e){e.forEach((function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")}))})),e.map((function(e){return[t[e[0]-1],t[e[1]-1]]}))}})(),r})(),t.exports=e()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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";function t(t,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>u,Linkers:()=>f,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>h,antiParallelPairs:()=>v,areEqual:()=>t,consecutivePairs:()=>g,knotless:()=>d,missing:()=>w,other:()=>e,parallelPairs:()=>y,parseDotBracket:()=>m,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map((e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1]))}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex((t=>n.includes(t)));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map((e=>t.indexOf(e)));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class u{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new s(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(0,n)}}class h{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map((e=>e.map((e=>[t[e[0]-1],t[e[1]-1]]))))}}class f{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map((e=>e.map((e=>t[e-1]))))}}function d(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map((t=>[e[t[0]-1],e[t[1]-1]]));return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map((([t,n])=>[e[t-1],e[n-1]]))]}function m(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map((e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]}))}function g(t){return t.length<2?[]:t.slice(0,-1).map(((e,n)=>[t[n],t[n+1]]))}function y(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function v(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function w(e,n){return n.filter((n=>!e.find((e=>t(n,e))))).map((t=>[...t]))}})(),r})(),t.exports=e()},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,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 u=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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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),u=n(659),h=n.n(u),l=n(56),c=n.n(l),f=n(540),d=n.n(f),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),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:()=>f,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>d,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 u(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 h(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 f(t,e,n){return Math.abs(t-e)<=n}function d(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:()=>u,_:()=>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: #e0e066;\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: #34342e;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #45453e;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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}},358:function(t){var e;e=()=>(()=>{var t={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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,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:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,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=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}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 f{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 d{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 _{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 N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"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={};t.r(e),t.d(e,{CenterPoint:()=>h});var n,r,i,s,o,a=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},u=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 h{constructor(t){n.add(this),r.set(this,void 0),i.set(this,{move:[]}),s.set(this,void 0),a(this,r,t,"f"),a(this,s,new MutationObserver((()=>u(this,n,"m",o).call(this,"move"))),"f"),u(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=u(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...u(this,r,"f").x.baseVal].map((t=>t.value));0!=n.length||n.push(0),n=n.map((n=>n+(t-e))),u(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=u(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...u(this,r,"f").y.baseVal].map((t=>t.value));0!=n.length||n.push(0),n=n.map((n=>n+(t-e))),u(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){u(this,i,"f")[t].push(e)}removeEventListener(t,e){u(this,i,"f")[t]=u(this,i,"f")[t].filter((t=>t!==e))}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){u(this,i,"f")[t].forEach((t=>t()))},e})(),t.exports=e()},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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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,{BasePair:()=>Pn,Nucleobase:()=>Wn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>It,height:()=>Rt,rx:()=>Lt,ry:()=>jt,width:()=>Bt,x:()=>Wt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ae,clear:()=>Ee,move:()=>Te,plot:()=>Oe,size:()=>Le});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>un,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const u={},h=[];function l(t,e){if(Array.isArray(t))for(const n of t)l(n,e);else if("object"!=typeof t)f(Object.getOwnPropertyNames(e)),u[t]=Object.assign(u[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return u[t]||{}}function f(t){h.push(...t)}function d(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(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 y(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:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(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"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},C="___SYMBOL___ROOT___";function A(t,e=x){return k.document.createElementNS(e,t)}function E(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return L(t);if(null==t)return new M[C];if("string"==typeof t&&"<"!==t.charAt(0))return L(k.document.querySelector(t));const n=e?k.document.createElement("div"):A("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:A(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let L=O;function j(t,e=t.name,n=!1){return M[e]=t,n&&(M[C]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let W=1e3;function P(t){return"Svgjs"+m(t)+W++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function I(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 B(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)}}l("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=E(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=E(t)).before(this),this},insertAfter:function(t){return(t=E(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(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}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},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)}}),l("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]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(d(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}}),l("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 et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||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 et(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 et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.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 et(0,0,0,1,"cmyk"):new et((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),u=(o+a)/2,h=o===a,l=o-a;return new et(360*(h?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*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"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=K(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:K(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:K(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:K(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:K(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:K(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(H.test(t)){const e=t.replace(V,""),[n,r,i]=F.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!G.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=z.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:u}=this,h="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:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new et(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 et(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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/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,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=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 et(255*u,255*h,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 et(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*tt(i,r,t+1/3),o=255*tt(i,r,t),a=255*tt(i,r,t-1/3);return new et(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 et(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(J);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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+16/116,d=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 et(f,d,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 nt{constructor(...t){this.init(...t)}clone(){return new nt(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){it.isMatrixLike(t)||(t=new it(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 rt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class it{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,u=t.shear||0,h=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,u=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=u,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 it(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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*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 it(t);return rt(this.a,e.a)&&rt(this.b,e.b)&&rt(this.c,e.c)&&rt(this.d,e.d)&&rt(this.e,e.e)&&rt(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=it.fromArray([1,0,0,1,0,0]);return t=t instanceof Ct?t.matrixify():"string"==typeof t?it.fromArray(t.split(Q).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=p(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*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:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*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:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*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=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*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(it.isMatrixLike(t))return new it(t).multiplyO(this);const e=it.formatTransforms(t),{x:n,y:r}=new nt(e.ox,e.oy).transform(this),i=(new it).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 nt(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 st(){if(!st.nodes){const t=E().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;st.nodes={svg:t,path:e}}if(!st.nodes.svg.node.parentNode){const t=k.document.body||k.document.documentElement;st.nodes.svg.addTo(t)}return st.nodes}function ot(t){return!(t.width||t.height||t.x||t.y)}j(it,"Matrix");class at{constructor(...t){this.init(...t)}addOffset(){return this.x+=k.window.pageXOffset,this.y+=k.window.pageYOffset,new at(this)}init(t){return t="string"==typeof t?t.split(Q).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 ot(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 at(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 it||(t=new it(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new nt(this.x,this.y),new nt(this.x2,this.y),new nt(this.x,this.y2),new nt(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 at(e,r,n-e,i-r)}}function ut(t,e,n){let r;try{if(r=e(t.node),ot(r)&&(i=t.node)!==k.document&&!(k.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===k.document}).call(k.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}l({viewbox:{viewbox(t,e,n,r){return null==t?new at(this.attr("viewBox")):this.attr("viewBox",new at(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const h=new at(i).transform(new it({scale:u,origin:e}));return this.viewbox(h)}}}),j(at,"Box");class ht extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ht;I([ht],{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 ct=["toArray","constructor","each"];function ft(t,e){return new lt(d((e||k.document).querySelectorAll(t),(function(t){return O(t)})))}ht.extend=function(t){t=t.reduce(((t,e)=>(ct.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),I([ht],t)};let dt=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=E(t),a=mt(o),u=gt(o);e=Array.isArray(e)?e:e.split(Q),n._svgjsListenerId||(n._svgjsListenerId=++dt),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,u.addEventListener(e,s,i||!1)}))}function vt(t,e,n,r){const i=E(t),s=mt(i),o=gt(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Q)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;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(h in s[e][a])vt(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])vt(o,[e,u].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}}))}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.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 vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}j(wt,"EventTarget");const xt={"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 _t 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(Q).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 Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(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(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(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 kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=E(t)).removeNamespace&&this.node instanceof k.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 E(t).put(this,e)}children(){return new lt(d(this.node.children,(function(t){return O(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=D(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 Mt(A(t),e))}first(){return O(this.node.firstChild)}get(t){return O(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=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(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=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=E(t),this.add(t,e),t}putIn(t,e){return E(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=E(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,x)}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=O(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=A("wrapper",n),i=k.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)}}I(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.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))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce(((e,n)=>n(t,e,this)),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(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 ft(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),j(Mt,"Dom");class Ct extends Mt{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 Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(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=E(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.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(q);return e?E(e[1]):null}root(){const t=this.parent(M[C]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=g(this,t,e);return this.width(new Nt(n.width)).height(new Nt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return b(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}I(Ct,{bbox:function(){const t=ut(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(st().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 at(t)},rbox:function(t){const e=ut(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new at(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 nt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(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 it(e)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),j(Ct,"Element");const At={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 et||et.isRgb(e)||e instanceof Ct)this.attr(t,e);else for(n=At[t].length-1;n>=0;n--)null!=e[At[t][n]]&&this.attr(At.prefix(t,At[t][n]),e[At[t][n]]);return this},l(["Element","Runner"],e)})),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(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)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["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)}}),l("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}),{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new it)},toParent:function(t,e){if(this===t)return this;if(w(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 it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Et extends Ct{flatten(){return this.each((function(){if(this instanceof Et)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()}}j(Et,"Container");class Tt extends Et{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}j(Tt,"Defs");class Ot extends Ct{}function Lt(t){return this.attr("rx",t)}function jt(t){return this.attr("ry",t)}function Wt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function It(t){return this.attr("cy",t)}function Bt(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}j(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}I(zt,t),l("Container",{ellipse:B((function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)}))}),j(zt,"Ellipse");class Ft extends Mt{constructor(t=k.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 Mt(A("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}j(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Et{constructor(t,e){super(T(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 at}targets(){return ft("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()+")"}}I(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:B((function(t,e){return this.put(new Gt(t)).update(e)}))}}),j(Gt,"Gradient");class Ht extends Et{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("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()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:B((function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),j(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",(function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),yt(n,"load error",(function(){vt(n)})),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},St.push(Yt),l({Container:{image:B((function(t,e){return this.put(new Xt).size(0,0).load(t,e)}))}}),j(Xt,"Image");class $t extends _t{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 at(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(Q).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){it.isMatrixLike(t)||(t=new it(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 Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[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 $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}I(ee,i),l({Container:{line:B((function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])}))}}),j(ee,"Line");class ne extends Et{constructor(t,e=t){super(T("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 re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:B((function(t,e,n){return this.put(new ne).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 ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),j(ne,"Marker");const ie={"-":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 se{done(){return!1}}class oe extends se{constructor(t=">"){super(),this.ease=ie[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ae extends se{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ue(){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}I(class extends ae{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:re("_duration",ue),overshoot:re("_overshoot",ue)}),I(class extends ae{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:re("_windup"),p:re("P"),i:re("I"),d:re("D")});const he={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},le={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]]}},ce="mlhvqtcsaz".split("");for(let t=0,e=ce.length;t<e;++t)le[ce[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 le[t](e,n,r)}}(ce[t].toUpperCase());function fe(t){return t.segment.length&&t.segment.length-1===he[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&pe(t,!1);const n=Z.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 pe(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,fe(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(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 ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.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 nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!de(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!fe(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&fe(i)&&me(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 be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),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(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(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 _e{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 Ne{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,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{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]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(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=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),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 Me=[_e,Ne,Se];class Ce extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(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 we(t))}size(t,e){const n=g(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 Ae(){return this._array||(this._array=new $t(this.attr("points")))}function Ee(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function Le(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ce.prototype.MorphArray=we,l({Container:{path:B((function(t){return this.put(new Ce).plot(t||new we)}))}}),j(Ce,"Path");class je extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:B((function(t){return this.put(new je).plot(t||new $t)}))}}),I(je,i),I(je,s),j(je,"Polygon");class We extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:B((function(t){return this.put(new We).plot(t||new $t)}))}}),I(We,i),I(We,s),j(We,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}I(Pe,{rx:Lt,ry:jt}),l({Container:{rect:B((function(t,e){return this.put(new Pe).size(t,e)}))}}),j(Pe,"Rect");class De{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 Ie={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Ie.frames.push({run:t});return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),e},timeout(t,e){e=e||0;const n=Ie.timer().now()+e,r=Ie.timeouts.push({run:t,time:n});return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),r},immediate(t){const e=Ie.immediates.push(t);return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),e},cancelFrame(t){null!=t&&Ie.frames.remove(t)},clearTimeout(t){null!=t&&Ie.timeouts.remove(t)},cancelImmediate(t){null!=t&&Ie.immediates.remove(t)},_draw(t){let e=null;const n=Ie.timeouts.last();for(;(e=Ie.timeouts.shift())&&(t>=e.time?e.run():Ie.timeouts.push(e),e!==n););let r=null;const i=Ie.frames.last();for(;r!==i&&(r=Ie.frames.shift());)r.run(t);let s=null;for(;s=Ie.immediates.shift();)s();Ie.nextDraw=Ie.timeouts.first()||Ie.frames.first()?k.window.requestAnimationFrame(Ie._draw):null}},Be=Ie,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){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(Re);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 Be.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Be.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)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,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 se||(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=qe.sanitise(t,e,n),i=new qe(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 it,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 oe(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)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?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||bt,runner:e||bt,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 Fe||(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 it,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}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}I([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{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 Ue).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}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(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(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Be.cancelImmediate(this._frameId),this._frameId=Be.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),I(qe,{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 xe(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 Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Se(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new xe(this._stepper).to(new Nt(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=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new xe(this._stepper).type(n?Ne:it);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||y(t,o),h=new it(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new nt(s).transform(o._currentTransform(this));let d=new it({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(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 Nt(e),this._tryRetarget(t,e))return this;const n=new xe(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 Nt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(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 Nt(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 xe(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 at(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)}}),I(qe,{rx:Lt,ry:jt,from:Ut,to:Vt}),j(qe,"Runner");class Ye extends Et{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:B((function(){return this.put(new Ye)}))}}),j(Ye,"Svg",!0);class $e extends Et{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function un(t){return this._build=!!t,this}l({Container:{symbol:B((function(){return this.put(new $e)}))}}),j($e,"Symbol");class hn extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(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(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(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 Nt(t.leading||1.3),this}writeDataToDom(){return b(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||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(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()}}I(hn,o),l({Container:{text:B((function(t=""){return this.put(new hn).text(t)})),plain:B((function(t=""){return this.put(new hn).plain(t)}))}}),j(hn,"Text");class ln extends Ot{constructor(t,e=t){super(T("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 hn))return this;const e=t.index(this),n=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Nt(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)}}I(ln,o),l({Tspan:{tspan:B((function(t=""){const e=new ln;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),j(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("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 Nt(t).divide(2))}}I(cn,{x:Wt,y:Pt,cx:Dt,cy:It,width:Bt,height:Rt}),l({Container:{circle:B((function(t=0){return this.put(new cn).size(t).move(0,0)}))}}),j(cn,"Circle");class fn extends Et{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:B((function(){return this.defs().put(new fn)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),j(fn,"ClipPath");class dn extends Ct{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)})),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:B((function(t,e){return this.put(new dn).size(t,e)}))}}),j(dn,"ForeignObject");class Nn extends Et{constructor(t,e=t){super(T("g",t),e)}}I(Nn,a),l({Container:{group:B((function(){return this.put(new Nn)}))}}),j(Nn,"G");class kn extends Et{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}I(kn,a),l({Container:{link:B((function(t){return this.put(new kn).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 kn,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}}}),j(kn,"A");class Sn extends Et{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}l({Container:{mask:B((function(){return this.defs().put(new Sn)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),j(Sn,"Mask");class Mn extends Ct{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(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 Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),j(Mn,"Stop");class Cn extends Ct{constructor(t,e=t){super(T("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))}}l("Dom",{style(t,e){return this.put(new Cn).rule(t,e)},fontface(t,e,n){return this.put(new Cn).font(t,e,n)}}),j(Cn,"Style");class An extends hn{constructor(t,e=t){super(T("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")}}l({Container:{textPath:B((function(t,e){return t instanceof hn||(t=this.text(t)),t.path(e)}))},Text:{path:B((function(t,e=!0){const n=new An;let r;if(t instanceof Ce||(t=this.defs().path(t)),n.attr("href","#"+t,N),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:B((function(t){return t instanceof hn||(t=(new hn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ft("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),An.prototype.MorphArray=we,j(An,"TextPath");class En extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:B((function(t,e){return this.put(new En).use(t,e)}))}}),j(En,"Use"),I([Ye,$e,Xt,Ht,ne],c("viewbox")),I([ee,We,je,Ce],c("marker")),I(hn,c("Text")),I(Ce,c("Path")),I(Tt,c("Defs")),I([hn,ln],c("Tspan")),I([Pe,zt,Gt,qe],c("radius")),I(wt,c("EventTarget")),I(Mt,c("Dom")),I(Ct,c("Element")),I(Ot,c("Shape")),I([Et,qt],c("Container")),I(Gt,c("Gradient")),I(qe,c("Runner")),lt.extend([...new Set(h)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),I(Me,{to(t){return(new xe).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 Tn=n(726),On=n(854),Ln=n(731),jn=n(986);class Wn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new Wn(e);return n.assignUUID(),n.setAttributes(Wn.defaultAttributes),n}static deserialized(t,e){var n;if(!(0,On.isNonNullObject)(t))throw new Error("Saved base must be an object.");let r=null!==(n=t.id)&&void 0!==n?n:t.textId;if(!r)throw new Error("Missing base ID.");if(!(0,On.isString)(r))throw new Error("Base IDs must be strings.");let i=e.domNode.querySelector("#"+r);if(!i)throw new Error("Unable to find nucleobase DOM node.");if(!(i instanceof SVGTextElement))throw new Error("Nucleobase DOM node must be an SVG text element.");return new Wn(i)}constructor(t){this.domNode=t,this.centerPoint=new Ln.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new hn(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,jn.mean)([t.left,t.right]),y:(0,jn.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}Wn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},Wn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach(((t,e)=>n.set(t,e)));let r=[...t];return r.sort(((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)})),r}})(),r})(),t.exports=e()},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,Qs:()=>u,eB:()=>f,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.ANVAQUoGpnk43RSnGAKM {\n margin-top: 37px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 10px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RDvmUBCYTtjR2wzHlmxc .RAWN5K2ehadscPWlBK_9 {\n display: none;\n}\n\n.R1YlURzvulrm8_Yykjll {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.JuLTZXer4cr4ufASV85l {\n margin-top: 22px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.nJxPkvauzUEG66FC0ZAb {\n display: none;\n flex-direction: column;\n}\n',""]);var a="ANVAQUoGpnk43RSnGAKM",u="RAWN5K2ehadscPWlBK_9",h="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",f="nJxPkvauzUEG66FC0ZAb";const d=o},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:()=>u,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-radius: 2px;\n\n border: none;\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 background-color: #e0e0eb;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n border-color: #0a0a0b;\n\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 290px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 15px;\n\n border: 1px solid #cacae4;\n\n padding: 23px 16px 50px 36px;\n\n background-color: black;\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 31px;\n font-weight: 700;\n font-style: normal;\n color: white;\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 /**\n * Prevents unwanted movement of the vertical scrollbar\n * when elements are deselected and reselected.\n */\n min-height: 2200px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",u="Y7tezdMOsnQfs2CQtMUR",h="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}},543:function(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,h=128,l=1/0,c=9007199254740991,f=NaN,d=4294967295,p=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",C="[object Set]",A="[object String]",E="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",j="[object Float32Array]",W="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",I="[object Int32Array]",B="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="["+xt+"]",Et="["+Ct+"]",Tt="["+_t+"]",Ot="\\d+",Lt="["+Nt+"]",jt="["+kt+"]",Wt="[^"+xt+Ct+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+jt+"|"+Wt+")",qt="(?:"+Rt+"|"+Wt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,It,Bt].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Lt,It,Bt].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,It,Bt,At].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+jt+"+"+Ut+"(?="+[Et,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Et,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[j]=ie[W]=ie[P]=ie[D]=ie[I]=ie[B]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[L]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[C]=ie[A]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[L]=se[y]=se[v]=se[j]=se[W]=se[P]=se[D]=se[I]=se[_]=se[N]=se[k]=se[M]=se[C]=se[A]=se[E]=se[B]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ue=parseInt,he="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=he||le||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,me=pe&&he.process,ge=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ae(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ee(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function We(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Ie(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Be(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Be(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,(function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)})),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,(function(e){return t[e]}))}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,Ct=e.TypeError,At=r.prototype,Et=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Lt=Et.toString,jt=Tt.hasOwnProperty,Wt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,It=Lt.call(kt),Bt=ce._,Rt=St("^"+Lt.call(jt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=At.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,he=it&&it.now!==ce.Date.now&&it.now,le=e.setTimeout!==ce.setTimeout&&e.setTimeout,fe=Nt.ceil,de=Nt.floor,me=kt.getOwnPropertySymbols,ge=zt?zt.isBuffer:i,De=e.isFinite,Ve=At.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=At.reverse,_n=us(e,"DataView"),Nn=us(e,"Map"),kn=us(e,"Promise"),Sn=us(e,"Set"),Mn=us(e,"WeakMap"),Cn=us(kt,"create"),An=Mn&&new Mn,En={},Tn=Ds(_n),On=Ds(Nn),Ln=Ds(kn),jn=Ds(Sn),Wn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,In=Pn?Pn.toString:i;function Bn(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(jt.call(t,"__wrapped__"))return Is(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ua(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],u=a.length;for(var h in t)!e&&!jt.call(t,h)||o&&("length"==h||i&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ms(h,u))||a.push(h);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];jt.call(t,e)&&Ro(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ro(t[n][0],e))return n;return-1}function er(t,e,n,r){return lr(t,(function(t,i,s){e(r,t,n(t),s)})),r}function nr(t,e){return t&&Ci(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,u=1&e,h=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Mi(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==k||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Ci(t,ls(t),e)}(t,function(t,e){return t&&Ci(e,Oa(e),t)}(a,t)):function(t,e){return Ci(t,hs(t),e)}(t,nr(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case L:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case j:case W:case P:case D:case I:case B:case R:case z:case F:return _i(t,n);case _:return new i;case N:case A:return new i(t);case M:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case E:return r=t,Dn?kt(Dn.call(r)):{}}}(t,f,u)}}o||(o=new Xn);var p=o.get(t);if(p)return p;o.set(t,a),sa(t)?t.forEach((function(r){a.add(or(r,e,n,r,t,o))})):ea(t)&&t.forEach((function(r,i){a.set(i,or(r,e,n,i,t,o))}));var g=c?i:(l?h?es:ts:h?Oa:Ta)(t);return Se(g||t,(function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))})),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function ur(t,e,n){if("function"!=typeof t)throw new Ct(s);return Cs((function(){t.apply(i,n)}),e)}function hr(t,e,n,r){var i=-1,s=Ee,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var f=h;f--;)if(e[f]===c)continue t;u.push(l)}else s(e,c,r)||u.push(l)}return u}Bn.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===o?i:n}return jt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:jt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function fr(t,e){var n=!0;return lr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function dr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(u===i?a==a&&!aa(a):n(a,u)))var u=a,h=o}return h}function pr(t,e){var n=[];return lr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ae(e,(function(e){return Qo(t[e])}))}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:Le(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=jt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&jt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Cr(t,e,n){for(var s=n?Te:Ee,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Oe(f,$e(e))),l=yn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Hn(u&&f):i}f=t[0];var d=-1,p=h[0];t:for(;++d<o&&c.length<l;){var m=f[d],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,g):s(c,g,n))){for(u=a;--u;){var y=h[u];if(!(y?Ze(y,g):s(t[u],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Ar(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Er(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?g:cs(t),l=u?g:cs(e),c=(h=h==m?k:h)==k,f=(l=l==m?k:l)==k,d=h==l;if(d&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Xn),a||ua(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case A:return t==e+"";case _:var a=sn;case C:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case E:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&jt.call(t,"__wrapped__"),b=f&&jt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!d&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,u=ts(t),h=u.length;if(h!=ts(e).length&&!a)return!1;for(var l=h;l--;){var c=u[l];if(!(a?c in e:jt.call(e,c)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++l<h;){var g=t[c=u[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var u=n[s];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<o;){var h=(u=n[s])[0],l=t[h],c=u[1];if(a&&u[2]){if(l===i&&!(h in t))return!1}else{var f=new Xn;if(r)var d=r(l,c,h,t,e,f);if(!(d===i?Tr(c,l,3,r,f):d))return!1}}return!0}function Lr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function jr(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Br(t[0],t[1]):Ir(t):cu(t)}function Wr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,(function(t,r,s){i[++n]=e(t,r,s)})),i}function Ir(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Br(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,(function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var u=Ss(t,n),h=Ss(e,n),l=a.get(h);if(l)Jn(t,n,l);else{var c=o?o(u,h,n+"",t,e,a):i,f=c===i;if(f){var d=Uo(h),p=!d&&Xo(h),m=!d&&!p&&ua(h);c=h,d||p||m?Uo(u)?c=u:Ho(u)?c=Mi(u):p?(f=!1,c=bi(h,!0)):m?(f=!1,c=_i(h,!0)):c=[]:ra(h)||qo(h)?(c=u,qo(u)?c=ga(u):Ko(u)&&!Qo(u)||(c=ds(h))):f=!1}f&&(a.set(h,c),s(c,h,r,o,a),a.delete(h)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}}),Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,(function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[nu];var r=-1;e=Oe(e,$e(ss()));var i=Dr(t,(function(t,n,i){var s=Oe(e,(function(e){return e(t)}));return{criteria:s,index:++r,value:t}}));return function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var u=Ni(i[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var u=0,h=e[s],l=n?n(h):h;(u=i(a,l,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;ms(i)?Xt.call(t,i,1):ui(t,i)}}return t}function Gr(t,e){return t+de(bn()*(e-t+1))}function Hr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return As(Ns(t,e,nu),t+"")}function Yr(t){return $n(Ra(t))}function $r(t,e){var n=Ra(t);return Os(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=gi(e,t)).length,a=o-1,u=t;null!=u&&++s<o;){var h=Ps(e[s]),l=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(s!=a){var c=u[h];(l=r?r(c,h,u):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(u,h,l),u=u[h]}return t}var Zr=An?function(t,e){return An.set(t,e),t}:nu,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nu;function Kr(t){return Os(Ra(t))}function ti(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=r(s);++i<s;)o[i]=t[i+e];return o}function ei(t,e){var n;return lr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?r=s+1:i=s}return i}return ri(t,e,nu,n)}function ri(t,e,n,r){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,u=null===e,h=aa(e),l=e===i;s<o;){var c=de((s+o)/2),f=n(t[c]),d=f!==i,p=null===f,m=f==f,g=aa(f);if(a)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?f:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ee,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Te;else if(s>=200){var h=e?null:Hi(t);if(h)return un(h);o=!1,i=Ze,u=new Hn}else u=e?[]:a;t:for(;++r<s;){var l=t[r],c=e?e(l):l;if(l=n||0!==l?l:0,o&&c==c){for(var f=u.length;f--;)if(u[f]===c)continue t;e&&u.push(c),a.push(l)}else i(u,c,n)||(u!==a&&u.push(c),a.push(l))}return a}function ui(t,e){return null==(t=ks(t,e=gi(e,t)))||delete t[Ps(Ys(e))]}function hi(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),je(e,(function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],u=-1;++u<i;)u!=s&&(o[s]=hr(o[s]||a,t[u],e,n));return ai(mr(o,1),e,n)}function di(t,e,n){for(var r=-1,s=t.length,o=e.length,a={};++r<s;){var u=r<o?e[r]:i;n(a,t[r],u)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:Ws(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,u=null===e,h=e==e,l=aa(e);if(!u&&!l&&!o&&t>e||o&&a&&h&&!u&&!l||r&&a&&h||!n&&h||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!h)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=gn(o-a,0),c=r(h+l),f=!i;++u<h;)c[u]=e[u];for(;++s<a;)(f||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[u++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,u=n.length,h=-1,l=e.length,c=gn(o-u,0),f=r(c+l),d=!i;++s<c;)f[s]=t[s];for(var p=s;++h<l;)f[p+h]=e[h];for(;++a<u;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],h=r?r(n[u],t[u],u,n,t):i;h===i&&(h=t[u]),s?rr(n,u,h):Kn(n,u,h)}return n}function Ai(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ei(t){return Xr((function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&gs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=kt(e);++r<s;){var u=n[r];u&&t(e,u,r,o)}return e}))}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var u=o[t?a:++i];if(!1===n(s[u],u,s))break}return e}}function Li(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function ji(t){return function(e){return je(Qa(qa(e).replace(Qt,"")),t,"")}}function Wi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki((function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Ct(s);if(o&&!u&&"wrapper"==rs(a))var u=new Fn([],!0)}for(r=u?r:n;++r<n;){var h=rs(a=e[r]),l="wrapper"==h?ns(a):i;u=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&vs(a)?u[h]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Uo(r))return u.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}}))}function Ii(t,e,n,s,o,a,u,l,c,f){var d=e&h,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:Wi(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(h),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,u,g)),w-=N,g&&w<f){var k=an(b,_);return Vi(t,e,Ii,h.placeholder,n,b,k,l,c,f-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(M=v||Wi(M)),M.apply(S,b)}}function Bi(t,e){return function(n,r){return function(t,e,n,r){return vr(t,(function(t,i,s){e(r,n(t),i,s)})),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki((function(e){return e=Oe(e,$e(ss())),Xr((function(n){var r=this;return t(e,(function(t){return Ne(t,r,n)}))}))}))}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,fe(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n,i){for(var s=-1,o=gn(fe((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:fa(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,h,l,c){var f=8&e;e|=f?u:64,4&(e&=~(f?64:u))||(e&=-4);var d=[t,e,s,f?o:i,f?a:i,f?i:o,f?i:a,h,l,c],p=n.apply(i,d);return vs(t)&&Ms(p,d),p.placeholder=r,Es(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(da(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:au;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==C?hn(e):function(t,e){return Oe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Yi(t,e,n,o,l,c,f,d){var p=2&e;if(!p&&"function"!=typeof t)throw new Ct(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:gn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,f,d];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==h&&8==n||r==h&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?ki(l,u,e[4]):u,t[4]=l?an(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?Si(l,u,e[6]):u,t[6]=l?an(t[5],a):e[6]),(u=e[7])&&(t[7]=u),r&h&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(d=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=Wi(t);return function o(){for(var a=arguments.length,u=r(a),h=a,l=is(o);h--;)u[h]=arguments[h];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=c.length)<n?Vi(t,e,Ii,o.placeholder,i,u,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Ii.apply(i,w):function(t,e,n,i){var s=1&e,o=Wi(t);return function e(){for(var a=-1,u=arguments.length,h=-1,l=i.length,c=r(l+u),f=this&&this!==ce&&this instanceof e?o:t;++h<l;)c[h]=i[h];for(;u--;)c[h++]=arguments[++a];return Ne(f,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=Wi(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Es((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!jt.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Rr(t,e,i,Qi,o),o.delete(e)),t}function Zi(t){return ra(t)?i:t}function Ji(t,e,n,r,s,o){var a=1&n,u=t.length,h=e.length;if(u!=h&&!(a&&h>u))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var f=-1,d=!0,p=2&n?new Hn:i;for(o.set(t,e),o.set(e,t);++f<u;){var m=t[f],g=e[f];if(r)var y=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(y!==i){if(y)continue;d=!1;break}if(p){if(!Pe(e,(function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)}))){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return As(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,hs)}function es(t){return _r(t,Oa,ls)}var ns=An?function(t){return An.get(t)}:au;function rs(t){for(var e=t.name+"",n=En[e],r=jt.call(En,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(jt.call(Bn,"placeholder")?Bn:t).placeholder}function ss(){var t=Bn.iteratee||ru;return t=t===ru?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Lr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=kt(t),Ae(me(t),(function(e){return Ht.call(t,e)})))}:pu,ls=me?function(t){for(var e=[];t;)Le(e,hs(t)),t=Vt(t);return e}:pu,cs=Nr;function fs(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=Bn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=L||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=C||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return L;case On:return _;case Ln:return S;case jn:return C;case Wn:return T}return e});var ws=Ot?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var u=r(e+1);++s<e;)u[s]=i[s];return u[e]=n(a),Ne(t,this,u)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),Cs=le||function(t,e){return ce.setTimeout(t,e)},As=Ts(Jr);function Es(t,e,n){var r=e+"";return As(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,(function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ls,js,Ws=(Ls=jo((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,i){e.push(r?i.replace(lt,"$1"):n||t)})),e}),(function(t){return 500===js.size&&js.clear(),t})),js=Ls.cache,Ls);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Is(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Bs=Xr((function(t,e){return Ho(t)?hr(t,mr(e,1,Ho,!0)):[]})),Rs=Xr((function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(t,mr(e,1,Ho,!0),ss(n,2)):[]})),zs=Xr((function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(t,mr(e,1,Ho,!0),i,n):[]}));function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Be(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=da(n),s=n<0?gn(r+s,0):yn(s,r-1)),Be(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr((function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Cr(e):[]})),Hs=Xr((function(t){var e=Ys(t),n=Oe(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Cr(n,ss(e,2)):[]})),Xs=Xr((function(t){var e=Ys(t),n=Oe(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Cr(n,i,e):[]}));function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki((function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,(function(t){return ms(t,n)?+t:t})).sort(Ni)),r}));function Js(t){return null==t?t:xn.call(t)}var Ks=Xr((function(t){return ai(mr(t,1,Ho,!0))})),to=Xr((function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))})),eo=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)}));function no(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,(function(t){if(Ho(t))return e=gn(t.length,e),!0})),Xe(e,(function(e){return Oe(t,Ue(e))}))}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,(function(t){return Ne(e,i,t)}))}var io=Xr((function(t,e){return Ho(t)?hr(t,e):[]})),so=Xr((function(t){return fi(Ae(t,Ho))})),oo=Xr((function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Ae(t,Ho),ss(e,2))})),ao=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Ae(t,Ho),i,e)})),uo=Xr(no),ho=Xr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)}));function lo(t){var e=Bn(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(s)})),po=Ai((function(t,e,n){jt.call(t,n)?++t[n]:rr(t,n,1)})),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ai((function(t,e,n){jt.call(t,n)?t[n].push(e):rr(t,n,[e])})),bo=Xr((function(t,e,n){var i=-1,s="function"==typeof e,o=Go(t)?r(t.length):[];return lr(t,(function(t){o[++i]=s?Ne(e,t,n):Ar(t,e,n)})),o})),xo=Ai((function(t,e,n){rr(t,n,e)}));function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ai((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ko=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])})),So=he||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Co(t,e){var n;if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ao=Xr((function(t,e,n){var r=1;if(n.length){var i=an(n,is(Ao));r|=u}return Yi(t,r,e,n,i)})),Eo=Xr((function(t,e,n){var r=3;if(n.length){var i=an(n,is(Eo));r|=u}return Yi(e,r,t,n,i)}));function To(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ct(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function y(){var t=So();if(g(t))return v(t);h=Cs(y,function(t){var n=e-(t-l);return d?yn(n,a-(t-c)):n}(t))}function v(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Cs(y,e),f?m(t):u}(l);if(d)return wi(h),h=Cs(y,e),m(l)}return h===i&&(h=Cs(y,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){h!==i&&wi(h),c=0,r=l=o=h=i},w.flush=function(){return h===i?u:v(So())},w}var Oo=Xr((function(t,e){return ur(t,1,e)})),Lo=Xr((function(t,e,n){return ur(t,ma(e)||0,n)}));function jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(jo.Cache||Gn),n}function Wo(t){if("function"!=typeof t)throw new Ct(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}jo.Cache=Gn;var Po=yi((function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr((function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)}))})),Do=Xr((function(t,e){var n=an(e,is(Do));return Yi(t,u,i,e,n)})),Io=Xr((function(t,e){var n=an(e,is(Io));return Yi(t,64,i,e,n)})),Bo=Ki((function(t,e){return Yi(t,256,i,i,i,e)}));function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui((function(t,e){return t>=e})),qo=Er(function(){return arguments}())?Er:function(t){return ta(t)&&jt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mu,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==da(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==It}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==C};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==A}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==E}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ha=Ui(Pr),la=Ui((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==C?un:Ra)(t)}function fa(t){return t?(t=ma(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=fa(t),n=e%1;return e==e?n?e-n:e:0}function pa(t){return t?sr(da(t),0,d):0}function ma(t){if("number"==typeof t)return t;if(aa(t))return f;if(Ko(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ko(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||gt.test(t)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function ga(t){return Ci(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ei((function(t,e){if(bs(e)||Go(e))Ci(e,Ta(e),t);else for(var n in e)jt.call(e,n)&&Kn(t,n,e[n])})),wa=Ei((function(t,e){Ci(e,Oa(e),t)})),ba=Ei((function(t,e,n,r){Ci(e,Oa(e),t,r)})),xa=Ei((function(t,e,n,r){Ci(e,Ta(e),t,r)})),_a=Ki(ir),Na=Xr((function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Ro(c,Tt[l])&&!jt.call(t,l))&&(t[l]=o[l])}return t})),ka=Xr((function(t){return t.push(i,Qi),Ne(ja,i,t)}));function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&fs(t,e,Mr)}var Ca=Bi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n}),Ka(nu)),Aa=Bi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),ss),Ea=Xr(Ar);function Ta(t){return Go(t)?Yn(t):Wr(t)}function Oa(t){return Go(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in kt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}(t)}var La=Ei((function(t,e,n){Rr(t,e,n)})),ja=Ei((function(t,e,n,r){Rr(t,e,n,r)})),Wa=Ki((function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,(function(e){return e=gi(e,t),r||(r=e.length>1),e})),Ci(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n})),Pa=Ki((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Ma(t,n)}))}(t,e)}));function Da(t,e){if(null==t)return{};var n=Oe(es(t),(function(t){return[t]}));return e=ss(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Xi(Ta),Ba=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=ji((function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)}));function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Va=ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ga=Li("toLowerCase"),Ha=ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xa=ji((function(t,e,n){return t+(n?" ":"")+$a(e)})),Ya=ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),$a=Li("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Za=Xr((function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}})),Ja=Ki((function(t,e){return Se(e,(function(e){e=Ps(e),rr(t,e,Ao(t[e],t))})),t}));function Ka(t){return function(){return t}}var tu=Di(),eu=Di(!0);function nu(t){return t}function ru(t){return jr("function"==typeof t?t:or(t,1))}var iu=Xr((function(t,e){return function(n){return Ar(n,t,e)}})),su=Xr((function(t,e){return function(n){return Ar(t,n,e)}}));function ou(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})})),t}function au(){}var uu=zi(Oe),hu=zi(Ce),lu=zi(Pe);function cu(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var fu=qi(),du=qi(!0);function pu(){return[]}function mu(){return!1}var gu,yu=Ri((function(t,e){return t+e}),0),vu=Gi("ceil"),wu=Ri((function(t,e){return t/e}),1),bu=Gi("floor"),xu=Ri((function(t,e){return t*e}),1),_u=Gi("round"),Nu=Ri((function(t,e){return t-e}),0);return Bn.after=function(t,e){if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Bn.ary=Mo,Bn.assign=va,Bn.assignIn=wa,Bn.assignInWith=ba,Bn.assignWith=xa,Bn.at=_a,Bn.before=Co,Bn.bind=Ao,Bn.bindAll=Ja,Bn.bindKey=Eo,Bn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},Bn.chain=lo,Bn.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,u=r(fe(s/e));o<s;)u[a++]=ti(t,o,o+=e);return u},Bn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},Bn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Uo(n)?Mi(n):[n],mr(e,1))},Bn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,(function(t){if("function"!=typeof t[1])throw new Ct(s);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}}))},Bn.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},Bn.constant=Ka,Bn.countBy=po,Bn.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},Bn.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Bn.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Bn.debounce=To,Bn.defaults=Na,Bn.defaultsDeep=ka,Bn.defer=Oo,Bn.delay=Lo,Bn.difference=Bs,Bn.differenceBy=Rs,Bn.differenceWith=zs,Bn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:da(e))<0?0:e,r):[]},Bn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:da(e)))<0?0:e):[]},Bn.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},Bn.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},Bn.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:da(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Bn.filter=function(t,e){return(Uo(t)?Ae:pr)(t,ss(e,3))},Bn.flatMap=function(t,e){return mr(_o(t,e),1)},Bn.flatMapDeep=function(t,e){return mr(_o(t,e),l)},Bn.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},Bn.flatten=Us,Bn.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},Bn.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},Bn.flip=function(t){return Yi(t,512)},Bn.flow=tu,Bn.flowRight=eu,Bn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Bn.functions=function(t){return null==t?[]:br(t,Ta(t))},Bn.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},Bn.groupBy=wo,Bn.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Bn.intersection=Gs,Bn.intersectionBy=Hs,Bn.intersectionWith=Xs,Bn.invert=Ca,Bn.invertBy=Aa,Bn.invokeMap=bo,Bn.iteratee=ru,Bn.keyBy=xo,Bn.keys=Ta,Bn.keysIn=Oa,Bn.map=_o,Bn.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},Bn.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},Bn.matches=function(t){return Ir(or(t,1))},Bn.matchesProperty=function(t,e){return Br(t,or(e,1))},Bn.memoize=jo,Bn.merge=La,Bn.mergeWith=ja,Bn.method=iu,Bn.methodOf=su,Bn.mixin=ou,Bn.negate=Wo,Bn.nthArg=function(t){return t=da(t),Xr((function(e){return zr(e,t)}))},Bn.omit=Wa,Bn.omitBy=function(t,e){return Da(t,Wo(ss(e)))},Bn.once=function(t){return Co(2,t)},Bn.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},Bn.over=uu,Bn.overArgs=Po,Bn.overEvery=hu,Bn.overSome=lu,Bn.partial=Do,Bn.partialRight=Io,Bn.partition=No,Bn.pick=Pa,Bn.pickBy=Da,Bn.property=cu,Bn.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},Bn.pull=$s,Bn.pullAll=Qs,Bn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},Bn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},Bn.pullAt=Zs,Bn.range=fu,Bn.rangeRight=du,Bn.rearg=Bo,Bn.reject=function(t,e){return(Uo(t)?Ae:pr)(t,Wo(ss(e,3)))},Bn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=ss(e,3);++r<s;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Vr(t,i),n},Bn.rest=function(t,e){if("function"!=typeof t)throw new Ct(s);return Xr(t,e=e===i?e:da(e))},Bn.reverse=Js,Bn.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},Bn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Bn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Bn.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},Bn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},Bn.sortBy=ko,Bn.sortedUniq=function(t){return t&&t.length?ii(t):[]},Bn.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},Bn.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},Bn.spread=function(t,e){if("function"!=typeof t)throw new Ct(s);return e=null==e?0:gn(da(e),0),Xr((function(n){var r=n[e],i=vi(n,0,e);return r&&Le(i,r),Ne(t,this,i)}))},Bn.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Bn.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:da(e))<0?0:e):[]},Bn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:da(e)))<0?0:e,r):[]},Bn.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},Bn.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},Bn.tap=function(t,e){return e(t),t},Bn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ct(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},Bn.thru=co,Bn.toArray=ca,Bn.toPairs=Ia,Bn.toPairsIn=Ba,Bn.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(Ws(ya(t)))},Bn.toPlainObject=ga,Bn.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ua(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Bn.unary=function(t){return Mo(t,1)},Bn.union=Ks,Bn.unionBy=to,Bn.unionWith=eo,Bn.uniq=function(t){return t&&t.length?ai(t):[]},Bn.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},Bn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Bn.unset=function(t,e){return null==t||ui(t,e)},Bn.unzip=no,Bn.unzipWith=ro,Bn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},Bn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},Bn.values=Ra,Bn.valuesIn=function(t){return null==t?[]:Qe(t,Oa(t))},Bn.without=io,Bn.words=Qa,Bn.wrap=function(t,e){return Do(mi(e),t)},Bn.xor=so,Bn.xorBy=oo,Bn.xorWith=ao,Bn.zip=uo,Bn.zipObject=function(t,e){return di(t||[],e||[],Kn)},Bn.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},Bn.zipWith=ho,Bn.entries=Ia,Bn.entriesIn=Ba,Bn.extend=wa,Bn.extendWith=ba,ou(Bn,Bn),Bn.add=yu,Bn.attempt=Za,Bn.camelCase=za,Bn.capitalize=Fa,Bn.ceil=vu,Bn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},Bn.clone=function(t){return or(t,4)},Bn.cloneDeep=function(t){return or(t,5)},Bn.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},Bn.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},Bn.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},Bn.deburr=qa,Bn.defaultTo=function(t,e){return null==t||t!=t?e:t},Bn.divide=wu,Bn.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(da(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},Bn.eq=Ro,Bn.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},Bn.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Bn.every=function(t,e,n){var r=Uo(t)?Ce:fr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Bn.find=mo,Bn.findIndex=Fs,Bn.findKey=function(t,e){return Ie(t,ss(e,3),vr)},Bn.findLast=go,Bn.findLastIndex=qs,Bn.findLastKey=function(t,e){return Ie(t,ss(e,3),wr)},Bn.floor=bu,Bn.forEach=yo,Bn.forEachRight=vo,Bn.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},Bn.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},Bn.forOwn=function(t,e){return t&&vr(t,ss(e,3))},Bn.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},Bn.get=Sa,Bn.gt=zo,Bn.gte=Fo,Bn.has=function(t,e){return null!=t&&fs(t,e,Sr)},Bn.hasIn=Ma,Bn.head=Vs,Bn.identity=nu,Bn.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},Bn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},Bn.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},Bn.invoke=Ea,Bn.isArguments=qo,Bn.isArray=Uo,Bn.isArrayBuffer=Vo,Bn.isArrayLike=Go,Bn.isArrayLikeObject=Ho,Bn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},Bn.isBuffer=Xo,Bn.isDate=Yo,Bn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},Bn.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ua(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==C)return!t.size;if(bs(t))return!Wr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Bn.isEqual=function(t,e){return Tr(t,e)},Bn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},Bn.isError=$o,Bn.isFinite=function(t){return"number"==typeof t&&De(t)},Bn.isFunction=Qo,Bn.isInteger=Zo,Bn.isLength=Jo,Bn.isMap=ea,Bn.isMatch=function(t,e){return t===e||Or(t,e,as(e))},Bn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},Bn.isNaN=function(t){return na(t)&&t!=+t},Bn.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},Bn.isNil=function(t){return null==t},Bn.isNull=function(t){return null===t},Bn.isNumber=na,Bn.isObject=Ko,Bn.isObjectLike=ta,Bn.isPlainObject=ra,Bn.isRegExp=ia,Bn.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},Bn.isSet=sa,Bn.isString=oa,Bn.isSymbol=aa,Bn.isTypedArray=ua,Bn.isUndefined=function(t){return t===i},Bn.isWeakMap=function(t){return ta(t)&&cs(t)==T},Bn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},Bn.join=function(t,e){return null==t?"":Ve.call(t,e)},Bn.kebabCase=Ua,Bn.last=Ys,Bn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=da(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Be(t,Fe,s,!0)},Bn.lowerCase=Va,Bn.lowerFirst=Ga,Bn.lt=ha,Bn.lte=la,Bn.max=function(t){return t&&t.length?dr(t,nu,kr):i},Bn.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),kr):i},Bn.mean=function(t){return qe(t,nu)},Bn.meanBy=function(t,e){return qe(t,ss(e,2))},Bn.min=function(t){return t&&t.length?dr(t,nu,Pr):i},Bn.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Pr):i},Bn.stubArray=pu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=xu,Bn.nth=function(t,e){return t&&t.length?zr(t,da(e)):i},Bn.noConflict=function(){return ce._===this&&(ce._=Bt),this},Bn.noop=au,Bn.now=So,Bn.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(de(i),n)+t+Fi(fe(i),n)},Bn.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},Bn.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},Bn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},Bn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},Bn.reduce=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},Bn.reduceRight=function(t,e,n){var r=Uo(t)?We:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},Bn.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),Hr(ya(t),e)},Bn.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Bn.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},Bn.round=_u,Bn.runInContext=t,Bn.sample=function(t){return(Uo(t)?$n:Yr)(t)},Bn.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==C?t.size:Wr(t).length},Bn.snakeCase=Ha,Bn.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Bn.sortedIndex=function(t,e){return ni(t,e)},Bn.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},Bn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},Bn.sortedLastIndex=function(t,e){return ni(t,e,!0)},Bn.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},Bn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},Bn.startCase=Xa,Bn.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},Bn.subtract=Nu,Bn.sum=function(t){return t&&t.length?He(t,nu):0},Bn.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},Bn.template=function(t,e,n){var r=Bn.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Ta(a),h=Qe(a,u),l=0,c=e.interpolate||wt,f="__p += '",d=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,(function(e,n,r,i,a,u){return r||(r=i),f+=t.slice(l,u).replace(bt,nn),n&&(s=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),f+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(q,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Za((function(){return _t(u,p+"return "+f).apply(i,h)}));if(g.source=f,$o(g))throw g;return g},Bn.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=yn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},Bn.toFinite=fa,Bn.toInteger=da,Bn.toLength=pa,Bn.toLower=function(t){return ya(t).toLowerCase()},Bn.toNumber=ma,Bn.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},Bn.toString=ya,Bn.toUpper=function(t){return ya(t).toUpperCase()},Bn.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},Bn.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},Bn.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},Bn.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var u=n-ln(r);if(u<1)return r;var h=a?vi(a,0,u).join(""):t.slice(0,u);if(s===i)return h+r;if(a&&(u+=h.length-u),ia(s)){if(t.slice(u).search(s)){var l,c=h;for(s.global||(s=St(s.source,ya(ft.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var f=l.index;h=h.slice(0,f===i?u:f)}}else if(t.indexOf(oi(s),u)!=u){var d=h.lastIndexOf(s);d>-1&&(h=h.slice(0,d))}return h+r},Bn.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,dn):t},Bn.uniqueId=function(t){var e=++Wt;return ya(t)+e},Bn.upperCase=Ya,Bn.upperFirst=$a,Bn.each=yo,Bn.eachRight=vo,Bn.first=Vs,ou(Bn,(gu={},vr(Bn,(function(t,e){jt.call(Bn.prototype,e)||(gu[e]=t)})),gu),{chain:!1}),Bn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bn[t].placeholder=Bn})),Se(["drop","take"],(function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(nu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Ar(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Wo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Bn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(Bn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof qn,h=a[0],l=u||Uo(e),c=function(t){var e=s.apply(Bn,Le([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof h&&1!=h.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=u&&!d;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,f)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Bn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n]((function(n){return e.apply(Uo(n)?n:[],t)}))}})),vr(qn.prototype,(function(t,e){var n=Bn[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}})),En[Ii(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,h=r?a:o-1,l=this.__iteratees__,c=l.length,f=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ci(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var m=-1,g=t[h+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[f++]=g}return p},Bn.prototype.at=fo,Bn.prototype.chain=function(){return lo(this)},Bn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Is(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,$t&&(Bn.prototype[$t]=function(){return this}),Bn}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,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: white;\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",u="hcTi6yK4eMJ8Mc61rqGY",h="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:()=>v,IU:()=>d,QB:()=>y,Qs:()=>f,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>h,vw:()=>p,wx:()=>u});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: white;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 21px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 22px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",f="TCp4dzyF9qmbX3ejDOkL",d="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=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:()=>h,ZZ:()=>a,o3:()=>u});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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: white;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=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,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.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 _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t}var N="3.7.1",k=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function M(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:N,constructor:S,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=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.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(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.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:h,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[e]=S.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},S.extend({expando:"jQuery"+(N+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]"!==f.call(t)||(e=o(t))&&("function"!=typeof(n=d.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(M(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+=S.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&&(M(Object(t))?S.merge(n,"string"==typeof t?[t]:t):h.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!k.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(M(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 u(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var A=s.pop,E=s.sort,T=s.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");S.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 W(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(j,W)};var P=w,D=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=D,y=S.expando,v=0,w=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+O+"*("+j+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",I=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),q=new RegExp(I),U=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Q=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(){ut()},J=ft((function(t){return!0===t.disabled&&C(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,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&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[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(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||f&&f.test(t))){if(d=t,p=e,1===v&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);d=l.join(",")}try{return m.apply(n,p.querySelectorAll(d)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$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=u.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 C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(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 ut(t){var n,r=t?t.ownerDocument||t:P;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!S.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&P!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return u.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return u.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)},f=[],nt((function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||f.push("~="),t.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),g.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),k=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===u||t.ownerDocument==P&&K.contains(P,t)?-1:e===u||e.ownerDocument==P&&K.contains(P,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),S.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.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)},S.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,k),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)T.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.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&&q.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 C(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&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(B," ")+" ").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,u){var h,l,c,f,d,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?C(c,g):1===c.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&w){for(b=(f=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=f&&m.childNodes[f];c=++f&&c&&c[p]||(b=f=0)||d.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,f,b];break}}else if(w&&(b=f=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?C(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(L,"$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||S.text(e)).indexOf(t)>-1}})),lang:et((function(t){return U.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===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(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 H.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(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 ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=z.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(L," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||h[o]&&!(i=h[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,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(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,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&C(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function dt(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,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&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,u){var h,c,f,d,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,u);if(n?n(w,d=i||(s?t:y||r)?[]:o,a,u):d=w,r)for(h=pt(d,g),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[g[c]]=!(w[g[c]]=f));if(s){if(i||t){if(i){for(h=[],c=d.length;c--;)(f=d[c])&&h.push(w[c]=f);i(null,d=[],h,u)}for(c=d.length;c--;)(f=d[c])&&(h=i?l.call(s,f):p[c])>-1&&(s[h]=!(o[h]=f))}}else d=pt(d===o?d.splice(y,d.length):d),i?i(null,o,d,u):m.apply(o,d)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=ft((function(t){return t===r}),u,!0),f=ft((function(t){return l.call(r,t)>-1}),u,!0),d=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):f(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])d=[ft(dt(d),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&dt(d),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(L,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function yt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=_(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,f){var d,p,g,y=0,w="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",f),k=v+=null==_?1:Math.random()||.1,M=N.length;for(f&&(n=a==u||a||f);w!==M&&null!=(d=N[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);g=t[p++];)if(g(d,a||u,h)){m.call(l,d);break}f&&(v=k)}i&&((d=!g&&d)&&y--,o&&b.push(d))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,h);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=A.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&y+r.length>1&&S.uniqueSort(l)}return f&&(v=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,f=!i&<(t=l.selector||t);if(r=r||[],1===f.length){if((o=f[0]=f[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[u=a.type]);)if((h=e.find[u])&&(i=h(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,f))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(k).join("")===y,ut(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),S.find=K,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=S.escapeSelector,K.getText=S.text,K.isXML=S.isXMLDoc,K.selectors=S.expr,K.support=S.support,K.uniqueSort=S.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&&S(t).is(n))break;r.push(t)}return r},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=S.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return l.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&R.test(t)?S(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.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 S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),z.test(r[1])&&S.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(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function H(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&S(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&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(S(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(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.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 H(t,"nextSibling")},prev:function(t){return H(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 B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[t]||S.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function $(t){throw t}function Q(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])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):S.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=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?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){S.each(n,(function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return S.each(arguments,(function(t,e){for(var n;(n=S.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?S.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||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.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 S.Deferred((function(n){S.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,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,Y,i),o(s,e,$,i)):(s++,h.call(r,o(s,e,Y,i),o(s,e,$,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(S.Deferred.getErrorHook?l.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(l.error=S.Deferred.getStackHook()),r.setTimeout(l))}}return S.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:$))})).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.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=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&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.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)},S.readyException=function(t){r.setTimeout((function(){throw t}))};var J=S.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),S.ready()}S.fn.ready=function(t){return J.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(w,[S]))}}),S.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===_(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),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(S(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?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=S.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(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.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&&!S.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\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:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),S.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=ut.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(){ut.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ut.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),S.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,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){S.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:S.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each((function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.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 ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return S.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===S.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},u=a(),h=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+u)&&dt.exec(S.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)S.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,S.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,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=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function _t(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}S.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?S(this).show():S(this).hide()}))}});var Nt,kt,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(kt=w.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Nt.appendChild(kt),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var At={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&&C(t,e)?S.merge([t],n):n}function Tt(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;d<p;d++)if((s=t[d])||0===s)if("object"===_(s))S.merge(f,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Mt.exec(s)||["",""])[1].toLowerCase(),u=At[a]||At._default,o.innerHTML=u[1]+S.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;S.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(s));for(c.textContent="",d=0;s=f[d++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Et(c.appendChild(s),"script"),h&&Tt(o),n)for(l=0;s=o[l++];)Ct.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Wt(){return!0}function Pt(){return!1}function Dt(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)Dt(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=Pt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return S().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),t.each((function(){S.event.add(this,e,i,r,n)}))}function It(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.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,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Wt)}})):void 0===at.get(t,e)&&S.event.add(t,e,Wt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(mt,i),n.guid||(n.guid=S.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d&&(c=S.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=S.event.special[d]||{},l=S.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=u[d])||((f=u[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(d,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),S.event.global[d]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=S.event.special[d]||{},f=u[d=(r?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)l=f[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(s,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(t,l));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||S.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)S.event.remove(t,d+e[h],n,r,!0);S.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=S.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=S.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=S.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(h)>-1:S.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(S.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[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Wt:Pt,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&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.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},S.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))}}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),S.fn.extend({on:function(t,e,n,r){return Dt(this,t,e,n,r)},one:function(t,e,n,r){return Dt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(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=Pt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Bt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(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++)S.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=S.extend({},s),ut.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,f=t.length,d=f-1,p=e[0],m=y(p);if(m||f>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())),Ht(s,e,n,r)}));if(f&&(s=(i=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Et(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Et(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,S.map(o,Ut),c=0;c<a;c++)h=o[c],Ct.test(h.type||"")&&!at.access(h,"globalEval")&&S.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):x(h.textContent.replace(zt,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?S.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Et(r)),r.parentNode&&(n&>(r)&&Tt(Et(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.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&&Tt(o,!u&&Et(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.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]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?S.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 Ht(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(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&&(S.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 S.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&&!Bt.test(t)&&!At[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.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 Ht(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}}));var Yt=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),$t=/^--/,Qt=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=$t.test(e),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||gt(t)||(o=S.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.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){h.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(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=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(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=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,S.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},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 S.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 ue(t,e,n){var r=dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=S.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=S.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=S.css(t,"border"+pt[o]+"Width",!0,i))):(u+=S.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=S.css(t,"border"+pt[o]+"Width",!0,i):a+=S.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.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()&&C(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(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)}S.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),u=$t.test(e),h=t.style;if(u||(e=ie(a)),o=S.cssHooks[e]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return $t.test(e)||(e=ie(a)),(o=S.cssHooks[e]||S.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}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(S.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=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===S.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ue(0,n,u)}}})),S.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"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.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&&(S.cssHooks[t+e].set=ue)})),S.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=Qt(t),i=e.length;o<i;o++)s[e[o]]=S.css(t,e[o],!1,r);return s}return void 0!==n?S.style(t,e,n):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(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=S.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=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.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)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var fe,de,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,S.fx.interval),S.fx.tick())}function ye(){return r.setTimeout((function(){fe=void 0})),fe=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=S.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=fe||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.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=S.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,h.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,dt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);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,u,h,l,c="width"in e||"height"in e,f=this,d={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always((function(){f.always((function(){o.unqueued--,S.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}d[r]=g&&g[r]||S.style(t,r)}if((u=!S.isEmptyObject(e))||!S.isEmptyObject(d))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=S.css(t,"display"))&&(h?l=h:(_t([t],!0),h=t.style.display||h,l=S.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===S.css(t,"float")&&(u||(f.done((function(){p.display=h})),null==h&&(l=p.display,h="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&_t([t],!0),f.done((function(){for(r in m||_t([t]),at.remove(t,"fxshow"),d)S.style(t,r,d[r])}))),u=we(m?g[r]:0,r,f),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.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&&S.dequeue(this,r.queue)},r},S.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=S.isEmptyObject(t),s=S.speed(e,n,r),o=function(){var e=be(this,S.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=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||S.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=S.timers,o=r?r.length:0;for(n.finish=!0,S.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}))}}),S.each(["toggle","show","hide"],(function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),fe=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){de||(de=!0,ge())},S.fx.stop=function(){de=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.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,_e=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return tt(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.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=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(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(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||S.find.attr;_e[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=_e[o],_e[o]=i,i=null!=n(t,e,r)?o:null,_e[o]=s),i}}));var Ne=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Me(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.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=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){S(this).addClass(t.call(this,e,Me(this)))})):(e=Ce(t)).length?this.each((function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Se(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){S(this).removeClass(t.call(this,e,Me(this)))})):arguments.length?(e=Ce(t)).length?this.each((function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Se(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){S(this).toggleClass(t.call(this,n,Me(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each((function(){if(a)for(s=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=Me(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&&(" "+Se(Me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;S.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,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ae,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=S.makeArray(e),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=r.location,Te={guid:Date.now()},Oe=/\?/;S.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||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,f,p=[n||w],m=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.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]:S.makeArray(e,[t]),c=S.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Le.test(u+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();)f=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&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)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,je),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,je),S.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var We=/\[\]$/,Pe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||We.test(t)?r(t,i):Be(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==_(e))r(t,e);else for(i in e)Be(t+"["+i+"]",e[i],n,r)}S.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&&!S.isPlainObject(t))S.each(t,(function(){i(this.name,this.value)}));else for(n in t)Be(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ie.test(this.nodeName)&&!De.test(t)&&(this.checked||!St.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:n.replace(Pe,"\r\n")}})).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=w.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];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 Qe(t,e,n,r){var i={},s=t===He;function o(a){var u;return i[a]=!0,S.each(t[a]||[],(function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)})),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ye.href=Ee.href,S.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:{"*":Xe,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,f,d=S.ajaxSetup({},e),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=d.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=qe.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 h?s:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(g.promise(N),d.url=((t||d.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(X)||[""],null==d.crossDomain){u=w.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ye.protocol+"//"+Ye.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Qe(Ge,d,e,N),h)return N;for(c in(l=S.event&&d.global)&&0===S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ue.test(d.type),i=d.url.replace(ze,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Oe.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Oe.test(i)?"&":"?")+"_="+Te.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&N.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&N.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&N.setRequestHeader("Content-Type",d.contentType),N.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)N.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,N,d)||h))return N.abort();if(_="abort",y.add(d.complete),N.done(d.success),N.fail(d.error),n=Qe(He,d,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,d]),h)return N;d.async&&d.timeout>0&&(a=r.setTimeout((function(){N.abort("timeout")}),d.timeout));try{h=!1,n.send(b,k)}catch(t){if(h)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.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,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(d,N,o)),!c&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[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 "+u+" to "+s}}}return{state:"success",data:e}}(d,b,N,c),c?(d.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=b.state,f=b.data,c=!(w=b.error))):(w=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[f,_,N]):g.rejectWith(p,[N,_,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,d,c?f:w]),y.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,d]),--S.active||S.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(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){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=S.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,S.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()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<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=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||S.expando+"_"+Te.guid++;return this[t]=!0,t}}),S.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+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.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?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),S.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=z.exec(t))?[e.createElement(i[1])]:(i=Lt([t],e,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Se(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=S.css(t,"position"),l=S(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=S.css(t,"top"),u=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,S.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)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.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"===S.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"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||mt}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;S.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)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?S(t).position()[e]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){S.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?S.css(e,n,a):S.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.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)}}),S.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){S.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;S.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||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=C,S.isFunction=y,S.isWindow=v,S.camelCase=it,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=on),t&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S}))},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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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:()=>c,JJ:()=>l,Qq:()=>u,YL:()=>a,jJ:()=>h});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: 1px solid #d0d0e9;\n border-radius: 5px;\n\n background-color: black;\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.D8UCSOzbDas70ahLaazC {\n border-style: solid;\n border-color: #d0d0e9 transparent transparent transparent;\n border-width: 18px 9px;\n margin-top: -1px;\n}\n\n.RCKbqYEd_F2wRTu_tJpk {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 17px 8px;\n margin-top: -37px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",u="p5_D557pe0GpEcfAZAWo",h="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";const c=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:()=>T});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),u=n(56),h=n.n(u),l=n(540),c=n.n(l),f=n(113),d=n.n(f),p=n(865),m={};m.styleTagTransform=d(),m.setAttributes=h(),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,M,C,A=n(645),E=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 T{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,document.createElement("div")),x.set(this,5),_.set(this,void 0),N.set(this,(()=>{})),k.set(this,(()=>{})),E(this,y,"f").classList.add(p.YL),E(this,v,"f").classList.add(p.Qq),E(this,v,"f").textContent=t,E(this,y,"f").append(E(this,v,"f")),E(this,w,"f").classList.add(p.jJ),E(this,y,"f").append(E(this,w,"f")),E(this,b,"f").classList.add(p.JJ),E(this,y,"f").append(E(this,b,"f"))}get textContent(){return E(this,v,"f").textContent}set textContent(t){let e=!E(this,g,"m",C).call(this);E(this,g,"m",M).call(this),E(this,v,"f").textContent=t,e&&E(this,g,"m",S).call(this)}get owner(){return E(this,_,"f")}set owner(t){E(this,_,"f")&&(E(this,_,"f").removeEventListener("mouseover",E(this,N,"f")),E(this,_,"f").removeEventListener("mouseout",E(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,_,t),t&&(t.addEventListener("mouseover",(()=>E(this,g,"m",S).call(this))),t.addEventListener("mouseout",(()=>E(this,g,"m",M).call(this))))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,g=new WeakSet,S=function(){if(E(this,y,"f").style.left="0px",E(this,y,"f").style.top="0px",document.body.append(E(this,y,"f")),!E(this,_,"f"))return;let t=E(this,y,"f").getBoundingClientRect().width,e=E(this,v,"f").getBoundingClientRect().height+E(this,w,"f").getBoundingClientRect().height/2-1,n=A.Box.matching(E(this,_,"f").getBoundingClientRect()).padded(E(this,x,"f"));E(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2+"px",E(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},M=function(){E(this,y,"f").remove()},C=function(){return!document.body.contains(E(this,y,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Ol:()=>f,Qs:()=>u,Se:()=>a,eB:()=>d,vM:()=>l,vw:()=>c,yZ:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.LtjvWfQ5DEgLE0jZ1VYc {\n margin-top: 37px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 10px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.UArJtlXrClYUqKvYzpXe .Nc_rMplF2zhIq3zYlKFl {\n display: none;\n}\n\n.rgGEAvKvdVba2DrspkU6 {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.mLPVUA5YiyA4OksC17sb {\n margin-top: 22px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.pCuHfZ8GeFUaELxeOyqs {\n margin-top: 28px;\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",f="pCuHfZ8GeFUaELxeOyqs",d="IhPX3q3sGT4fPIlgUdp1";const p=o},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,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 u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Wu:()=>u,kL:()=>a,r9:()=>h});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 3px 15px;\n border-radius: 2px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #001010;\n\n background-color: #78dada;\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: #378f8f;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: #329a9a;\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: #1b7474;\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",u="vDAwbQmWCc39SmNMFRtv",h="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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,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:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,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=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}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 f{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 d{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 _{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 N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),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:()=>d,kv:()=>f});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),u=n.n(a),h=new URL(n(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid #e0e0eb;\n border-radius: 2px;\n\n width: 14px;\n height: 14px;\n\n background-color: #e0e0eb;\n\n cursor: pointer;\n}\n\n.pMUxgRC_f4NzkoelkDpX:checked {\n border-color: #074343;\n\n background-color: #074343;\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 f="pMUxgRC_f4NzkoelkDpX";const d=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,lI:()=>a,r9:()=>h});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: cyan;\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: #075252;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",u="qTVXpnB_go4Q_8V0QAhx",h="IgtWfVpmdN_e04k18xHb";const l=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>u,Te:()=>p,VX:()=>c,eB:()=>d,ho:()=>h,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: 37px;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 18px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 25px;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",u="VFDUY2z_WgJp1fVc8TCw",h="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",d="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,Pf:()=>u,Te:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cl_Un57i0HIsdQnuxSY0 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.GQe6FmedcfLCp15a2z6w {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="cl_Un57i0HIsdQnuxSY0",u="GQe6FmedcfLCp15a2z6w";const h=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),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.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>hf});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Be,height:()=>ze,rx:()=>je,ry:()=>We,width:()=>Re,x:()=>Pe,y:()=>De});var e={};n.r(e),n.d(e,{from:()=>Ve,to:()=>Ge});var i={};n.r(i),n.d(i,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>Tn,clear:()=>On,move:()=>Ln,plot:()=>jn,size:()=>Wn});var o={};n.r(o),n.d(o,{amove:()=>ur,ax:()=>or,ay:()=>ar,build:()=>hr,center:()=>sr,cx:()=>rr,cy:()=>ir,length:()=>Kn,move:()=>nr,plain:()=>Jn,x:()=>tr,y:()=>er});var a={};n.r(a),n.d(a,{dmove:()=>mr,dx:()=>gr,dy:()=>yr,height:()=>vr,move:()=>wr,size:()=>br,width:()=>xr,x:()=>_r,y:()=>Nr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),f=n(659),d=n.n(f),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=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=d().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=y(),h()(k.Ay,S),k.Ay&&k.Ay.locals&&k.Ay.locals;var M,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 A{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new E,M.set(this,document.createElement("p")),this.domNode.classList.add(k.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),C(this,M,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(C(this,M,"f"))}get textContent(){return C(this,M,"f").textContent}set textContent(t){C(this,M,"f").textContent=t}}M=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(k.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="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(k.Z7)}pointDown(){this.domNode.classList.add(k.Z7)}}var T=n(887),O={};O.styleTagTransform=w(),O.setAttributes=m(),O.insert=d().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=y(),h()(T.Ay,O),T.Ay&&T.Ay.locals&&T.Ay.locals;var L,j=n(704),W=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 P{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(T.lI),W(this,L,"f").classList.add(T.Qq),W(this,L,"f").textContent=null!=t?t:"",this.domNode.append(W(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return W(this,L,"f").textContent}set textContent(t){W(this,L,"f").textContent=t}disable(){this.domNode.classList.add(T.r9)}enable(){this.domNode.classList.remove(T.r9)}}L=new WeakMap;var D=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=d().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=y(),h()(D.A,I),D.A&&D.A.locals&&D.A.locals;var B,R;class z{constructor(t){B.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(D.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,B,"m",R).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}B=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var F=n(678),q={};q.styleTagTransform=w(),q.setAttributes=m(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=y(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,V,G=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},H=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 X{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),U.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,U,e,"f"),G(this,V,document.createElement("a"),"f"),H(this,V,"f").textContent=t,H(this,V,"f").target="_blank",H(this,V,"f").rel="noopener noreferrer",H(this,V,"f").style.marginLeft="8px",this.domNode.append(e,H(this,V,"f"))}get infoLink(){return H(this,V,"f").href}set infoLink(t){H(this,V,"f").href=t,t?H(this,V,"f").classList.add(F.o3):H(this,V,"f").classList.remove(F.o3)}}U=new WeakMap,V=new WeakMap;var Y,$=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,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 X(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return $(this,Y,"f").domNode}get infoLink(){return $(this,Y,"f").infoLink}set infoLink(t){$(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),h()(Z.Ay,J),Z.Ay&&Z.Ay.locals&&Z.Ay.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.kv)}}var tt,et=function(t,e,n,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 nt{constructor(t,e){this.name=t,tt.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,tt,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var rt=n(709),it={};it.styleTagTransform=w(),it.setAttributes=m(),it.insert=d().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=y(),h()(rt.A,it),rt.A&&rt.A.locals&&rt.A.locals;class st{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(rt.V)}}var ot,at=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 ut{constructor(t,e){this.name=t,ot.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,ot,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return at(this,ot,"f").domNode}get infoLink(){return at(this,ot,"f").infoLink}set infoLink(t){at(this,ot,"f").infoLink=t}}ot=new WeakMap;const ht={},lt=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)dt(Object.getOwnPropertyNames(e)),ht[t]=Object.assign(ht[t]||{},e);else for(const e in t)ct(e,t[e])}function ft(t){return ht[t]||{}}function dt(t){lt.push(...t)}function pt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function mt(t){return t%360*Math.PI/180}function gt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yt(t,e,n,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 vt(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:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(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"))},_t="http://www.w3.org/2000/svg",Nt="http://www.w3.org/2000/xmlns/",kt="http://www.w3.org/1999/xlink",St={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Mt{}const Ct={},At="___SYMBOL___ROOT___";function Et(t,e=_t){return St.document.createElementNS(e,t)}function Tt(t,e=!1){if(t instanceof Mt)return t;if("object"==typeof t)return jt(t);if(null==t)return new Ct[At];if("string"==typeof t&&"<"!==t.charAt(0))return jt(St.document.querySelector(t));const n=e?St.document.createElement("div"):Et("svg");return n.innerHTML=t,t=jt(n.firstChild),n.removeChild(n.firstChild),t}function Ot(t,e){return e&&(e instanceof St.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Et(t)}function Lt(t){if(!t)return null;if(t.instance instanceof Mt)return t.instance;if("#document-fragment"===t.nodeName)return new Ct.Fragment(t);let e=gt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Ct[e]||(e="Dom"),new Ct[e](t)}let jt=Lt;function Wt(t,e=t.name,n=!1){return Ct[e]=t,n&&(Ct[At]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Pt=1e3;function Dt(t){return"Svgjs"+gt(t)+Pt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Dt(t.nodeName),t):t}function Bt(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 Rt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=Tt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Tt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Tt(t)).before(this),this},insertAfter:function(t){return(t=Tt(t)).after(this),this}});const zt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ft=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qt=/rgb\((\d+),(\d+),(\d+)\)/,Ut=/(#[a-z_][a-z0-9\-_]*)/i,Vt=/\)\s*,?\s*/,Gt=/\s/g,Ht=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Xt=/^rgb\(/,Yt=/^(\s+)?$/,$t=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Zt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t){let e;const n=t.length,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}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new ne(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 ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new ne(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new ne(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new ne(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new ne(t,e,r,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ht.test(t)||Xt.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 ne(0,0,0,1,"cmyk"):new ne((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),u=(o+a)/2,h=o===a,l=o-a;return new ne(360*(h?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*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"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=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Xt.test(t)){const e=t.replace(Gt,""),[n,r,i]=qt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Ht.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ft.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:u}=this,h="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:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new ne(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),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 ne(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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/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,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=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 ne(255*u,255*h,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 ne(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*ee(i,r,t+1/3),o=255*ee(i,r,t),a=255*ee(i,r,t-1/3);return new ne(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 ne(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(Kt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+16/116,d=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 ne(f,d,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 re{constructor(...t){this.init(...t)}clone(){return new re(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function ie(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,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,u=t.shear||0,h=t.rotate||t.theta||0,l=new re(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new re(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new re(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new re(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,u=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=u,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 se(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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new se(t);return ie(this.a,e.a)&&ie(this.b,e.b)&&ie(this.c,e.c)&&ie(this.d,e.d)&&ie(this.e,e.e)&&ie(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Ae?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=mt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*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:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*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:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*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=mt(t),e=mt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*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(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:r}=new re(e.ox,e.oy).transform(this),i=(new se).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 re(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 oe(){if(!oe.nodes){const t=Tt().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=St.document.body||St.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}Wt(se,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=St.window.pageXOffset,this.y+=St.window.pageYOffset,new ue(this)}init(t){return t="string"==typeof t?t.split(Zt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),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 ue(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 se||(t=new se(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new re(this.x,this.y),new re(this.x2,this.y),new re(this.x,this.y2),new re(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 ue(e,r,n-e,i-r)}}function he(t,e,n){let r;try{if(r=e(t.node),ae(r)&&(i=t.node)!==St.document&&!(St.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===St.document}).call(St.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new ue(this.attr("viewBox")):this.attr("viewBox",new ue(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new re(n/2/s+i.x,r/2/o+i.y);const h=new ue(i).transform(new se({scale:u,origin:e}));return this.viewbox(h)}}}),Wt(ue,"Box");class le extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=le;Bt([le],{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 fe=["toArray","constructor","each"];function de(t,e){return new ce(pt((e||St.document).querySelectorAll(t),(function(t){return Lt(t)})))}le.extend=function(t){t=t.reduce(((t,e)=>(fe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Bt([le],t)};let pe=0;const me={};function ge(t){let e=t.getEventHolder();return e===St.window&&(e=me),e.events||(e.events={}),e.events}function ye(t){return t.getEventTarget()}function ve(t,e,n,r,i){const s=n.bind(r||t),o=Tt(t),a=ge(o),u=ye(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),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,u.addEventListener(e,s,i||!1)}))}function we(t,e,n,r){const i=Tt(t),s=ge(i),o=ye(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;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(h in s[e][a])we(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&we(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])we(o,[e,u].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===St.window&&(e=me),e.events&&(e.events={})}(i)}}))}class be extends Mt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ye(t);return e instanceof St.window.Event||(e=new St.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 we(this,t,e,n),this}on(t,e,n,r){return ve(this,t,e,n,r),this}removeEventListener(){}}function xe(){}Wt(be,"EventTarget");const _e={"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 Ne extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Zt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class ke{constructor(...t){this.init(...t)}convert(t){return new ke(this.value,t)}divide(t){return t=new ke(t),new ke(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(zt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof ke&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new ke(t),new ke(this-t,this.unit||t.unit)}plus(t){return t=new ke(t),new ke(this+t,this.unit||t.unit)}times(t){return t=new ke(t),new ke(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 Se=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Me=[];class Ce extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Tt(t)).removeNamespace&&this.node instanceof St.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 Tt(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Lt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let 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 Ce(Et(t),e))}first(){return Lt(this.node.firstChild)}get(t){return Lt(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=Dt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Lt(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=Lt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Lt(e.node.parentNode));return e}put(t,e){return t=Tt(t),this.add(t,e),t}putIn(t,e){return Tt(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=Tt(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,_t)}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=Lt(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=Et("wrapper",n),i=St.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)}}Bt(Ce,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=$t.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))?_e[t]:$t.test(e)?parseFloat(e):e;"number"==typeof(e=Me.reduce(((e,n)=>n(t,e,this)),e))?e=new ke(e):Se.has(t)&&ne.isColor(e)?e=new ne(e):e.constructor===Array&&(e=new Ne(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 de(t,this.node)},findOne:function(t){return Lt(this.node.querySelector(t))}}),Wt(Ce,"Dom");class Ae extends Ce{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 ke(t).plus(this.x()))}dy(t=0){return this.y(new ke(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=Tt(t));const n=new ce;let r=this;for(;(r=r.parent())&&r.node!==St.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(Ut);return e?Tt(e[1]):null}root(){const t=this.parent(Ct[At]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=yt(this,t,e);return this.width(new ke(n.width)).height(new ke(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Bt(Ae,{bbox:function(){const t=he(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new ue(t)},rbox:function(t){const e=he(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new ue(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 re(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),Wt(Ae,"Element");const Ee={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof ne||ne.isRgb(e)||e instanceof Ae)this.attr(t,e);else for(n=Ee[t].length-1;n>=0;n--)null!=e[Ee[t][n]]&&this.attr(Ee.prefix(t,Ee[t][n]),e[Ee[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new se(this):this.attr("transform",new se(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)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new ke(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new re(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Vt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(this.node))return this.addTo(t,e);const n=this.screenCTM(),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 se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:vt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Te extends Ae{flatten(){return this.each((function(){if(this instanceof Te)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()}}Wt(Te,"Container");class Oe extends Te{constructor(t,e=t){super(Ot("defs",t),e)}flatten(){return this}ungroup(){return this}}Wt(Oe,"Defs");class Le extends Ae{}function je(t){return this.attr("rx",t)}function We(t){return this.attr("ry",t)}function Pe(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function De(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function Be(t){return this.attr("cy",t)}function Re(t){return null==t?2*this.rx():this.rx(new ke(t).divide(2))}function ze(t){return null==t?2*this.ry():this.ry(new ke(t).divide(2))}Wt(Le,"Shape");class Fe extends Le{constructor(t,e=t){super(Ot("ellipse",t),e)}size(t,e){const n=yt(this,t,e);return this.rx(new ke(n.width).divide(2)).ry(new ke(n.height).divide(2))}}Bt(Fe,t),ct("Container",{ellipse:Rt((function(t=0,e=t){return this.put(new Fe).size(t,e).move(0,0)}))}),Wt(Fe,"Ellipse");class qe extends Ce{constructor(t=St.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 Ce(Et("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Wt(qe,"Fragment");const Ue=qe;function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new ke(t),fy:new ke(e)}):this.attr({x1:new ke(t),y1:new ke(e)})}function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new ke(t),cy:new ke(e)}):this.attr({x2:new ke(t),y2:new ke(e)})}class He extends Te{constructor(t,e){super(Ot(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 ue}targets(){return de("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()+")"}}Bt(He,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Rt((function(t,e){return this.put(new He(t)).update(e)}))}}),Wt(He,"Gradient");class Xe extends Te{constructor(t,e=t){super(Ot("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Rt((function(t,e,n){return this.put(new Xe).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Wt(Xe,"Pattern");class Ye extends Le{constructor(t,e=t){super(Ot("image",t),e)}load(t,e){if(!t)return this;const n=new St.window.Image;return ve(n,"load",(function(t){const r=this.parent(Xe);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Xe&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ve(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,kt)}}var $e;$e=function(t,e,n){return"fill"!==t&&"stroke"!==t||Qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Me.push($e),ct({Container:{image:Rt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),Wt(Ye,"Image");class Qe extends Ne{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 ue(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(Zt).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){se.isMatrixLike(t)||(t=new se(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 Ze=Qe;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends Le{constructor(t,e=t){super(Ot("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=yt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Bt(nn,i),ct({Container:{line:Rt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),Wt(nn,"Line");class rn extends Te{constructor(t,e=t){super(Ot("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function sn(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Rt((function(t,e,n){return this.put(new rn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof rn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Wt(rn,"Marker");const on={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,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 an{done(){return!1}}class un extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class hn extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ln(){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}Bt(class extends hn{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:sn("_duration",ln),overshoot:sn("_overshoot",ln)}),Bt(class extends hn{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:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},fn={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]]}},dn="mlhvqtcsaz".split("");for(let t=0,e=dn.length;t<e;++t)fn[dn[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 fn[t](e,n,r)}}(dn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&gn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function gn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&yn(t)}function yn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return fn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function vn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends Ne{bbox(){return oe().path.setAttribute("d",this.toString()),new ue(oe.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,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 re,p:new re};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!mn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(bn.has(r))i.inNumber&&gn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Jt.test(r)){if(i.inNumber)gn(i,!1);else{if(!pn(i))throw new Error("parser Error");yn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!wn(i)){gn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||vn(i)){i.inNumber=!0,i.number=r,gn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){gn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&gn(i,!1),i.inSegment&&pn(i)&&yn(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 _n=t=>{const e=typeof t;return"number"===e?ke:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:Ne:zt.test(t)?ke:kn:An.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Ne:"object"===e?Cn:kn};class Nn{constructor(t){this._stepper=t||new un("-"),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(_n(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Cn&&(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 kn{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 Sn{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,Sn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Sn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Mn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Cn{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]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],r=new ne(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=_n(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(Mn),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 An=[kn,Sn,Cn];class En extends Le{constructor(t,e=t){super(Ot("path",t),e)}array(){return this._array||(this._array=new xn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new xn(t))}size(t,e){const n=yt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Tn(){return this._array||(this._array=new Qe(this.attr("points")))}function On(){return delete this._array,this}function Ln(t,e){return this.attr("points",this.array().move(t,e))}function jn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Qe(t))}function Wn(t,e){const n=yt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}En.prototype.MorphArray=xn,ct({Container:{path:Rt((function(t){return this.put(new En).plot(t||new xn)}))}}),Wt(En,"Path");class Pn extends Le{constructor(t,e=t){super(Ot("polygon",t),e)}}ct({Container:{polygon:Rt((function(t){return this.put(new Pn).plot(t||new Qe)}))}}),Bt(Pn,i),Bt(Pn,s),Wt(Pn,"Polygon");class Dn extends Le{constructor(t,e=t){super(Ot("polyline",t),e)}}ct({Container:{polyline:Rt((function(t){return this.put(new Dn).plot(t||new Qe)}))}}),Bt(Dn,i),Bt(Dn,s),Wt(Dn,"Polyline");class In extends Le{constructor(t,e=t){super(Ot("rect",t),e)}}Bt(In,{rx:je,ry:We}),ct({Container:{rect:Rt((function(t,e){return this.put(new In).size(t,e)}))}}),Wt(In,"Rect");class Bn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Rn={nextDraw:null,frames:new Bn,timeouts:new Bn,immediates:new Bn,timer:()=>St.window.performance||St.window.Date,transforms:[],frame(t){const e=Rn.frames.push({run:t});return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),e},timeout(t,e){e=e||0;const n=Rn.timer().now()+e,r=Rn.timeouts.push({run:t,time:n});return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),r},immediate(t){const e=Rn.immediates.push(t);return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),e},cancelFrame(t){null!=t&&Rn.frames.remove(t)},clearTimeout(t){null!=t&&Rn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Rn.immediates.remove(t)},_draw(t){let e=null;const n=Rn.timeouts.last();for(;(e=Rn.timeouts.shift())&&(t>=e.time?e.run():Rn.timeouts.push(e),e!==n););let r=null;const i=Rn.frames.last();for(;r!==i&&(r=Rn.frames.shift());)r.run(t);let s=null;for(;s=Rn.immediates.shift();)s();Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?St.window.requestAnimationFrame(Rn._draw):null}},zn=Rn,Fn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},qn=function(){const t=St.window;return(t.performance||t.Date).now()};class Un extends be{constructor(t=qn){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(Fn);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 zn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=zn.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)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Un,this._timeline):(this._timeline=t,this)}}});class Vn extends be{constructor(t){super(),this.id=Vn.id++,t="function"==typeof(t=null==t?400:t)?new hn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof hn,this._stepper=this._isDeclarative?t:new un,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof an||(e=t.delay??e,n=t.when??n,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=Vn.sanitise(t,e,n),i=new Vn(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 se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new un(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)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?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||xe,runner:e||xe,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 Un||(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 se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],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}}Vn.id=0;class Gn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Bt([Vn,Gn],{mergeWith(t){return new Gn(t.transforms.lmultiply(this.transforms),t.id)}});const Hn=(t,e)=>t.lmultiplyO(e),Xn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Xn).reduce(Hn,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{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 Gn).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}}ct({Element:{animate(t,e,n){const r=Vn.sanitise(t,e,n),i=this.timeline();return new Vn(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(Xn).reduce(Hn,new se)},_addRunner(t){this._transformationRunners.add(t),zn.cancelImmediate(this._frameId),this._frameId=zn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new Gn(new se(this))))}}}),Bt(Vn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new Nn(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 Cn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Cn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new Nn(this._stepper).to(new ke(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=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new Nn(this._stepper).type(n?Sn:se);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||vt(t,o),h=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new re(s).transform(o._currentTransform(this));let d=new se({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new se(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=vt(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",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 ke(e),this._tryRetarget(t,e))return this;const n=new Nn(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 ke(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new Nn(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 ke(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 Nn(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 ue(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)}}),Bt(Vn,{rx:je,ry:We,from:Ve,to:Ge}),Wt(Vn,"Runner");class Qn extends Te{constructor(t,e=t){super(Ot("svg",t),e),this.namespace()}defs(){return this.isRoot()?Lt(this.node.querySelector("defs"))||this.put(new Oe):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof St.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:_t,version:"1.1"}).attr("xmlns:xlink",kt,Nt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Nt).attr("xmlns:svgjs",null,Nt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:Rt((function(){return this.put(new Qn)}))}}),Wt(Qn,"Svg",!0);class Zn extends Te{constructor(t,e=t){super(Ot("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(St.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function tr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function er(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function nr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function rr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ir(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function sr(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function or(t){return this.attr("x",t)}function ar(t){return this.attr("y",t)}function ur(t,e){return this.ax(t).ay(e)}function hr(t){return this._build=!!t,this}ct({Container:{symbol:Rt((function(){return this.put(new Zn)}))}}),Wt(Zn,"Symbol");class lr extends Le{constructor(t,e=t){super(Ot("text",t),e),this.dom.leading=this.dom.leading??new ke(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new ke(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(bt(this.node))return;const i=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new ke(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 ke(t.leading||1.3),this}writeDataToDom(){return xt(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||bt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===Lt(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()}}Bt(lr,o),ct({Container:{text:Rt((function(t=""){return this.put(new lr).text(t)})),plain:Rt((function(t=""){return this.put(new lr).plain(t)}))}}),Wt(lr,"Text");class cr extends Le{constructor(t,e=t){super(Ot("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 lr))return this;const e=t.index(this),n=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new ke(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)}}Bt(cr,o),ct({Tspan:{tspan:Rt((function(t=""){const e=new cr;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Wt(cr,"Tspan");class fr extends Le{constructor(t,e=t){super(Ot("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 ke(t).divide(2))}}Bt(fr,{x:Pe,y:De,cx:Ie,cy:Be,width:Re,height:ze}),ct({Container:{circle:Rt((function(t=0){return this.put(new fr).size(t).move(0,0)}))}}),Wt(fr,"Circle");class dr extends Te{constructor(t,e=t){super(Ot("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return de("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Rt((function(){return this.defs().put(new dr)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof dr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Wt(dr,"ClipPath");class pr extends Ae{constructor(t,e=t){super(Ot("foreignObject",t),e)}}function mr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof St.window.SVGSVGElement?new ue(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new se(n),s=i.translate(t,e).transform(i.inverse()),o=new re(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function gr(t){return this.dmove(t,0)}function yr(t){return this.dmove(0,t)}function vr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function br(t,e,n=this.bbox()){const r=yt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new re(n).transform(new se(t).inverse());t.scale(i,s,e.x,e.y)})),this}function xr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function _r(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function Nr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:Rt((function(t,e){return this.put(new pr).size(t,e)}))}}),Wt(pr,"ForeignObject");class kr extends Te{constructor(t,e=t){super(Ot("g",t),e)}}Bt(kr,a),ct({Container:{group:Rt((function(){return this.put(new kr)}))}}),Wt(kr,"G");class Sr extends Te{constructor(t,e=t){super(Ot("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,kt)}}Bt(Sr,a),ct({Container:{link:Rt((function(t){return this.put(new Sr).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 Sr,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}}}),Wt(Sr,"A");class Mr extends Te{constructor(t,e=t){super(Ot("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return de("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Rt((function(){return this.defs().put(new Mr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Mr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Wt(Mr,"Mask");class Cr extends Ae{constructor(t,e=t){super(Ot("stop",t),e)}update(t){return("number"==typeof t||t instanceof ke)&&(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 ke(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Cr).update(t,e,n)}}}),Wt(Cr,"Stop");class Ar extends Ae{constructor(t,e=t){super(Ot("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Ar).rule(t,e)},fontface(t,e,n){return this.put(new Ar).font(t,e,n)}}),Wt(Ar,"Style");class Er extends lr{constructor(t,e=t){super(Ot("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:Rt((function(t,e){return t instanceof lr||(t=this.text(t)),t.path(e)}))},Text:{path:Rt((function(t,e=!0){const n=new Er;let r;if(t instanceof En||(t=this.defs().path(t)),n.attr("href","#"+t,kt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Rt((function(t){return t instanceof lr||(t=(new lr).addTo(this.parent()).text(t)),t.path(this)})),targets(){return de("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Er.prototype.MorphArray=xn,Wt(Er,"TextPath");class Tr extends Le{constructor(t,e=t){super(Ot("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,kt)}}ct({Container:{use:Rt((function(t,e){return this.put(new Tr).use(t,e)}))}}),Wt(Tr,"Use"),Bt([Qn,Zn,Ye,Xe,rn],ft("viewbox")),Bt([nn,Dn,Pn,En],ft("marker")),Bt(lr,ft("Text")),Bt(En,ft("Path")),Bt(Oe,ft("Defs")),Bt([lr,cr],ft("Tspan")),Bt([In,Fe,He,Vn],ft("radius")),Bt(be,ft("EventTarget")),Bt(Ce,ft("Dom")),Bt(Ae,ft("Element")),Bt(Le,ft("Shape")),Bt([Te,Ue],ft("Container")),Bt(He,ft("Gradient")),Bt(Vn,ft("Runner")),ce.extend([...new Set(lt)]),function(t=[]){An.push(...[].concat(t))}([ke,ne,ue,se,Ne,Qe,xn,re]),Bt(An,{to(t){return(new Nn).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 Or,Lr,jr,Wr,Pr,Dr,Ir,Br,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ci,Ai,Ei,Ti,Oi,Li,ji,Wi,Pi,Di,Ii,Bi,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,gs,ys,vs,ws,bs=n(169),xs=n(726),_s=n(692),Ns=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},ks=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 Ss{constructor(t){Or.add(this),Lr.set(this,void 0),this.domNode=document.createElement("div"),jr.set(this,new Ms),Wr.set(this,document.createElement("div")),Pr.set(this,void 0),Dr.set(this,void 0),Ir.set(this,document.createElement("div")),Br.set(this,void 0),Rr.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Ns(this,Lr,t,"f"),this.domNode.classList.add(_.lf),ks(this,jr,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(_.ho))),this.domNode.append(ks(this,jr,"f").domNode),ks(this,Wr,"f").classList.add(_.Qs),this.domNode.append(ks(this,Wr,"f")),Ns(this,Pr,new Cs(t),"f"),ks(this,Wr,"f").append(ks(this,Pr,"f").domNode),Ns(this,Dr,new As(t),"f"),ks(this,Wr,"f").append(ks(this,Dr,"f").domNode),ks(this,Ir,"f").classList.add(_.eB),ks(this,Wr,"f").append(ks(this,Ir,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?ks(this,Or,"m",Zr).call(this):ks(this,Or,"m",Jr).call(this))})),Ns(this,Br,new Es(t),"f"),ks(this,Ir,"f").append(ks(this,Br,"f").domNode),Ns(this,Rr,new Ts(t),"f"),ks(this,Ir,"f").append(ks(this,Rr,"f").domNode),Ns(this,zr,new Os(t),"f"),ks(this,Ir,"f").append(ks(this,zr,"f").domNode),Ns(this,Fr,new Ls(t),"f"),ks(this,Ir,"f").append(ks(this,Fr,"f").domNode),Ns(this,qr,new js(t),"f"),ks(this,Ir,"f").append(ks(this,qr,"f").domNode),Ns(this,Ur,new Ws(t),"f"),ks(this,Ir,"f").append(ks(this,Ur,"f").domNode),Ns(this,Vr,new Ps(t),"f"),ks(this,Ir,"f").append(ks(this,Vr,"f").domNode),Ns(this,Gr,new Ds(t),"f"),ks(this,Ir,"f").append(ks(this,Gr,"f").domNode),Ns(this,Hr,new Is(t),"f"),ks(this,Ir,"f").append(ks(this,Hr,"f").domNode),Ns(this,Xr,new zs(t),"f"),ks(this,Ir,"f").append(ks(this,Xr,"f").domNode),Ns(this,Yr,new Fs(t),"f"),ks(this,Ir,"f").append(ks(this,Yr,"f").domNode),Ns(this,$r,new qs(t),"f"),ks(this,Ir,"f").append(ks(this,$r,"f").domNode)}refresh(){ks(this,Or,"a",Qr).forEach((t=>t.refresh())),[...ks(this,Lr,"f").selectedBases].length>0?ks(this,Or,"m",Zr).call(this):ks(this,Or,"m",Jr).call(this)}}Lr=new WeakMap,jr=new WeakMap,Wr=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Ir=new WeakMap,Br=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Or=new WeakSet,Qr=function(){return[ks(this,Pr,"f"),ks(this,Dr,"f"),ks(this,Br,"f"),ks(this,Rr,"f"),ks(this,zr,"f"),ks(this,Fr,"f"),ks(this,qr,"f"),ks(this,Ur,"f"),ks(this,Vr,"f"),ks(this,Gr,"f"),ks(this,Hr,"f"),ks(this,Xr,"f"),ks(this,Yr,"f"),ks(this,$r,"f")]},Zr=function(){ks(this,Ir,"f").style.display="block"},Jr=function(){ks(this,Ir,"f").style.display="none"};class Ms{constructor(){this.domNode=document.createElement("div"),Kr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ti.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),ks(this,Kr,"f").classList.add(_.m9),ks(this,Kr,"f").setAttribute("viewBox","0 0 6 10"),ks(this,Kr,"f").setAttribute("width","6"),ks(this,Kr,"f").setAttribute("height","10"),ks(this,Kr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(ks(this,Kr,"f")),ks(this,ti,"f").classList.add(_.aW),ks(this,ti,"f").textContent="Bases",this.domNode.append(ks(this,ti,"f"))}}Kr=new WeakMap,ti=new WeakMap;class Cs{constructor(t){ei.set(this,void 0),this.domNode=document.createElement("p"),ni.set(this,document.createElement("span")),ri.set(this,document.createElement("span")),Ns(this,ei,t,"f"),this.domNode.classList.add(_.IU),ks(this,ni,"f").style.fontWeight="700",this.domNode.append(ks(this,ni,"f"),ks(this,ri,"f")),ks(this,ei,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...ks(this,ei,"f").selectedBases].length;ks(this,ni,"f").textContent=`${t}`,ks(this,ri,"f").textContent=1==t?" base is selected.":" bases are selected."}}ei=new WeakMap,ni=new WeakMap,ri=new WeakMap;class As{constructor(t){ii.add(this),si.set(this,void 0),this.domNode=document.createElement("div"),oi.set(this,new A),ai.set(this,document.createElement("div")),ui.set(this,{All:new P("All",(()=>ks(this,ii,"m",ci).call(this))),None:new P("None",(()=>ks(this,ii,"m",fi).call(this))),A:new P("A",(()=>ks(this,ii,"m",di).call(this,"A"))),U:new P("U",(()=>ks(this,ii,"m",di).call(this,"U"))),G:new P("G",(()=>ks(this,ii,"m",di).call(this,"G"))),C:new P("C",(()=>ks(this,ii,"m",di).call(this,"C"))),T:new P("T",(()=>ks(this,ii,"m",di).call(this,"T"))),a:new P("a",(()=>ks(this,ii,"m",di).call(this,"a"))),u:new P("u",(()=>ks(this,ii,"m",di).call(this,"u"))),g:new P("g",(()=>ks(this,ii,"m",di).call(this,"g"))),c:new P("c",(()=>ks(this,ii,"m",di).call(this,"c"))),t:new P("t",(()=>ks(this,ii,"m",di).call(this,"t"))),Outlined:new P("Outlined",(()=>ks(this,ii,"m",pi).call(this))),Paired:new P("Paired",(()=>ks(this,ii,"m",mi).call(this))),Unpaired:new P("Unpaired",(()=>ks(this,ii,"m",gi).call(this)))}),hi.set(this,void 0),Ns(this,si,t,"f"),this.domNode.classList.add(_.vw),ks(this,oi,"f").textContent="Select:",ks(this,oi,"f").domNode.addEventListener("click",(()=>ks(this,ii,"m",li).call(this))),this.domNode.append(ks(this,oi,"f").domNode);let e=document.createElement("div");_s(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map((t=>ks(this,ui,"f")[t].domNode))),e.append(n),_s(ks(this,ai,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(ks(this,ai,"f")),ks(this,ai,"f").style.display="none",ks(this,oi,"f").caret.pointRight();let r=document.createElement("div");_s(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(r);let i=document.createElement("div");_s(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(i),ks(this,ai,"f").append(ks(this,ui,"f").Outlined.domNode);let s=document.createElement("div");_s(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(s),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ns(this,hi,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ks(this,hi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...ks(this,si,"f").drawing.bases],e=new Set([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),r=new Set(ks(this,si,"f").selectedBases),i=[...ks(this,si,"f").selectedOutlines];0==t.length?(ks(this,ui,"f").All.disable(),ks(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(ks(this,ui,"f").All.disable(),ks(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(ks(this,ui,"f").All.enable(),ks(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(ks(this,ui,"f").None.disable(),ks(this,ui,"f").None.tooltip.textContent="No bases are selected."):(ks(this,ui,"f").None.enable(),ks(this,ui,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),i=ks(this,ui,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every((t=>r.has(t)))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)})),0==i.length?(ks(this,ui,"f").Outlined.disable(),ks(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map((t=>t.owner)).every((t=>r.has(t)))?(ks(this,ui,"f").Outlined.disable(),ks(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(ks(this,ui,"f").Outlined.enable(),ks(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(ks(this,ui,"f").Paired.disable(),ks(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>r.has(t)))?(ks(this,ui,"f").Paired.disable(),ks(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(ks(this,ui,"f").Paired.enable(),ks(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(ks(this,ui,"f").Unpaired.disable(),ks(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>r.has(t)))?(ks(this,ui,"f").Unpaired.disable(),ks(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(ks(this,ui,"f").Unpaired.enable(),ks(this,ui,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,ii=new WeakSet,li=function(){let t="none"!=ks(this,ai,"f").style.display;ks(this,ai,"f").style.display=t?"none":"flex",t?ks(this,oi,"f").caret.pointRight():ks(this,oi,"f").caret.pointDown()},ci=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases])},fi=function(){ks(this,si,"f").removeFromSelected([...ks(this,si,"f").drawing.bases])},di=function(t){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pi=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").selectedOutlines].map((t=>t.owner)))},mi=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},gi=function(){let t=new Set([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases].filter((e=>!t.has(e))))};class Es{constructor(t){yi.add(this),vi.set(this,void 0),this.domNode=document.createElement("div"),wi.set(this,document.createElement("p")),bi.set(this,new P),xi.set(this,new P),Ns(this,vi,t,"f"),this.domNode.classList.add(_.Te),ks(this,wi,"f").classList.add(_.QB),ks(this,wi,"f").textContent="Send to:",this.domNode.append(ks(this,wi,"f")),ks(this,bi,"f").domNode.addEventListener("click",(()=>ks(this,yi,"m",_i).call(this))),ks(this,bi,"f").textContent="Front",ks(this,bi,"f").domNode.style.marginLeft="26px",this.domNode.append(ks(this,bi,"f").domNode),ks(this,xi,"f").domNode.addEventListener("click",(()=>ks(this,yi,"m",Ni).call(this))),ks(this,xi,"f").textContent="Back",ks(this,xi,"f").domNode.style.marginLeft="28px",this.domNode.append(ks(this,xi,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){ks(this,yi,"m",ki).call(this),ks(this,yi,"m",Si).call(this)}}vi=new WeakMap,wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,yi=new WeakSet,_i=function(){let t=[...ks(this,vi,"f").selectedBases];0!=t.length?(ks(this,vi,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},Ni=function(){let t=[...ks(this,vi,"f").selectedBases];0!=t.length?(ks(this,vi,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},ki=function(){0==[...ks(this,vi,"f").selectedBases].length?(ks(this,bi,"f").disable(),ks(this,bi,"f").tooltip.textContent="No bases are selected."):(ks(this,bi,"f").enable(),ks(this,bi,"f").tooltip.textContent="Bring the selected bases to the front.")},Si=function(){0==[...ks(this,vi,"f").selectedBases].length?(ks(this,xi,"f").disable(),ks(this,xi,"f").tooltip.textContent="No bases are selected."):(ks(this,xi,"f").enable(),ks(this,xi,"f").tooltip.textContent="Send the selected bases to the back.")};class Ts{constructor(t){Mi.add(this),Ci.set(this,void 0),Ai.set(this,new z({onSubmit:()=>ks(this,Mi,"m",Ti).call(this)})),Ei.set(this,void 0),Ns(this,Ci,t,"f"),Ns(this,Ei,new Q("Text Content",ks(this,Ai,"f").domNode),"f"),ks(this,Ei,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",ks(this,Ci,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,Ci,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return ks(this,Ei,"f").domNode}refresh(){let t=[...ks(this,Ci,"f").selectedBases];try{ks(this,Ai,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){ks(this,Ai,"f").domNode.value=""}}}Ci=new WeakMap,Ai=new WeakMap,Ei=new WeakMap,Mi=new WeakSet,Ti=function(){var t;let e=null!==(t=ks(this,Ai,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...ks(this,Ci,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(ks(this,Ci,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Os{constructor(t){Oi.set(this,void 0),Li.set(this,void 0),ji.set(this,void 0),Ns(this,Oi,t,"f"),Ns(this,Li,new Gs(t,"fill"),"f"),Ns(this,ji,new Q("Fill",ks(this,Li,"f").domNode),"f"),ks(this,ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,ji,"f").domNode}refresh(){ks(this,Li,"f").refresh()}}Oi=new WeakMap,Li=new WeakMap,ji=new WeakMap;class Ls{constructor(t){Wi.add(this),Pi.set(this,void 0),Di.set(this,new st),Ii.set(this,void 0),Bi.set(this,void 0),Ri.set(this,void 0),Ns(this,Pi,t,"f"),ks(this,Di,"f").domNode.addEventListener("input",(()=>ks(this,Wi,"m",zi).call(this))),Ns(this,Ii,new ut("Fill Color",ks(this,Di,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,Pi,"f").selectedBases.addEventListener("change",(()=>Ns(this,Bi,void 0,"f"))),ks(this,Di,"f").domNode.addEventListener("focus",(()=>Ns(this,Ri,ks(this,Di,"f").domNode.value,"f"))),ks(this,Pi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,Pi,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return ks(this,Ii,"f").domNode}refresh(){let t=[...ks(this,Pi,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));ks(this,Di,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ks(this,Di,"f").domNode.value="#000000"}else ks(this,Di,"f").domNode.value="#000000"}}Pi=new WeakMap,Di=new WeakMap,Ii=new WeakMap,Bi=new WeakMap,Ri=new WeakMap,Wi=new WeakSet,zi=function(){if(ks(this,Di,"f").domNode.value===ks(this,Ri,"f"))return;let t=[...ks(this,Pi,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===ks(this,Di,"f").domNode.value.toLowerCase()}))||((ks(this,Pi,"f").undoStack.isEmpty()||ks(this,Pi,"f").undoStack.peek()!==ks(this,Bi,"f"))&&(ks(this,Pi,"f").pushUndoStack(),Ns(this,Bi,ks(this,Pi,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",ks(this,Di,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class js{constructor(t){Fi.set(this,void 0),qi.set(this,void 0),Ui.set(this,void 0),Ns(this,Fi,t,"f"),Ns(this,qi,new Gs(t,"fill-opacity"),"f"),Ns(this,Ui,new Q("Fill Opacity",ks(this,qi,"f").domNode),"f"),ks(this,Ui,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Ui,"f").domNode}refresh(){ks(this,qi,"f").refresh()}}Fi=new WeakMap,qi=new WeakMap,Ui=new WeakMap;class Ws{constructor(t){Vi.set(this,void 0),Gi.set(this,void 0),Hi.set(this,void 0),Ns(this,Vi,t,"f"),Ns(this,Gi,new Gs(t,"font-family"),"f"),Ns(this,Hi,new Q("Font Family",ks(this,Gi,"f").domNode),"f"),ks(this,Hi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Hi,"f").domNode}refresh(){ks(this,Gi,"f").refresh()}}Vi=new WeakMap,Gi=new WeakMap,Hi=new WeakMap;class Ps{constructor(t){Xi.set(this,void 0),Yi.set(this,void 0),$i.set(this,void 0),Ns(this,Xi,t,"f"),Ns(this,Yi,new Gs(t,"font-size"),"f"),Ns(this,$i,new Q("Font Size",ks(this,Yi,"f").domNode),"f"),ks(this,$i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,$i,"f").domNode}refresh(){ks(this,Yi,"f").refresh()}}Xi=new WeakMap,Yi=new WeakMap,$i=new WeakMap;class Ds{constructor(t){Qi.set(this,void 0),Zi.set(this,void 0),Ji.set(this,void 0),Ns(this,Qi,t,"f"),Ns(this,Zi,new Gs(t,"font-weight"),"f"),Ns(this,Ji,new Q("Font Weight",ks(this,Zi,"f").domNode),"f"),ks(this,Ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Ji,"f").domNode}refresh(){ks(this,Zi,"f").refresh()}}Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap;class Is{constructor(t){Ki.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),Ns(this,ts,t,"f"),ks(this,es,"f").domNode.addEventListener("change",(()=>ks(this,Ki,"m",rs).call(this))),Ns(this,ns,new nt("Bold",ks(this,es,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return ks(this,ns,"f").domNode}refresh(){let t=[...ks(this,ts,"f").selectedBases];0==t.length?ks(this,es,"f").domNode.checked=!1:ks(this,es,"f").domNode.checked=t.every(Bs)}}function Bs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Rs(t){return!Bs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Ki=new WeakSet,rs=function(){let t=[...ks(this,ts,"f").selectedBases];0!=t.length?ks(this,es,"f").domNode.checked&&t.every(Bs)?this.refresh():ks(this,es,"f").domNode.checked||!t.every(Rs)?(ks(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{ks(this,es,"f").domNode.checked&&Rs(t)?t.setAttribute("font-weight","700"):!ks(this,es,"f").domNode.checked&&Bs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),ks(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class zs{constructor(t){is.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),Ns(this,is,t,"f"),Ns(this,ss,new Gs(t,"font-style"),"f"),Ns(this,os,new Q("Font Style",ks(this,ss,"f").domNode),"f"),ks(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,os,"f").domNode}refresh(){ks(this,ss,"f").refresh()}}is=new WeakMap,ss=new WeakMap,os=new WeakMap;class Fs{constructor(t){as.set(this,void 0),us.set(this,void 0),hs.set(this,void 0),Ns(this,as,t,"f"),Ns(this,us,new Gs(t,"text-decoration"),"f"),Ns(this,hs,new Q("Text Decoration",ks(this,us,"f").domNode),"f"),ks(this,hs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,hs,"f").domNode}refresh(){ks(this,us,"f").refresh()}}as=new WeakMap,us=new WeakMap,hs=new WeakMap;class qs{constructor(t){ls.add(this),cs.set(this,void 0),fs.set(this,new K),ds.set(this,void 0),Ns(this,cs,t,"f"),ks(this,fs,"f").domNode.addEventListener("change",(()=>ks(this,ls,"m",ps).call(this))),Ns(this,ds,new nt("Underlined",ks(this,fs,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return ks(this,ds,"f").domNode}refresh(){let t=[...ks(this,cs,"f").selectedBases];0==t.length?ks(this,fs,"f").domNode.checked=!1:ks(this,fs,"f").domNode.checked=t.every(Us)}}function Us(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Vs(t){return!Us(t)}cs=new WeakMap,fs=new WeakMap,ds=new WeakMap,ls=new WeakSet,ps=function(){let t=[...ks(this,cs,"f").selectedBases];0!=t.length?ks(this,fs,"f").domNode.checked&&t.every(Us)?this.refresh():ks(this,fs,"f").domNode.checked||!t.every(Vs)?(ks(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{ks(this,fs,"f").domNode.checked&&Vs(t)?t.setAttribute("text-decoration","underline"):!ks(this,fs,"f").domNode.checked&&Us(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),ks(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Gs{constructor(t,e){ms.add(this),gs.set(this,void 0),ys.set(this,void 0),vs.set(this,new z({onSubmit:()=>ks(this,ms,"m",ws).call(this)})),Ns(this,gs,t,"f"),Ns(this,ys,e,"f"),ks(this,gs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,gs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ks(this,vs,"f").domNode}refresh(){let t=[...ks(this,gs,"f").selectedBases];try{ks(this,vs,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(ks(this,ys,"f")))&&void 0!==e?e:""})))}catch(t){ks(this,vs,"f").domNode.value=""}}}gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ms=new WeakSet,ws=function(){let t=ks(this,vs,"f").domNode.value,e=[...ks(this,gs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(ks(this,ys,"f"))===t))||(ks(this,gs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(ks(this,ys,"f"),t)))))),this.refresh()};var Hs=n(924),Xs={};Xs.styleTagTransform=w(),Xs.setAttributes=m(),Xs.insert=d().bind(null,"head"),Xs.domAPI=c(),Xs.insertStyleElement=y(),h()(Hs.Ay,Xs),Hs.Ay&&Hs.Ay.locals&&Hs.Ay.locals;var Ys=n(723),$s={};$s.styleTagTransform=w(),$s.setAttributes=m(),$s.insert=d().bind(null,"head"),$s.domAPI=c(),$s.insertStyleElement=y(),h()(Ys.Ay,$s),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var Qs,Zs=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 Js{constructor(t,e){this.domNode=document.createElement("div"),Qs.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,Qs,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,Qs,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,Qs,"f").textContent}set textContent(t){Zs(this,Qs,"f").textContent=t}get onClick(){return Zs(this,Qs,"f").onclick}set onClick(t){Zs(this,Qs,"f").onclick=t}click(){Zs(this,Qs,"f").click()}disable(){Zs(this,Qs,"f").classList.add(Ys.r9)}enable(){Zs(this,Qs,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,Qs,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}Qs=new WeakMap;var Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Co,Ao,Eo,To,Oo,Lo,jo,Wo,Po,Do,Io,Bo,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Ca,Aa,Ea,Ta,Oa,La,ja,Wa,Pa,Da,Ia,Ba,Ra,za,Fa,qa,Ua=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},Va=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),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new A),no.set(this,document.createElement("div")),ro.set(this,void 0),io.set(this,document.createElement("div")),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),uo.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),Ua(this,to,t,"f"),this.domNode.classList.add(Hs.qM),Va(this,eo,"f").textContent="Outlines",Va(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Va(this,eo,"f").domNode),Va(this,no,"f").classList.add(Hs.Qs),this.domNode.append(Va(this,no,"f")),Ua(this,ro,new Ha(t),"f"),Va(this,no,"f").append(Va(this,ro,"f").domNode),Ua(this,so,new Xa(t),"f"),Va(this,no,"f").append(Va(this,so,"f").domNode),Ua(this,oo,new Ya(t),"f"),Va(this,no,"f").append(Va(this,oo,"f").domNode),Ua(this,ao,new $a(t),"f"),Va(this,no,"f").append(Va(this,ao,"f").domNode),Va(this,io,"f").classList.add(Hs.eB),Va(this,no,"f").append(Va(this,io,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Va(this,Ks,"m",bo).call(this):Va(this,Ks,"m",xo).call(this))})),Ua(this,uo,new Qa(t),"f"),Va(this,io,"f").append(Va(this,uo,"f").domNode),Ua(this,ho,new Za(t),"f"),Va(this,io,"f").append(Va(this,ho,"f").domNode),Ua(this,lo,new Ja(t),"f"),Va(this,io,"f").append(Va(this,lo,"f").domNode),Ua(this,co,new Ka(t),"f"),Va(this,io,"f").append(Va(this,co,"f").domNode),Ua(this,fo,new tu(t),"f"),Va(this,io,"f").append(Va(this,fo,"f").domNode),Ua(this,po,new eu(t),"f"),Va(this,io,"f").append(Va(this,po,"f").domNode),Ua(this,mo,new nu(t),"f"),Va(this,io,"f").append(Va(this,mo,"f").domNode),Ua(this,go,new ru(t),"f"),Va(this,io,"f").append(Va(this,go,"f").domNode),Ua(this,yo,new iu(t),"f"),Va(this,io,"f").append(Va(this,yo,"f").domNode),Ua(this,vo,new su(t),"f"),Va(this,io,"f").append(Va(this,vo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Hs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Hs.ho),Va(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Hs.ho),Va(this,eo,"f").caret.pointDown())}refresh(){Va(this,Ks,"a",wo).forEach((t=>t.refresh())),[...Va(this,to,"f").selectedOutlines].length>0?Va(this,Ks,"m",bo).call(this):Va(this,Ks,"m",xo).call(this)}}to=new WeakMap,eo=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,uo=new WeakMap,ho=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,Ks=new WeakSet,wo=function(){return[Va(this,ro,"f"),Va(this,so,"f"),Va(this,oo,"f"),Va(this,ao,"f"),Va(this,uo,"f"),Va(this,ho,"f"),Va(this,lo,"f"),Va(this,co,"f"),Va(this,fo,"f"),Va(this,po,"f"),Va(this,mo,"f"),Va(this,go,"f"),Va(this,yo,"f"),Va(this,vo,"f")]},bo=function(){Va(this,io,"f").style.display="flex"},xo=function(){Va(this,io,"f").style.display="none"};class Ha{constructor(t){_o.set(this,void 0),this.domNode=document.createElement("p"),No.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Ua(this,_o,t,"f"),this.domNode.classList.add(Hs.vM),Va(this,No,"f").style.fontWeight="700",this.domNode.append(Va(this,No,"f"),Va(this,ko,"f")),Va(this,_o,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Va(this,_o,"f").selectedOutlines].length;Va(this,No,"f").textContent=`${t}`,Va(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}_o=new WeakMap,No=new WeakMap,ko=new WeakMap;class Xa{constructor(t){So.add(this),Mo.set(this,void 0),this.domNode=document.createElement("div"),Co.set(this,document.createElement("p")),Ao.set(this,new P),Eo.set(this,new P),To.set(this,new P),Oo.set(this,void 0),Ua(this,Mo,t,"f"),this.domNode.classList.add(Hs.VX),Va(this,Co,"f").classList.add(Hs.iE),Va(this,Co,"f").textContent="Select:",this.domNode.append(Va(this,Co,"f")),Va(this,Ao,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",Lo).call(this))),Va(this,Ao,"f").textContent="All",Va(this,Ao,"f").domNode.style.marginLeft="20px",this.domNode.append(Va(this,Ao,"f").domNode),Va(this,Eo,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",jo).call(this))),Va(this,Eo,"f").textContent="Outlining",Va(this,Eo,"f").domNode.style.marginLeft="17px",this.domNode.append(Va(this,Eo,"f").domNode),Va(this,To,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",Wo).call(this))),Va(this,To,"f").textContent="None",Va(this,To,"f").domNode.style.marginLeft="17px",this.domNode.append(Va(this,To,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ua(this,Oo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Va(this,Oo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Va(this,So,"m",Po).call(this),Va(this,So,"m",Do).call(this),Va(this,So,"m",Io).call(this)}}Mo=new WeakMap,Co=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,To=new WeakMap,Oo=new WeakMap,So=new WeakSet,Lo=function(){let t=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").addToSelected(t)},jo=function(){let t=new Set(Va(this,Mo,"f").selectedBases),e=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").addToSelected(e.filter((e=>t.has(e.owner))))},Wo=function(){let t=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").removeFromSelected(t)},Po=function(){let t=[...Va(this,Mo,"f").drawing.outlines],e=[...Va(this,Mo,"f").selectedOutlines];0==t.length?(Va(this,Ao,"f").disable(),Va(this,Ao,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Va(this,Ao,"f").disable(),Va(this,Ao,"f").tooltip.textContent="All outlines are already selected."):(Va(this,Ao,"f").enable(),Va(this,Ao,"f").tooltip.textContent="Select all outlines.")},Do=function(){let t=[...Va(this,Mo,"f").drawing.outlines],e=new Set(Va(this,Mo,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(Va(this,Mo,"f").selectedOutlines);0==e.size?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="No bases are selected."):0==n.length?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>r.has(t)))?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Va(this,Eo,"f").enable(),Va(this,Eo,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Va(this,Mo,"f").selectedOutlines].length?(Va(this,To,"f").disable(),Va(this,To,"f").tooltip.textContent="No outlines are selected."):(Va(this,To,"f").enable(),Va(this,To,"f").tooltip.textContent="Deselect all outlines.")};class Ya{constructor(t){Bo.add(this),Ro.set(this,void 0),this.domNode=document.createElement("div"),zo.set(this,new Js("Add",(()=>Va(this,Bo,"m",Go).call(this)))),Fo.set(this,new K),qo.set(this,new nt("Only add missing outlines",Va(this,Fo,"f").domNode)),Uo.set(this,void 0),Ua(this,Ro,t,"f"),this.domNode.style.marginTop="27px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Va(this,zo,"f").domNode),Va(this,Fo,"f").domNode.checked=!0,Va(this,qo,"f").domNode.style.margin="10px 0px 0px 10px",Va(this,qo,"f").domNode.style.alignSelf="start",this.domNode.append(Va(this,qo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ua(this,Uo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Va(this,Uo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Va(this,Fo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){let t=[...Va(this,Ro,"f").selectedBases],e=[...Va(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Va(this,zo,"f").disable(),Va(this,zo,"f").tooltip.textContent="No bases are selected."):Va(this,Bo,"a",Vo)&&0==r.length?(Va(this,zo,"f").disable(),Va(this,zo,"f").tooltip.textContent="The selected bases are already outlined."):(Va(this,zo,"f").enable(),Va(this,zo,"f").tooltip.textContent="Outline the selected bases.")}}Ro=new WeakMap,zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Bo=new WeakSet,Vo=function(){return Va(this,Fo,"f").domNode.checked},Go=function(){let t=[...Va(this,Ro,"f").selectedBases];if(0==t.length)return;let e=[...Va(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Va(this,Bo,"a",Vo)?r:t;if(0==i.length)return;Va(this,Ro,"f").pushUndoStack();let s=i.map((t=>Va(this,Ro,"f").drawing.outline(t)));Va(this,Ro,"f").addToSelected(s),this.refresh()};class $a{constructor(t){Ho.set(this,void 0),Xo.set(this,new Js("Remove",(()=>this.press()))),Ua(this,Ho,t,"f"),this.domNode.style.marginTop="18px",Va(this,Ho,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Va(this,Xo,"f").domNode}press(){let t=[...Va(this,Ho,"f").selectedOutlines];0!=t.length?(Va(this,Ho,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Va(this,Ho,"f").selectedOutlines].length?(Va(this,Xo,"f").disable(),Va(this,Xo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Xo,"f").enable(),Va(this,Xo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Ho=new WeakMap,Xo=new WeakMap;class Qa{constructor(t){Yo.add(this),$o.set(this,void 0),this.domNode=document.createElement("div"),Qo.set(this,document.createElement("p")),Zo.set(this,new P),Jo.set(this,new P),Ua(this,$o,t,"f"),this.domNode.classList.add(Hs.Te),Va(this,Qo,"f").classList.add(Hs.QB),Va(this,Qo,"f").textContent="Send to:",this.domNode.append(Va(this,Qo,"f")),Va(this,Zo,"f").domNode.addEventListener("click",(()=>Va(this,Yo,"m",Ko).call(this))),Va(this,Zo,"f").textContent="Front",Va(this,Zo,"f").domNode.style.marginLeft="24px",this.domNode.append(Va(this,Zo,"f").domNode),Va(this,Jo,"f").domNode.addEventListener("click",(()=>Va(this,Yo,"m",ta).call(this))),Va(this,Jo,"f").textContent="Back",Va(this,Jo,"f").domNode.style.marginLeft="28px",this.domNode.append(Va(this,Jo,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Va(this,Yo,"m",ea).call(this),Va(this,Yo,"m",na).call(this)}}$o=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Yo=new WeakSet,Ko=function(){let t=[...Va(this,$o,"f").selectedOutlines];0!=t.length?(Va(this,$o,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},ta=function(){let t=[...Va(this,$o,"f").selectedOutlines];0!=t.length?(Va(this,$o,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ea=function(){0==[...Va(this,$o,"f").selectedOutlines].length?(Va(this,Zo,"f").disable(),Va(this,Zo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Zo,"f").enable(),Va(this,Zo,"f").tooltip.textContent="Bring the selected outlines to the front.")},na=function(){0==[...Va(this,$o,"f").selectedOutlines].length?(Va(this,Jo,"f").disable(),Va(this,Jo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Jo,"f").enable(),Va(this,Jo,"f").tooltip.textContent="Send selected outlines to the back.")};class Za{constructor(t){ra.set(this,void 0),ia.set(this,void 0),sa.set(this,void 0),Ua(this,ra,t,"f"),Ua(this,ia,new ou(t,"r"),"f"),Ua(this,sa,new Q("Radius",Va(this,ia,"f").domNode),"f"),Va(this,sa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",_s(this.domNode).css({marginTop:"22px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,sa,"f").domNode}refresh(){Va(this,ia,"f").refresh()}}ra=new WeakMap,ia=new WeakMap,sa=new WeakMap;class Ja{constructor(t){oa.set(this,void 0),aa.set(this,void 0),ua.set(this,void 0),Ua(this,oa,t,"f"),Ua(this,aa,new ou(t,"fill"),"f"),Ua(this,ua,new Q("Fill",Va(this,aa,"f").domNode),"f"),Va(this,ua,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,ua,"f").domNode}refresh(){Va(this,aa,"f").refresh()}}oa=new WeakMap,aa=new WeakMap,ua=new WeakMap;class Ka{constructor(t){ha.add(this),la.set(this,void 0),ca.set(this,new st),fa.set(this,void 0),da.set(this,void 0),pa.set(this,void 0),Ua(this,la,t,"f"),Va(this,ca,"f").domNode.addEventListener("input",(()=>Va(this,ha,"m",ma).call(this))),Ua(this,fa,new ut("Fill Color",Va(this,ca,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Va(this,la,"f").selectedOutlines.addEventListener("change",(()=>Ua(this,da,void 0,"f"))),Va(this,ca,"f").domNode.addEventListener("focus",(()=>Ua(this,pa,Va(this,ca,"f").domNode.value,"f"))),Va(this,la,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,la,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Va(this,fa,"f").domNode}refresh(){let t=[...Va(this,la,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Va(this,ca,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Va(this,ca,"f").domNode.value="#000000"}else Va(this,ca,"f").domNode.value="#000000"}}la=new WeakMap,ca=new WeakMap,fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ha=new WeakSet,ma=function(){if(Va(this,ca,"f").domNode.value===Va(this,pa,"f"))return;let t=[...Va(this,la,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Va(this,ca,"f").domNode.value.toLowerCase()}))||((Va(this,la,"f").undoStack.isEmpty()||Va(this,la,"f").undoStack.peek()!==Va(this,da,"f"))&&(Va(this,la,"f").pushUndoStack(),Ua(this,da,Va(this,la,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Va(this,ca,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class tu{constructor(t){ga.set(this,void 0),ya.set(this,void 0),va.set(this,void 0),Ua(this,ga,t,"f"),Ua(this,ya,new ou(t,"fill-opacity"),"f"),Ua(this,va,new Q("Fill Opacity",Va(this,ya,"f").domNode),"f"),Va(this,va,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,va,"f").domNode}refresh(){Va(this,ya,"f").refresh()}}ga=new WeakMap,ya=new WeakMap,va=new WeakMap;class eu{constructor(t){wa.set(this,void 0),ba.set(this,void 0),xa.set(this,void 0),Ua(this,wa,t,"f"),Ua(this,ba,new ou(t,"stroke"),"f"),Ua(this,xa,new Q("Stroke",Va(this,ba,"f").domNode),"f"),Va(this,xa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,xa,"f").domNode}refresh(){Va(this,ba,"f").refresh()}}wa=new WeakMap,ba=new WeakMap,xa=new WeakMap;class nu{constructor(t){_a.add(this),Na.set(this,void 0),ka.set(this,new st),Sa.set(this,void 0),Ma.set(this,void 0),Ca.set(this,void 0),Ua(this,Na,t,"f"),Va(this,ka,"f").domNode.addEventListener("input",(()=>Va(this,_a,"m",Aa).call(this))),Ua(this,Sa,new ut("Stroke Color",Va(this,ka,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Va(this,Na,"f").selectedOutlines.addEventListener("change",(()=>Ua(this,Ma,void 0,"f"))),Va(this,ka,"f").domNode.addEventListener("focus",(()=>Ua(this,Ca,Va(this,ka,"f").domNode.value,"f"))),Va(this,Na,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,Na,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Va(this,Sa,"f").domNode}refresh(){let t=[...Va(this,Na,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Va(this,ka,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Va(this,ka,"f").domNode.value="#000000"}else Va(this,ka,"f").domNode.value="#000000"}}Na=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,_a=new WeakSet,Aa=function(){if(Va(this,ka,"f").domNode.value===Va(this,Ca,"f"))return;let t=[...Va(this,Na,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Va(this,ka,"f").domNode.value.toLowerCase()}))||((Va(this,Na,"f").undoStack.isEmpty()||Va(this,Na,"f").undoStack.peek()!==Va(this,Ma,"f"))&&(Va(this,Na,"f").pushUndoStack(),Ua(this,Ma,Va(this,Na,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Va(this,ka,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class ru{constructor(t){Ea.set(this,void 0),Ta.set(this,void 0),Oa.set(this,void 0),Ua(this,Ea,t,"f"),Ua(this,Ta,new ou(t,"stroke-opacity"),"f"),Ua(this,Oa,new Q("Stroke Opacity",Va(this,Ta,"f").domNode),"f"),Va(this,Oa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Oa,"f").domNode}refresh(){Va(this,Ta,"f").refresh()}}Ea=new WeakMap,Ta=new WeakMap,Oa=new WeakMap;class iu{constructor(t){La.set(this,void 0),ja.set(this,void 0),Wa.set(this,void 0),Ua(this,La,t,"f"),Ua(this,ja,new ou(t,"stroke-width"),"f"),Ua(this,Wa,new Q("Stroke Width",Va(this,ja,"f").domNode),"f"),Va(this,Wa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Wa,"f").domNode}refresh(){Va(this,ja,"f").refresh()}}La=new WeakMap,ja=new WeakMap,Wa=new WeakMap;class su{constructor(t){Pa.set(this,void 0),Da.set(this,void 0),Ia.set(this,void 0),Ua(this,Pa,t,"f"),Ua(this,Da,new ou(t,"stroke-dasharray"),"f"),Ua(this,Ia,new Q("Stroke Dash-Array",Va(this,Da,"f").domNode),"f"),Va(this,Ia,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Ia,"f").domNode}refresh(){Va(this,Da,"f").refresh()}}Pa=new WeakMap,Da=new WeakMap,Ia=new WeakMap;class ou{constructor(t,e){Ba.add(this),Ra.set(this,void 0),za.set(this,void 0),Fa.set(this,new z({onSubmit:()=>Va(this,Ba,"m",qa).call(this)})),Ua(this,Ra,t,"f"),Ua(this,za,e,"f"),Va(this,Ra,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,Ra,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Va(this,Fa,"f").domNode}refresh(){let t=[...Va(this,Ra,"f").selectedOutlines];try{Va(this,Fa,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Va(this,za,"f")))&&void 0!==e?e:""})))}catch(t){Va(this,Fa,"f").domNode.value=""}}}Ra=new WeakMap,za=new WeakMap,Fa=new WeakMap,Ba=new WeakSet,qa=function(){let t=Va(this,Fa,"f").domNode.value,e=[...Va(this,Ra,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Va(this,za,"f"))===t))||(Va(this,Ra,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Va(this,za,"f"),t)))),this.refresh()};var au=n(401),uu={};uu.styleTagTransform=w(),uu.setAttributes=m(),uu.insert=d().bind(null,"head"),uu.domAPI=c(),uu.insertStyleElement=y(),h()(au.Ay,uu),au.Ay&&au.Ay.locals&&au.Ay.locals;var hu=n(933),lu={};lu.styleTagTransform=w(),lu.setAttributes=m(),lu.insert=d().bind(null,"head"),lu.domAPI=c(),lu.insertStyleElement=y(),h()(hu.Ay,lu),hu.Ay&&hu.Ay.locals&&hu.Ay.locals;var cu,fu,du,pu,mu,gu,yu,vu,wu=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},bu=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 xu{constructor(t,e){cu.add(this),fu.set(this,void 0),du.set(this,void 0),this.domNode=document.createElement("div"),pu.set(this,document.createElement("p")),this.buttons={Front:new P("Front",(()=>bu(this,cu,"m",mu).call(this))),Back:new P("Back",(()=>bu(this,cu,"m",gu).call(this)))},yu.set(this,{refresh:[]}),wu(this,fu,t,"f"),wu(this,du,e,"f"),this.domNode.classList.add(hu.Te),bu(this,pu,"f").classList.add(hu.Pf),bu(this,pu,"f").textContent="Send to:",this.domNode.append(bu(this,pu,"f")),this.buttons.Front.domNode.style.marginLeft="24px",this.domNode.append(this.buttons.Front.domNode),this.buttons.Back.domNode.style.marginLeft="28px",this.domNode.append(this.buttons.Back.domNode),t.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...bu(this,fu,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),bu(this,cu,"m",vu).call(this,"refresh")}addEventListener(t,e){bu(this,yu,"f")[t].push(e)}removeEventListener(t,e){bu(this,yu,"f")[t]=bu(this,yu,"f")[t].filter((t=>t!==e))}}fu=new WeakMap,du=new WeakMap,pu=new WeakMap,yu=new WeakMap,cu=new WeakSet,mu=function(){let t=[...bu(this,fu,"f")];0!=t.length?(bu(this,du,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},gu=function(){let t=[...bu(this,fu,"f")];0!=t.length?(bu(this,du,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},vu=function(t){bu(this,yu,"f")[t].forEach((t=>t()))};var _u,Nu,ku,Su,Mu,Cu,Au=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},Eu=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 Tu{constructor(t,e,n){_u.add(this),Nu.set(this,void 0),ku.set(this,void 0),Su.set(this,void 0),Mu.set(this,new z({onSubmit:()=>Eu(this,_u,"m",Cu).call(this)})),Au(this,Nu,t,"f"),Au(this,ku,e,"f"),Au(this,Su,n,"f"),e.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),new MutationObserver((()=>{!document.body.contains(this.domNode)||this.refresh()})).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Eu(this,Mu,"f").domNode}refresh(){try{Eu(this,Mu,"f").domNode.value=(0,bs.consensusValue)([...Eu(this,ku,"f")].map((t=>{var e;return null!==(e=t.domNode.getAttribute(Eu(this,Nu,"f")))&&void 0!==e?e:""})))}catch(t){Eu(this,Mu,"f").domNode.value=""}}}Nu=new WeakMap,ku=new WeakMap,Su=new WeakMap,Mu=new WeakMap,_u=new WeakSet,Cu=function(){let t=Eu(this,Mu,"f").domNode.value,e=[...Eu(this,ku,"f")];0==e.length||e.every((e=>e.domNode.getAttribute(Eu(this,Nu,"f"))===t))?this.refresh():(Eu(this,Su,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Eu(this,Nu,"f"),t))))};var Ou,Lu,ju,Wu,Pu,Du,Iu,Bu,Ru=n(543),zu=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},Fu=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 qu{constructor(t,e,n){Ou.add(this),Lu.set(this,void 0),ju.set(this,void 0),Wu.set(this,void 0),Pu.set(this,new st),Du.set(this,void 0),Iu.set(this,void 0),zu(this,Lu,t,"f"),zu(this,ju,e,"f"),zu(this,Wu,n,"f"),Fu(this,Pu,"f").domNode.addEventListener("input",(()=>Fu(this,Ou,"m",Bu).call(this))),e.addEventListener("change",(()=>zu(this,Du,void 0,"f"))),Fu(this,Pu,"f").domNode.addEventListener("focus",(()=>zu(this,Iu,Fu(this,Pu,"f").domNode.value,"f"))),e.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),new MutationObserver((()=>{!document.body.contains(this.domNode)||this.refresh()})).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Fu(this,Pu,"f").domNode}refresh(){let t=[...Fu(this,ju,"f")];if(0!=t.length)try{let e=Ru.camelCase(Fu(this,Lu,"f")),n=t.map((t=>window.getComputedStyle(t.domNode)[e])).map((t=>new ne(t)));Fu(this,Pu,"f").domNode.value=(0,bs.consensusValue)(n.map((t=>t.toHex().toLowerCase())))}catch(t){Fu(this,Pu,"f").domNode.value="#000000"}else Fu(this,Pu,"f").domNode.value="#000000"}}Lu=new WeakMap,ju=new WeakMap,Wu=new WeakMap,Pu=new WeakMap,Du=new WeakMap,Iu=new WeakMap,Ou=new WeakSet,Bu=function(){if(Fu(this,Pu,"f").domNode.value===Fu(this,Iu,"f"))return;let t=[...Fu(this,ju,"f")];0!=t.length?t.every((t=>{var e;return(null===(e=t.domNode.getAttribute(Fu(this,Lu,"f")))||void 0===e?void 0:e.toLowerCase())===Fu(this,Pu,"f").domNode.value.toLowerCase()}))?this.refresh():((Fu(this,Wu,"f").undoStack.isEmpty()||Fu(this,Wu,"f").undoStack.peek()!==Fu(this,Du,"f"))&&(Fu(this,Wu,"f").pushUndoStack(),zu(this,Du,Fu(this,Wu,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute(Fu(this,Lu,"f"),Fu(this,Pu,"f").domNode.value.toLowerCase())))):this.refresh()};var Uu,Vu,Gu,Hu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,gh,yh,vh,wh,bh,xh,_h,Nh,kh,Sh,Mh,Ch,Ah,Eh,Th,Oh,Lh,jh,Wh,Ph,Dh,Ih,Bh,Rh,zh,Fh,qh,Uh,Vh,Gh=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},Hh=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 Xh{constructor(t){Uu.add(this),Vu.set(this,void 0),this.domNode=document.createElement("div"),Gu.set(this,new A("Primary Bonds",(()=>this.toggle()))),Hu.set(this,document.createElement("div")),Xu.set(this,void 0),Yu.set(this,void 0),$u.set(this,document.createElement("div")),Qu.set(this,void 0),Zu.set(this,void 0),Ju.set(this,void 0),Ku.set(this,void 0),th.set(this,void 0),eh.set(this,void 0),nh.set(this,void 0),Gh(this,Vu,t,"f"),this.domNode.classList.add(au.gP),this.domNode.append(Hh(this,Gu,"f").domNode),Hh(this,Hu,"f").classList.add(au.Qs),this.domNode.append(Hh(this,Hu,"f")),Gh(this,Xu,new Yh(t),"f"),Hh(this,Hu,"f").append(Hh(this,Xu,"f").domNode),Gh(this,Yu,new $h(t),"f"),Hh(this,Hu,"f").append(Hh(this,Yu,"f").domNode),Hh(this,$u,"f").classList.add(au.eB),Hh(this,Hu,"f").append(Hh(this,$u,"f")),t.selectedPrimaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Hh(this,Uu,"m",ih).call(this):Hh(this,Uu,"m",sh).call(this))})),Gh(this,Qu,new Qh(t),"f"),Hh(this,$u,"f").append(Hh(this,Qu,"f").domNode),Gh(this,Zu,new Zh(t),"f"),Hh(this,$u,"f").append(Hh(this,Zu,"f").domNode),Gh(this,Ju,new Jh(t),"f"),Hh(this,$u,"f").append(Hh(this,Ju,"f").domNode),Gh(this,Ku,new Kh(t),"f"),Hh(this,$u,"f").append(Hh(this,Ku,"f").domNode),Gh(this,th,new tl(t),"f"),Hh(this,$u,"f").append(Hh(this,th,"f").domNode),Gh(this,eh,new el(t),"f"),Hh(this,$u,"f").append(Hh(this,eh,"f").domNode),Gh(this,nh,new nl(t),"f"),Hh(this,$u,"f").append(Hh(this,nh,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(au.yZ)}collapse(){this.domNode.classList.add(au.yZ),Hh(this,Gu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(au.yZ),Hh(this,Gu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Hh(this,Uu,"a",rh).forEach((t=>t.refresh())),0==[...Hh(this,Vu,"f").selectedPrimaryBonds].length?Hh(this,Uu,"m",ih).call(this):Hh(this,Uu,"m",sh).call(this)}}Vu=new WeakMap,Gu=new WeakMap,Hu=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Ju=new WeakMap,Ku=new WeakMap,th=new WeakMap,eh=new WeakMap,nh=new WeakMap,Uu=new WeakSet,rh=function(){return[Hh(this,Xu,"f"),Hh(this,Yu,"f"),Hh(this,Qu,"f"),Hh(this,Zu,"f"),Hh(this,Ju,"f"),Hh(this,Ku,"f"),Hh(this,th,"f"),Hh(this,eh,"f"),Hh(this,nh,"f")]},ih=function(){Hh(this,$u,"f").style.display="none"},sh=function(){Hh(this,$u,"f").style.display="flex"};class Yh{constructor(t){oh.set(this,void 0),this.domNode=document.createElement("p"),ah.set(this,document.createElement("span")),uh.set(this,document.createElement("span")),Gh(this,oh,t,"f"),this.domNode.classList.add(au.vM),Hh(this,ah,"f").style.fontWeight="700",this.domNode.append(Hh(this,ah,"f"),Hh(this,uh,"f")),Hh(this,oh,"f").selectedPrimaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Hh(this,oh,"f").selectedPrimaryBonds].length;Hh(this,ah,"f").textContent=`${t}`,Hh(this,uh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}oh=new WeakMap,ah=new WeakMap,uh=new WeakMap;class $h{constructor(t){hh.add(this),lh.set(this,void 0),this.domNode=document.createElement("div"),ch.set(this,new A("Select:",(()=>this.toggle()))),fh.set(this,{All:new P("All",(()=>Hh(this,hh,"m",yh).call(this))),None:new P("None",(()=>Hh(this,hh,"m",vh).call(this))),Between:new P("Between",(()=>Hh(this,hh,"m",wh).call(this))),Connecting:new P("Connecting",(()=>Hh(this,hh,"m",xh).call(this)))}),dh.set(this,document.createElement("div")),ph.set(this,document.createElement("div")),mh.set(this,document.createElement("div")),gh.set(this,void 0),Gh(this,lh,t,"f"),this.domNode.classList.add(au.vw),this.domNode.append(Hh(this,ch,"f").domNode),_s(Hh(this,dh,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Hh(this,dh,"f")),_s(Hh(this,ph,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Hh(this,ph,"f").append(...["All","None"].map((t=>Hh(this,fh,"f")[t].domNode))),Hh(this,dh,"f").append(Hh(this,ph,"f")),_s(Hh(this,mh,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Hh(this,mh,"f").append(...["Between","Connecting"].map((t=>Hh(this,fh,"f")[t].domNode))),Hh(this,dh,"f").append(Hh(this,mh,"f")),Hh(this,mh,"f").style.display="none",Hh(this,ch,"f").caret.pointRight(),t.selectedPrimaryBonds.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Gh(this,gh,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Hh(this,gh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Hh(this,mh,"f").style.display}collapse(){Hh(this,mh,"f").style.display="none",Hh(this,ch,"f").caret.pointRight()}expand(){Hh(this,mh,"f").style.display="flex",Hh(this,ch,"f").caret.pointDown()}refresh(){let t=[...Hh(this,lh,"f").drawing.primaryBonds],e=new Set(Hh(this,lh,"f").selectedPrimaryBonds);0==t.length?(Hh(this,fh,"f").All.disable(),Hh(this,fh,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every((t=>e.has(t)))?(Hh(this,fh,"f").All.disable(),Hh(this,fh,"f").All.tooltip.textContent="All primary bonds are already selected."):(Hh(this,fh,"f").All.enable(),Hh(this,fh,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Hh(this,fh,"f").None.disable(),Hh(this,fh,"f").None.tooltip.textContent="No primary bonds are selected."):(Hh(this,fh,"f").None.enable(),Hh(this,fh,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Hh(this,lh,"f").selectedBases],r=Hh(this,hh,"a",bh);0==n.length?(Hh(this,fh,"f").Between.disable(),Hh(this,fh,"f").Between.tooltip.textContent="No bases are selected."):r.every((t=>e.has(t)))?(Hh(this,fh,"f").Between.disable(),Hh(this,fh,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Hh(this,fh,"f").Between.enable(),Hh(this,fh,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Hh(this,hh,"a",_h);0==n.length?(Hh(this,fh,"f").Connecting.disable(),Hh(this,fh,"f").Connecting.tooltip.textContent="No bases are selected."):i.every((t=>e.has(t)))?(Hh(this,fh,"f").Connecting.disable(),Hh(this,fh,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Hh(this,fh,"f").Connecting.enable(),Hh(this,fh,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}lh=new WeakMap,ch=new WeakMap,fh=new WeakMap,dh=new WeakMap,ph=new WeakMap,mh=new WeakMap,gh=new WeakMap,hh=new WeakSet,yh=function(){Hh(this,lh,"f").addToSelected([...Hh(this,lh,"f").drawing.primaryBonds])},vh=function(){Hh(this,lh,"f").removeFromSelected([...Hh(this,lh,"f").drawing.primaryBonds])},wh=function(){Hh(this,lh,"f").addToSelected(Hh(this,hh,"a",bh))},bh=function(){let t=new Set(Hh(this,lh,"f").selectedBases);return[...Hh(this,lh,"f").drawing.primaryBonds].filter((e=>t.has(e.base1)&&t.has(e.base2)))},xh=function(){Hh(this,lh,"f").addToSelected(Hh(this,hh,"a",_h))},_h=function(){let t=new Set(Hh(this,lh,"f").selectedBases);return[...Hh(this,lh,"f").drawing.primaryBonds].filter((e=>t.has(e.base1)||t.has(e.base2)))};class Qh{constructor(t){Nh.add(this),kh.set(this,void 0),Sh.set(this,void 0),Gh(this,kh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Sh,new xu(e,t),"f"),this.domNode.style.marginTop="25px",Hh(this,Sh,"f").addEventListener("refresh",(()=>Hh(this,Nh,"m",Mh).call(this))),this.refresh()}get domNode(){return Hh(this,Sh,"f").domNode}refresh(){Hh(this,Sh,"f").refresh()}}kh=new WeakMap,Sh=new WeakMap,Nh=new WeakSet,Mh=function(){let t=[...Hh(this,kh,"f").selectedPrimaryBonds];Hh(this,Sh,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Hh(this,Sh,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Zh{constructor(t){Ch.set(this,void 0),Ah.set(this,void 0),Eh.set(this,void 0),Gh(this,Ch,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Ah,new Tu("stroke",e,t),"f"),Gh(this,Eh,new Q("Stroke",Hh(this,Ah,"f").domNode),"f"),Hh(this,Eh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="19px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Eh,"f").domNode}refresh(){Hh(this,Ah,"f").refresh()}}Ch=new WeakMap,Ah=new WeakMap,Eh=new WeakMap;class Jh{constructor(t){Th.set(this,void 0),Oh.set(this,void 0),Lh.set(this,void 0),Gh(this,Th,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Oh,new qu("stroke",e,t),"f"),Gh(this,Lh,new ut("Stroke Color",Hh(this,Oh,"f").domNode),"f"),Hh(this,Lh,"f").domNode.style.marginTop="12px",Hh(this,Lh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Lh,"f").domNode}refresh(){Hh(this,Oh,"f").refresh()}}Th=new WeakMap,Oh=new WeakMap,Lh=new WeakMap;class Kh{constructor(t){jh.set(this,void 0),Wh.set(this,void 0),Ph.set(this,void 0),Gh(this,jh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Wh,new Tu("stroke-opacity",e,t),"f"),Gh(this,Ph,new Q("Stroke Opacity",Hh(this,Wh,"f").domNode),"f"),Hh(this,Ph,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Ph,"f").domNode}refresh(){Hh(this,Wh,"f").refresh()}}jh=new WeakMap,Wh=new WeakMap,Ph=new WeakMap;class tl{constructor(t){Dh.set(this,void 0),Ih.set(this,void 0),Bh.set(this,void 0),Gh(this,Dh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Ih,new Tu("stroke-width",e,t),"f"),Gh(this,Bh,new Q("Stroke Width",Hh(this,Ih,"f").domNode),"f"),Hh(this,Bh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Bh,"f").domNode}refresh(){Hh(this,Ih,"f").refresh()}}Dh=new WeakMap,Ih=new WeakMap,Bh=new WeakMap;class el{constructor(t){Rh.set(this,void 0),zh.set(this,void 0),Fh.set(this,void 0),Gh(this,Rh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,zh,new Tu("stroke-linecap",e,t),"f"),Gh(this,Fh,new Q("Stroke Line-Cap",Hh(this,zh,"f").domNode),"f"),Hh(this,Fh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Fh,"f").domNode}refresh(){Hh(this,zh,"f").refresh()}}Rh=new WeakMap,zh=new WeakMap,Fh=new WeakMap;class nl{constructor(t){qh.set(this,void 0),Uh.set(this,void 0),Vh.set(this,void 0),Gh(this,qh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Uh,new Tu("stroke-dasharray",e,t),"f"),Gh(this,Vh,new Q("Stroke Dash-Array",Hh(this,Uh,"f").domNode),"f"),Hh(this,Vh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Vh,"f").domNode}refresh(){Hh(this,Uh,"f").refresh()}}qh=new WeakMap,Uh=new WeakMap,Vh=new WeakMap;var rl=n(358),il=n(705),sl={};sl.styleTagTransform=w(),sl.setAttributes=m(),sl.insert=d().bind(null,"head"),sl.domAPI=c(),sl.insertStyleElement=y(),h()(il.Ay,sl),il.Ay&&il.Ay.locals&&il.Ay.locals;var ol,al,ul,hl,ll,cl,fl,dl,pl,ml,gl,yl,vl,wl,bl,xl,_l,Nl,kl,Sl,Ml,Cl,Al,El,Tl,Ol,Ll,jl,Wl,Pl,Dl,Il,Bl,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,uc,hc,lc,cc,fc,dc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc,Sc,Mc,Cc=n(127),Ac=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},Ec=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 Tc{constructor(t){ol.add(this),al.set(this,void 0),this.domNode=document.createElement("div"),ul.set(this,new A("Secondary Bonds",(()=>this.toggle()))),hl.set(this,document.createElement("div")),ll.set(this,void 0),cl.set(this,void 0),fl.set(this,void 0),dl.set(this,void 0),pl.set(this,document.createElement("div")),ml.set(this,void 0),gl.set(this,void 0),yl.set(this,void 0),vl.set(this,void 0),wl.set(this,void 0),bl.set(this,void 0),xl.set(this,void 0),Ac(this,al,t,"f"),this.domNode.classList.add(il.Se),this.domNode.append(Ec(this,ul,"f").domNode),Ec(this,hl,"f").classList.add(il.Qs),this.domNode.append(Ec(this,hl,"f")),Ac(this,ll,new Oc(t),"f"),Ec(this,hl,"f").append(Ec(this,ll,"f").domNode),Ac(this,cl,new Lc(t),"f"),Ec(this,hl,"f").append(Ec(this,cl,"f").domNode),Ac(this,fl,new jc(t),"f"),Ec(this,hl,"f").append(Ec(this,fl,"f").domNode),Ac(this,dl,new Wc(t),"f"),Ec(this,hl,"f").append(Ec(this,dl,"f").domNode),Ec(this,pl,"f").classList.add(il.eB),Ec(this,hl,"f").append(Ec(this,pl,"f")),t.selectedSecondaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Ec(this,ol,"m",kl).call(this):Ec(this,ol,"m",Nl).call(this))})),Ac(this,ml,new Pc(t),"f"),Ec(this,pl,"f").append(Ec(this,ml,"f").domNode),Ac(this,gl,new Dc(t),"f"),Ec(this,pl,"f").append(Ec(this,gl,"f").domNode),Ac(this,yl,new Ic(t),"f"),Ec(this,pl,"f").append(Ec(this,yl,"f").domNode),Ac(this,vl,new Bc(t),"f"),Ec(this,pl,"f").append(Ec(this,vl,"f").domNode),Ac(this,wl,new Rc(t),"f"),Ec(this,pl,"f").append(Ec(this,wl,"f").domNode),Ac(this,bl,new zc(t),"f"),Ec(this,pl,"f").append(Ec(this,bl,"f").domNode),Ac(this,xl,new Fc(t),"f"),Ec(this,pl,"f").append(Ec(this,xl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(il.yZ)}collapse(){this.domNode.classList.add(il.yZ),Ec(this,ul,"f").caret.pointRight()}expand(){this.domNode.classList.remove(il.yZ),Ec(this,ul,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ec(this,ol,"a",_l).forEach((t=>t.refresh())),0==[...Ec(this,al,"f").selectedSecondaryBonds].length?Ec(this,ol,"m",kl).call(this):Ec(this,ol,"m",Nl).call(this)}}al=new WeakMap,ul=new WeakMap,hl=new WeakMap,ll=new WeakMap,cl=new WeakMap,fl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl=new WeakMap,vl=new WeakMap,wl=new WeakMap,bl=new WeakMap,xl=new WeakMap,ol=new WeakSet,_l=function(){return[Ec(this,ll,"f"),Ec(this,cl,"f"),Ec(this,fl,"f"),Ec(this,dl,"f"),Ec(this,ml,"f"),Ec(this,gl,"f"),Ec(this,yl,"f"),Ec(this,vl,"f"),Ec(this,wl,"f"),Ec(this,bl,"f"),Ec(this,xl,"f")]},Nl=function(){Ec(this,pl,"f").style.display="flex"},kl=function(){Ec(this,pl,"f").style.display="none"};class Oc{constructor(t){Sl.set(this,void 0),this.domNode=document.createElement("p"),Ml.set(this,document.createElement("span")),Cl.set(this,document.createElement("span")),Ac(this,Sl,t,"f"),this.domNode.classList.add(il.vM),Ec(this,Ml,"f").style.fontWeight="700",this.domNode.append(Ec(this,Ml,"f"),Ec(this,Cl,"f")),Ec(this,Sl,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Ec(this,Sl,"f").selectedSecondaryBonds].length;Ec(this,Ml,"f").textContent=`${t}`,Ec(this,Cl,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}Sl=new WeakMap,Ml=new WeakMap,Cl=new WeakMap;class Lc{constructor(t){Al.add(this),El.set(this,void 0),this.domNode=document.createElement("div"),Tl.set(this,new A("Select:",(()=>this.toggle()))),Ol.set(this,{All:new P("All",(()=>Ec(this,Al,"m",Dl).call(this))),None:new P("None",(()=>Ec(this,Al,"m",Il).call(this))),Between:new P("Between",(()=>Ec(this,Al,"m",Bl).call(this))),Connecting:new P("Connecting",(()=>Ec(this,Al,"m",zl).call(this))),"A:U":new P("A:U",(()=>Ec(this,Al,"m",ql).call(this))),"A:T":new P("A:T",(()=>Ec(this,Al,"m",Vl).call(this))),"G:C":new P("G:C",(()=>Ec(this,Al,"m",Hl).call(this))),"G:U":new P("G:U",(()=>Ec(this,Al,"m",Yl).call(this))),"G:T":new P("G:T",(()=>Ec(this,Al,"m",Ql).call(this)))}),Ll.set(this,document.createElement("div")),jl.set(this,document.createElement("div")),Wl.set(this,document.createElement("div")),Pl.set(this,void 0),Ac(this,El,t,"f"),this.domNode.classList.add(il.vw),this.domNode.append(Ec(this,Tl,"f").domNode),_s(Ec(this,Ll,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Ec(this,Ll,"f")),_s(Ec(this,jl,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Ec(this,jl,"f").append(...["All","None"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Ll,"f").append(Ec(this,jl,"f")),_s(Ec(this,Wl,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),Ec(this,Ll,"f").append(Ec(this,Wl,"f")),Ec(this,Wl,"f").style.display="none",Ec(this,Tl,"f").caret.pointRight();let e=document.createElement("div");_s(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Wl,"f").append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"12px"}),n.append(...["A:U","G:C","G:U","A:T","G:T"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Wl,"f").append(n),t.selectedSecondaryBonds.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ac(this,Pl,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ec(this,Pl,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Ec(this,Wl,"f").style.display}collapse(){Ec(this,Wl,"f").style.display="none",Ec(this,Tl,"f").caret.pointRight()}expand(){Ec(this,Wl,"f").style.display="flex",Ec(this,Tl,"f").caret.pointDown()}refresh(){let t=[...Ec(this,El,"f").drawing.secondaryBonds],e=new Set(Ec(this,El,"f").selectedSecondaryBonds);0==t.length?(Ec(this,Ol,"f").All.disable(),Ec(this,Ol,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every((t=>e.has(t)))?(Ec(this,Ol,"f").All.disable(),Ec(this,Ol,"f").All.tooltip.textContent="All secondary bonds are already selected."):(Ec(this,Ol,"f").All.enable(),Ec(this,Ol,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(Ec(this,Ol,"f").None.disable(),Ec(this,Ol,"f").None.tooltip.textContent="No secondary bonds are selected."):(Ec(this,Ol,"f").None.enable(),Ec(this,Ol,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...Ec(this,El,"f").selectedBases],r=Ec(this,Al,"a",Rl);0==n.length?(Ec(this,Ol,"f").Between.disable(),Ec(this,Ol,"f").Between.tooltip.textContent="No bases are selected."):r.every((t=>e.has(t)))?(Ec(this,Ol,"f").Between.disable(),Ec(this,Ol,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(Ec(this,Ol,"f").Between.enable(),Ec(this,Ol,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=Ec(this,Al,"a",Fl);0==n.length?(Ec(this,Ol,"f").Connecting.disable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="No bases are selected."):i.every((t=>e.has(t)))?(Ec(this,Ol,"f").Connecting.disable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(Ec(this,Ol,"f").Connecting.enable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",Ec(this,Al,"a",Ul)],["A:T",Ec(this,Al,"a",Gl)],["G:C",Ec(this,Al,"a",Xl)],["G:U",Ec(this,Al,"a",$l)],["G:T",Ec(this,Al,"a",Zl)]].forEach((([t,n])=>{0==n.length?(Ec(this,Ol,"f")[t].disable(),Ec(this,Ol,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every((t=>e.has(t)))?(Ec(this,Ol,"f")[t].disable(),Ec(this,Ol,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(Ec(this,Ol,"f")[t].enable(),Ec(this,Ol,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)}))}}El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,jl=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,Al=new WeakSet,Dl=function(){Ec(this,El,"f").addToSelected([...Ec(this,El,"f").drawing.secondaryBonds])},Il=function(){Ec(this,El,"f").removeFromSelected([...Ec(this,El,"f").drawing.secondaryBonds])},Bl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Rl))},Rl=function(){let t=new Set(Ec(this,El,"f").selectedBases);return[...Ec(this,El,"f").drawing.secondaryBonds].filter((e=>t.has(e.base1)&&t.has(e.base2)))},zl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Fl))},Fl=function(){let t=new Set(Ec(this,El,"f").selectedBases);return[...Ec(this,El,"f").drawing.secondaryBonds].filter((e=>t.has(e.base1)||t.has(e.base2)))},ql=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Ul))},Ul=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(qc)},Vl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Gl))},Gl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Uc)},Hl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Xl))},Xl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Vc)},Yl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",$l))},$l=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Gc)},Ql=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Zl))},Zl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Hc)};class jc{constructor(t){Jl.set(this,void 0),this.domNode=document.createElement("div"),Kl.set(this,new Js("Add",(()=>this.press()))),tc.set(this,new K),ec.set(this,new nt("Only add missing secondary bonds",Ec(this,tc,"f").domNode)),nc.set(this,void 0),Ac(this,Jl,t,"f"),this.domNode.classList.add(il.Ol),this.domNode.append(Ec(this,Kl,"f").domNode,Ec(this,ec,"f").domNode),Ec(this,tc,"f").domNode.checked=!0,Ec(this,ec,"f").domNode.style.marginLeft="10px",Ec(this,Jl,"f").selectedBases.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),Ac(this,nc,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ec(this,nc,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ec(this,tc,"f").domNode.addEventListener("change",(()=>this.refresh()))}press(){let t=[...Ec(this,Jl,"f").drawing.bases],e=[...Ec(this,Jl,"f").selectedBases];e=(0,rl.seqSorted)(e,t);let n=(0,Cc.antiParallelPairs)(e),r=[...Ec(this,Jl,"f").drawing.secondaryBonds],i=(0,Cc.missing)(Yc(r),n);0!=n.length&&(Ec(this,tc,"f").domNode.checked&&0==i.length||(Ec(this,Jl,"f").pushUndoStack(),Ec(this,tc,"f").domNode.checked?i.forEach((t=>Ec(this,Jl,"f").drawing.addSecondaryBond(...t))):n.forEach((t=>Ec(this,Jl,"f").drawing.addSecondaryBond(...t)))))}refresh(){let t=[...Ec(this,Jl,"f").drawing.bases],e=[...Ec(this,Jl,"f").selectedBases];e=(0,rl.seqSorted)(e,t);let n=(0,Cc.antiParallelPairs)(e),r=[...Ec(this,Jl,"f").drawing.secondaryBonds],i=(0,Cc.missing)(Yc(r),n);0==e.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="No bases are selected."):1==e.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="At least two bases must be selected."):Ec(this,tc,"f").domNode.checked&&0==i.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(Ec(this,Kl,"f").enable(),Ec(this,Kl,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}Jl=new WeakMap,Kl=new WeakMap,tc=new WeakMap,ec=new WeakMap,nc=new WeakMap;class Wc{constructor(t){rc.set(this,void 0),ic.set(this,new Js("Remove",(()=>this.press()))),Ac(this,rc,t,"f"),Ec(this,rc,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.domNode.style.marginTop="15px"}get domNode(){return Ec(this,ic,"f").domNode}press(){let t=[...Ec(this,rc,"f").selectedSecondaryBonds];0!=t.length&&(Ec(this,rc,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())))}refresh(){0==[...Ec(this,rc,"f").selectedSecondaryBonds].length?(Ec(this,ic,"f").disable(),Ec(this,ic,"f").tooltip.textContent="No secondary bonds are selected."):(Ec(this,ic,"f").enable(),Ec(this,ic,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}rc=new WeakMap,ic=new WeakMap;class Pc{constructor(t){sc.add(this),oc.set(this,void 0),ac.set(this,void 0),Ac(this,oc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,ac,new xu(e,t),"f"),this.domNode.style.marginTop="25px",Ec(this,ac,"f").addEventListener("refresh",(()=>Ec(this,sc,"m",uc).call(this))),this.refresh()}get domNode(){return Ec(this,ac,"f").domNode}refresh(){Ec(this,ac,"f").refresh()}}oc=new WeakMap,ac=new WeakMap,sc=new WeakSet,uc=function(){let t=[...Ec(this,oc,"f").selectedSecondaryBonds];Ec(this,ac,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Ec(this,ac,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Dc{constructor(t){hc.set(this,void 0),lc.set(this,void 0),cc.set(this,void 0),Ac(this,hc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,lc,new Tu("stroke",e,t),"f"),Ac(this,cc,new Q("Stroke",Ec(this,lc,"f").domNode),"f"),Ec(this,cc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="19px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,cc,"f").domNode}refresh(){Ec(this,lc,"f").refresh()}}hc=new WeakMap,lc=new WeakMap,cc=new WeakMap;class Ic{constructor(t){fc.set(this,void 0),dc.set(this,void 0),pc.set(this,void 0),Ac(this,fc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,dc,new qu("stroke",e,t),"f"),Ac(this,pc,new ut("Stroke Color",Ec(this,dc,"f").domNode),"f"),Ec(this,pc,"f").domNode.style.marginTop="12px",Ec(this,pc,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,pc,"f").domNode}refresh(){Ec(this,dc,"f").refresh()}}fc=new WeakMap,dc=new WeakMap,pc=new WeakMap;class Bc{constructor(t){mc.set(this,void 0),gc.set(this,void 0),yc.set(this,void 0),Ac(this,mc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,gc,new Tu("stroke-opacity",e,t),"f"),Ac(this,yc,new Q("Stroke Opacity",Ec(this,gc,"f").domNode),"f"),Ec(this,yc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,yc,"f").domNode}refresh(){Ec(this,gc,"f").refresh()}}mc=new WeakMap,gc=new WeakMap,yc=new WeakMap;class Rc{constructor(t){vc.set(this,void 0),wc.set(this,void 0),bc.set(this,void 0),Ac(this,vc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,wc,new Tu("stroke-width",e,t),"f"),Ac(this,bc,new Q("Stroke Width",Ec(this,wc,"f").domNode),"f"),Ec(this,bc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,bc,"f").domNode}refresh(){Ec(this,wc,"f").refresh()}}vc=new WeakMap,wc=new WeakMap,bc=new WeakMap;class zc{constructor(t){xc.set(this,void 0),_c.set(this,void 0),Nc.set(this,void 0),Ac(this,xc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,_c,new Tu("stroke-linecap",e,t),"f"),Ac(this,Nc,new Q("Stroke Line-Cap",Ec(this,_c,"f").domNode),"f"),Ec(this,Nc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,Nc,"f").domNode}refresh(){Ec(this,_c,"f").refresh()}}xc=new WeakMap,_c=new WeakMap,Nc=new WeakMap;class Fc{constructor(t){kc.set(this,void 0),Sc.set(this,void 0),Mc.set(this,void 0),Ac(this,kc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,Sc,new Tu("stroke-dasharray",e,t),"f"),Ac(this,Mc,new Q("Stroke Dash-Array",Ec(this,Sc,"f").domNode),"f"),Ec(this,Mc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,Mc,"f").domNode}refresh(){Ec(this,Sc,"f").refresh()}}function qc(t){return new rl.BasePair(t.base1,t.base2).isAU()}function Uc(t){return new rl.BasePair(t.base1,t.base2).isAT()}function Vc(t){return new rl.BasePair(t.base1,t.base2).isGC()}function Gc(t){return new rl.BasePair(t.base1,t.base2).isGU()}function Hc(t){return new rl.BasePair(t.base1,t.base2).isGT()}function Xc(t){return[t.base1,t.base2]}function Yc(t){return t.map(Xc)}kc=new WeakMap,Sc=new WeakMap,Mc=new WeakMap;var $c=n(290),Qc={};Qc.styleTagTransform=w(),Qc.setAttributes=m(),Qc.insert=d().bind(null,"head"),Qc.domAPI=c(),Qc.insertStyleElement=y(),h()($c.A,Qc),$c.A&&$c.A.locals&&$c.A.locals;var Zc,Jc,Kc,tf,ef,nf,rf,sf,of=n(139),af=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},uf=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 hf{constructor(t){Zc.add(this),Jc.set(this,void 0),this.domNode=document.createElement("div"),Kc.set(this,void 0),tf.set(this,void 0),ef.set(this,void 0),nf.set(this,void 0),rf.set(this,void 0),af(this,Jc,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),af(this,Kc,new Ss(t),"f"),n.append(uf(this,Kc,"f").domNode),af(this,tf,new Ga(t),"f"),n.append(uf(this,tf,"f").domNode),af(this,ef,new Xh(t),"f"),n.append(uf(this,ef,"f").domNode),af(this,nf,new Tc(t),"f"),n.append(uf(this,nf,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add($c._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),af(this,rf,new of.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){uf(this,Zc,"a",sf).forEach((t=>t.refresh()))}reposition(){uf(this,rf,"f").untranslate()}}Jc=new WeakMap,Kc=new WeakMap,tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,Zc=new WeakSet,sf=function(){return[uf(this,Kc,"f"),uf(this,tf,"f"),uf(this,ef,"f"),uf(this,nf,"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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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))}}},127:function(t){var e;e=()=>(()=>{var t={369: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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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,{Linkers:()=>y,Stems:()=>g,areConflicting:()=>h,areCrossing:()=>f,areEqual:()=>a,areKnotless:()=>c,areStacked:()=>u,basePairs:()=>b,deepCopy:()=>i,knotless:()=>p,mountainPlotTraversal:()=>v,parseDotBracket:()=>w,radializable:()=>m,sorted:()=>o});var t=n(854),e=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 i(n){return(0,t.isNumbersArray)(n)?e([],n,!0):n.map((function(t){return e([],t,!0)}))}var s=n(986);function o(t){var e=i(t);return e.forEach(s.sortNumbers),e.sort((function(t,e){return t[0]-e[0]})),e}function a(t,e){var n=i(t),r=i(e);return(0,s.sortNumbers)(n),(0,s.sortNumbers)(r),[0,1].every((function(t){return n[t]==r[t]}))}function u(t,e){var n=o([t,e]);return n[0][0]==n[1][0]-1&&n[0][1]==n[1][1]+1}function h(t,e){return(0,s.min)(t)==(0,s.min)(e)&&(0,s.max)(t)!=(0,s.max)(e)||(0,s.min)(t)!=(0,s.min)(e)&&(0,s.max)(t)==(0,s.max)(e)}function l(t){if(0==t.length)return[];for(var e=[],n=0;n<(0,s.max)(t.flat());n++)e.push(void 0);return t.forEach((function(t){e[t[0]-1]=t[1],e[t[1]-1]=t[0]})),e}function c(t){var e=l(t),n=[],r=!1;return e.forEach((function(t,e){var i=e+1;null==t||(i<t?n.push(i):i==t||n.pop()!=t&&(r=!0))})),!r}function f(t,e){return!c([t,e])}var d=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 p(t){var e=[],n=i(t);return n.sort((function(t,e){return Math.abs(t[0]-t[1])-Math.abs(e[0]-e[1])})),n.forEach((function(t){c(d(d([],e,!0),[t],!1))&&e.push(t)})),e}function m(t){var e=i(t);e.sort((function(t,e){var n=t[0],r=t[1],i=e[0],s=e[1];return Math.abs(n-r)-Math.abs(i-s)}));var n=[],r=[];return e.forEach((function(t){var e=t[0],i=t[1];e==i||null!=r[e-1]||null!=r[i-1]||(n.push([e,i]),r[e-1]=i,r[i-1]=e)})),p(n)}var g=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=this.targetStructure[1];if(0==t.length)return[];var e=o(t),n=[],r=[];return e.forEach((function(t){var e=0==r.length?null:r[r.length-1];!e||u(e,t)?r.push(t):(n.push(r),r=[t])})),n.push(r),n},t}(),y=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.targetStructure=t}return t.prototype.get=function(){var t=(new(g.bind.apply(g,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))}([void 0],this.targetStructure,!1)))).get().flatMap((function(t){return[t.map(s.min),t.map(s.max)]}));t.forEach(s.sortNumbers),t.sort((function(t,e){return(0,s.min)(t)-(0,s.min)(e)}));for(var e=[],n=t.shift(),r=t.shift();n&&r;){for(var i=[],o=(0,s.max)(n),a=(0,s.min)(r),u=o;u<=a;u++)i.push(u);e.push(i),n=r,r=t.shift()}return e},t}();function v(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1],i=l(r);if(!c(r))throw new Error("Pseudoknot(s) encountered.");var s=[],o=0;return n.forEach((function(t,e){var n=e+1,r=i[e];null==r?s.push(o):n<r?(s.push(o),o++):(n==r||o--,s.push(o))})),s}function w(t){var e=t.split(""),n=[".","(",")"];e.forEach((function(t){if(!n.includes(t))throw new Error('Unrecognized character in dot-bracket notation: "'.concat(t,'".'))}));var r=[],i=[];if(e.forEach((function(t,e){var n=e+1;if("("==t)i.push(n);else if(")"==t){var s=i.pop();if("number"!=typeof s)throw new Error("Unmatched downstream partner(s) in dot-bracket notation.");r.push([s,n])}})),i.length>0)throw new Error("Unmatched upstream partner(s) in dot-bracket notation.");return o(r)}function b(t,e){return e.forEach((function(e){e.forEach((function(e){if(e<1)throw new Error("Sequence positions must be positive.");if(e>t.length)throw new Error("Position out of sequence range.")}))})),e.map((function(e){return[t[e[0]-1],t[e[1]-1]]}))}})(),r})(),t.exports=e()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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";function t(t,e){return t[0]===e[0]&&t[1]===e[1]||t[0]===e[1]&&t[1]===e[0]}function e(t,e){if(!e.includes(t))throw new Error("The given base is not present in the provided base-pair.");return t===e[0]?e[1]:e[0]}n.r(r),n.d(r,{FirstPairedBase:()=>s,LastPairedBase:()=>a,LeadingDanglingBases:()=>u,Linkers:()=>f,PositionPairs:()=>i,Stems:()=>c,TrailingDanglingBases:()=>h,antiParallelPairs:()=>v,areEqual:()=>t,consecutivePairs:()=>g,knotless:()=>d,missing:()=>w,other:()=>e,parallelPairs:()=>y,parseDotBracket:()=>m,radializable:()=>p});class i{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];return this.targetStructure[1].map((e=>[t.indexOf(e[0])+1,t.indexOf(e[1])+1]))}}class s{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat(),r=t.findIndex((t=>n.includes(t)));if(r<0)throw new Error("No paired bases present in sequence.");return t[r]}}var o=n(986);class a{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=this.targetStructure[1];if(0==e.length)throw new Error("There are no paired bases.");let n=e.flat().map((e=>t.indexOf(e)));if((0,o.max)(n)<0)throw new Error("No paired bases present in sequence.");return t[(0,o.max)(n)]}}class u{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new s(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(0,n)}}class h{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0];if(0==this.targetStructure[1].length)throw new Error("There are no paired bases.");let e=new a(...this.targetStructure).get(),n=t.indexOf(e);if(n<0)throw new Error("No paired bases present in sequence.");return t.slice(n+1)}}var l=n(369);class c{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Stems(t,e).get().map((e=>e.map((e=>[t[e[0]-1],t[e[1]-1]]))))}}class f{constructor(...t){this.targetStructure=t}get(){let t=this.targetStructure[0],e=new i(...this.targetStructure).get();return new l.Linkers(t,e).get().map((e=>e.map((e=>t[e-1]))))}}function d(...t){let[e,n]=t,r=new i(...t).get();(0,l.areKnotless)(r)||(r=(0,l.knotless)(r));let s=r.map((t=>[e[t[0]-1],e[t[1]-1]]));return[[...e],s]}function p(...t){let[e,n]=t,r=new i(...t).get();return[[...e],(0,l.radializable)(r).map((([t,n])=>[e[t-1],e[n-1]]))]}function m(t,e){if(e.length>t.length)throw new Error("Dot-bracket notation is longer than the sequence.");return[...(0,l.parseDotBracket)(e)].map((e=>{let n=e[0],r=e[1];return[t[n-1],t[r-1]]}))}function g(t){return t.length<2?[]:t.slice(0,-1).map(((e,n)=>[t[n],t[n+1]]))}function y(t){let e=[],n=Math.floor(t.length/2)-1,r=Math.ceil(t.length/2);for(let i=0;i<=n;i++){let n=t[i],s=t[r+i];e.push([n,s])}return e}function v(t){let e=[];for(let n=0;n<Math.floor(t.length/2);n++){let r=t[n],i=t[t.length-n-1];e.push([r,i])}return e}function w(e,n){return n.filter((n=>!e.find((e=>t(n,e))))).map((t=>[...t]))}})(),r})(),t.exports=e()},139:function(t){var e;e=()=>(()=>{"use strict";var t={826:(t,e,n)=>{n.d(e,{A:()=>u,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 u=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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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),u=n(659),h=n.n(u),l=n(56),c=n.n(l),f=n(540),d=n.n(f),p=n(113),m=n.n(p),g=n(826),y={};y.styleTagTransform=m(),y.setAttributes=c(),y.insert=h().bind(null,"head"),y.domAPI=a(),y.insertStyleElement=d(),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:()=>f,average:()=>r,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,sortNumbers:()=>i,sortNumbersAscending:()=>i,sortNumbersDescending:()=>d,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 u(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 h(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 f(t,e,n){return Math.abs(t-e)<=n}function d(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:()=>u,_:()=>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: #ffaeae;\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: #302b2b;\n}\n\n.kcto2iumhdvv3MluNmLw:active {\n background-color: #474040;\n}\n',""]);var a="kcto2iumhdvv3MluNmLw";const u=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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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}},358:function(t){var e;e=()=>(()=>{var t={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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,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:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,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=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}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 f{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 d{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 _{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 N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),r})(),t.exports=e()},731:function(t){var e;e=()=>(()=>{"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={};t.r(e),t.d(e,{CenterPoint:()=>h});var n,r,i,s,o,a=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},u=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 h{constructor(t){n.add(this),r.set(this,void 0),i.set(this,{move:[]}),s.set(this,void 0),a(this,r,t,"f"),a(this,s,new MutationObserver((()=>u(this,n,"m",o).call(this,"move"))),"f"),u(this,s,"f").observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}get x(){let t=u(this,r,"f").getBBox();return t.x+t.width/2}set x(t){let e=this.x,n=[...u(this,r,"f").x.baseVal].map((t=>t.value));0!=n.length||n.push(0),n=n.map((n=>n+(t-e))),u(this,r,"f").setAttribute("x",n.join(", "))}get y(){let t=u(this,r,"f").getBBox();return t.y+t.height/2}set y(t){let e=this.y,n=[...u(this,r,"f").y.baseVal].map((t=>t.value));0!=n.length||n.push(0),n=n.map((n=>n+(t-e))),u(this,r,"f").setAttribute("y",n.join(", "))}addEventListener(t,e){u(this,i,"f")[t].push(e)}removeEventListener(t,e){u(this,i,"f")[t]=u(this,i,"f")[t].filter((t=>t!==e))}}return r=new WeakMap,i=new WeakMap,s=new WeakMap,n=new WeakSet,o=function(t){u(this,i,"f")[t].forEach((t=>t()))},e})(),t.exports=e()},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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,isPositiveFiniteNumber:()=>s,isString:()=>a,isStringsArray:()=>y}),e})()},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,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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,{BasePair:()=>Pn,Nucleobase:()=>Wn,seqSorted:()=>Dn});var t={};n.r(t),n.d(t,{cx:()=>Dt,cy:()=>It,height:()=>Rt,rx:()=>Lt,ry:()=>jt,width:()=>Bt,x:()=>Wt,y:()=>Pt});var e={};n.r(e),n.d(e,{from:()=>Ut,to:()=>Vt});var i={};n.r(i),n.d(i,{MorphArray:()=>Qt,height:()=>te,width:()=>Kt,x:()=>Zt,y:()=>Jt});var s={};n.r(s),n.d(s,{array:()=>Ae,clear:()=>Ee,move:()=>Te,plot:()=>Oe,size:()=>Le});var o={};n.r(o),n.d(o,{amove:()=>an,ax:()=>sn,ay:()=>on,build:()=>un,center:()=>rn,cx:()=>en,cy:()=>nn,length:()=>Ze,move:()=>tn,plain:()=>Qe,x:()=>Je,y:()=>Ke});var a={};n.r(a),n.d(a,{dmove:()=>pn,dx:()=>mn,dy:()=>gn,height:()=>yn,move:()=>vn,size:()=>wn,width:()=>bn,x:()=>xn,y:()=>_n});const u={},h=[];function l(t,e){if(Array.isArray(t))for(const n of t)l(n,e);else if("object"!=typeof t)f(Object.getOwnPropertyNames(e)),u[t]=Object.assign(u[t]||{},e);else for(const e in t)l(e,t[e])}function c(t){return u[t]||{}}function f(t){h.push(...t)}function d(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function p(t){return t%360*Math.PI/180}function m(t){return t.charAt(0).toUpperCase()+t.slice(1)}function g(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 y(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:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const v=new Set(["desc","metadata","title"]),w=t=>v.has(t.nodeName),b=(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"))},x="http://www.w3.org/2000/svg",_="http://www.w3.org/2000/xmlns/",N="http://www.w3.org/1999/xlink",k={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class S{}const M={},C="___SYMBOL___ROOT___";function A(t,e=x){return k.document.createElementNS(e,t)}function E(t,e=!1){if(t instanceof S)return t;if("object"==typeof t)return L(t);if(null==t)return new M[C];if("string"==typeof t&&"<"!==t.charAt(0))return L(k.document.querySelector(t));const n=e?k.document.createElement("div"):A("svg");return n.innerHTML=t,t=L(n.firstChild),n.removeChild(n.firstChild),t}function T(t,e){return e&&(e instanceof k.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:A(t)}function O(t){if(!t)return null;if(t.instance instanceof S)return t.instance;if("#document-fragment"===t.nodeName)return new M.Fragment(t);let e=m(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":M[e]||(e="Dom"),new M[e](t)}let L=O;function j(t,e=t.name,n=!1){return M[e]=t,n&&(M[C]=t),f(Object.getOwnPropertyNames(t.prototype)),t}let W=1e3;function P(t){return"Svgjs"+m(t)+W++}function D(t){for(let e=t.children.length-1;e>=0;e--)D(t.children[e]);return t.id?(t.id=P(t.nodeName),t):t}function I(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 B(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)}}l("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=E(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=E(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=E(t)).before(this),this},insertAfter:function(t){return(t=E(t)).after(this),this}});const R=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,z=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,F=/rgb\((\d+),(\d+),(\d+)\)/,q=/(#[a-z_][a-z0-9\-_]*)/i,U=/\)\s*,?\s*/,V=/\s/g,G=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,H=/^rgb\(/,X=/^(\s+)?$/,Y=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Q=/[\s,]+/,Z=/[MLHVCSQTAZ]/i;function J(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function K(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function tt(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}l("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Q)},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)}}),l("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]||X.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||X.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),l("Dom",{data:function(t,e,n){if(null==t)return this.data(d(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}}),l("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 et{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof et||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 et(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 et(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new et(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new et(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new et(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new et(t,e,r,"lab")}if("grey"===t){const t=255*n();return new et(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(G.test(t)||H.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 et(0,0,0,1,"cmyk"):new et((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),u=(o+a)/2,h=o===a,l=o-a;return new et(360*(h?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*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"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=K(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:K(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:K(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:K(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:K(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:K(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(H.test(t)){const e=t.replace(V,""),[n,r,i]=F.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!G.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=z.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:u}=this,h="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:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new et(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 et(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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/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,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=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 et(255*u,255*h,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 et(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*tt(i,r,t+1/3),o=255*tt(i,r,t),a=255*tt(i,r,t-1/3);return new et(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 et(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(J);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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+16/116,d=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 et(f,d,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 nt{constructor(...t){this.init(...t)}clone(){return new nt(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){it.isMatrixLike(t)||(t=new it(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 rt(t,e,n){return Math.abs(e-t)<(n||1e-6)}class it{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,u=t.shear||0,h=t.rotate||t.theta||0,l=new nt(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new nt(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new nt(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new nt(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,u=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=u,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 it(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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*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 it(t);return rt(this.a,e.a)&&rt(this.b,e.b)&&rt(this.c,e.c)&&rt(this.d,e.d)&&rt(this.e,e.e)&&rt(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=it.fromArray([1,0,0,1,0,0]);return t=t instanceof Ct?t.matrixify():"string"==typeof t?it.fromArray(t.split(Q).map(parseFloat)):Array.isArray(t)?it.fromArray(t):"object"==typeof t&&it.isMatrixLike(t)?t:"object"==typeof t?(new it).transform(t):6===arguments.length?it.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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof it?t:new it(t);return it.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=p(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*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:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*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:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*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=p(t),e=p(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*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(it.isMatrixLike(t))return new it(t).multiplyO(this);const e=it.formatTransforms(t),{x:n,y:r}=new nt(e.ox,e.oy).transform(this),i=(new it).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 nt(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 st(){if(!st.nodes){const t=E().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;st.nodes={svg:t,path:e}}if(!st.nodes.svg.node.parentNode){const t=k.document.body||k.document.documentElement;st.nodes.svg.addTo(t)}return st.nodes}function ot(t){return!(t.width||t.height||t.x||t.y)}j(it,"Matrix");class at{constructor(...t){this.init(...t)}addOffset(){return this.x+=k.window.pageXOffset,this.y+=k.window.pageYOffset,new at(this)}init(t){return t="string"==typeof t?t.split(Q).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 ot(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 at(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 it||(t=new it(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new nt(this.x,this.y),new nt(this.x2,this.y),new nt(this.x,this.y2),new nt(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 at(e,r,n-e,i-r)}}function ut(t,e,n){let r;try{if(r=e(t.node),ot(r)&&(i=t.node)!==k.document&&!(k.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===k.document}).call(k.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}l({viewbox:{viewbox(t,e,n,r){return null==t?new at(this.attr("viewBox")):this.attr("viewBox",new at(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new nt(n/2/s+i.x,r/2/o+i.y);const h=new at(i).transform(new it({scale:u,origin:e}));return this.viewbox(h)}}}),j(at,"Box");class ht extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const lt=ht;I([ht],{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 ct=["toArray","constructor","each"];function ft(t,e){return new lt(d((e||k.document).querySelectorAll(t),(function(t){return O(t)})))}ht.extend=function(t){t=t.reduce(((t,e)=>(ct.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),I([ht],t)};let dt=0;const pt={};function mt(t){let e=t.getEventHolder();return e===k.window&&(e=pt),e.events||(e.events={}),e.events}function gt(t){return t.getEventTarget()}function yt(t,e,n,r,i){const s=n.bind(r||t),o=E(t),a=mt(o),u=gt(o);e=Array.isArray(e)?e:e.split(Q),n._svgjsListenerId||(n._svgjsListenerId=++dt),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,u.addEventListener(e,s,i||!1)}))}function vt(t,e,n,r){const i=E(t),s=mt(i),o=gt(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Q)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;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(h in s[e][a])vt(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&vt(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])vt(o,[e,u].join("."));delete s[e]}}else{for(t in s)vt(o,t);!function(t){let e=t.getEventHolder();e===k.window&&(e=pt),e.events&&(e.events={})}(i)}}))}class wt extends S{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=gt(t);return e instanceof k.window.Event||(e=new k.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 vt(this,t,e,n),this}on(t,e,n,r){return yt(this,t,e,n,r),this}removeEventListener(){}}function bt(){}j(wt,"EventTarget");const xt={"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 _t 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(Q).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 Nt{constructor(...t){this.init(...t)}convert(t){return new Nt(this.value,t)}divide(t){return t=new Nt(t),new Nt(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(R))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Nt&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Nt(t),new Nt(this-t,this.unit||t.unit)}plus(t){return t=new Nt(t),new Nt(this+t,this.unit||t.unit)}times(t){return t=new Nt(t),new Nt(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 kt=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),St=[];class Mt extends wt{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=E(t)).removeNamespace&&this.node instanceof k.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 E(t).put(this,e)}children(){return new lt(d(this.node.children,(function(t){return O(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=D(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 Mt(A(t),e))}first(){return O(this.node.firstChild)}get(t){return O(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=P(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return O(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=O(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=O(e.node.parentNode));return e}put(t,e){return t=E(t),this.add(t,e),t}putIn(t,e){return E(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=E(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,x)}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=O(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=A("wrapper",n),i=k.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)}}I(Mt,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=Y.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))?xt[t]:Y.test(e)?parseFloat(e):e;"number"==typeof(e=St.reduce(((e,n)=>n(t,e,this)),e))?e=new Nt(e):kt.has(t)&&et.isColor(e)?e=new et(e):e.constructor===Array&&(e=new _t(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 ft(t,this.node)},findOne:function(t){return O(this.node.querySelector(t))}}),j(Mt,"Dom");class Ct extends Mt{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 Nt(t).plus(this.x()))}dy(t=0){return this.y(new Nt(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=E(t));const n=new lt;let r=this;for(;(r=r.parent())&&r.node!==k.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(q);return e?E(e[1]):null}root(){const t=this.parent(M[C]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=g(this,t,e);return this.width(new Nt(n.width)).height(new Nt(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return b(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}I(Ct,{bbox:function(){const t=ut(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(st().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 at(t)},rbox:function(t){const e=ut(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new at(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 nt(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new it(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 it(e)}return new it(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new it}}}),j(Ct,"Element");const At={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 et||et.isRgb(e)||e instanceof Ct)this.attr(t,e);else for(n=At[t].length-1;n>=0;n--)null!=e[At[t][n]]&&this.attr(At.prefix(t,At[t][n]),e[At[t][n]]);return this},l(["Element","Runner"],e)})),l(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new it(this):this.attr("transform",new it(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)}}),l("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Nt(t)):this.rx(t).ry(e)}}),l("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new nt(this.node.getPointAtLength(t))}}),l(["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)}}),l("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}),{})),l("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(U).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Q).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(it.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new it)},toParent:function(t,e){if(this===t)return this;if(w(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 it(this).decompose();return null==t?e:e[t]}it.isMatrixLike(t)||(t={...t,origin:y(t,this)});const n=new it(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Et extends Ct{flatten(){return this.each((function(){if(this instanceof Et)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()}}j(Et,"Container");class Tt extends Et{constructor(t,e=t){super(T("defs",t),e)}flatten(){return this}ungroup(){return this}}j(Tt,"Defs");class Ot extends Ct{}function Lt(t){return this.attr("rx",t)}function jt(t){return this.attr("ry",t)}function Wt(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function Pt(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Dt(t){return this.attr("cx",t)}function It(t){return this.attr("cy",t)}function Bt(t){return null==t?2*this.rx():this.rx(new Nt(t).divide(2))}function Rt(t){return null==t?2*this.ry():this.ry(new Nt(t).divide(2))}j(Ot,"Shape");class zt extends Ot{constructor(t,e=t){super(T("ellipse",t),e)}size(t,e){const n=g(this,t,e);return this.rx(new Nt(n.width).divide(2)).ry(new Nt(n.height).divide(2))}}I(zt,t),l("Container",{ellipse:B((function(t=0,e=t){return this.put(new zt).size(t,e).move(0,0)}))}),j(zt,"Ellipse");class Ft extends Mt{constructor(t=k.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 Mt(A("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}j(Ft,"Fragment");const qt=Ft;function Ut(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Nt(t),fy:new Nt(e)}):this.attr({x1:new Nt(t),y1:new Nt(e)})}function Vt(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Nt(t),cy:new Nt(e)}):this.attr({x2:new Nt(t),y2:new Nt(e)})}class Gt extends Et{constructor(t,e){super(T(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 at}targets(){return ft("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()+")"}}I(Gt,e),l({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:B((function(t,e){return this.put(new Gt(t)).update(e)}))}}),j(Gt,"Gradient");class Ht extends Et{constructor(t,e=t){super(T("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new at}targets(){return ft("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()+")"}}l({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:B((function(t,e,n){return this.put(new Ht).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),j(Ht,"Pattern");class Xt extends Ot{constructor(t,e=t){super(T("image",t),e)}load(t,e){if(!t)return this;const n=new k.window.Image;return yt(n,"load",(function(t){const r=this.parent(Ht);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Ht&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),yt(n,"load error",(function(){vt(n)})),this.attr("href",n.src=t,N)}}var Yt;Yt=function(t,e,n){return"fill"!==t&&"stroke"!==t||$.test(e)&&(e=n.root().defs().image(e)),e instanceof Xt&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},St.push(Yt),l({Container:{image:B((function(t,e){return this.put(new Xt).size(0,0).load(t,e)}))}}),j(Xt,"Image");class $t extends _t{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 at(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(Q).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){it.isMatrixLike(t)||(t=new it(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 Qt=$t;function Zt(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Jt(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function Kt(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function te(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class ee extends Ot{constructor(t,e=t){super(T("line",t),e)}array(){return new $t([[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 $t(t).toLine(),this.attr(t))}size(t,e){const n=g(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}I(ee,i),l({Container:{line:B((function(...t){return ee.prototype.plot.apply(this.put(new ee),null!=t[0]?t:[0,0,0,0])}))}}),j(ee,"Line");class ne extends Et{constructor(t,e=t){super(T("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 re(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}l({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:B((function(t,e,n){return this.put(new ne).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 ne?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),j(ne,"Marker");const ie={"-":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 se{done(){return!1}}class oe extends se{constructor(t=">"){super(),this.ease=ie[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class ae extends se{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ue(){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}I(class extends ae{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:re("_duration",ue),overshoot:re("_overshoot",ue)}),I(class extends ae{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:re("_windup"),p:re("P"),i:re("I"),d:re("D")});const he={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},le={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]]}},ce="mlhvqtcsaz".split("");for(let t=0,e=ce.length;t<e;++t)le[ce[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 le[t](e,n,r)}}(ce[t].toUpperCase());function fe(t){return t.segment.length&&t.segment.length-1===he[t.segment[0].toUpperCase()]}function de(t,e){t.inNumber&&pe(t,!1);const n=Z.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 pe(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,fe(t)&&me(t)}function me(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return le[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function ge(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 ye(t){return"E"===t.lastToken.toUpperCase()}const ve=new Set([" ",",","\t","\n","\r","\f"]);class we extends _t{bbox(){return st().path.setAttribute("d",this.toString()),new at(st.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 nt,p:new nt};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!de(i,r))if("."!==r)if(isNaN(parseInt(r)))if(ve.has(r))i.inNumber&&pe(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Z.test(r)){if(i.inNumber)pe(i,!1);else{if(!fe(i))throw new Error("parser Error");me(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!ye(i)){pe(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||ge(i)){i.inNumber=!0,i.number=r,pe(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){pe(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&pe(i,!1),i.inSegment&&fe(i)&&me(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 be=t=>{const e=typeof t;return"number"===e?Nt:"string"===e?et.isColor(t)?et:Q.test(t)?Z.test(t)?we:_t:R.test(t)?Nt:_e:Me.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?_t:"object"===e?Se:_e};class xe{constructor(t){this._stepper=t||new oe("-"),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(be(t));let e=new this._type(t);return this._type===et&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Se&&(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 _e{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 Ne{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,Ne.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Ne.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const ke=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Se{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]===et&&t[n+7]!==e[n+7]){const e=t[n+7],r=new et(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=be(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(ke),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 Me=[_e,Ne,Se];class Ce extends Ot{constructor(t,e=t){super(T("path",t),e)}array(){return this._array||(this._array=new we(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 we(t))}size(t,e){const n=g(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 Ae(){return this._array||(this._array=new $t(this.attr("points")))}function Ee(){return delete this._array,this}function Te(t,e){return this.attr("points",this.array().move(t,e))}function Oe(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new $t(t))}function Le(t,e){const n=g(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}Ce.prototype.MorphArray=we,l({Container:{path:B((function(t){return this.put(new Ce).plot(t||new we)}))}}),j(Ce,"Path");class je extends Ot{constructor(t,e=t){super(T("polygon",t),e)}}l({Container:{polygon:B((function(t){return this.put(new je).plot(t||new $t)}))}}),I(je,i),I(je,s),j(je,"Polygon");class We extends Ot{constructor(t,e=t){super(T("polyline",t),e)}}l({Container:{polyline:B((function(t){return this.put(new We).plot(t||new $t)}))}}),I(We,i),I(We,s),j(We,"Polyline");class Pe extends Ot{constructor(t,e=t){super(T("rect",t),e)}}I(Pe,{rx:Lt,ry:jt}),l({Container:{rect:B((function(t,e){return this.put(new Pe).size(t,e)}))}}),j(Pe,"Rect");class De{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 Ie={nextDraw:null,frames:new De,timeouts:new De,immediates:new De,timer:()=>k.window.performance||k.window.Date,transforms:[],frame(t){const e=Ie.frames.push({run:t});return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),e},timeout(t,e){e=e||0;const n=Ie.timer().now()+e,r=Ie.timeouts.push({run:t,time:n});return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),r},immediate(t){const e=Ie.immediates.push(t);return null===Ie.nextDraw&&(Ie.nextDraw=k.window.requestAnimationFrame(Ie._draw)),e},cancelFrame(t){null!=t&&Ie.frames.remove(t)},clearTimeout(t){null!=t&&Ie.timeouts.remove(t)},cancelImmediate(t){null!=t&&Ie.immediates.remove(t)},_draw(t){let e=null;const n=Ie.timeouts.last();for(;(e=Ie.timeouts.shift())&&(t>=e.time?e.run():Ie.timeouts.push(e),e!==n););let r=null;const i=Ie.frames.last();for(;r!==i&&(r=Ie.frames.shift());)r.run(t);let s=null;for(;s=Ie.immediates.shift();)s();Ie.nextDraw=Ie.timeouts.first()||Ie.frames.first()?k.window.requestAnimationFrame(Ie._draw):null}},Be=Ie,Re=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},ze=function(){const t=k.window;return(t.performance||t.Date).now()};class Fe extends wt{constructor(t=ze){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(Re);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 Be.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=Be.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)}}l({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Fe,this._timeline):(this._timeline=t,this)}}});class qe extends wt{constructor(t){super(),this.id=qe.id++,t="function"==typeof(t=null==t?400:t)?new ae(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof ae,this._stepper=this._isDeclarative?t:new oe,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new it,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 se||(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=qe.sanitise(t,e,n),i=new qe(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 it,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 oe(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)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?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||bt,runner:e||bt,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 Fe||(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 it,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}}qe.id=0;class Ue{constructor(t=new it,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}I([qe,Ue],{mergeWith(t){return new Ue(t.transforms.lmultiply(this.transforms),t.id)}});const Ve=(t,e)=>t.lmultiplyO(e),Ge=t=>t.transforms;function He(){const t=this._transformationRunners.runners.map(Ge).reduce(Ve,new it);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class Xe{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 Ue).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}}l({Element:{animate(t,e,n){const r=qe.sanitise(t,e,n),i=this.timeline();return new qe(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(Ge).reduce(Ve,new it)},_addRunner(t){this._transformationRunners.add(t),Be.cancelImmediate(this._frameId),this._frameId=Be.immediate(He.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new Xe).add(new Ue(new it(this))))}}}),I(qe,{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 xe(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 Se(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Se(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new xe(this._stepper).to(new Nt(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=it.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new xe(this._stepper).type(n?Ne:it);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||y(t,o),h=new it(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new nt(s).transform(o._currentTransform(this));let d=new it({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new it(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=y(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 Nt(e),this._tryRetarget(t,e))return this;const n=new xe(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 Nt(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new xe(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 Nt(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 xe(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 at(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)}}),I(qe,{rx:Lt,ry:jt,from:Ut,to:Vt}),j(qe,"Runner");class Ye extends Et{constructor(t,e=t){super(T("svg",t),e),this.namespace()}defs(){return this.isRoot()?O(this.node.querySelector("defs"))||this.put(new Tt):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof k.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:x,version:"1.1"}).attr("xmlns:xlink",N,_):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,_).attr("xmlns:svgjs",null,_)}root(){return this.isRoot()?this:super.root()}}l({Container:{nested:B((function(){return this.put(new Ye)}))}}),j(Ye,"Svg",!0);class $e extends Et{constructor(t,e=t){super(T("symbol",t),e)}}function Qe(t){return!1===this._build&&this.clear(),this.node.appendChild(k.document.createTextNode(t)),this}function Ze(){return this.node.getComputedTextLength()}function Je(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function Ke(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function tn(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function en(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function nn(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function rn(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function sn(t){return this.attr("x",t)}function on(t){return this.attr("y",t)}function an(t,e){return this.ax(t).ay(e)}function un(t){return this._build=!!t,this}l({Container:{symbol:B((function(){return this.put(new $e)}))}}),j($e,"Symbol");class hn extends Ot{constructor(t,e=t){super(T("text",t),e),this.dom.leading=this.dom.leading??new Nt(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Nt(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(w(this.node))return;const i=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new Nt(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 Nt(t.leading||1.3),this}writeDataToDom(){return b(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||w(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===O(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()}}I(hn,o),l({Container:{text:B((function(t=""){return this.put(new hn).text(t)})),plain:B((function(t=""){return this.put(new hn).plain(t)}))}}),j(hn,"Text");class ln extends Ot{constructor(t,e=t){super(T("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 hn))return this;const e=t.index(this),n=k.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new Nt(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)}}I(ln,o),l({Tspan:{tspan:B((function(t=""){const e=new ln;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),j(ln,"Tspan");class cn extends Ot{constructor(t,e=t){super(T("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 Nt(t).divide(2))}}I(cn,{x:Wt,y:Pt,cx:Dt,cy:It,width:Bt,height:Rt}),l({Container:{circle:B((function(t=0){return this.put(new cn).size(t).move(0,0)}))}}),j(cn,"Circle");class fn extends Et{constructor(t,e=t){super(T("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return ft("svg [clip-path*="+this.id()+"]")}}l({Container:{clip:B((function(){return this.defs().put(new fn)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof fn?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),j(fn,"ClipPath");class dn extends Ct{constructor(t,e=t){super(T("foreignObject",t),e)}}function pn(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof k.window.SVGSVGElement?new at(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new it(n),s=i.translate(t,e).transform(i.inverse()),o=new nt(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function mn(t){return this.dmove(t,0)}function gn(t){return this.dmove(0,t)}function yn(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function vn(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function wn(t,e,n=this.bbox()){const r=g(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new nt(n).transform(new it(t).inverse());t.scale(i,s,e.x,e.y)})),this}function bn(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function xn(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function _n(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}l({Container:{foreignObject:B((function(t,e){return this.put(new dn).size(t,e)}))}}),j(dn,"ForeignObject");class Nn extends Et{constructor(t,e=t){super(T("g",t),e)}}I(Nn,a),l({Container:{group:B((function(){return this.put(new Nn)}))}}),j(Nn,"G");class kn extends Et{constructor(t,e=t){super(T("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,N)}}I(kn,a),l({Container:{link:B((function(t){return this.put(new kn).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 kn,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}}}),j(kn,"A");class Sn extends Et{constructor(t,e=t){super(T("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return ft("svg [mask*="+this.id()+"]")}}l({Container:{mask:B((function(){return this.defs().put(new Sn)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Sn?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),j(Sn,"Mask");class Mn extends Ct{constructor(t,e=t){super(T("stop",t),e)}update(t){return("number"==typeof t||t instanceof Nt)&&(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 Nt(t.offset)),this}}l({Gradient:{stop:function(t,e,n){return this.put(new Mn).update(t,e,n)}}}),j(Mn,"Stop");class Cn extends Ct{constructor(t,e=t){super(T("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))}}l("Dom",{style(t,e){return this.put(new Cn).rule(t,e)},fontface(t,e,n){return this.put(new Cn).font(t,e,n)}}),j(Cn,"Style");class An extends hn{constructor(t,e=t){super(T("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")}}l({Container:{textPath:B((function(t,e){return t instanceof hn||(t=this.text(t)),t.path(e)}))},Text:{path:B((function(t,e=!0){const n=new An;let r;if(t instanceof Ce||(t=this.defs().path(t)),n.attr("href","#"+t,N),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:B((function(t){return t instanceof hn||(t=(new hn).addTo(this.parent()).text(t)),t.path(this)})),targets(){return ft("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),An.prototype.MorphArray=we,j(An,"TextPath");class En extends Ot{constructor(t,e=t){super(T("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,N)}}l({Container:{use:B((function(t,e){return this.put(new En).use(t,e)}))}}),j(En,"Use"),I([Ye,$e,Xt,Ht,ne],c("viewbox")),I([ee,We,je,Ce],c("marker")),I(hn,c("Text")),I(Ce,c("Path")),I(Tt,c("Defs")),I([hn,ln],c("Tspan")),I([Pe,zt,Gt,qe],c("radius")),I(wt,c("EventTarget")),I(Mt,c("Dom")),I(Ct,c("Element")),I(Ot,c("Shape")),I([Et,qt],c("Container")),I(Gt,c("Gradient")),I(qe,c("Runner")),lt.extend([...new Set(h)]),function(t=[]){Me.push(...[].concat(t))}([Nt,et,at,it,_t,$t,we,nt]),I(Me,{to(t){return(new xe).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 Tn=n(726),On=n(854),Ln=n(731),jn=n(986);class Wn{static create(t){let e=document.createElementNS("http://www.w3.org/2000/svg","text");e.textContent=t;let n=new Wn(e);return n.assignUUID(),n.setAttributes(Wn.defaultAttributes),n}static deserialized(t,e){var n;if(!(0,On.isNonNullObject)(t))throw new Error("Saved base must be an object.");let r=null!==(n=t.id)&&void 0!==n?n:t.textId;if(!r)throw new Error("Missing base ID.");if(!(0,On.isString)(r))throw new Error("Base IDs must be strings.");let i=e.domNode.querySelector("#"+r);if(!i)throw new Error("Unable to find nucleobase DOM node.");if(!(i instanceof SVGTextElement))throw new Error("Nucleobase DOM node must be an SVG text element.");return new Wn(i)}constructor(t){this.domNode=t,this.centerPoint=new Ln.CenterPoint(t)}serialized(){if(!this.id)throw new Error("Nucleobase ID is falsy.");return{id:this.id}}appendTo(t){t.appendChild(this.domNode)}remove(){this.domNode.remove()}isIn(t){return t.contains(this.domNode)&&t!==this.domNode}hasParent(){return!!this.domNode.parentNode}bringToFront(){(0,Tn.bringToFront)(this.domNode)}sendToBack(){(0,Tn.sendToBack)(this.domNode)}getAttribute(t){return this.domNode.getAttribute(t)}setAttribute(t,e){this.domNode.setAttribute(t,e)}setAttributes(t){try{new hn(this.domNode).attr(t)}catch(t){}}get id(){return this.domNode.id}assignUUID(){(0,Tn.assignUUID)(this.domNode)}get textContent(){return this.domNode.textContent}set textContent(t){this.domNode.textContent=t}isA(){var t;return"A"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isU(){var t;return"U"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isT(){var t;return"T"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isG(){var t;return"G"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}isC(){var t;return"C"===(null===(t=this.textContent)||void 0===t?void 0:t.toUpperCase())}get bbox(){return this.domNode.getBBox()}getCenterPoint(){return this.centerPoint}setCenterPoint(t){this.centerPoint.x=t.x,this.centerPoint.y=t.y}maintainingCenterPoint(t){let{x:e,y:n}=this.centerPoint;t(),this.centerPoint.x=e,this.centerPoint.y=n}get boundingClientRect(){return this.domNode.getBoundingClientRect()}get clientCenterPoint(){let t=this.domNode.getBoundingClientRect();return{x:(0,jn.mean)([t.left,t.right]),y:(0,jn.mean)([t.top,t.bottom])}}getClientCenterPoint(){return this.clientCenterPoint}}Wn.defaultAttributes={"font-family":"Arial","font-size":"9","font-weight":"700"},Wn.defaultAttributeNames=["font-family","font-size","font-weight"];class Pn{constructor(t,e){this.base1=t,this.base2=e}[Symbol.iterator](){return[this.base1,this.base2].values()}isAU(){return this.base1.isA()&&this.base2.isU()||this.base1.isU()&&this.base2.isA()}isAT(){return this.base1.isA()&&this.base2.isT()||this.base1.isT()&&this.base2.isA()}isGC(){return this.base1.isG()&&this.base2.isC()||this.base1.isC()&&this.base2.isG()}isGU(){return this.base1.isG()&&this.base2.isU()||this.base1.isU()&&this.base2.isG()}isGT(){return this.base1.isG()&&this.base2.isT()||this.base1.isT()&&this.base2.isG()}}function Dn(t,e){let n=new Map;e.forEach(((t,e)=>n.set(t,e)));let r=[...t];return r.sort(((t,e)=>{var r,i;return(null!==(r=n.get(t))&&void 0!==r?r:-1)-(null!==(i=n.get(e))&&void 0!==i?i:-1)})),r}})(),r})(),t.exports=e()},401:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>d,Qs:()=>u,eB:()=>f,gP:()=>a,vM:()=>l,vw:()=>c,yZ:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.ANVAQUoGpnk43RSnGAKM {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RAWN5K2ehadscPWlBK_9 {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.RDvmUBCYTtjR2wzHlmxc .RAWN5K2ehadscPWlBK_9 {\n display: none;\n}\n\n.R1YlURzvulrm8_Yykjll {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.JuLTZXer4cr4ufASV85l {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.nJxPkvauzUEG66FC0ZAb {\n display: none;\n flex-direction: column;\n}\n',""]);var a="ANVAQUoGpnk43RSnGAKM",u="RAWN5K2ehadscPWlBK_9",h="RDvmUBCYTtjR2wzHlmxc",l="R1YlURzvulrm8_Yykjll",c="JuLTZXer4cr4ufASV85l",f="nJxPkvauzUEG66FC0ZAb";const d=o},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:()=>u,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-radius: 2px;\n\n border: none;\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 background-color: white;\n\n pointer-events: auto;\n}\n\n.cstoj4QoATbKp66WQrBA:focus {\n outline: none;\n}\n',""]);var a="cstoj4QoATbKp66WQrBA";const u=o},420:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,KQ:()=>a,UJ:()=>h,wx:()=>u});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.wkp2L4HpJzRg7XSLEG0O {\n width: 290px;\n height: 524px;\n\n overflow: auto;\n\n border-radius: 15px;\n\n border: 1px solid #cacae4;\n\n padding: 23px 16px 50px 36px;\n\n background-color: black;\n}\n\n.Y7tezdMOsnQfs2CQtMUR {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 31px;\n font-weight: 700;\n font-style: normal;\n color: white;\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 /**\n * Prevents unwanted movement of the vertical scrollbar\n * when elements are deselected and reselected.\n */\n min-height: 2200px;\n\n display: flex;\n flex-direction: column;\n align-items: start;\n\n pointer-events: none;\n}\n',""]);var a="wkp2L4HpJzRg7XSLEG0O",u="Y7tezdMOsnQfs2CQtMUR",h="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}},543:function(t,e,n){var r;t=n.nmd(t),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,h=128,l=1/0,c=9007199254740991,f=NaN,d=4294967295,p=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",y="[object Boolean]",v="[object Date]",w="[object Error]",b="[object Function]",x="[object GeneratorFunction]",_="[object Map]",N="[object Number]",k="[object Object]",S="[object Promise]",M="[object RegExp]",C="[object Set]",A="[object String]",E="[object Symbol]",T="[object WeakMap]",O="[object ArrayBuffer]",L="[object DataView]",j="[object Float32Array]",W="[object Float64Array]",P="[object Int8Array]",D="[object Int16Array]",I="[object Int32Array]",B="[object Uint8Array]",R="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",q=/\b__p \+= '';/g,U=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(G.source),Y=RegExp(H.source),$=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,K=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,it=/\s/,st=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ot=/\{\n\/\* \[wrapped with (.+)\] \*/,at=/,? & /,ut=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ht=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ct=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ft=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,pt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,gt=/^0o[0-7]+$/i,yt=/^(?:0|[1-9]\d*)$/,vt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wt=/($^)/,bt=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Nt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",St="A-Z\\xc0-\\xd6\\xd8-\\xde",Mt="\\ufe0e\\ufe0f",Ct="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",At="["+xt+"]",Et="["+Ct+"]",Tt="["+_t+"]",Ot="\\d+",Lt="["+Nt+"]",jt="["+kt+"]",Wt="[^"+xt+Ct+Ot+Nt+kt+St+"]",Pt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+xt+"]",It="(?:\\ud83c[\\udde6-\\uddff]){2}",Bt="[\\ud800-\\udbff][\\udc00-\\udfff]",Rt="["+St+"]",zt="\\u200d",Ft="(?:"+jt+"|"+Wt+")",qt="(?:"+Rt+"|"+Wt+")",Ut="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Gt="(?:"+Tt+"|"+Pt+")?",Ht="["+Mt+"]?",Xt=Ht+Gt+"(?:"+zt+"(?:"+[Dt,It,Bt].join("|")+")"+Ht+Gt+")*",Yt="(?:"+[Lt,It,Bt].join("|")+")"+Xt,$t="(?:"+[Dt+Tt+"?",Tt,It,Bt,At].join("|")+")",Qt=RegExp("['’]","g"),Zt=RegExp(Tt,"g"),Jt=RegExp(Pt+"(?="+Pt+")|"+$t+Xt,"g"),Kt=RegExp([Rt+"?"+jt+"+"+Ut+"(?="+[Et,Rt,"$"].join("|")+")",qt+"+"+Vt+"(?="+[Et,Rt+Ft,"$"].join("|")+")",Rt+"?"+Ft+"+"+Ut,Rt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ot,Yt].join("|"),"g"),te=RegExp("["+zt+xt+_t+Mt+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,ie={};ie[j]=ie[W]=ie[P]=ie[D]=ie[I]=ie[B]=ie[R]=ie[z]=ie[F]=!0,ie[m]=ie[g]=ie[O]=ie[y]=ie[L]=ie[v]=ie[w]=ie[b]=ie[_]=ie[N]=ie[k]=ie[M]=ie[C]=ie[A]=ie[T]=!1;var se={};se[m]=se[g]=se[O]=se[L]=se[y]=se[v]=se[j]=se[W]=se[P]=se[D]=se[I]=se[_]=se[N]=se[k]=se[M]=se[C]=se[A]=se[E]=se[B]=se[R]=se[z]=se[F]=!0,se[w]=se[b]=se[T]=!1;var oe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ae=parseFloat,ue=parseInt,he="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,ce=he||le||Function("return this")(),fe=e&&!e.nodeType&&e,de=fe&&t&&!t.nodeType&&t,pe=de&&de.exports===fe,me=pe&&he.process,ge=function(){try{return de&&de.require&&de.require("util").types||me&&me.binding&&me.binding("util")}catch(t){}}(),ye=ge&&ge.isArrayBuffer,ve=ge&&ge.isDate,we=ge&&ge.isMap,be=ge&&ge.isRegExp,xe=ge&&ge.isSet,_e=ge&&ge.isTypedArray;function Ne(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ke(t,e,n,r){for(var i=-1,s=null==t?0:t.length;++i<s;){var o=t[i];e(r,o,n(o),t)}return r}function Se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function Me(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Ce(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function Ae(t,e){for(var n=-1,r=null==t?0:t.length,i=0,s=[];++n<r;){var o=t[n];e(o,n,t)&&(s[i++]=o)}return s}function Ee(t,e){return!(null==t||!t.length)&&Re(t,e,0)>-1}function Te(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function Oe(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function Le(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function je(t,e,n,r){var i=-1,s=null==t?0:t.length;for(r&&s&&(n=t[++i]);++i<s;)n=e(n,t[i],i,t);return n}function We(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function Pe(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var De=Ue("length");function Ie(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function Be(t,e,n,r){for(var i=t.length,s=n+(r?1:-1);r?s--:++s<i;)if(e(t[s],s,t))return s;return-1}function Re(t,e,n){return e==e?function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):Be(t,Fe,n)}function ze(t,e,n,r){for(var i=n-1,s=t.length;++i<s;)if(r(t[i],e))return i;return-1}function Fe(t){return t!=t}function qe(t,e){var n=null==t?0:t.length;return n?He(t,e)/n:f}function Ue(t){return function(e){return null==e?i:e[t]}}function Ve(t){return function(e){return null==t?i:t[e]}}function Ge(t,e,n,r,i){return i(t,(function(t,i,s){n=r?(r=!1,t):e(n,t,i,s)})),n}function He(t,e){for(var n,r=-1,s=t.length;++r<s;){var o=e(t[r]);o!==i&&(n=n===i?o:n+o)}return n}function Xe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Ye(t){return t?t.slice(0,fn(t)+1).replace(rt,""):t}function $e(t){return function(e){return t(e)}}function Qe(t,e){return Oe(e,(function(e){return t[e]}))}function Ze(t,e){return t.has(e)}function Je(t,e){for(var n=-1,r=t.length;++n<r&&Re(e,t[n],0)>-1;);return n}function Ke(t,e){for(var n=t.length;n--&&Re(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+oe[t]}function rn(t){return te.test(t)}function sn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function on(t,e){return function(n){return t(e(n))}}function an(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n];o!==e&&o!==a||(t[n]=a,s[i++]=n)}return s}function un(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function hn(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function ln(t){return rn(t)?function(t){for(var e=Jt.lastIndex=0;Jt.test(t);)++e;return e}(t):De(t)}function cn(t){return rn(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.split("")}(t)}function fn(t){for(var e=t.length;e--&&it.test(t.charAt(e)););return e}var dn=Ve({"&":"&","<":"<",">":">",""":'"',"'":"'"}),pn=function t(e){var n,r=(e=null==e?ce:pn.defaults(ce.Object(),e,pn.pick(ce,ne))).Array,it=e.Date,xt=e.Error,_t=e.Function,Nt=e.Math,kt=e.Object,St=e.RegExp,Mt=e.String,Ct=e.TypeError,At=r.prototype,Et=_t.prototype,Tt=kt.prototype,Ot=e["__core-js_shared__"],Lt=Et.toString,jt=Tt.hasOwnProperty,Wt=0,Pt=(n=/[^.]+$/.exec(Ot&&Ot.keys&&Ot.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Tt.toString,It=Lt.call(kt),Bt=ce._,Rt=St("^"+Lt.call(jt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zt=pe?e.Buffer:i,Ft=e.Symbol,qt=e.Uint8Array,Ut=zt?zt.allocUnsafe:i,Vt=on(kt.getPrototypeOf,kt),Gt=kt.create,Ht=Tt.propertyIsEnumerable,Xt=At.splice,Yt=Ft?Ft.isConcatSpreadable:i,$t=Ft?Ft.iterator:i,Jt=Ft?Ft.toStringTag:i,te=function(){try{var t=us(kt,"defineProperty");return t({},"",{}),t}catch(t){}}(),oe=e.clearTimeout!==ce.clearTimeout&&e.clearTimeout,he=it&&it.now!==ce.Date.now&&it.now,le=e.setTimeout!==ce.setTimeout&&e.setTimeout,fe=Nt.ceil,de=Nt.floor,me=kt.getOwnPropertySymbols,ge=zt?zt.isBuffer:i,De=e.isFinite,Ve=At.join,mn=on(kt.keys,kt),gn=Nt.max,yn=Nt.min,vn=it.now,wn=e.parseInt,bn=Nt.random,xn=At.reverse,_n=us(e,"DataView"),Nn=us(e,"Map"),kn=us(e,"Promise"),Sn=us(e,"Set"),Mn=us(e,"WeakMap"),Cn=us(kt,"create"),An=Mn&&new Mn,En={},Tn=Ds(_n),On=Ds(Nn),Ln=Ds(kn),jn=Ds(Sn),Wn=Ds(Mn),Pn=Ft?Ft.prototype:i,Dn=Pn?Pn.valueOf:i,In=Pn?Pn.toString:i;function Bn(t){if(ta(t)&&!Uo(t)&&!(t instanceof qn)){if(t instanceof Fn)return t;if(jt.call(t,"__wrapped__"))return Is(t)}return new Fn(t)}var Rn=function(){function t(){}return function(e){if(!Ko(e))return{};if(Gt)return Gt(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function zn(){}function Fn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function qn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Un(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Vn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Gn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Hn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Gn;++e<n;)this.add(t[e])}function Xn(t){var e=this.__data__=new Vn(t);this.size=e.size}function Yn(t,e){var n=Uo(t),r=!n&&qo(t),i=!n&&!r&&Xo(t),s=!n&&!r&&!i&&ua(t),o=n||r||i||s,a=o?Xe(t.length,Mt):[],u=a.length;for(var h in t)!e&&!jt.call(t,h)||o&&("length"==h||i&&("offset"==h||"parent"==h)||s&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||ms(h,u))||a.push(h);return a}function $n(t){var e=t.length;return e?t[Gr(0,e-1)]:i}function Qn(t,e){return Os(Mi(t),sr(e,0,t.length))}function Zn(t){return Os(Mi(t))}function Jn(t,e,n){(n!==i&&!Ro(t[e],n)||n===i&&!(e in t))&&rr(t,e,n)}function Kn(t,e,n){var r=t[e];jt.call(t,e)&&Ro(r,n)&&(n!==i||e in t)||rr(t,e,n)}function tr(t,e){for(var n=t.length;n--;)if(Ro(t[n][0],e))return n;return-1}function er(t,e,n,r){return lr(t,(function(t,i,s){e(r,t,n(t),s)})),r}function nr(t,e){return t&&Ci(e,Ta(e),t)}function rr(t,e,n){"__proto__"==e&&te?te(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function ir(t,e){for(var n=-1,s=e.length,o=r(s),a=null==t;++n<s;)o[n]=a?i:Sa(t,e[n]);return o}function sr(t,e,n){return t==t&&(n!==i&&(t=t<=n?t:n),e!==i&&(t=t>=e?t:e)),t}function or(t,e,n,r,s,o){var a,u=1&e,h=2&e,l=4&e;if(n&&(a=s?n(t,r,s,o):n(t)),a!==i)return a;if(!Ko(t))return t;var c=Uo(t);if(c){if(a=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&jt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!u)return Mi(t,a)}else{var f=cs(t),d=f==b||f==x;if(Xo(t))return bi(t,u);if(f==k||f==m||d&&!s){if(a=h||d?{}:ds(t),!u)return h?function(t,e){return Ci(t,ls(t),e)}(t,function(t,e){return t&&Ci(e,Oa(e),t)}(a,t)):function(t,e){return Ci(t,hs(t),e)}(t,nr(a,t))}else{if(!se[f])return s?t:{};a=function(t,e,n){var r,i=t.constructor;switch(e){case O:return xi(t);case y:case v:return new i(+t);case L:return function(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case j:case W:case P:case D:case I:case B:case R:case z:case F:return _i(t,n);case _:return new i;case N:case A:return new i(t);case M:return function(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}(t);case C:return new i;case E:return r=t,Dn?kt(Dn.call(r)):{}}}(t,f,u)}}o||(o=new Xn);var p=o.get(t);if(p)return p;o.set(t,a),sa(t)?t.forEach((function(r){a.add(or(r,e,n,r,t,o))})):ea(t)&&t.forEach((function(r,i){a.set(i,or(r,e,n,i,t,o))}));var g=c?i:(l?h?es:ts:h?Oa:Ta)(t);return Se(g||t,(function(r,i){g&&(r=t[i=r]),Kn(a,i,or(r,e,n,i,t,o))})),a}function ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=kt(t);r--;){var s=n[r],o=e[s],a=t[s];if(a===i&&!(s in t)||!o(a))return!1}return!0}function ur(t,e,n){if("function"!=typeof t)throw new Ct(s);return Cs((function(){t.apply(i,n)}),e)}function hr(t,e,n,r){var i=-1,s=Ee,o=!0,a=t.length,u=[],h=e.length;if(!a)return u;n&&(e=Oe(e,$e(n))),r?(s=Te,o=!1):e.length>=200&&(s=Ze,o=!1,e=new Hn(e));t:for(;++i<a;){var l=t[i],c=null==n?l:n(l);if(l=r||0!==l?l:0,o&&c==c){for(var f=h;f--;)if(e[f]===c)continue t;u.push(l)}else s(e,c,r)||u.push(l)}return u}Bn.templateSettings={escape:$,evaluate:Q,interpolate:Z,variable:"",imports:{_:Bn}},Bn.prototype=zn.prototype,Bn.prototype.constructor=Bn,Fn.prototype=Rn(zn.prototype),Fn.prototype.constructor=Fn,qn.prototype=Rn(zn.prototype),qn.prototype.constructor=qn,Un.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Un.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Un.prototype.get=function(t){var e=this.__data__;if(Cn){var n=e[t];return n===o?i:n}return jt.call(e,t)?e[t]:i},Un.prototype.has=function(t){var e=this.__data__;return Cn?e[t]!==i:jt.call(e,t)},Un.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Cn&&e===i?o:e,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(t){var e=this.__data__,n=tr(e,t);return!(n<0||(n==e.length-1?e.pop():Xt.call(e,n,1),--this.size,0))},Vn.prototype.get=function(t){var e=this.__data__,n=tr(e,t);return n<0?i:e[n][1]},Vn.prototype.has=function(t){return tr(this.__data__,t)>-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(Nn||Vn),string:new Un}},Gn.prototype.delete=function(t){var e=os(this,t).delete(t);return this.size-=e?1:0,e},Gn.prototype.get=function(t){return os(this,t).get(t)},Gn.prototype.has=function(t){return os(this,t).has(t)},Gn.prototype.set=function(t,e){var n=os(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Hn.prototype.add=Hn.prototype.push=function(t){return this.__data__.set(t,o),this},Hn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Xn.prototype.get=function(t){return this.__data__.get(t)},Xn.prototype.has=function(t){return this.__data__.has(t)},Xn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Nn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(t,e),this.size=n.size,this};var lr=Ti(vr),cr=Ti(wr,!0);function fr(t,e){var n=!0;return lr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function dr(t,e,n){for(var r=-1,s=t.length;++r<s;){var o=t[r],a=e(o);if(null!=a&&(u===i?a==a&&!aa(a):n(a,u)))var u=a,h=o}return h}function pr(t,e){var n=[];return lr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function mr(t,e,n,r,i){var s=-1,o=t.length;for(n||(n=ps),i||(i=[]);++s<o;){var a=t[s];e>0&&n(a)?e>1?mr(a,e-1,n,r,i):Le(i,a):r||(i[i.length]=a)}return i}var gr=Oi(),yr=Oi(!0);function vr(t,e){return t&&gr(t,e,Ta)}function wr(t,e){return t&&yr(t,e,Ta)}function br(t,e){return Ae(e,(function(e){return Qo(t[e])}))}function xr(t,e){for(var n=0,r=(e=gi(e,t)).length;null!=t&&n<r;)t=t[Ps(e[n++])];return n&&n==r?t:i}function _r(t,e,n){var r=e(t);return Uo(t)?r:Le(r,n(t))}function Nr(t){return null==t?t===i?"[object Undefined]":"[object Null]":Jt&&Jt in kt(t)?function(t){var e=jt.call(t,Jt),n=t[Jt];try{t[Jt]=i;var r=!0}catch(t){}var s=Dt.call(t);return r&&(e?t[Jt]=n:delete t[Jt]),s}(t):function(t){return Dt.call(t)}(t)}function kr(t,e){return t>e}function Sr(t,e){return null!=t&&jt.call(t,e)}function Mr(t,e){return null!=t&&e in kt(t)}function Cr(t,e,n){for(var s=n?Te:Ee,o=t[0].length,a=t.length,u=a,h=r(a),l=1/0,c=[];u--;){var f=t[u];u&&e&&(f=Oe(f,$e(e))),l=yn(f.length,l),h[u]=!n&&(e||o>=120&&f.length>=120)?new Hn(u&&f):i}f=t[0];var d=-1,p=h[0];t:for(;++d<o&&c.length<l;){var m=f[d],g=e?e(m):m;if(m=n||0!==m?m:0,!(p?Ze(p,g):s(c,g,n))){for(u=a;--u;){var y=h[u];if(!(y?Ze(y,g):s(t[u],g,n)))continue t}p&&p.push(g),c.push(m)}}return c}function Ar(t,e,n){var r=null==(t=ks(t,e=gi(e,t)))?t:t[Ps(Ys(e))];return null==r?i:Ne(r,t,n)}function Er(t){return ta(t)&&Nr(t)==m}function Tr(t,e,n,r,s){return t===e||(null==t||null==e||!ta(t)&&!ta(e)?t!=t&&e!=e:function(t,e,n,r,s,o){var a=Uo(t),u=Uo(e),h=a?g:cs(t),l=u?g:cs(e),c=(h=h==m?k:h)==k,f=(l=l==m?k:l)==k,d=h==l;if(d&&Xo(t)){if(!Xo(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Xn),a||ua(t)?Ji(t,e,n,r,s,o):function(t,e,n,r,i,s,o){switch(n){case L:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case O:return!(t.byteLength!=e.byteLength||!s(new qt(t),new qt(e)));case y:case v:case N:return Ro(+t,+e);case w:return t.name==e.name&&t.message==e.message;case M:case A:return t==e+"";case _:var a=sn;case C:var u=1&r;if(a||(a=un),t.size!=e.size&&!u)return!1;var h=o.get(t);if(h)return h==e;r|=2,o.set(t,e);var l=Ji(a(t),a(e),r,i,s,o);return o.delete(t),l;case E:if(Dn)return Dn.call(t)==Dn.call(e)}return!1}(t,e,h,n,r,s,o);if(!(1&n)){var p=c&&jt.call(t,"__wrapped__"),b=f&&jt.call(e,"__wrapped__");if(p||b){var x=p?t.value():t,S=b?e.value():e;return o||(o=new Xn),s(x,S,n,r,o)}}return!!d&&(o||(o=new Xn),function(t,e,n,r,s,o){var a=1&n,u=ts(t),h=u.length;if(h!=ts(e).length&&!a)return!1;for(var l=h;l--;){var c=u[l];if(!(a?c in e:jt.call(e,c)))return!1}var f=o.get(t),d=o.get(e);if(f&&d)return f==e&&d==t;var p=!0;o.set(t,e),o.set(e,t);for(var m=a;++l<h;){var g=t[c=u[l]],y=e[c];if(r)var v=a?r(y,g,c,e,t,o):r(g,y,c,t,e,o);if(!(v===i?g===y||s(g,y,n,r,o):v)){p=!1;break}m||(m="constructor"==c)}if(p&&!m){var w=t.constructor,b=e.constructor;w==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,s,o))}(t,e,n,r,Tr,s))}function Or(t,e,n,r){var s=n.length,o=s,a=!r;if(null==t)return!o;for(t=kt(t);s--;){var u=n[s];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++s<o;){var h=(u=n[s])[0],l=t[h],c=u[1];if(a&&u[2]){if(l===i&&!(h in t))return!1}else{var f=new Xn;if(r)var d=r(l,c,h,t,e,f);if(!(d===i?Tr(c,l,3,r,f):d))return!1}}return!0}function Lr(t){return!(!Ko(t)||(e=t,Pt&&Pt in e))&&(Qo(t)?Rt:mt).test(Ds(t));var e}function jr(t){return"function"==typeof t?t:null==t?nu:"object"==typeof t?Uo(t)?Br(t[0],t[1]):Ir(t):cu(t)}function Wr(t){if(!bs(t))return mn(t);var e=[];for(var n in kt(t))jt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Pr(t,e){return t<e}function Dr(t,e){var n=-1,i=Go(t)?r(t.length):[];return lr(t,(function(t,r,s){i[++n]=e(t,r,s)})),i}function Ir(t){var e=as(t);return 1==e.length&&e[0][2]?_s(e[0][0],e[0][1]):function(n){return n===t||Or(n,t,e)}}function Br(t,e){return ys(t)&&xs(e)?_s(Ps(t),e):function(n){var r=Sa(n,t);return r===i&&r===e?Ma(n,t):Tr(e,r,3)}}function Rr(t,e,n,r,s){t!==e&&gr(e,(function(o,a){if(s||(s=new Xn),Ko(o))!function(t,e,n,r,s,o,a){var u=Ss(t,n),h=Ss(e,n),l=a.get(h);if(l)Jn(t,n,l);else{var c=o?o(u,h,n+"",t,e,a):i,f=c===i;if(f){var d=Uo(h),p=!d&&Xo(h),m=!d&&!p&&ua(h);c=h,d||p||m?Uo(u)?c=u:Ho(u)?c=Mi(u):p?(f=!1,c=bi(h,!0)):m?(f=!1,c=_i(h,!0)):c=[]:ra(h)||qo(h)?(c=u,qo(u)?c=ga(u):Ko(u)&&!Qo(u)||(c=ds(h))):f=!1}f&&(a.set(h,c),s(c,h,r,o,a),a.delete(h)),Jn(t,n,c)}}(t,e,a,n,Rr,r,s);else{var u=r?r(Ss(t,a),o,a+"",t,e,s):i;u===i&&(u=o),Jn(t,a,u)}}),Oa)}function zr(t,e){var n=t.length;if(n)return ms(e+=e<0?n:0,n)?t[e]:i}function Fr(t,e,n){e=e.length?Oe(e,(function(t){return Uo(t)?function(e){return xr(e,1===t.length?t[0]:t)}:t})):[nu];var r=-1;e=Oe(e,$e(ss()));var i=Dr(t,(function(t,n,i){var s=Oe(e,(function(e){return e(t)}));return{criteria:s,index:++r,value:t}}));return function(t){var e=t.length;for(t.sort((function(t,e){return function(t,e,n){for(var r=-1,i=t.criteria,s=e.criteria,o=i.length,a=n.length;++r<o;){var u=Ni(i[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));e--;)t[e]=t[e].value;return t}(i)}function qr(t,e,n){for(var r=-1,i=e.length,s={};++r<i;){var o=e[r],a=xr(t,o);n(a,o)&&Qr(s,gi(o,t),a)}return s}function Ur(t,e,n,r){var i=r?ze:Re,s=-1,o=e.length,a=t;for(t===e&&(e=Mi(e)),n&&(a=Oe(t,$e(n)));++s<o;)for(var u=0,h=e[s],l=n?n(h):h;(u=i(a,l,u,r))>-1;)a!==t&&Xt.call(a,u,1),Xt.call(t,u,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==s){var s=i;ms(i)?Xt.call(t,i,1):ui(t,i)}}return t}function Gr(t,e){return t+de(bn()*(e-t+1))}function Hr(t,e){var n="";if(!t||e<1||e>c)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Xr(t,e){return As(Ns(t,e,nu),t+"")}function Yr(t){return $n(Ra(t))}function $r(t,e){var n=Ra(t);return Os(n,sr(e,0,n.length))}function Qr(t,e,n,r){if(!Ko(t))return t;for(var s=-1,o=(e=gi(e,t)).length,a=o-1,u=t;null!=u&&++s<o;){var h=Ps(e[s]),l=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(s!=a){var c=u[h];(l=r?r(c,h,u):i)===i&&(l=Ko(c)?c:ms(e[s+1])?[]:{})}Kn(u,h,l),u=u[h]}return t}var Zr=An?function(t,e){return An.set(t,e),t}:nu,Jr=te?function(t,e){return te(t,"toString",{configurable:!0,enumerable:!1,value:Ka(e),writable:!0})}:nu;function Kr(t){return Os(Ra(t))}function ti(t,e,n){var i=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var o=r(s);++i<s;)o[i]=t[i+e];return o}function ei(t,e){var n;return lr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function ni(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=t[s];null!==o&&!aa(o)&&(n?o<=e:o<e)?r=s+1:i=s}return i}return ri(t,e,nu,n)}function ri(t,e,n,r){var s=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,u=null===e,h=aa(e),l=e===i;s<o;){var c=de((s+o)/2),f=n(t[c]),d=f!==i,p=null===f,m=f==f,g=aa(f);if(a)var y=r||m;else y=l?m&&(r||d):u?m&&d&&(r||!p):h?m&&d&&!p&&(r||!g):!p&&!g&&(r?f<=e:f<e);y?s=c+1:o=c}return yn(o,4294967294)}function ii(t,e){for(var n=-1,r=t.length,i=0,s=[];++n<r;){var o=t[n],a=e?e(o):o;if(!n||!Ro(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function si(t){return"number"==typeof t?t:aa(t)?f:+t}function oi(t){if("string"==typeof t)return t;if(Uo(t))return Oe(t,oi)+"";if(aa(t))return In?In.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function ai(t,e,n){var r=-1,i=Ee,s=t.length,o=!0,a=[],u=a;if(n)o=!1,i=Te;else if(s>=200){var h=e?null:Hi(t);if(h)return un(h);o=!1,i=Ze,u=new Hn}else u=e?[]:a;t:for(;++r<s;){var l=t[r],c=e?e(l):l;if(l=n||0!==l?l:0,o&&c==c){for(var f=u.length;f--;)if(u[f]===c)continue t;e&&u.push(c),a.push(l)}else i(u,c,n)||(u!==a&&u.push(c),a.push(l))}return a}function ui(t,e){return null==(t=ks(t,e=gi(e,t)))||delete t[Ps(Ys(e))]}function hi(t,e,n,r){return Qr(t,e,n(xr(t,e)),r)}function li(t,e,n,r){for(var i=t.length,s=r?i:-1;(r?s--:++s<i)&&e(t[s],s,t););return n?ti(t,r?0:s,r?s+1:i):ti(t,r?s+1:0,r?i:s)}function ci(t,e){var n=t;return n instanceof qn&&(n=n.value()),je(e,(function(t,e){return e.func.apply(e.thisArg,Le([t],e.args))}),n)}function fi(t,e,n){var i=t.length;if(i<2)return i?ai(t[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=t[s],u=-1;++u<i;)u!=s&&(o[s]=hr(o[s]||a,t[u],e,n));return ai(mr(o,1),e,n)}function di(t,e,n){for(var r=-1,s=t.length,o=e.length,a={};++r<s;){var u=r<o?e[r]:i;n(a,t[r],u)}return a}function pi(t){return Ho(t)?t:[]}function mi(t){return"function"==typeof t?t:nu}function gi(t,e){return Uo(t)?t:ys(t,e)?[t]:Ws(ya(t))}var yi=Xr;function vi(t,e,n){var r=t.length;return n=n===i?r:n,!e&&n>=r?t:ti(t,e,n)}var wi=oe||function(t){return ce.clearTimeout(t)};function bi(t,e){if(e)return t.slice();var n=t.length,r=Ut?Ut(n):new t.constructor(n);return t.copy(r),r}function xi(t){var e=new t.constructor(t.byteLength);return new qt(e).set(new qt(t)),e}function _i(t,e){var n=e?xi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Ni(t,e){if(t!==e){var n=t!==i,r=null===t,s=t==t,o=aa(t),a=e!==i,u=null===e,h=e==e,l=aa(e);if(!u&&!l&&!o&&t>e||o&&a&&h&&!u&&!l||r&&a&&h||!n&&h||!s)return 1;if(!r&&!o&&!l&&t<e||l&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!h)return-1}return 0}function ki(t,e,n,i){for(var s=-1,o=t.length,a=n.length,u=-1,h=e.length,l=gn(o-a,0),c=r(h+l),f=!i;++u<h;)c[u]=e[u];for(;++s<a;)(f||s<o)&&(c[n[s]]=t[s]);for(;l--;)c[u++]=t[s++];return c}function Si(t,e,n,i){for(var s=-1,o=t.length,a=-1,u=n.length,h=-1,l=e.length,c=gn(o-u,0),f=r(c+l),d=!i;++s<c;)f[s]=t[s];for(var p=s;++h<l;)f[p+h]=e[h];for(;++a<u;)(d||s<o)&&(f[p+n[a]]=t[s++]);return f}function Mi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function Ci(t,e,n,r){var s=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],h=r?r(n[u],t[u],u,n,t):i;h===i&&(h=t[u]),s?rr(n,u,h):Kn(n,u,h)}return n}function Ai(t,e){return function(n,r){var i=Uo(n)?ke:er,s=e?e():{};return i(n,t,ss(r,2),s)}}function Ei(t){return Xr((function(e,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(s--,o):i,a&&gs(n[0],n[1],a)&&(o=s<3?i:o,s=1),e=kt(e);++r<s;){var u=n[r];u&&t(e,u,r,o)}return e}))}function Ti(t,e){return function(n,r){if(null==n)return n;if(!Go(n))return t(n,r);for(var i=n.length,s=e?i:-1,o=kt(n);(e?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function Oi(t){return function(e,n,r){for(var i=-1,s=kt(e),o=r(e),a=o.length;a--;){var u=o[t?a:++i];if(!1===n(s[u],u,s))break}return e}}function Li(t){return function(e){var n=rn(e=ya(e))?cn(e):i,r=n?n[0]:e.charAt(0),s=n?vi(n,1).join(""):e.slice(1);return r[t]()+s}}function ji(t){return function(e){return je(Qa(qa(e).replace(Qt,"")),t,"")}}function Wi(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=Rn(t.prototype),r=t.apply(n,e);return Ko(r)?r:n}}function Pi(t){return function(e,n,r){var s=kt(e);if(!Go(e)){var o=ss(n,3);e=Ta(e),n=function(t){return o(s[t],t,s)}}var a=t(e,n,r);return a>-1?s[o?e[a]:a]:i}}function Di(t){return Ki((function(e){var n=e.length,r=n,o=Fn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new Ct(s);if(o&&!u&&"wrapper"==rs(a))var u=new Fn([],!0)}for(r=u?r:n;++r<n;){var h=rs(a=e[r]),l="wrapper"==h?ns(a):i;u=l&&vs(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[rs(l[0])].apply(u,l[3]):1==a.length&&vs(a)?u[h]():u.thru(a)}return function(){var t=arguments,r=t[0];if(u&&1==t.length&&Uo(r))return u.plant(r).value();for(var i=0,s=n?e[i].apply(this,t):r;++i<n;)s=e[i].call(this,s);return s}}))}function Ii(t,e,n,s,o,a,u,l,c,f){var d=e&h,p=1&e,m=2&e,g=24&e,y=512&e,v=m?i:Wi(t);return function h(){for(var w=arguments.length,b=r(w),x=w;x--;)b[x]=arguments[x];if(g)var _=is(h),N=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}(b,_);if(s&&(b=ki(b,s,o,g)),a&&(b=Si(b,a,u,g)),w-=N,g&&w<f){var k=an(b,_);return Vi(t,e,Ii,h.placeholder,n,b,k,l,c,f-w)}var S=p?n:this,M=m?S[t]:t;return w=b.length,l?b=function(t,e){for(var n=t.length,r=yn(e.length,n),s=Mi(t);r--;){var o=e[r];t[r]=ms(o,n)?s[o]:i}return t}(b,l):y&&w>1&&b.reverse(),d&&c<w&&(b.length=c),this&&this!==ce&&this instanceof h&&(M=v||Wi(M)),M.apply(S,b)}}function Bi(t,e){return function(n,r){return function(t,e,n,r){return vr(t,(function(t,i,s){e(r,n(t),i,s)})),r}(n,t,e(r),{})}}function Ri(t,e){return function(n,r){var s;if(n===i&&r===i)return e;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=oi(n),r=oi(r)):(n=si(n),r=si(r)),s=t(n,r)}return s}}function zi(t){return Ki((function(e){return e=Oe(e,$e(ss())),Xr((function(n){var r=this;return t(e,(function(t){return Ne(t,r,n)}))}))}))}function Fi(t,e){var n=(e=e===i?" ":oi(e)).length;if(n<2)return n?Hr(e,t):e;var r=Hr(e,fe(t/ln(e)));return rn(e)?vi(cn(r),0,t).join(""):r.slice(0,t)}function qi(t){return function(e,n,s){return s&&"number"!=typeof s&&gs(e,n,s)&&(n=s=i),e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n,i){for(var s=-1,o=gn(fe((e-t)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=t,t+=n;return a}(e,n,s=s===i?e<n?1:-1:fa(s),t)}}function Ui(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=ma(e),n=ma(n)),t(e,n)}}function Vi(t,e,n,r,s,o,a,h,l,c){var f=8&e;e|=f?u:64,4&(e&=~(f?64:u))||(e&=-4);var d=[t,e,s,f?o:i,f?a:i,f?i:o,f?i:a,h,l,c],p=n.apply(i,d);return vs(t)&&Ms(p,d),p.placeholder=r,Es(p,t,e)}function Gi(t){var e=Nt[t];return function(t,n){if(t=ma(t),(n=null==n?0:yn(da(n),292))&&De(t)){var r=(ya(t)+"e").split("e");return+((r=(ya(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Hi=Sn&&1/un(new Sn([,-0]))[1]==l?function(t){return new Sn(t)}:au;function Xi(t){return function(e){var n=cs(e);return n==_?sn(e):n==C?hn(e):function(t,e){return Oe(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function Yi(t,e,n,o,l,c,f,d){var p=2&e;if(!p&&"function"!=typeof t)throw new Ct(s);var m=o?o.length:0;if(m||(e&=-97,o=l=i),f=f===i?f:gn(da(f),0),d=d===i?d:da(d),m-=l?l.length:0,64&e){var g=o,y=l;o=l=i}var v=p?i:ns(t),w=[t,e,n,o,l,g,y,c,f,d];if(v&&function(t,e){var n=t[1],r=e[1],i=n|r,s=i<131,o=r==h&&8==n||r==h&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!s&&!o)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?ki(l,u,e[4]):u,t[4]=l?an(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?Si(l,u,e[6]):u,t[6]=l?an(t[5],a):e[6]),(u=e[7])&&(t[7]=u),r&h&&(t[8]=null==t[8]?e[8]:yn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i}(w,v),t=w[0],e=w[1],n=w[2],o=w[3],l=w[4],!(d=w[9]=w[9]===i?p?0:t.length:gn(w[9]-m,0))&&24&e&&(e&=-25),e&&1!=e)b=8==e||16==e?function(t,e,n){var s=Wi(t);return function o(){for(var a=arguments.length,u=r(a),h=a,l=is(o);h--;)u[h]=arguments[h];var c=a<3&&u[0]!==l&&u[a-1]!==l?[]:an(u,l);return(a-=c.length)<n?Vi(t,e,Ii,o.placeholder,i,u,c,i,i,n-a):Ne(this&&this!==ce&&this instanceof o?s:t,this,u)}}(t,e,d):e!=u&&33!=e||l.length?Ii.apply(i,w):function(t,e,n,i){var s=1&e,o=Wi(t);return function e(){for(var a=-1,u=arguments.length,h=-1,l=i.length,c=r(l+u),f=this&&this!==ce&&this instanceof e?o:t;++h<l;)c[h]=i[h];for(;u--;)c[h++]=arguments[++a];return Ne(f,s?n:this,c)}}(t,e,n,o);else var b=function(t,e,n){var r=1&e,i=Wi(t);return function e(){return(this&&this!==ce&&this instanceof e?i:t).apply(r?n:this,arguments)}}(t,e,n);return Es((v?Zr:Ms)(b,w),t,e)}function $i(t,e,n,r){return t===i||Ro(t,Tt[n])&&!jt.call(r,n)?e:t}function Qi(t,e,n,r,s,o){return Ko(t)&&Ko(e)&&(o.set(e,t),Rr(t,e,i,Qi,o),o.delete(e)),t}function Zi(t){return ra(t)?i:t}function Ji(t,e,n,r,s,o){var a=1&n,u=t.length,h=e.length;if(u!=h&&!(a&&h>u))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var f=-1,d=!0,p=2&n?new Hn:i;for(o.set(t,e),o.set(e,t);++f<u;){var m=t[f],g=e[f];if(r)var y=a?r(g,m,f,e,t,o):r(m,g,f,t,e,o);if(y!==i){if(y)continue;d=!1;break}if(p){if(!Pe(e,(function(t,e){if(!Ze(p,e)&&(m===t||s(m,t,n,r,o)))return p.push(e)}))){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Ki(t){return As(Ns(t,i,Us),t+"")}function ts(t){return _r(t,Ta,hs)}function es(t){return _r(t,Oa,ls)}var ns=An?function(t){return An.get(t)}:au;function rs(t){for(var e=t.name+"",n=En[e],r=jt.call(En,e)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==t)return i.name}return e}function is(t){return(jt.call(Bn,"placeholder")?Bn:t).placeholder}function ss(){var t=Bn.iteratee||ru;return t=t===ru?jr:t,arguments.length?t(arguments[0],arguments[1]):t}function os(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function as(t){for(var e=Ta(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,xs(i)]}return e}function us(t,e){var n=function(t,e){return null==t?i:t[e]}(t,e);return Lr(n)?n:i}var hs=me?function(t){return null==t?[]:(t=kt(t),Ae(me(t),(function(e){return Ht.call(t,e)})))}:pu,ls=me?function(t){for(var e=[];t;)Le(e,hs(t)),t=Vt(t);return e}:pu,cs=Nr;function fs(t,e,n){for(var r=-1,i=(e=gi(e,t)).length,s=!1;++r<i;){var o=Ps(e[r]);if(!(s=null!=t&&n(t,o)))break;t=t[o]}return s||++r!=i?s:!!(i=null==t?0:t.length)&&Jo(i)&&ms(o,i)&&(Uo(t)||qo(t))}function ds(t){return"function"!=typeof t.constructor||bs(t)?{}:Rn(Vt(t))}function ps(t){return Uo(t)||qo(t)||!!(Yt&&t&&t[Yt])}function ms(t,e){var n=typeof t;return!!(e=null==e?c:e)&&("number"==n||"symbol"!=n&&yt.test(t))&&t>-1&&t%1==0&&t<e}function gs(t,e,n){if(!Ko(n))return!1;var r=typeof e;return!!("number"==r?Go(n)&&ms(e,n.length):"string"==r&&e in n)&&Ro(n[e],t)}function ys(t,e){if(Uo(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!aa(t))||K.test(t)||!J.test(t)||null!=e&&t in kt(e)}function vs(t){var e=rs(t),n=Bn[e];if("function"!=typeof n||!(e in qn.prototype))return!1;if(t===n)return!0;var r=ns(n);return!!r&&t===r[0]}(_n&&cs(new _n(new ArrayBuffer(1)))!=L||Nn&&cs(new Nn)!=_||kn&&cs(kn.resolve())!=S||Sn&&cs(new Sn)!=C||Mn&&cs(new Mn)!=T)&&(cs=function(t){var e=Nr(t),n=e==k?t.constructor:i,r=n?Ds(n):"";if(r)switch(r){case Tn:return L;case On:return _;case Ln:return S;case jn:return C;case Wn:return T}return e});var ws=Ot?Qo:mu;function bs(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Tt)}function xs(t){return t==t&&!Ko(t)}function _s(t,e){return function(n){return null!=n&&n[t]===e&&(e!==i||t in kt(n))}}function Ns(t,e,n){return e=gn(e===i?t.length-1:e,0),function(){for(var i=arguments,s=-1,o=gn(i.length-e,0),a=r(o);++s<o;)a[s]=i[e+s];s=-1;for(var u=r(e+1);++s<e;)u[s]=i[s];return u[e]=n(a),Ne(t,this,u)}}function ks(t,e){return e.length<2?t:xr(t,ti(e,0,-1))}function Ss(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var Ms=Ts(Zr),Cs=le||function(t,e){return ce.setTimeout(t,e)},As=Ts(Jr);function Es(t,e,n){var r=e+"";return As(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(st,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Se(p,(function(n){var r="_."+n[0];e&n[1]&&!Ee(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(ot);return e?e[1].split(at):[]}(r),n)))}function Ts(t){var e=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Os(t,e){var n=-1,r=t.length,s=r-1;for(e=e===i?r:e;++n<e;){var o=Gr(n,s),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var Ls,js,Ws=(Ls=jo((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tt,(function(t,n,r,i){e.push(r?i.replace(lt,"$1"):n||t)})),e}),(function(t){return 500===js.size&&js.clear(),t})),js=Ls.cache,Ls);function Ps(t){if("string"==typeof t||aa(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ds(t){if(null!=t){try{return Lt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function Is(t){if(t instanceof qn)return t.clone();var e=new Fn(t.__wrapped__,t.__chain__);return e.__actions__=Mi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Bs=Xr((function(t,e){return Ho(t)?hr(t,mr(e,1,Ho,!0)):[]})),Rs=Xr((function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(t,mr(e,1,Ho,!0),ss(n,2)):[]})),zs=Xr((function(t,e){var n=Ys(e);return Ho(n)&&(n=i),Ho(t)?hr(t,mr(e,1,Ho,!0),i,n):[]}));function Fs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Be(t,ss(e,3),i)}function qs(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r-1;return n!==i&&(s=da(n),s=n<0?gn(r+s,0):yn(s,r-1)),Be(t,ss(e,3),s,!0)}function Us(t){return null!=t&&t.length?mr(t,1):[]}function Vs(t){return t&&t.length?t[0]:i}var Gs=Xr((function(t){var e=Oe(t,pi);return e.length&&e[0]===t[0]?Cr(e):[]})),Hs=Xr((function(t){var e=Ys(t),n=Oe(t,pi);return e===Ys(n)?e=i:n.pop(),n.length&&n[0]===t[0]?Cr(n,ss(e,2)):[]})),Xs=Xr((function(t){var e=Ys(t),n=Oe(t,pi);return(e="function"==typeof e?e:i)&&n.pop(),n.length&&n[0]===t[0]?Cr(n,i,e):[]}));function Ys(t){var e=null==t?0:t.length;return e?t[e-1]:i}var $s=Xr(Qs);function Qs(t,e){return t&&t.length&&e&&e.length?Ur(t,e):t}var Zs=Ki((function(t,e){var n=null==t?0:t.length,r=ir(t,e);return Vr(t,Oe(e,(function(t){return ms(t,n)?+t:t})).sort(Ni)),r}));function Js(t){return null==t?t:xn.call(t)}var Ks=Xr((function(t){return ai(mr(t,1,Ho,!0))})),to=Xr((function(t){var e=Ys(t);return Ho(e)&&(e=i),ai(mr(t,1,Ho,!0),ss(e,2))})),eo=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,ai(mr(t,1,Ho,!0),i,e)}));function no(t){if(!t||!t.length)return[];var e=0;return t=Ae(t,(function(t){if(Ho(t))return e=gn(t.length,e),!0})),Xe(e,(function(e){return Oe(t,Ue(e))}))}function ro(t,e){if(!t||!t.length)return[];var n=no(t);return null==e?n:Oe(n,(function(t){return Ne(e,i,t)}))}var io=Xr((function(t,e){return Ho(t)?hr(t,e):[]})),so=Xr((function(t){return fi(Ae(t,Ho))})),oo=Xr((function(t){var e=Ys(t);return Ho(e)&&(e=i),fi(Ae(t,Ho),ss(e,2))})),ao=Xr((function(t){var e=Ys(t);return e="function"==typeof e?e:i,fi(Ae(t,Ho),i,e)})),uo=Xr(no),ho=Xr((function(t){var e=t.length,n=e>1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,ro(t,n)}));function lo(t){var e=Bn(t);return e.__chain__=!0,e}function co(t,e){return e(t)}var fo=Ki((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,s=function(e){return ir(e,t)};return!(e>1||this.__actions__.length)&&r instanceof qn&&ms(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:co,args:[s],thisArg:i}),new Fn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(s)})),po=Ai((function(t,e,n){jt.call(t,n)?++t[n]:rr(t,n,1)})),mo=Pi(Fs),go=Pi(qs);function yo(t,e){return(Uo(t)?Se:lr)(t,ss(e,3))}function vo(t,e){return(Uo(t)?Me:cr)(t,ss(e,3))}var wo=Ai((function(t,e,n){jt.call(t,n)?t[n].push(e):rr(t,n,[e])})),bo=Xr((function(t,e,n){var i=-1,s="function"==typeof e,o=Go(t)?r(t.length):[];return lr(t,(function(t){o[++i]=s?Ne(e,t,n):Ar(t,e,n)})),o})),xo=Ai((function(t,e,n){rr(t,n,e)}));function _o(t,e){return(Uo(t)?Oe:Dr)(t,ss(e,3))}var No=Ai((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),ko=Xr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&gs(t,e[0],e[1])?e=[]:n>2&&gs(e[0],e[1],e[2])&&(e=[e[0]]),Fr(t,mr(e,1),[])})),So=he||function(){return ce.Date.now()};function Mo(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,Yi(t,h,i,i,i,i,e)}function Co(t,e){var n;if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Ao=Xr((function(t,e,n){var r=1;if(n.length){var i=an(n,is(Ao));r|=u}return Yi(t,r,e,n,i)})),Eo=Xr((function(t,e,n){var r=3;if(n.length){var i=an(n,is(Eo));r|=u}return Yi(e,r,t,n,i)}));function To(t,e,n){var r,o,a,u,h,l,c=0,f=!1,d=!1,p=!0;if("function"!=typeof t)throw new Ct(s);function m(e){var n=r,s=o;return r=o=i,c=e,u=t.apply(s,n)}function g(t){var n=t-l;return l===i||n>=e||n<0||d&&t-c>=a}function y(){var t=So();if(g(t))return v(t);h=Cs(y,function(t){var n=e-(t-l);return d?yn(n,a-(t-c)):n}(t))}function v(t){return h=i,p&&r?m(t):(r=o=i,u)}function w(){var t=So(),n=g(t);if(r=arguments,o=this,l=t,n){if(h===i)return function(t){return c=t,h=Cs(y,e),f?m(t):u}(l);if(d)return wi(h),h=Cs(y,e),m(l)}return h===i&&(h=Cs(y,e)),u}return e=ma(e)||0,Ko(n)&&(f=!!n.leading,a=(d="maxWait"in n)?gn(ma(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){h!==i&&wi(h),c=0,r=l=o=h=i},w.flush=function(){return h===i?u:v(So())},w}var Oo=Xr((function(t,e){return ur(t,1,e)})),Lo=Xr((function(t,e,n){return ur(t,ma(e)||0,n)}));function jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Ct(s);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=t.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(jo.Cache||Gn),n}function Wo(t){if("function"!=typeof t)throw new Ct(s);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}jo.Cache=Gn;var Po=yi((function(t,e){var n=(e=1==e.length&&Uo(e[0])?Oe(e[0],$e(ss())):Oe(mr(e,1),$e(ss()))).length;return Xr((function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=e[i].call(this,r[i]);return Ne(t,this,r)}))})),Do=Xr((function(t,e){var n=an(e,is(Do));return Yi(t,u,i,e,n)})),Io=Xr((function(t,e){var n=an(e,is(Io));return Yi(t,64,i,e,n)})),Bo=Ki((function(t,e){return Yi(t,256,i,i,i,e)}));function Ro(t,e){return t===e||t!=t&&e!=e}var zo=Ui(kr),Fo=Ui((function(t,e){return t>=e})),qo=Er(function(){return arguments}())?Er:function(t){return ta(t)&&jt.call(t,"callee")&&!Ht.call(t,"callee")},Uo=r.isArray,Vo=ye?$e(ye):function(t){return ta(t)&&Nr(t)==O};function Go(t){return null!=t&&Jo(t.length)&&!Qo(t)}function Ho(t){return ta(t)&&Go(t)}var Xo=ge||mu,Yo=ve?$e(ve):function(t){return ta(t)&&Nr(t)==v};function $o(t){if(!ta(t))return!1;var e=Nr(t);return e==w||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ra(t)}function Qo(t){if(!Ko(t))return!1;var e=Nr(t);return e==b||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Zo(t){return"number"==typeof t&&t==da(t)}function Jo(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Ko(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ta(t){return null!=t&&"object"==typeof t}var ea=we?$e(we):function(t){return ta(t)&&cs(t)==_};function na(t){return"number"==typeof t||ta(t)&&Nr(t)==N}function ra(t){if(!ta(t)||Nr(t)!=k)return!1;var e=Vt(t);if(null===e)return!0;var n=jt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Lt.call(n)==It}var ia=be?$e(be):function(t){return ta(t)&&Nr(t)==M},sa=xe?$e(xe):function(t){return ta(t)&&cs(t)==C};function oa(t){return"string"==typeof t||!Uo(t)&&ta(t)&&Nr(t)==A}function aa(t){return"symbol"==typeof t||ta(t)&&Nr(t)==E}var ua=_e?$e(_e):function(t){return ta(t)&&Jo(t.length)&&!!ie[Nr(t)]},ha=Ui(Pr),la=Ui((function(t,e){return t<=e}));function ca(t){if(!t)return[];if(Go(t))return oa(t)?cn(t):Mi(t);if($t&&t[$t])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[$t]());var e=cs(t);return(e==_?sn:e==C?un:Ra)(t)}function fa(t){return t?(t=ma(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function da(t){var e=fa(t),n=e%1;return e==e?n?e-n:e:0}function pa(t){return t?sr(da(t),0,d):0}function ma(t){if("number"==typeof t)return t;if(aa(t))return f;if(Ko(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ko(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ye(t);var n=pt.test(t);return n||gt.test(t)?ue(t.slice(2),n?2:8):dt.test(t)?f:+t}function ga(t){return Ci(t,Oa(t))}function ya(t){return null==t?"":oi(t)}var va=Ei((function(t,e){if(bs(e)||Go(e))Ci(e,Ta(e),t);else for(var n in e)jt.call(e,n)&&Kn(t,n,e[n])})),wa=Ei((function(t,e){Ci(e,Oa(e),t)})),ba=Ei((function(t,e,n,r){Ci(e,Oa(e),t,r)})),xa=Ei((function(t,e,n,r){Ci(e,Ta(e),t,r)})),_a=Ki(ir),Na=Xr((function(t,e){t=kt(t);var n=-1,r=e.length,s=r>2?e[2]:i;for(s&&gs(e[0],e[1],s)&&(r=1);++n<r;)for(var o=e[n],a=Oa(o),u=-1,h=a.length;++u<h;){var l=a[u],c=t[l];(c===i||Ro(c,Tt[l])&&!jt.call(t,l))&&(t[l]=o[l])}return t})),ka=Xr((function(t){return t.push(i,Qi),Ne(ja,i,t)}));function Sa(t,e,n){var r=null==t?i:xr(t,e);return r===i?n:r}function Ma(t,e){return null!=t&&fs(t,e,Mr)}var Ca=Bi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),t[e]=n}),Ka(nu)),Aa=Bi((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=Dt.call(e)),jt.call(t,e)?t[e].push(n):t[e]=[n]}),ss),Ea=Xr(Ar);function Ta(t){return Go(t)?Yn(t):Wr(t)}function Oa(t){return Go(t)?Yn(t,!0):function(t){if(!Ko(t))return function(t){var e=[];if(null!=t)for(var n in kt(t))e.push(n);return e}(t);var e=bs(t),n=[];for(var r in t)("constructor"!=r||!e&&jt.call(t,r))&&n.push(r);return n}(t)}var La=Ei((function(t,e,n){Rr(t,e,n)})),ja=Ei((function(t,e,n,r){Rr(t,e,n,r)})),Wa=Ki((function(t,e){var n={};if(null==t)return n;var r=!1;e=Oe(e,(function(e){return e=gi(e,t),r||(r=e.length>1),e})),Ci(t,es(t),n),r&&(n=or(n,7,Zi));for(var i=e.length;i--;)ui(n,e[i]);return n})),Pa=Ki((function(t,e){return null==t?{}:function(t,e){return qr(t,e,(function(e,n){return Ma(t,n)}))}(t,e)}));function Da(t,e){if(null==t)return{};var n=Oe(es(t),(function(t){return[t]}));return e=ss(e),qr(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Xi(Ta),Ba=Xi(Oa);function Ra(t){return null==t?[]:Qe(t,Ta(t))}var za=ji((function(t,e,n){return e=e.toLowerCase(),t+(n?Fa(e):e)}));function Fa(t){return $a(ya(t).toLowerCase())}function qa(t){return(t=ya(t))&&t.replace(vt,tn).replace(Zt,"")}var Ua=ji((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Va=ji((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ga=Li("toLowerCase"),Ha=ji((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Xa=ji((function(t,e,n){return t+(n?" ":"")+$a(e)})),Ya=ji((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),$a=Li("toUpperCase");function Qa(t,e,n){return t=ya(t),(e=n?i:e)===i?function(t){return ee.test(t)}(t)?function(t){return t.match(Kt)||[]}(t):function(t){return t.match(ut)||[]}(t):t.match(e)||[]}var Za=Xr((function(t,e){try{return Ne(t,i,e)}catch(t){return $o(t)?t:new xt(t)}})),Ja=Ki((function(t,e){return Se(e,(function(e){e=Ps(e),rr(t,e,Ao(t[e],t))})),t}));function Ka(t){return function(){return t}}var tu=Di(),eu=Di(!0);function nu(t){return t}function ru(t){return jr("function"==typeof t?t:or(t,1))}var iu=Xr((function(t,e){return function(n){return Ar(n,t,e)}})),su=Xr((function(t,e){return function(n){return Ar(t,n,e)}}));function ou(t,e,n){var r=Ta(e),i=br(e,r);null!=n||Ko(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=br(e,Ta(e)));var s=!(Ko(n)&&"chain"in n&&!n.chain),o=Qo(t);return Se(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(s||e){var n=t(this.__wrapped__);return(n.__actions__=Mi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Le([this.value()],arguments))})})),t}function au(){}var uu=zi(Oe),hu=zi(Ce),lu=zi(Pe);function cu(t){return ys(t)?Ue(Ps(t)):function(t){return function(e){return xr(e,t)}}(t)}var fu=qi(),du=qi(!0);function pu(){return[]}function mu(){return!1}var gu,yu=Ri((function(t,e){return t+e}),0),vu=Gi("ceil"),wu=Ri((function(t,e){return t/e}),1),bu=Gi("floor"),xu=Ri((function(t,e){return t*e}),1),_u=Gi("round"),Nu=Ri((function(t,e){return t-e}),0);return Bn.after=function(t,e){if("function"!=typeof e)throw new Ct(s);return t=da(t),function(){if(--t<1)return e.apply(this,arguments)}},Bn.ary=Mo,Bn.assign=va,Bn.assignIn=wa,Bn.assignInWith=ba,Bn.assignWith=xa,Bn.at=_a,Bn.before=Co,Bn.bind=Ao,Bn.bindAll=Ja,Bn.bindKey=Eo,Bn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Uo(t)?t:[t]},Bn.chain=lo,Bn.chunk=function(t,e,n){e=(n?gs(t,e,n):e===i)?1:gn(da(e),0);var s=null==t?0:t.length;if(!s||e<1)return[];for(var o=0,a=0,u=r(fe(s/e));o<s;)u[a++]=ti(t,o,o+=e);return u},Bn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var s=t[e];s&&(i[r++]=s)}return i},Bn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Le(Uo(n)?Mi(n):[n],mr(e,1))},Bn.cond=function(t){var e=null==t?0:t.length,n=ss();return t=e?Oe(t,(function(t){if("function"!=typeof t[1])throw new Ct(s);return[n(t[0]),t[1]]})):[],Xr((function(n){for(var r=-1;++r<e;){var i=t[r];if(Ne(i[0],this,n))return Ne(i[1],this,n)}}))},Bn.conforms=function(t){return function(t){var e=Ta(t);return function(n){return ar(n,t,e)}}(or(t,1))},Bn.constant=Ka,Bn.countBy=po,Bn.create=function(t,e){var n=Rn(t);return null==e?n:nr(n,e)},Bn.curry=function t(e,n,r){var s=Yi(e,8,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Bn.curryRight=function t(e,n,r){var s=Yi(e,16,i,i,i,i,i,n=r?i:n);return s.placeholder=t.placeholder,s},Bn.debounce=To,Bn.defaults=Na,Bn.defaultsDeep=ka,Bn.defer=Oo,Bn.delay=Lo,Bn.difference=Bs,Bn.differenceBy=Rs,Bn.differenceWith=zs,Bn.drop=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=n||e===i?1:da(e))<0?0:e,r):[]},Bn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,0,(e=r-(e=n||e===i?1:da(e)))<0?0:e):[]},Bn.dropRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0,!0):[]},Bn.dropWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!0):[]},Bn.fill=function(t,e,n,r){var s=null==t?0:t.length;return s?(n&&"number"!=typeof n&&gs(t,e,n)&&(n=0,r=s),function(t,e,n,r){var s=t.length;for((n=da(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:da(r))<0&&(r+=s),r=n>r?0:pa(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Bn.filter=function(t,e){return(Uo(t)?Ae:pr)(t,ss(e,3))},Bn.flatMap=function(t,e){return mr(_o(t,e),1)},Bn.flatMapDeep=function(t,e){return mr(_o(t,e),l)},Bn.flatMapDepth=function(t,e,n){return n=n===i?1:da(n),mr(_o(t,e),n)},Bn.flatten=Us,Bn.flattenDeep=function(t){return null!=t&&t.length?mr(t,l):[]},Bn.flattenDepth=function(t,e){return null!=t&&t.length?mr(t,e=e===i?1:da(e)):[]},Bn.flip=function(t){return Yi(t,512)},Bn.flow=tu,Bn.flowRight=eu,Bn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Bn.functions=function(t){return null==t?[]:br(t,Ta(t))},Bn.functionsIn=function(t){return null==t?[]:br(t,Oa(t))},Bn.groupBy=wo,Bn.initial=function(t){return null!=t&&t.length?ti(t,0,-1):[]},Bn.intersection=Gs,Bn.intersectionBy=Hs,Bn.intersectionWith=Xs,Bn.invert=Ca,Bn.invertBy=Aa,Bn.invokeMap=bo,Bn.iteratee=ru,Bn.keyBy=xo,Bn.keys=Ta,Bn.keysIn=Oa,Bn.map=_o,Bn.mapKeys=function(t,e){var n={};return e=ss(e,3),vr(t,(function(t,r,i){rr(n,e(t,r,i),t)})),n},Bn.mapValues=function(t,e){var n={};return e=ss(e,3),vr(t,(function(t,r,i){rr(n,r,e(t,r,i))})),n},Bn.matches=function(t){return Ir(or(t,1))},Bn.matchesProperty=function(t,e){return Br(t,or(e,1))},Bn.memoize=jo,Bn.merge=La,Bn.mergeWith=ja,Bn.method=iu,Bn.methodOf=su,Bn.mixin=ou,Bn.negate=Wo,Bn.nthArg=function(t){return t=da(t),Xr((function(e){return zr(e,t)}))},Bn.omit=Wa,Bn.omitBy=function(t,e){return Da(t,Wo(ss(e)))},Bn.once=function(t){return Co(2,t)},Bn.orderBy=function(t,e,n,r){return null==t?[]:(Uo(e)||(e=null==e?[]:[e]),Uo(n=r?i:n)||(n=null==n?[]:[n]),Fr(t,e,n))},Bn.over=uu,Bn.overArgs=Po,Bn.overEvery=hu,Bn.overSome=lu,Bn.partial=Do,Bn.partialRight=Io,Bn.partition=No,Bn.pick=Pa,Bn.pickBy=Da,Bn.property=cu,Bn.propertyOf=function(t){return function(e){return null==t?i:xr(t,e)}},Bn.pull=$s,Bn.pullAll=Qs,Bn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,ss(n,2)):t},Bn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?Ur(t,e,i,n):t},Bn.pullAt=Zs,Bn.range=fu,Bn.rangeRight=du,Bn.rearg=Bo,Bn.reject=function(t,e){return(Uo(t)?Ae:pr)(t,Wo(ss(e,3)))},Bn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],s=t.length;for(e=ss(e,3);++r<s;){var o=t[r];e(o,r,t)&&(n.push(o),i.push(r))}return Vr(t,i),n},Bn.rest=function(t,e){if("function"!=typeof t)throw new Ct(s);return Xr(t,e=e===i?e:da(e))},Bn.reverse=Js,Bn.sampleSize=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),(Uo(t)?Qn:$r)(t,e)},Bn.set=function(t,e,n){return null==t?t:Qr(t,e,n)},Bn.setWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Qr(t,e,n,r)},Bn.shuffle=function(t){return(Uo(t)?Zn:Kr)(t)},Bn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&gs(t,e,n)?(e=0,n=r):(e=null==e?0:da(e),n=n===i?r:da(n)),ti(t,e,n)):[]},Bn.sortBy=ko,Bn.sortedUniq=function(t){return t&&t.length?ii(t):[]},Bn.sortedUniqBy=function(t,e){return t&&t.length?ii(t,ss(e,2)):[]},Bn.split=function(t,e,n){return n&&"number"!=typeof n&&gs(t,e,n)&&(e=n=i),(n=n===i?d:n>>>0)?(t=ya(t))&&("string"==typeof e||null!=e&&!ia(e))&&!(e=oi(e))&&rn(t)?vi(cn(t),0,n):t.split(e,n):[]},Bn.spread=function(t,e){if("function"!=typeof t)throw new Ct(s);return e=null==e?0:gn(da(e),0),Xr((function(n){var r=n[e],i=vi(n,0,e);return r&&Le(i,r),Ne(t,this,i)}))},Bn.tail=function(t){var e=null==t?0:t.length;return e?ti(t,1,e):[]},Bn.take=function(t,e,n){return t&&t.length?ti(t,0,(e=n||e===i?1:da(e))<0?0:e):[]},Bn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?ti(t,(e=r-(e=n||e===i?1:da(e)))<0?0:e,r):[]},Bn.takeRightWhile=function(t,e){return t&&t.length?li(t,ss(e,3),!1,!0):[]},Bn.takeWhile=function(t,e){return t&&t.length?li(t,ss(e,3)):[]},Bn.tap=function(t,e){return e(t),t},Bn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Ct(s);return Ko(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),To(t,e,{leading:r,maxWait:e,trailing:i})},Bn.thru=co,Bn.toArray=ca,Bn.toPairs=Ia,Bn.toPairsIn=Ba,Bn.toPath=function(t){return Uo(t)?Oe(t,Ps):aa(t)?[t]:Mi(Ws(ya(t)))},Bn.toPlainObject=ga,Bn.transform=function(t,e,n){var r=Uo(t),i=r||Xo(t)||ua(t);if(e=ss(e,4),null==n){var s=t&&t.constructor;n=i?r?new s:[]:Ko(t)&&Qo(s)?Rn(Vt(t)):{}}return(i?Se:vr)(t,(function(t,r,i){return e(n,t,r,i)})),n},Bn.unary=function(t){return Mo(t,1)},Bn.union=Ks,Bn.unionBy=to,Bn.unionWith=eo,Bn.uniq=function(t){return t&&t.length?ai(t):[]},Bn.uniqBy=function(t,e){return t&&t.length?ai(t,ss(e,2)):[]},Bn.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?ai(t,i,e):[]},Bn.unset=function(t,e){return null==t||ui(t,e)},Bn.unzip=no,Bn.unzipWith=ro,Bn.update=function(t,e,n){return null==t?t:hi(t,e,mi(n))},Bn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:hi(t,e,mi(n),r)},Bn.values=Ra,Bn.valuesIn=function(t){return null==t?[]:Qe(t,Oa(t))},Bn.without=io,Bn.words=Qa,Bn.wrap=function(t,e){return Do(mi(e),t)},Bn.xor=so,Bn.xorBy=oo,Bn.xorWith=ao,Bn.zip=uo,Bn.zipObject=function(t,e){return di(t||[],e||[],Kn)},Bn.zipObjectDeep=function(t,e){return di(t||[],e||[],Qr)},Bn.zipWith=ho,Bn.entries=Ia,Bn.entriesIn=Ba,Bn.extend=wa,Bn.extendWith=ba,ou(Bn,Bn),Bn.add=yu,Bn.attempt=Za,Bn.camelCase=za,Bn.capitalize=Fa,Bn.ceil=vu,Bn.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=ma(n))==n?n:0),e!==i&&(e=(e=ma(e))==e?e:0),sr(ma(t),e,n)},Bn.clone=function(t){return or(t,4)},Bn.cloneDeep=function(t){return or(t,5)},Bn.cloneDeepWith=function(t,e){return or(t,5,e="function"==typeof e?e:i)},Bn.cloneWith=function(t,e){return or(t,4,e="function"==typeof e?e:i)},Bn.conformsTo=function(t,e){return null==e||ar(t,e,Ta(e))},Bn.deburr=qa,Bn.defaultTo=function(t,e){return null==t||t!=t?e:t},Bn.divide=wu,Bn.endsWith=function(t,e,n){t=ya(t),e=oi(e);var r=t.length,s=n=n===i?r:sr(da(n),0,r);return(n-=e.length)>=0&&t.slice(n,s)==e},Bn.eq=Ro,Bn.escape=function(t){return(t=ya(t))&&Y.test(t)?t.replace(H,en):t},Bn.escapeRegExp=function(t){return(t=ya(t))&&nt.test(t)?t.replace(et,"\\$&"):t},Bn.every=function(t,e,n){var r=Uo(t)?Ce:fr;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Bn.find=mo,Bn.findIndex=Fs,Bn.findKey=function(t,e){return Ie(t,ss(e,3),vr)},Bn.findLast=go,Bn.findLastIndex=qs,Bn.findLastKey=function(t,e){return Ie(t,ss(e,3),wr)},Bn.floor=bu,Bn.forEach=yo,Bn.forEachRight=vo,Bn.forIn=function(t,e){return null==t?t:gr(t,ss(e,3),Oa)},Bn.forInRight=function(t,e){return null==t?t:yr(t,ss(e,3),Oa)},Bn.forOwn=function(t,e){return t&&vr(t,ss(e,3))},Bn.forOwnRight=function(t,e){return t&&wr(t,ss(e,3))},Bn.get=Sa,Bn.gt=zo,Bn.gte=Fo,Bn.has=function(t,e){return null!=t&&fs(t,e,Sr)},Bn.hasIn=Ma,Bn.head=Vs,Bn.identity=nu,Bn.includes=function(t,e,n,r){t=Go(t)?t:Ra(t),n=n&&!r?da(n):0;var i=t.length;return n<0&&(n=gn(i+n,0)),oa(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&Re(t,e,n)>-1},Bn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:da(n);return i<0&&(i=gn(r+i,0)),Re(t,e,i)},Bn.inRange=function(t,e,n){return e=fa(e),n===i?(n=e,e=0):n=fa(n),function(t,e,n){return t>=yn(e,n)&&t<gn(e,n)}(t=ma(t),e,n)},Bn.invoke=Ea,Bn.isArguments=qo,Bn.isArray=Uo,Bn.isArrayBuffer=Vo,Bn.isArrayLike=Go,Bn.isArrayLikeObject=Ho,Bn.isBoolean=function(t){return!0===t||!1===t||ta(t)&&Nr(t)==y},Bn.isBuffer=Xo,Bn.isDate=Yo,Bn.isElement=function(t){return ta(t)&&1===t.nodeType&&!ra(t)},Bn.isEmpty=function(t){if(null==t)return!0;if(Go(t)&&(Uo(t)||"string"==typeof t||"function"==typeof t.splice||Xo(t)||ua(t)||qo(t)))return!t.length;var e=cs(t);if(e==_||e==C)return!t.size;if(bs(t))return!Wr(t).length;for(var n in t)if(jt.call(t,n))return!1;return!0},Bn.isEqual=function(t,e){return Tr(t,e)},Bn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:i)?n(t,e):i;return r===i?Tr(t,e,i,n):!!r},Bn.isError=$o,Bn.isFinite=function(t){return"number"==typeof t&&De(t)},Bn.isFunction=Qo,Bn.isInteger=Zo,Bn.isLength=Jo,Bn.isMap=ea,Bn.isMatch=function(t,e){return t===e||Or(t,e,as(e))},Bn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:i,Or(t,e,as(e),n)},Bn.isNaN=function(t){return na(t)&&t!=+t},Bn.isNative=function(t){if(ws(t))throw new xt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(t)},Bn.isNil=function(t){return null==t},Bn.isNull=function(t){return null===t},Bn.isNumber=na,Bn.isObject=Ko,Bn.isObjectLike=ta,Bn.isPlainObject=ra,Bn.isRegExp=ia,Bn.isSafeInteger=function(t){return Zo(t)&&t>=-9007199254740991&&t<=c},Bn.isSet=sa,Bn.isString=oa,Bn.isSymbol=aa,Bn.isTypedArray=ua,Bn.isUndefined=function(t){return t===i},Bn.isWeakMap=function(t){return ta(t)&&cs(t)==T},Bn.isWeakSet=function(t){return ta(t)&&"[object WeakSet]"==Nr(t)},Bn.join=function(t,e){return null==t?"":Ve.call(t,e)},Bn.kebabCase=Ua,Bn.last=Ys,Bn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=da(n))<0?gn(r+s,0):yn(s,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,s):Be(t,Fe,s,!0)},Bn.lowerCase=Va,Bn.lowerFirst=Ga,Bn.lt=ha,Bn.lte=la,Bn.max=function(t){return t&&t.length?dr(t,nu,kr):i},Bn.maxBy=function(t,e){return t&&t.length?dr(t,ss(e,2),kr):i},Bn.mean=function(t){return qe(t,nu)},Bn.meanBy=function(t,e){return qe(t,ss(e,2))},Bn.min=function(t){return t&&t.length?dr(t,nu,Pr):i},Bn.minBy=function(t,e){return t&&t.length?dr(t,ss(e,2),Pr):i},Bn.stubArray=pu,Bn.stubFalse=mu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=xu,Bn.nth=function(t,e){return t&&t.length?zr(t,da(e)):i},Bn.noConflict=function(){return ce._===this&&(ce._=Bt),this},Bn.noop=au,Bn.now=So,Bn.pad=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Fi(de(i),n)+t+Fi(fe(i),n)},Bn.padEnd=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?t+Fi(e-r,n):t},Bn.padStart=function(t,e,n){t=ya(t);var r=(e=da(e))?ln(t):0;return e&&r<e?Fi(e-r,n)+t:t},Bn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),wn(ya(t).replace(rt,""),e||0)},Bn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&gs(t,e,n)&&(e=n=i),n===i&&("boolean"==typeof e?(n=e,e=i):"boolean"==typeof t&&(n=t,t=i)),t===i&&e===i?(t=0,e=1):(t=fa(t),e===i?(e=t,t=0):e=fa(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var s=bn();return yn(t+s*(e-t+ae("1e-"+((s+"").length-1))),e)}return Gr(t,e)},Bn.reduce=function(t,e,n){var r=Uo(t)?je:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,lr)},Bn.reduceRight=function(t,e,n){var r=Uo(t)?We:Ge,i=arguments.length<3;return r(t,ss(e,4),n,i,cr)},Bn.repeat=function(t,e,n){return e=(n?gs(t,e,n):e===i)?1:da(e),Hr(ya(t),e)},Bn.replace=function(){var t=arguments,e=ya(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Bn.result=function(t,e,n){var r=-1,s=(e=gi(e,t)).length;for(s||(s=1,t=i);++r<s;){var o=null==t?i:t[Ps(e[r])];o===i&&(r=s,o=n),t=Qo(o)?o.call(t):o}return t},Bn.round=_u,Bn.runInContext=t,Bn.sample=function(t){return(Uo(t)?$n:Yr)(t)},Bn.size=function(t){if(null==t)return 0;if(Go(t))return oa(t)?ln(t):t.length;var e=cs(t);return e==_||e==C?t.size:Wr(t).length},Bn.snakeCase=Ha,Bn.some=function(t,e,n){var r=Uo(t)?Pe:ei;return n&&gs(t,e,n)&&(e=i),r(t,ss(e,3))},Bn.sortedIndex=function(t,e){return ni(t,e)},Bn.sortedIndexBy=function(t,e,n){return ri(t,e,ss(n,2))},Bn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=ni(t,e);if(r<n&&Ro(t[r],e))return r}return-1},Bn.sortedLastIndex=function(t,e){return ni(t,e,!0)},Bn.sortedLastIndexBy=function(t,e,n){return ri(t,e,ss(n,2),!0)},Bn.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=ni(t,e,!0)-1;if(Ro(t[n],e))return n}return-1},Bn.startCase=Xa,Bn.startsWith=function(t,e,n){return t=ya(t),n=null==n?0:sr(da(n),0,t.length),e=oi(e),t.slice(n,n+e.length)==e},Bn.subtract=Nu,Bn.sum=function(t){return t&&t.length?He(t,nu):0},Bn.sumBy=function(t,e){return t&&t.length?He(t,ss(e,2)):0},Bn.template=function(t,e,n){var r=Bn.templateSettings;n&&gs(t,e,n)&&(e=i),t=ya(t),e=ba({},e,r,$i);var s,o,a=ba({},e.imports,r.imports,$i),u=Ta(a),h=Qe(a,u),l=0,c=e.interpolate||wt,f="__p += '",d=St((e.escape||wt).source+"|"+c.source+"|"+(c===Z?ct:wt).source+"|"+(e.evaluate||wt).source+"|$","g"),p="//# sourceURL="+(jt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++re+"]")+"\n";t.replace(d,(function(e,n,r,i,a,u){return r||(r=i),f+=t.slice(l,u).replace(bt,nn),n&&(s=!0,f+="' +\n__e("+n+") +\n'"),a&&(o=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),f+="';\n";var m=jt.call(e,"variable")&&e.variable;if(m){if(ht.test(m))throw new xt("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(o?f.replace(q,""):f).replace(U,"$1").replace(V,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Za((function(){return _t(u,p+"return "+f).apply(i,h)}));if(g.source=f,$o(g))throw g;return g},Bn.times=function(t,e){if((t=da(t))<1||t>c)return[];var n=d,r=yn(t,d);e=ss(e),t-=d;for(var i=Xe(r,e);++n<t;)e(n);return i},Bn.toFinite=fa,Bn.toInteger=da,Bn.toLength=pa,Bn.toLower=function(t){return ya(t).toLowerCase()},Bn.toNumber=ma,Bn.toSafeInteger=function(t){return t?sr(da(t),-9007199254740991,c):0===t?t:0},Bn.toString=ya,Bn.toUpper=function(t){return ya(t).toUpperCase()},Bn.trim=function(t,e,n){if((t=ya(t))&&(n||e===i))return Ye(t);if(!t||!(e=oi(e)))return t;var r=cn(t),s=cn(e);return vi(r,Je(r,s),Ke(r,s)+1).join("")},Bn.trimEnd=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.slice(0,fn(t)+1);if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,0,Ke(r,cn(e))+1).join("")},Bn.trimStart=function(t,e,n){if((t=ya(t))&&(n||e===i))return t.replace(rt,"");if(!t||!(e=oi(e)))return t;var r=cn(t);return vi(r,Je(r,cn(e))).join("")},Bn.truncate=function(t,e){var n=30,r="...";if(Ko(e)){var s="separator"in e?e.separator:s;n="length"in e?da(e.length):n,r="omission"in e?oi(e.omission):r}var o=(t=ya(t)).length;if(rn(t)){var a=cn(t);o=a.length}if(n>=o)return t;var u=n-ln(r);if(u<1)return r;var h=a?vi(a,0,u).join(""):t.slice(0,u);if(s===i)return h+r;if(a&&(u+=h.length-u),ia(s)){if(t.slice(u).search(s)){var l,c=h;for(s.global||(s=St(s.source,ya(ft.exec(s))+"g")),s.lastIndex=0;l=s.exec(c);)var f=l.index;h=h.slice(0,f===i?u:f)}}else if(t.indexOf(oi(s),u)!=u){var d=h.lastIndexOf(s);d>-1&&(h=h.slice(0,d))}return h+r},Bn.unescape=function(t){return(t=ya(t))&&X.test(t)?t.replace(G,dn):t},Bn.uniqueId=function(t){var e=++Wt;return ya(t)+e},Bn.upperCase=Ya,Bn.upperFirst=$a,Bn.each=yo,Bn.eachRight=vo,Bn.first=Vs,ou(Bn,(gu={},vr(Bn,(function(t,e){jt.call(Bn.prototype,e)||(gu[e]=t)})),gu),{chain:!1}),Bn.VERSION="4.17.21",Se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Bn[t].placeholder=Bn})),Se(["drop","take"],(function(t,e){qn.prototype[t]=function(n){n=n===i?1:gn(da(n),0);var r=this.__filtered__&&!e?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},qn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;qn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ss(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");qn.prototype[t]=function(){return this[n](1).value()[0]}})),Se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");qn.prototype[t]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(nu)},qn.prototype.find=function(t){return this.filter(t).head()},qn.prototype.findLast=function(t){return this.reverse().find(t)},qn.prototype.invokeMap=Xr((function(t,e){return"function"==typeof t?new qn(this):this.map((function(n){return Ar(n,t,e)}))})),qn.prototype.reject=function(t){return this.filter(Wo(ss(t)))},qn.prototype.slice=function(t,e){t=da(t);var n=this;return n.__filtered__&&(t>0||e<0)?new qn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=da(e))<0?n.dropRight(-e):n.take(e-t)),n)},qn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),s=Bn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);s&&(Bn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,u=e instanceof qn,h=a[0],l=u||Uo(e),c=function(t){var e=s.apply(Bn,Le([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof h&&1!=h.length&&(u=l=!1);var f=this.__chain__,d=!!this.__actions__.length,p=o&&!f,m=u&&!d;if(!o&&l){e=m?e:new qn(this);var g=t.apply(e,a);return g.__actions__.push({func:co,args:[c],thisArg:i}),new Fn(g,f)}return p&&m?t.apply(this,a):(g=this.thru(c),p?r?g.value()[0]:g.value():g)})})),Se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=At[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Bn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Uo(i)?i:[],t)}return this[n]((function(n){return e.apply(Uo(n)?n:[],t)}))}})),vr(qn.prototype,(function(t,e){var n=Bn[e];if(n){var r=n.name+"";jt.call(En,r)||(En[r]=[]),En[r].push({name:e,func:n})}})),En[Ii(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var t=new qn(this.__wrapped__);return t.__actions__=Mi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Mi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Mi(this.__views__),t},qn.prototype.reverse=function(){if(this.__filtered__){var t=new qn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},qn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Uo(t),r=e<0,i=n?t.length:0,s=function(t,e,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":t+=o;break;case"dropRight":e-=o;break;case"take":e=yn(e,t+o);break;case"takeRight":t=gn(t,e-o)}}return{start:t,end:e}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,h=r?a:o-1,l=this.__iteratees__,c=l.length,f=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ci(t,this.__actions__);var p=[];t:for(;u--&&f<d;){for(var m=-1,g=t[h+=e];++m<c;){var y=l[m],v=y.iteratee,w=y.type,b=v(g);if(2==w)g=b;else if(!b){if(1==w)continue t;break t}}p[f++]=g}return p},Bn.prototype.at=fo,Bn.prototype.chain=function(){return lo(this)},Bn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===i&&(this.__values__=ca(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Bn.prototype.plant=function(t){for(var e,n=this;n instanceof zn;){var r=Is(n);r.__index__=0,r.__values__=i,e?s.__wrapped__=r:e=r;var s=r;n=n.__wrapped__}return s.__wrapped__=t,e},Bn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof qn){var e=t;return this.__actions__.length&&(e=new qn(this)),(e=e.reverse()).__actions__.push({func:co,args:[Js],thisArg:i}),new Fn(e,this.__chain__)}return this.thru(Js)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return ci(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,$t&&(Bn.prototype[$t]=function(){return this}),Bn}();ce._=pn,(r=function(){return pn}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},584:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>c,OW:()=>h,Qq:()=>u,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: white;\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",u="hcTi6yK4eMJ8Mc61rqGY",h="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:()=>v,IU:()=>d,QB:()=>y,Qs:()=>f,Te:()=>g,aW:()=>c,eB:()=>m,ho:()=>l,lf:()=>a,m9:()=>h,vw:()=>p,wx:()=>u});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: white;\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: 11px 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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.CEKK9ESfVFUX5lmGT49Q {\n margin-top: 21px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.REx8U43f426EyuXTroHH {\n margin-top: 22px;\n\n display: none;\n}\n\n.vXdbsaENeFcx9uTlNetr {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.a5Wi7rcTlB2tWpGwD8zf {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="dimGBV0h2P1QB3V_Zhmc",u="sE2YASqaiPZdV9dz58A7",h="BYZcOJiOX5zLxIrbc3gR",l="mOH6VML7hViujtEoNaOA",c="u5w42CVwU4PQ7GiSuy4G",f="TCp4dzyF9qmbX3ejDOkL",d="WOjw8GKoS54KQAOlumMa",p="CEKK9ESfVFUX5lmGT49Q",m="REx8U43f426EyuXTroHH",g="vXdbsaENeFcx9uTlNetr",y="a5Wi7rcTlB2tWpGwD8zf";const v=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:()=>h,ZZ:()=>a,o3:()=>u});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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: auto;\n}\n\n.P5PJGaHxnhsEaezm8Nhg {\n color: white;\n\n cursor: pointer;\n\n text-decoration: none;\n}\n\n.P5PJGaHxnhsEaezm8Nhg:hover {\n text-decoration: underline;\n}\n',""]);var a="rIHrsark1WbeRGC9M1ZY",u="P5PJGaHxnhsEaezm8Nhg";const h=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,u=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,l=s.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p=d.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 _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t}var N="3.7.1",k=/HTML$/i,S=function(t,e){return new S.fn.init(t,e)};function M(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!y(t)&&!v(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}S.fn=S.prototype={jquery:N,constructor:S,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=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(t){return this.pushStack(S.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(S.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(S.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:h,sort:s.sort,splice:s.splice},S.extend=S.fn.extend=function(){var t,e,n,r,i,s,o=arguments[0]||{},a=1,u=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||y(o)||(o={}),a===u&&(o=this,a--);a<u;a++)if(null!=(t=arguments[a]))for(e in t)r=t[e],"__proto__"!==e&&o!==r&&(h&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[e],s=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,o[e]=S.extend(h,s,r)):void 0!==r&&(o[e]=r));return o},S.extend({expando:"jQuery"+(N+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]"!==f.call(t)||(e=o(t))&&("function"!=typeof(n=d.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(M(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+=S.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&&(M(Object(t))?S.merge(n,"string"==typeof t?[t]:t):h.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!k.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(M(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 u(o)},guid:1,support:g}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=s[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var A=s.pop,E=s.sort,T=s.splice,O="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g");S.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 W(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}S.escapeSelector=function(t){return(t+"").replace(j,W)};var P=w,D=h;!function(){var t,e,n,i,o,u,h,c,f,p,m=D,y=S.expando,v=0,w=0,b=tt(),x=tt(),_=tt(),N=tt(),k=function(t,e){return t===e&&(o=!0),0},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="(?:\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+O+"*("+j+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",I=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(O+"+","g"),R=new RegExp("^"+O+"*,"+O+"*"),z=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),F=new RegExp(O+"|>"),q=new RegExp(I),U=new RegExp("^"+j+"$"),V={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,H=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,$=new RegExp("\\\\[\\da-fA-F]{1,6}"+O+"?|\\\\([^\\r\\n\\f])","g"),Q=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(){ut()},J=ft((function(t){return!0===t.disabled&&C(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){m={apply:function(t,e){D.apply(t,a.call(e))},call:function(t){D.apply(t,a.call(arguments,1))}}}function K(t,e,n,r){var i,s,o,a,h,l,d,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&&(ut(e),e=e||u,c)){if(11!==v&&(h=X.exec(t)))if(i=h[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(h[2])return m.apply(n,e.getElementsByTagName(t)),n;if((i=h[3])&&e.getElementsByClassName)return m.apply(n,e.getElementsByClassName(i)),n}if(!(N[t+" "]||f&&f.test(t))){if(d=t,p=e,1===v&&(F.test(t)||z.test(t))){for((p=Y.test(t)&&at(e.parentNode)||e)==e&&g.scope||((a=e.getAttribute("id"))?a=S.escapeSelector(a):e.setAttribute("id",a=y)),s=(l=lt(t)).length;s--;)l[s]=(a?"#"+a:":scope")+" "+ct(l[s]);d=l.join(",")}try{return m.apply(n,p.querySelectorAll(d)),n}catch(e){N(t,!0)}finally{a===y&&e.removeAttribute("id")}}}return vt(t.replace(L,"$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=u.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 C(e,"input")&&e.type===t}}function it(t){return function(e){return(C(e,"input")||C(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 ut(t){var n,r=t?t.ownerDocument||t:P;return r!=u&&9===r.nodeType&&r.documentElement?(h=(u=r).documentElement,c=!S.isXMLDoc(u),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&P!=u&&(n=u.defaultView)&&n.top!==n&&n.addEventListener("unload",Z),g.getById=nt((function(t){return h.appendChild(t).id=S.expando,!u.getElementsByName||!u.getElementsByName(S.expando).length})),g.disconnectedMatch=nt((function(t){return p.call(t,"*")})),g.scope=nt((function(){return u.querySelectorAll(":scope")})),g.cssHas=nt((function(){try{return u.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)},f=[],nt((function(t){var e;h.appendChild(t).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+O+"*(?:value|"+M+")"),t.querySelectorAll("[id~="+y+"-]").length||f.push("~="),t.querySelectorAll("a#"+y+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=u.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=u.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+O+"*name"+O+"*="+O+"*(?:''|\"\")")})),g.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),k=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===u||t.ownerDocument==P&&K.contains(P,t)?-1:e===u||e.ownerDocument==P&&K.contains(P,e)?1:i?l.call(i,t)-l.call(i,e):0:4&n?-1:1)},u):u}for(t in K.matches=function(t,e){return K(t,null,null,e)},K.matchesSelector=function(t,e){if(ut(t),c&&!N[e+" "]&&(!f||!f.test(e)))try{var n=p.call(t,e);if(n||g.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){N(e,!0)}return K(e,u,null,[t]).length>0},K.contains=function(t,e){return(t.ownerDocument||t)!=u&&ut(t),S.contains(t,e)},K.attr=function(t,n){(t.ownerDocument||t)!=u&&ut(t);var r=e.attrHandle[n.toLowerCase()],i=r&&d.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)},S.uniqueSort=function(t){var e,n=[],r=0,s=0;if(o=!g.sortStable,i=!g.sortStable&&a.call(t,0),E.call(t,k),o){for(;e=t[s++];)e===t[s]&&(r=n.push(s));for(;r--;)T.call(t,n[r],1)}return i=null,t},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(a.apply(this)))},e=S.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&&q.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 C(t,e)}},CLASS:function(t){var e=b[t+" "];return e||(e=new RegExp("(^|"+O+")"+t+"("+O+"|$)"))&&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(B," ")+" ").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,u){var h,l,c,f,d,p=s!==o?"nextSibling":"previousSibling",m=e.parentNode,g=a&&e.nodeName.toLowerCase(),w=!u&&!a,b=!1;if(m){if(s){for(;p;){for(c=e;c=c[p];)if(a?C(c,g):1===c.nodeType)return!1;d=p="only"===t&&!d&&"nextSibling"}return!0}if(d=[o?m.firstChild:m.lastChild],o&&w){for(b=(f=(h=(l=m[y]||(m[y]={}))[t]||[])[0]===v&&h[1])&&h[2],c=f&&m.childNodes[f];c=++f&&c&&c[p]||(b=f=0)||d.pop();)if(1===c.nodeType&&++b&&c===e){l[t]=[v,f,b];break}}else if(w&&(b=f=(h=(l=e[y]||(e[y]={}))[t]||[])[0]===v&&h[1]),!1===b)for(;(c=++f&&c&&c[p]||(b=f=0)||d.pop())&&(!(a?C(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(L,"$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||S.text(e)).indexOf(t)>-1}})),lang:et((function(t){return U.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===h},focus:function(t){return t===function(){try{return u.activeElement}catch(t){}}()&&u.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return C(t,"input")&&!!t.checked||C(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 H.test(t.nodeName)},input:function(t){return G.test(t.nodeName)},button:function(t){return C(t,"input")&&"button"===t.type||C(t,"button")},text:function(t){var e;return C(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 ht(){}function lt(t,n){var r,i,s,o,a,u,h,l=x[t+" "];if(l)return n?0:l.slice(0);for(a=t,u=[],h=e.preFilter;a;){for(o in r&&!(i=R.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(s=[])),r=!1,(i=z.exec(a))&&(r=i.shift(),s.push({value:r,type:i[0].replace(L," ")}),a=a.slice(r.length)),e.filter)!(i=V[o].exec(a))||h[o]&&!(i=h[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,u).slice(0)}function ct(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function ft(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,u){var h,l,c=[v,a];if(u){for(;e=e[r];)if((1===e.nodeType||o)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||o)if(l=e[y]||(e[y]={}),i&&C(e,i))e=e[r]||e;else{if((h=l[s])&&h[0]===v&&h[1]===a)return c[2]=h[2];if(l[s]=c,c[2]=t(e,n,u))return!0}return!1}}function dt(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,u=t.length,h=null!=e;a<u;a++)(s=t[a])&&(n&&!n(s,r,i)||(o.push(s),h&&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,u){var h,c,f,d,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,u);if(n?n(w,d=i||(s?t:y||r)?[]:o,a,u):d=w,r)for(h=pt(d,g),r(h,[],a,u),c=h.length;c--;)(f=h[c])&&(d[g[c]]=!(w[g[c]]=f));if(s){if(i||t){if(i){for(h=[],c=d.length;c--;)(f=d[c])&&h.push(w[c]=f);i(null,d=[],h,u)}for(c=d.length;c--;)(f=d[c])&&(h=i?l.call(s,f):p[c])>-1&&(s[h]=!(o[h]=f))}}else d=pt(d===o?d.splice(y,d.length):d),i?i(null,o,d,u):m.apply(o,d)}))}function gt(t){for(var r,i,s,o=t.length,a=e.relative[t[0].type],u=a||e.relative[" "],h=a?1:0,c=ft((function(t){return t===r}),u,!0),f=ft((function(t){return l.call(r,t)>-1}),u,!0),d=[function(t,e,i){var s=!a&&(i||e!=n)||((r=e).nodeType?c(t,e,i):f(t,e,i));return r=null,s}];h<o;h++)if(i=e.relative[t[h].type])d=[ft(dt(d),i)];else{if((i=e.filter[t[h].type].apply(null,t[h].matches))[y]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return mt(h>1&&dt(d),h>1&&ct(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(L,"$1"),i,h<s&>(t.slice(h,s)),s<o&>(t=t.slice(s)),s<o&&ct(t))}d.push(i)}return dt(d)}function yt(t,r){var i,s=[],o=[],a=_[t+" "];if(!a){for(r||(r=lt(t)),i=r.length;i--;)(a=gt(r[i]))[y]?s.push(a):o.push(a);a=_(t,function(t,r){var i=r.length>0,s=t.length>0,o=function(o,a,h,l,f){var d,p,g,y=0,w="0",b=o&&[],x=[],_=n,N=o||s&&e.find.TAG("*",f),k=v+=null==_?1:Math.random()||.1,M=N.length;for(f&&(n=a==u||a||f);w!==M&&null!=(d=N[w]);w++){if(s&&d){for(p=0,a||d.ownerDocument==u||(ut(d),h=!c);g=t[p++];)if(g(d,a||u,h)){m.call(l,d);break}f&&(v=k)}i&&((d=!g&&d)&&y--,o&&b.push(d))}if(y+=w,i&&w!==y){for(p=0;g=r[p++];)g(b,x,a,h);if(o){if(y>0)for(;w--;)b[w]||x[w]||(x[w]=A.call(l));x=pt(x)}m.apply(l,x),f&&!o&&x.length>0&&y+r.length>1&&S.uniqueSort(l)}return f&&(v=k,n=_),b};return i?et(o):o}(o,s)),a.selector=t}return a}function vt(t,n,r,i){var s,o,a,u,h,l="function"==typeof t&&t,f=!i&<(t=l.selector||t);if(r=r||[],1===f.length){if((o=f[0]=f[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[u=a.type]);)if((h=e.find[u])&&(i=h(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,f))(i,n,!c,r,!n||Y.test(t)&&at(n.parentNode)||n),r}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,g.sortStable=y.split("").sort(k).join("")===y,ut(),g.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(u.createElement("fieldset"))})),S.find=K,S.expr[":"]=S.expr.pseudos,S.unique=S.uniqueSort,K.compile=yt,K.select=vt,K.setDocument=ut,K.tokenize=lt,K.escape=S.escapeSelector,K.getText=S.text,K.isXML=S.isXMLDoc,K.selectors=S.expr,K.support=S.support,K.uniqueSort=S.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&&S(t).is(n))break;r.push(t)}return r},B=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},R=S.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(t,e,n){return y(e)?S.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?S.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?S.grep(t,(function(t){return l.call(e,t)>-1!==n})):S.filter(e,t,n)}S.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?S.find.matchesSelector(r,t)?[r]:[]:S.find.matches(t,S.grep(e,(function(t){return 1===t.nodeType})))},S.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(S(t).filter((function(){for(e=0;e<r;e++)if(S.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)S.find(t,i[e],n);return r>1?S.uniqueSort(n):n},filter:function(t){return this.pushStack(F(this,t||[],!1))},not:function(t){return this.pushStack(F(this,t||[],!0))},is:function(t){return!!F(this,"string"==typeof t&&R.test(t)?S(t):t||[],!1).length}});var q,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||q,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.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 S?e[0]:e,S.merge(this,S.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),z.test(r[1])&&S.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(S):S.makeArray(t,this)}).prototype=S.fn,q=S(w);var V=/^(?:parents|prev(?:Until|All))/,G={children:!0,contents:!0,next:!0,prev:!0};function H(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(S.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,s=[],o="string"!=typeof t&&S(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&&S.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?S.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?l.call(S(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(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.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 H(t,"nextSibling")},prev:function(t){return H(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 B((t.parentNode||{}).firstChild,t)},children:function(t){return B(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},(function(t,e){S.fn[t]=function(n,r){var i=S.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=S.filter(r,i)),this.length>1&&(G[t]||S.uniqueSort(i),V.test(t)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function $(t){throw t}function Q(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])}}S.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return S.each(t.match(X)||[],(function(t,n){e[n]=!0})),e}(t):S.extend({},t);var e,n,r,i,s=[],o=[],a=-1,u=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?[]:"")},h={add:function(){return s&&(n&&!e&&(a=s.length-1,o.push(n)),function e(n){S.each(n,(function(n,r){y(r)?t.unique&&h.has(r)||s.push(r):r&&r.length&&"string"!==_(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return S.each(arguments,(function(t,e){for(var n;(n=S.inArray(e,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(t){return t?S.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||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var e=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.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 S.Deferred((function(n){S.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,u=arguments,h=function(){var r,h;if(!(t<s)){if((r=n.apply(a,u))===e.promise())throw new TypeError("Thenable self-resolution");h=r&&("object"==typeof r||"function"==typeof r)&&r.then,y(h)?i?h.call(r,o(s,e,Y,i),o(s,e,$,i)):(s++,h.call(r,o(s,e,Y,i),o(s,e,$,i),o(s,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,u=[r]),(i||e.resolveWith)(a,u))}},l=i?h:function(){try{h()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,l.error),t+1>=s&&(n!==$&&(a=void 0,u=[r]),e.rejectWith(a,u))}};t?l():(S.Deferred.getErrorHook?l.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(l.error=S.Deferred.getStackHook()),r.setTimeout(l))}}return S.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:$))})).promise()},promise:function(t){return null!=t?S.extend(t,i):i}},s={};return S.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=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&&(Q(t,s.done(o(n)).resolve,s.reject,!e),"pending"===s.state()||y(i[n]&&i[n].then)))return s.then();for(;n--;)Q(i[n],o(n),s.reject);return s.promise()}});var Z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.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)},S.readyException=function(t){r.setTimeout((function(){throw t}))};var J=S.Deferred();function K(){w.removeEventListener("DOMContentLoaded",K),r.removeEventListener("load",K),S.ready()}S.fn.ready=function(t){return J.then(t).catch((function(t){S.readyException(t)})),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==t&&--S.readyWait>0||J.resolveWith(w,[S]))}}),S.ready.then=J.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?r.setTimeout(S.ready):(w.addEventListener("DOMContentLoaded",K),r.addEventListener("load",K));var tt=function(t,e,n,r,i,s,o){var a=0,u=t.length,h=null==n;if("object"===_(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),h&&(o?(e.call(t,r),e=null):(h=e,e=function(t,e,n){return h.call(S(t),n)})),e))for(;a<u;a++)e(t[a],n,o?r:r.call(t[a],a,e(t[a],n)));return i?t:h?e.call(t):u?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=S.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(X)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||S.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&&!S.isEmptyObject(e)}};var at=new ot,ut=new ot,ht=/^(?:\{[\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:ht.test(t)?JSON.parse(t):t)}(n)}catch(t){}ut.set(t,e,n)}else n=void 0;return n}S.extend({hasData:function(t){return ut.hasData(t)||at.hasData(t)},data:function(t,e,n){return ut.access(t,e,n)},removeData:function(t,e){ut.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),S.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=ut.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(){ut.set(this,t)})):tt(this,(function(e){var n;if(s&&void 0===e)return void 0!==(n=ut.get(s,t))||void 0!==(n=ct(s,t))?n:void 0;this.each((function(){ut.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){ut.remove(this,t)}))}}),S.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,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=S.queue(t,e),r=n.length,i=n.shift(),s=S._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete s.stop,i.call(t,(function(){S.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:S.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),S.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?S.queue(this[0],t):void 0===e?this:this.each((function(){var n=S.queue(this,t,e);S._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&S.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){S.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=S.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 ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,dt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],mt=w.documentElement,gt=function(t){return S.contains(t.ownerDocument,t)},yt={composed:!0};mt.getRootNode&&(gt=function(t){return S.contains(t.ownerDocument,t)||t.getRootNode(yt)===t.ownerDocument});var vt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&>(t)&&"none"===S.css(t,"display")};function wt(t,e,n,r){var i,s,o=20,a=r?function(){return r.cur()}:function(){return S.css(t,e,"")},u=a(),h=n&&n[3]||(S.cssNumber[e]?"":"px"),l=t.nodeType&&(S.cssNumber[e]||"px"!==h&&+u)&&dt.exec(S.css(t,e));if(l&&l[3]!==h){for(u/=2,h=h||l[3],l=+u||1;o--;)S.style(t,e,l+h),(1-s)*(1-(s=a()/u||.5))<=0&&(o=0),l/=s;l*=2,S.style(t,e,l+h),n=n||[]}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=h,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=S.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),bt[r]=i,i)}function _t(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}S.fn.extend({show:function(){return _t(this,!0)},hide:function(){return _t(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){vt(this)?S(this).show():S(this).hide()}))}});var Nt,kt,St=/^(?:checkbox|radio)$/i,Mt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ct=/^$|^module$|\/(?:java|ecma)script/i;Nt=w.createDocumentFragment().appendChild(w.createElement("div")),(kt=w.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),Nt.appendChild(kt),g.checkClone=Nt.cloneNode(!0).cloneNode(!0).lastChild.checked,Nt.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Nt.cloneNode(!0).lastChild.defaultValue,Nt.innerHTML="<option></option>",g.option=!!Nt.lastChild;var At={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&&C(t,e)?S.merge([t],n):n}function Tt(t,e){for(var n=0,r=t.length;n<r;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,g.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var Ot=/<|&#?\w+;/;function Lt(t,e,n,r,i){for(var s,o,a,u,h,l,c=e.createDocumentFragment(),f=[],d=0,p=t.length;d<p;d++)if((s=t[d])||0===s)if("object"===_(s))S.merge(f,s.nodeType?[s]:s);else if(Ot.test(s)){for(o=o||c.appendChild(e.createElement("div")),a=(Mt.exec(s)||["",""])[1].toLowerCase(),u=At[a]||At._default,o.innerHTML=u[1]+S.htmlPrefilter(s)+u[2],l=u[0];l--;)o=o.lastChild;S.merge(f,o.childNodes),(o=c.firstChild).textContent=""}else f.push(e.createTextNode(s));for(c.textContent="",d=0;s=f[d++];)if(r&&S.inArray(s,r)>-1)i&&i.push(s);else if(h=gt(s),o=Et(c.appendChild(s),"script"),h&&Tt(o),n)for(l=0;s=o[l++];)Ct.test(s.type||"")&&n.push(s);return c}var jt=/^([^.]*)(?:\.(.+)|)/;function Wt(){return!0}function Pt(){return!1}function Dt(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)Dt(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=Pt;else if(!i)return t;return 1===s&&(o=i,i=function(t){return S().off(t),o.apply(this,arguments)},i.guid=o.guid||(o.guid=S.guid++)),t.each((function(){S.event.add(this,e,i,r,n)}))}function It(t,e,n){n?(at.set(t,e,!1),S.event.add(t,e,{namespace:!1,handler:function(t){var n,r=at.get(this,e);if(1&t.isTrigger&&this[e]){if(r)(S.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,S.event.trigger(r[0],r.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Wt)}})):void 0===at.get(t,e)&&S.event.add(t,e,Wt)}S.event={global:{},add:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.get(t);if(st(t))for(n.handler&&(n=(s=n).handler,i=s.selector),i&&S.find.matchesSelector(mt,i),n.guid||(n.guid=S.guid++),(u=g.events)||(u=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(e){return void 0!==S&&S.event.triggered!==e.type?S.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(X)||[""]).length;h--;)d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d&&(c=S.event.special[d]||{},d=(i?c.delegateType:c.bindType)||d,c=S.event.special[d]||{},l=S.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:p.join(".")},s),(f=u[d])||((f=u[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,r,p,o)||t.addEventListener&&t.addEventListener(d,o)),c.add&&(c.add.call(t,l),l.handler.guid||(l.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,l):f.push(l),S.event.global[d]=!0)},remove:function(t,e,n,r,i){var s,o,a,u,h,l,c,f,d,p,m,g=at.hasData(t)&&at.get(t);if(g&&(u=g.events)){for(h=(e=(e||"").match(X)||[""]).length;h--;)if(d=m=(a=jt.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),d){for(c=S.event.special[d]||{},f=u[d=(r?c.delegateType:c.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=f.length;s--;)l=f[s],!i&&m!==l.origType||n&&n.guid!==l.guid||a&&!a.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(f.splice(s,1),l.selector&&f.delegateCount--,c.remove&&c.remove.call(t,l));o&&!f.length&&(c.teardown&&!1!==c.teardown.call(t,p,g.handle)||S.removeEvent(t,d,g.handle),delete u[d])}else for(d in u)S.event.remove(t,d+e[h],n,r,!0);S.isEmptyObject(u)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,s,o,a=new Array(arguments.length),u=S.event.fix(t),h=(at.get(this,"events")||Object.create(null))[u.type]||[],l=S.event.special[u.type]||{};for(a[0]=u,e=1;e<arguments.length;e++)a[e]=arguments[e];if(u.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,u)){for(o=S.event.handlers.call(this,u,h),e=0;(i=o[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(s=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==s.namespace&&!u.rnamespace.test(s.namespace)||(u.handleObj=s,u.data=s.data,void 0!==(r=((S.event.special[s.origType]||{}).handle||s.handler).apply(i.elem,a))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,s,o,a=[],u=e.delegateCount,h=t.target;if(u&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},n=0;n<u;n++)void 0===o[i=(r=e[n]).selector+" "]&&(o[i]=r.needsContext?S(i,this).index(h)>-1:S.find(i,this,null,[h]).length),o[i]&&s.push(r);s.length&&a.push({elem:h,handlers:s})}return h=this,u<e.length&&a.push({elem:h,handlers:e.slice(u)}),a},addProp:function(t,e){Object.defineProperty(S.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[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&It(e,"click",!0),!1},trigger:function(t){var e=this||t;return St.test(e.type)&&e.click&&C(e,"input")&&It(e,"click"),!0},_default:function(t){var e=t.target;return St.test(e.type)&&e.click&&C(e,"input")&&at.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Wt:Pt,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&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(w.documentMode){var n=at.get(this,"handle"),r=S.event.fix(t);r.type="focusin"===t.type?"focus":"blur",r.isSimulated=!0,n(t),r.target===r.currentTarget&&n(r)}else S.event.simulate(e,t.target,S.event.fix(t))}S.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},S.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))}}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){S.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=t.relatedTarget,i=t.handleObj;return r&&(r===this||S.contains(this,r))||(t.type=i.origType,n=i.handler.apply(this,arguments),t.type=e),n}}})),S.fn.extend({on:function(t,e,n,r){return Dt(this,t,e,n,r)},one:function(t,e,n,r){return Dt(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,S(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=Pt),this.each((function(){S.event.remove(this,t,n,e)}))}});var Bt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ft(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(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++)S.event.add(e,i,a[i][n]);ut.hasData(t)&&(s=ut.access(t),o=S.extend({},s),ut.set(e,o))}}function Gt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&St.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Ht(t,e,n,r){e=u(e);var i,s,o,a,h,l,c=0,f=t.length,d=f-1,p=e[0],m=y(p);if(m||f>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())),Ht(s,e,n,r)}));if(f&&(s=(i=Lt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=s),s||r)){for(a=(o=S.map(Et(i,"script"),qt)).length;c<f;c++)h=i,c!==d&&(h=S.clone(h,!0,!0),a&&S.merge(o,Et(h,"script"))),n.call(t[c],h,c);if(a)for(l=o[o.length-1].ownerDocument,S.map(o,Ut),c=0;c<a;c++)h=o[c],Ct.test(h.type||"")&&!at.access(h,"globalEval")&&S.contains(l,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?S._evalUrl&&!h.noModule&&S._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},l):x(h.textContent.replace(zt,""),h,l))}return t}function Xt(t,e,n){for(var r,i=e?S.filter(e,t):t,s=0;null!=(r=i[s]);s++)n||1!==r.nodeType||S.cleanData(Et(r)),r.parentNode&&(n&>(r)&&Tt(Et(r,"script")),r.parentNode.removeChild(r));return t}S.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,s,o,a=t.cloneNode(!0),u=gt(t);if(!(g.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.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&&Tt(o,!u&&Et(t,"script")),a},cleanData:function(t){for(var e,n,r,i=S.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]?S.event.remove(n,r):S.removeEvent(n,r,e.handle);n[at.expando]=void 0}n[ut.expando]&&(n[ut.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Xt(this,t,!0)},remove:function(t){return Xt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?S.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 Ht(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ft(this,t).appendChild(t)}))},prepend:function(){return Ht(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ft(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Ht(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Ht(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&&(S.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 S.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&&!Bt.test(t)&&!At[(Mt.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(S.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 Ht(this,arguments,(function(e){var n=this.parentNode;S.inArray(this,t)<0&&(S.cleanData(Et(this)),n&&n.replaceChild(e,this))}),t)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){S.fn[t]=function(t){for(var n,r=[],i=S(t),s=i.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),S(i[o])[e](n),h.apply(r,n.get());return this.pushStack(r)}}));var Yt=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),$t=/^--/,Qt=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=$t.test(e),u=t.style;return(n=n||Qt(t))&&(o=n.getPropertyValue(e)||n[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||gt(t)||(o=S.style(t,e)),!g.pixelBoxStyles()&&Yt.test(o)&&Jt.test(e)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.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){h.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(h).appendChild(l);var t=r.getComputedStyle(l);n="1%"!==t.top,u=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(h),l=null}}function e(t){return Math.round(parseFloat(t))}var n,i,s,o,a,u,h=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,S.extend(g,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),u},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 S.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 ue(t,e,n){var r=dt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function he(t,e,n,r,i,s){var o="width"===e?1:0,a=0,u=0,h=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(h+=S.css(t,n+pt[o],!0,i)),r?("content"===n&&(u-=S.css(t,"padding"+pt[o],!0,i)),"margin"!==n&&(u-=S.css(t,"border"+pt[o]+"Width",!0,i))):(u+=S.css(t,"padding"+pt[o],!0,i),"padding"!==n?u+=S.css(t,"border"+pt[o]+"Width",!0,i):a+=S.css(t,"border"+pt[o]+"Width",!0,i));return!r&&s>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-u-a-.5))||0),u+h}function le(t,e,n){var r=Qt(t),i=(!g.boxSizingReliable()||n)&&"border-box"===S.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()&&C(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===S.css(t,"boxSizing",!1,r),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(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)}S.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),u=$t.test(e),h=t.style;if(u||(e=ie(a)),o=S.cssHooks[e]||S.cssHooks[a],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(t,!1,r))?i:h[e];"string"==(s=typeof n)&&(i=dt.exec(n))&&i[1]&&(n=wt(t,e,i),s="number"),null!=n&&n==n&&("number"!==s||u||(n+=i&&i[3]||(S.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(n=o.set(t,n,r))||(u?h.setProperty(e,n):h[e]=n))}},css:function(t,e,n,r){var i,s,o,a=it(e);return $t.test(e)||(e=ie(a)),(o=S.cssHooks[e]||S.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}}),S.each(["height","width"],(function(t,e){S.cssHooks[e]={get:function(t,n,r){if(n)return!se.test(S.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=Qt(t),o=!g.scrollboxSize()&&"absolute"===s.position,a=(o||r)&&"border-box"===S.css(t,"boxSizing",!1,s),u=r?he(t,e,r,a,s):0;return a&&o&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),u&&(i=dt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=S.css(t,e)),ue(0,n,u)}}})),S.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"})),S.each({margin:"",padding:"",border:"Width"},(function(t,e){S.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&&(S.cssHooks[t+e].set=ue)})),S.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=Qt(t),i=e.length;o<i;o++)s[e[o]]=S.css(t,e[o],!1,r);return s}return void 0!==n?S.style(t,e,n):S.css(t,e)}),t,e,arguments.length>1)}}),S.Tween=ce,ce.prototype={constructor:ce,init:function(t,e,n,r,i,s){this.elem=t,this.prop=n,this.easing=i||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(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=S.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=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||!S.cssHooks[t.prop]&&null==t.elem.style[ie(t.prop)]?t.elem[t.prop]=t.now:S.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)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=ce.prototype.init,S.fx.step={};var fe,de,pe=/^(?:toggle|show|hide)$/,me=/queueHooks$/;function ge(){de&&(!1===w.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(ge):r.setTimeout(ge,S.fx.interval),S.fx.tick())}function ye(){return r.setTimeout((function(){fe=void 0})),fe=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=S.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=fe||ye(),n=Math.max(0,h.startTime+h.duration-e),r=1-(n/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(r);return a.notifyWith(t,[h,r,n]),r<1&&o?n:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ye(),duration:n.duration,tweens:[],createTween:function(e,n){var r=S.Tween(t,h.opts,e,n,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(r),r},stop:function(e){var n=0,r=e?h.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)h.tweens[n].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),l=h.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=S.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,h.opts.specialEasing);s<o;s++)if(r=be.prefilters[s].call(h,t,l,h.opts))return y(r.stop)&&(S._queueHooks(h.elem,h.opts.queue).stop=r.stop.bind(r)),r;return S.map(l,we,h),y(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),S.fx.timer(S.extend(u,{elem:t,anim:h,queue:h.opts.queue})),h}S.Animation=S.extend(be,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return wt(n.elem,t,dt.exec(e),n),n}]},tweener:function(t,e){y(t)?(e=t,t=["*"]):t=t.match(X);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,u,h,l,c="width"in e||"height"in e,f=this,d={},p=t.style,m=t.nodeType&&vt(t),g=at.get(t,"fxshow");for(r in n.queue||(null==(o=S._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,f.always((function(){f.always((function(){o.unqueued--,S.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}d[r]=g&&g[r]||S.style(t,r)}if((u=!S.isEmptyObject(e))||!S.isEmptyObject(d))for(r in c&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=g&&g.display)&&(h=at.get(t,"display")),"none"===(l=S.css(t,"display"))&&(h?l=h:(_t([t],!0),h=t.style.display||h,l=S.css(t,"display"),_t([t]))),("inline"===l||"inline-block"===l&&null!=h)&&"none"===S.css(t,"float")&&(u||(f.done((function(){p.display=h})),null==h&&(l=p.display,h="none"===l?"":l)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=at.access(t,"fxshow",{display:h}),s&&(g.hidden=!m),m&&_t([t],!0),f.done((function(){for(r in m||_t([t]),at.remove(t,"fxshow"),d)S.style(t,r,d[r])}))),u=we(m?g[r]:0,r,f),r in g||(g[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?be.prefilters.unshift(t):be.prefilters.push(t)}}),S.speed=function(t,e,n){var r=t&&"object"==typeof t?S.extend({},t):{complete:n||!n&&e||y(t)&&t,duration:t,easing:n&&e||e&&!y(e)&&e};return S.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.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&&S.dequeue(this,r.queue)},r},S.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=S.isEmptyObject(t),s=S.speed(e,n,r),o=function(){var e=be(this,S.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=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||S.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=S.timers,o=r?r.length:0;for(n.finish=!0,S.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}))}}),S.each(["toggle","show","hide"],(function(t,e){var n=S.fn[e];S.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ve(e,!0),t,r,i)}})),S.each({slideDown:ve("show"),slideUp:ve("hide"),slideToggle:ve("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){S.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),S.timers=[],S.fx.tick=function(){var t,e=0,n=S.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||S.fx.stop(),fe=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){de||(de=!0,ge())},S.fx.stop=function(){de=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,e){return t=S.fx&&S.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,_e=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return tt(this,S.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){S.removeAttr(this,t)}))}}),S.extend({attr:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?S.prop(t,e,n):(1===s&&S.isXMLDoc(t)||(i=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void S.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=S.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!g.radioValue&&"radio"===e&&C(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(X);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?S.removeAttr(t,n):t.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=_e[e]||S.find.attr;_e[e]=function(t,e,r){var i,s,o=e.toLowerCase();return r||(s=_e[o],_e[o]=i,i=null!=n(t,e,r)?o:null,_e[o]=s),i}}));var Ne=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Se(t){return(t.match(X)||[]).join(" ")}function Me(t){return t.getAttribute&&t.getAttribute("class")||""}function Ce(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(X)||[]}S.fn.extend({prop:function(t,e){return tt(this,S.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[S.propFix[t]||t]}))}}),S.extend({prop:function(t,e,n){var r,i,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&S.isXMLDoc(t)||(e=S.propFix[e]||e,i=S.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=S.find.attr(t,"tabindex");return e?parseInt(e,10):Ne.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(t){var e,n,r,i,s,o;return y(t)?this.each((function(e){S(this).addClass(t.call(this,e,Me(this)))})):(e=Ce(t)).length?this.each((function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)i=e[s],n.indexOf(" "+i+" ")<0&&(n+=i+" ");o=Se(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){S(this).removeClass(t.call(this,e,Me(this)))})):arguments.length?(e=Ce(t)).length?this.each((function(){if(r=Me(this),n=1===this.nodeType&&" "+Se(r)+" "){for(s=0;s<e.length;s++)for(i=e[s];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");o=Se(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){S(this).toggleClass(t.call(this,n,Me(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Ce(t),this.each((function(){if(a)for(s=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=Me(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&&(" "+Se(Me(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;S.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,S(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(t){return null==t?"":t+""}))),(e=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Ae,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:Se(S.text(t))}},select:{get:function(t){var e,n,r,i=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],u=o?s+1:i.length;for(r=s<0?u:o?s:0;r<u;r++)if(((n=i[r]).selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!C(n.parentNode,"optgroup"))){if(e=S(n).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var n,r,i=t.options,s=S.makeArray(e),o=i.length;o--;)((r=i[o]).selected=S.inArray(S.valHooks.option.get(r),s)>-1)&&(n=!0);return n||(t.selectedIndex=-1),s}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=S.inArray(S(t).val(),e)>-1}},g.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Ee=r.location,Te={guid:Date.now()},Oe=/\?/;S.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||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,je=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,n,i){var s,o,a,u,h,l,c,f,p=[n||w],m=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(o=f=a=n=n||w,3!==n.nodeType&&8!==n.nodeType&&!Le.test(m+S.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),h=m.indexOf(":")<0&&"on"+m,(t=t[S.expando]?t:new S.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]:S.makeArray(e,[t]),c=S.event.special[m]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!v(n)){for(u=c.delegateType||m,Le.test(u+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();)f=o,t.type=s>1?u:c.bindType||m,(l=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&l.apply(o,e),(l=h&&o[h])&&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)||h&&y(n[m])&&!v(n)&&((a=n[h])&&(n[h]=null),S.event.triggered=m,t.isPropagationStopped()&&f.addEventListener(m,je),n[m](),t.isPropagationStopped()&&f.removeEventListener(m,je),S.event.triggered=void 0,a&&(n[h]=a)),t.result}},simulate:function(t,e,n){var r=S.extend(new S.Event,n,{type:t,isSimulated:!0});S.event.trigger(r,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each((function(){S.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return S.event.trigger(t,e,n,!0)}});var We=/\[\]$/,Pe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Ie=/^(?:input|select|textarea|keygen)/i;function Be(t,e,n,r){var i;if(Array.isArray(e))S.each(e,(function(e,i){n||We.test(t)?r(t,i):Be(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==_(e))r(t,e);else for(i in e)Be(t+"["+i+"]",e[i],n,r)}S.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&&!S.isPlainObject(t))S.each(t,(function(){i(this.name,this.value)}));else for(n in t)Be(n,t[n],e,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Ie.test(this.nodeName)&&!De.test(t)&&(this.checked||!St.test(t))})).map((function(t,e){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:n.replace(Pe,"\r\n")}})).get()}});var Re=/%20/g,ze=/#.*$/,Fe=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,Ve=/^\/\//,Ge={},He={},Xe="*/".concat("*"),Ye=w.createElement("a");function $e(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,s=e.toLowerCase().match(X)||[];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 Qe(t,e,n,r){var i={},s=t===He;function o(a){var u;return i[a]=!0,S.each(t[a]||[],(function(t,a){var h=a(e,n,r);return"string"!=typeof h||s||i[h]?s?!(u=h):void 0:(e.dataTypes.unshift(h),o(h),!1)})),u}return o(e.dataTypes[0])||!i["*"]&&o("*")}function Ze(t,e){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&S.extend(!0,t,r),t}Ye.href=Ee.href,S.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:{"*":Xe,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ze(Ze(t,S.ajaxSettings),e):Ze(S.ajaxSettings,t)},ajaxPrefilter:$e(Ge),ajaxTransport:$e(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,i,s,o,a,u,h,l,c,f,d=S.ajaxSetup({},e),p=d.context||d,m=d.context&&(p.nodeType||p.jquery)?S(p):S.event,g=S.Deferred(),y=S.Callbacks("once memory"),v=d.statusCode||{},b={},x={},_="canceled",N={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=qe.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 h?s:null},setRequestHeader:function(t,e){return null==h&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,b[t]=e),this},overrideMimeType:function(t){return null==h&&(d.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)N.always(t[N.status]);else for(e in t)v[e]=[v[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(g.promise(N),d.url=((t||d.url||Ee.href)+"").replace(Ve,Ee.protocol+"//"),d.type=e.method||e.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(X)||[""],null==d.crossDomain){u=w.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Ye.protocol+"//"+Ye.host!=u.protocol+"//"+u.host}catch(t){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=S.param(d.data,d.traditional)),Qe(Ge,d,e,N),h)return N;for(c in(l=S.event&&d.global)&&0===S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ue.test(d.type),i=d.url.replace(ze,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Re,"+")):(f=d.url.slice(i.length),d.data&&(d.processData||"string"==typeof d.data)&&(i+=(Oe.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Fe,"$1"),f=(Oe.test(i)?"&":"?")+"_="+Te.guid+++f),d.url=i+f),d.ifModified&&(S.lastModified[i]&&N.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&N.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||e.contentType)&&N.setRequestHeader("Content-Type",d.contentType),N.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Xe+"; q=0.01":""):d.accepts["*"]),d.headers)N.setRequestHeader(c,d.headers[c]);if(d.beforeSend&&(!1===d.beforeSend.call(p,N,d)||h))return N.abort();if(_="abort",y.add(d.complete),N.done(d.success),N.fail(d.error),n=Qe(He,d,e,N)){if(N.readyState=1,l&&m.trigger("ajaxSend",[N,d]),h)return N;d.async&&d.timeout>0&&(a=r.setTimeout((function(){N.abort("timeout")}),d.timeout));try{h=!1,n.send(b,k)}catch(t){if(h)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,o,u){var c,f,w,b,x,_=e;h||(h=!0,a&&r.clearTimeout(a),n=void 0,s=u||"",N.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,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)s=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==u[0]&&u.unshift(s),n[s]}(d,N,o)),!c&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(t,e,n,r){var i,s,o,a,u,h={},l=t.dataTypes.slice();if(l[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=l.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=s,s=l.shift())if("*"===s)s=u;else if("*"!==u&&u!==s){if(!(o=h[u+" "+s]||h["* "+s]))for(i in h)if((a=i.split(" "))[1]===s&&(o=h[u+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[i]:!0!==h[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 "+u+" to "+s}}}return{state:"success",data:e}}(d,b,N,c),c?(d.ifModified&&((x=N.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=x),(x=N.getResponseHeader("etag"))&&(S.etag[i]=x)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=b.state,f=b.data,c=!(w=b.error))):(w=_,!t&&_||(_="error",t<0&&(t=0))),N.status=t,N.statusText=(e||_)+"",c?g.resolveWith(p,[f,_,N]):g.rejectWith(p,[N,_,w]),N.statusCode(v),v=void 0,l&&m.trigger(c?"ajaxSuccess":"ajaxError",[N,d,c?f:w]),y.fireWith(p,[N,_]),l&&(m.trigger("ajaxComplete",[N,d]),--S.active||S.event.trigger("ajaxStop")))}return N},getJSON:function(t,e,n){return S.get(t,e,n,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],(function(t,e){S[e]=function(t,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:t,type:e,dataType:i,data:n,success:r},S.isPlainObject(t)&&t))}})),S.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),S._evalUrl=function(t,e,n){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){S.globalEval(t,e,n)}})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(y(t)&&(t=t.call(this[0])),e=S(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){S(this).wrapInner(t.call(this,e))})):this.each((function(){var e=S(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=y(t);return this.each((function(n){S(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ke=S.ajaxSettings.xhr();g.cors=!!Ke&&"withCredentials"in Ke,g.ajax=Ke=!!Ke,S.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()}}})),S.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),S.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=S("<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=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||S.expando+"_"+Te.guid++;return this[t]=!0,t}}),S.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+=(Oe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||S.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?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),S.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=z.exec(t))?[e.createElement(i[1])]:(i=Lt([t],e,s),s&&s.length&&S(s).remove(),S.merge([],i.childNodes)));var r,i,s},S.fn.load=function(t,e,n){var r,i,s,o=this,a=t.indexOf(" ");return a>-1&&(r=Se(t.slice(a)),t=t.slice(0,a)),y(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),o.length>0&&S.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(r?S("<div>").append(S.parseHTML(t)).find(r):t)})).always(n&&function(t,e){o.each((function(){n.apply(this,s||[t.responseText,e,t])}))}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,(function(e){return t===e.elem})).length},S.offset={setOffset:function(t,e,n){var r,i,s,o,a,u,h=S.css(t,"position"),l=S(t),c={};"static"===h&&(t.style.position="relative"),a=l.offset(),s=S.css(t,"top"),u=S.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+u).indexOf("auto")>-1?(o=(r=l.position()).top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(u)||0),y(e)&&(e=e.call(t,n,S.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)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){S.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"===S.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"===S.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),i.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-S.css(r,"marginTop",!0),left:e.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||mt}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;S.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)}})),S.each(["top","left"],(function(t,e){S.cssHooks[e]=te(g.pixelPosition,(function(t,n){if(n)return n=Kt(t,e),Yt.test(n)?S(t).position()[e]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(t,e){S.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){S.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?S.css(e,n,a):S.style(e,n,i,a)}),e,o?i:void 0,o)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){S.fn[e]=function(t){return this.on(e,t)}})),S.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)}}),S.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){S.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;S.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||S.guid++,i},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=C,S.isFunction=y,S.isWindow=v,S.camelCase=it,S.type=_,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},S.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return S}.apply(e,[]))||(t.exports=n);var sn=r.jQuery,on=r.$;return S.noConflict=function(t){return r.$===S&&(r.$=on),t&&r.jQuery===S&&(r.jQuery=sn),S},void 0===i&&(r.jQuery=r.$=S),S}))},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 u=t[a],h=r.base?u[0]+r.base:u[0],l=s[h]||0,c="".concat(h," ").concat(l);s[h]=l+1;var f=n(c),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)e[f].references++,e[f].updater(d);else{var p=i(d,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 u=r(t,i),h=0;h<s.length;h++){var l=n(s[h]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}s=u}}},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 u=this[a][0];null!=u&&(o[u]=!0)}for(var h=0;h<t.length;h++){var l=[].concat(t[h]);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:()=>d,average:()=>r,clamp:()=>f,degrees:()=>g,flipAway:()=>w,isBetween:()=>l,isBetweenExclusive:()=>c,isBetweenInclusive:()=>l,max:()=>h,mean:()=>r,median:()=>a,min:()=>u,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 u(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 h(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 f(t,e,n){return t<e?e:t>n?n:t}function d(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:()=>c,JJ:()=>l,Qq:()=>u,YL:()=>a,jJ:()=>h});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: 1px solid #d0d0e9;\n border-radius: 5px;\n\n background-color: black;\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.D8UCSOzbDas70ahLaazC {\n border-style: solid;\n border-color: #d0d0e9 transparent transparent transparent;\n border-width: 18px 9px;\n margin-top: -1px;\n}\n\n.RCKbqYEd_F2wRTu_tJpk {\n border-style: solid;\n border-color: black transparent transparent transparent;\n border-width: 17px 8px;\n margin-top: -37px;\n}\n',""]);var a="DKvRm2Iz8xnCJ3FyFRDv",u="p5_D557pe0GpEcfAZAWo",h="D8UCSOzbDas70ahLaazC",l="RCKbqYEd_F2wRTu_tJpk";const c=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:()=>L});var t=n(72),e=n.n(t),i=n(825),s=n.n(i),o=n(659),a=n.n(o),u=n(56),h=n.n(u),l=n(540),c=n.n(l),f=n(113),d=n.n(f),p=n(865),m={};m.styleTagTransform=d(),m.setAttributes=h(),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,M,C,A,E=n(645),T=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)},O=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 L{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,document.createElement("div")),x.set(this,5),_.set(this,0),N.set(this,void 0),k.set(this,(()=>{})),S.set(this,(()=>{})),T(this,y,"f").classList.add(p.YL),T(this,v,"f").classList.add(p.Qq),T(this,v,"f").textContent=null!=t?t:"",T(this,y,"f").append(T(this,v,"f")),T(this,w,"f").classList.add(p.jJ),T(this,y,"f").append(T(this,w,"f")),T(this,b,"f").classList.add(p.JJ),T(this,y,"f").append(T(this,b,"f"))}get textContent(){return T(this,v,"f").textContent}set textContent(t){let e=!T(this,g,"m",A).call(this);T(this,g,"m",C).call(this),T(this,v,"f").textContent=t,e&&T(this,g,"m",M).call(this)}get owner(){return T(this,N,"f")}set owner(t){T(this,N,"f")&&(T(this,N,"f").removeEventListener("mouseover",T(this,k,"f")),T(this,N,"f").removeEventListener("mouseout",T(this,S,"f"))),O(this,N,t,"f"),t&&(t.addEventListener("mouseover",(()=>T(this,g,"m",M).call(this))),t.addEventListener("mouseout",(()=>T(this,g,"m",C).call(this))))}get padding(){return T(this,x,"f")}set padding(t){O(this,x,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}get pointerDisplacement(){return T(this,_,"f")}set pointerDisplacement(t){O(this,_,t,"f"),T(this,g,"m",A).call(this)||(T(this,g,"m",C).call(this),T(this,g,"m",M).call(this))}}y=new WeakMap,v=new WeakMap,w=new WeakMap,b=new WeakMap,x=new WeakMap,_=new WeakMap,N=new WeakMap,k=new WeakMap,S=new WeakMap,g=new WeakSet,M=function(){if(T(this,y,"f").style.left="0px",T(this,y,"f").style.top="0px",T(this,w,"f").style.marginLeft=`${T(this,_,"f")}px`,T(this,b,"f").style.marginLeft=`${T(this,_,"f")}px`,document.body.append(T(this,y,"f")),!T(this,N,"f"))return;let t=T(this,y,"f").getBoundingClientRect().width,e=T(this,v,"f").getBoundingClientRect().height+T(this,w,"f").getBoundingClientRect().height/2-1,n=E.Box.matching(T(this,N,"f").getBoundingClientRect()).padded(T(this,x,"f"));T(this,y,"f").style.left=n.peripheralPoint(3*Math.PI/2).x-t/2-T(this,_,"f")/2+"px",T(this,y,"f").style.top=n.peripheralPoint(3*Math.PI/2).y-e+"px"},C=function(){T(this,y,"f").remove()},A=function(){return!document.body.contains(T(this,y,"f"))}})(),r})(),t.exports=e()},705:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>p,Ol:()=>f,Qs:()=>u,Se:()=>a,eB:()=>d,vM:()=>l,vw:()=>c,yZ:()=>h});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.LtjvWfQ5DEgLE0jZ1VYc {\n margin-top: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.Nc_rMplF2zhIq3zYlKFl {\n margin: 11px 0px 0px 12px;\n\n display: flex;\n flex-direction: column;\n}\n\n.UArJtlXrClYUqKvYzpXe .Nc_rMplF2zhIq3zYlKFl {\n display: none;\n}\n\n.rgGEAvKvdVba2DrspkU6 {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.mLPVUA5YiyA4OksC17sb {\n margin-top: 23px;\n\n display: flex;\n flex-direction: row;\n gap: 23px;\n}\n\n.pCuHfZ8GeFUaELxeOyqs {\n margin-top: 29px;\n\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.IhPX3q3sGT4fPIlgUdp1 {\n display: none;\n flex-direction: column;\n}\n',""]);var a="LtjvWfQ5DEgLE0jZ1VYc",u="Nc_rMplF2zhIq3zYlKFl",h="UArJtlXrClYUqKvYzpXe",l="rgGEAvKvdVba2DrspkU6",c="mLPVUA5YiyA4OksC17sb",f="pCuHfZ8GeFUaELxeOyqs",d="IhPX3q3sGT4fPIlgUdp1";const p=o},709:(t,e,n)=>{"use strict";n.d(e,{A:()=>u,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 u=o},723:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Wu:()=>u,kL:()=>a,r9:()=>h});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.vDAwbQmWCc39SmNMFRtv {\n margin: 0px;\n\n border: none;\n\n padding: 3px 15px;\n border-radius: 2px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: #001010;\n\n background-color: #8cdede;\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: #3a8f8f;\n\n pointer-events: none;\n}\n\n.vDAwbQmWCc39SmNMFRtv:hover {\n background-color: #3ca9a9;\n}\n\n.vDAwbQmWCc39SmNMFRtv:active {\n background-color: #1a7676;\n}\n\n.vDAwbQmWCc39SmNMFRtv:focus {\n outline: none;\n}\n',""]);var a="X7DPHJCVbRpHEB9gcm0Z",u="vDAwbQmWCc39SmNMFRtv",h="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 u(t){return null==t}function h(t){return"object"==typeof t&&null!==t}function l(t){return Array.isArray(t)}function c(t){return l(t)&&0==t.length}function f(t){return l(t)&&t.length>0}function d(t){return l(t)&&t.every(n)}function p(t){return d(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:()=>f,isNonEmptyNumbersArray:()=>p,isNonEmptyStringsArray:()=>v,isNonFiniteNumber:()=>i,isNonFiniteNumbersArray:()=>g,isNonNegativeFiniteNumber:()=>o,isNonNullObject:()=>h,isNullish:()=>u,isNumber:()=>n,isNumbersArray:()=>d,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:()=>d,InnerXML:()=>w,OuterXML:()=>_,Scaling:()=>f,VerticalClientScaling:()=>p,assignUUID:()=>l,bringToFront:()=>m,isSVGGraphicsElement:()=>N,isSVGGraphicsElementsArray:()=>S,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=[],u=0;u<256;++u)a.push((u+256).toString(16).slice(1));const h=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-"+h()}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 f{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 d{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 _{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 N(t){return t instanceof SVGGraphicsElement}b=new WeakMap;var k=n(854);function S(t){return(0,k.isArray)(t)&&t.every(N)}})(),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,{A:()=>d,k:()=>f});var r=n(601),i=n.n(r),s=n(314),o=n.n(s),a=n(417),u=n.n(a),h=new URL(n(51),n.b),l=o()(i()),c=u()(h);l.push([t.id,`.pMUxgRC_f4NzkoelkDpX {\n appearance: none;\n\n margin: 0px;\n padding: 0px;\n\n border: 2px solid white;\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: #1212c9;\n\n background-color: #1212c9;\n\n background-image: url(${c});\n}\n`,""]);var f="pMUxgRC_f4NzkoelkDpX";const d=l},887:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>l,Qq:()=>u,lI:()=>a,r9:()=>h});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 align-self: start;\n\n pointer-events: auto;\n}\n\n.qTVXpnB_go4Q_8V0QAhx {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 11px;\n font-weight: 700;\n font-style: normal;\n color: cyan;\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: #075252;\n}\n\n.IgtWfVpmdN_e04k18xHb:hover .qTVXpnB_go4Q_8V0QAhx {\n text-decoration: none;\n}\n',""]);var a="XCtUcg96Mkd2YGqGvTjm",u="qTVXpnB_go4Q_8V0QAhx",h="IgtWfVpmdN_e04k18xHb";const l=o},924:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>g,QB:()=>m,Qs:()=>u,Te:()=>p,VX:()=>c,eB:()=>d,ho:()=>h,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: 39px;\n\n display: flex;\n flex-direction: column;\n}\n\n.VFDUY2z_WgJp1fVc8TCw {\n margin: 11px 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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.GZP6NKFkjkjlFVlDU6AZ {\n margin-top: 20px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.f1LDX7M42DUD9AT6Mh5p {\n margin: 0px;\n padding: 0px;\n\n font-family: "Open Sans", sans-serif;\n font-size: 12px;\n font-weight: 700;\n font-style: normal;\n color: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n\n.wq_gmBRSZasSLYaUmdWp {\n display: none;\n flex-direction: column;\n}\n\n.niaBwqy1zBIMYC42Y7LP {\n margin-top: 27px;\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="O0vrEVyGT_aFy6tF68Na",u="VFDUY2z_WgJp1fVc8TCw",h="dJmYzq3wi8hxLecdDaOF",l="Z3lHB1W2K4m8JuZOnWs9",c="GZP6NKFkjkjlFVlDU6AZ",f="f1LDX7M42DUD9AT6Mh5p",d="wq_gmBRSZasSLYaUmdWp",p="niaBwqy1zBIMYC42Y7LP",m="_YkLdMiLPhNIvuLLypQE";const g=o},933:(t,e,n)=>{"use strict";n.d(e,{Ay:()=>h,Pf:()=>u,Te:()=>a});var r=n(601),i=n.n(r),s=n(314),o=n.n(s)()(i());o.push([t.id,'.cl_Un57i0HIsdQnuxSY0 {\n display: flex;\n flex-direction: row;\n align-items: center;\n}\n\n.GQe6FmedcfLCp15a2z6w {\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: white;\n\n user-select: none;\n -webkit-user-select: none;\n\n pointer-events: none;\n}\n',""]);var a="cl_Un57i0HIsdQnuxSY0",u="GQe6FmedcfLCp15a2z6w";const h=o}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var s=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.loaded=!0,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.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),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.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),n.b=document.baseURI||self.location.href,n.nc=void 0;var r={};return(()=>{"use strict";n.r(r),n.d(r,{EditingForm:()=>hf});var t={};n.r(t),n.d(t,{cx:()=>Ie,cy:()=>Be,height:()=>ze,rx:()=>je,ry:()=>We,width:()=>Re,x:()=>Pe,y:()=>De});var e={};n.r(e),n.d(e,{from:()=>Ve,to:()=>Ge});var i={};n.r(i),n.d(i,{MorphArray:()=>Ze,height:()=>en,width:()=>tn,x:()=>Je,y:()=>Ke});var s={};n.r(s),n.d(s,{array:()=>Tn,clear:()=>On,move:()=>Ln,plot:()=>jn,size:()=>Wn});var o={};n.r(o),n.d(o,{amove:()=>ur,ax:()=>or,ay:()=>ar,build:()=>hr,center:()=>sr,cx:()=>rr,cy:()=>ir,length:()=>Kn,move:()=>nr,plain:()=>Jn,x:()=>tr,y:()=>er});var a={};n.r(a),n.d(a,{dmove:()=>mr,dx:()=>gr,dy:()=>yr,height:()=>vr,move:()=>wr,size:()=>br,width:()=>xr,x:()=>_r,y:()=>Nr});var u=n(72),h=n.n(u),l=n(825),c=n.n(l),f=n(659),d=n.n(f),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=d().bind(null,"head"),x.domAPI=c(),x.insertStyleElement=y(),h()(b.Ay,x),b.Ay&&b.Ay.locals&&b.Ay.locals;var _=n(633),N={};N.styleTagTransform=w(),N.setAttributes=m(),N.insert=d().bind(null,"head"),N.domAPI=c(),N.insertStyleElement=y(),h()(_.Ay,N),_.Ay&&_.Ay.locals&&_.Ay.locals;var k=n(584),S={};S.styleTagTransform=w(),S.setAttributes=m(),S.insert=d().bind(null,"head"),S.domAPI=c(),S.insertStyleElement=y(),h()(k.Ay,S),k.Ay&&k.Ay.locals&&k.Ay.locals;var M,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 A{constructor(t,e){this.domNode=document.createElement("div"),this.caret=new E,M.set(this,document.createElement("p")),this.domNode.classList.add(k.kY),!e||(this.domNode.onclick=e),this.caret.domNode.style.marginRight="6px",this.caret.domNode.style.pointerEvents="auto",this.domNode.append(this.caret.domNode),C(this,M,"f").classList.add(k.Qq),!t||(this.textContent=t),this.domNode.append(C(this,M,"f"))}get textContent(){return C(this,M,"f").textContent}set textContent(t){C(this,M,"f").textContent=t}}M=new WeakMap;class E{constructor(){this.domNode=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.domNode.classList.add(k.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="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n '}pointRight(){this.domNode.classList.remove(k.Z7)}pointDown(){this.domNode.classList.add(k.Z7)}}var T=n(887),O={};O.styleTagTransform=w(),O.setAttributes=m(),O.insert=d().bind(null,"head"),O.domAPI=c(),O.insertStyleElement=y(),h()(T.Ay,O),T.Ay&&T.Ay.locals&&T.Ay.locals;var L,j=n(704),W=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 P{constructor(t,e){this.domNode=document.createElement("div"),L.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),!e||(this.domNode.onclick=e),this.domNode.classList.add(T.lI),W(this,L,"f").classList.add(T.Qq),W(this,L,"f").textContent=null!=t?t:"",this.domNode.append(W(this,L,"f")),this.tooltip.owner=this.domNode}get textContent(){return W(this,L,"f").textContent}set textContent(t){W(this,L,"f").textContent=t}disable(){this.domNode.classList.add(T.r9)}enable(){this.domNode.classList.remove(T.r9)}}L=new WeakMap;var D=n(419),I={};I.styleTagTransform=w(),I.setAttributes=m(),I.insert=d().bind(null,"head"),I.domAPI=c(),I.insertStyleElement=y(),h()(D.A,I),D.A&&D.A.locals&&D.A.locals;var B,R;class z{constructor(t){B.add(this),this.props=t,this.domNode=document.createElement("input"),this.domNode.type="text",this.domNode.classList.add(D.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,B,"m",R).call(this))),this.domNode.addEventListener("keydown",(t=>{"enter"==t.key.toLowerCase()&&this.domNode.blur()}))}}B=new WeakSet,R=function(){var t;(null===(t=this.props)||void 0===t?void 0:t.onSubmit)&&this.props.onSubmit()};var F=n(678),q={};q.styleTagTransform=w(),q.setAttributes=m(),q.insert=d().bind(null,"head"),q.domAPI=c(),q.insertStyleElement=y(),h()(F.Ay,q),F.Ay&&F.Ay.locals&&F.Ay.locals;var U,V,G=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},H=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 X{constructor(t,e){this.name=t,this.domNode=document.createElement("label"),U.set(this,void 0),V.set(this,void 0),this.domNode.classList.add(F.ZZ),G(this,U,e,"f"),G(this,V,document.createElement("a"),"f"),H(this,V,"f").textContent=t,H(this,V,"f").target="_blank",H(this,V,"f").rel="noopener noreferrer",H(this,V,"f").style.marginLeft="8px",this.domNode.append(e,H(this,V,"f"))}get infoLink(){return H(this,V,"f").href}set infoLink(t){H(this,V,"f").href=t,t?H(this,V,"f").classList.add(F.o3):H(this,V,"f").classList.remove(F.o3)}}U=new WeakMap,V=new WeakMap;var Y,$=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,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 X(t,e),"f"),this.domNode.style.cursor="text"}get domNode(){return $(this,Y,"f").domNode}get infoLink(){return $(this,Y,"f").infoLink}set infoLink(t){$(this,Y,"f").infoLink=t}}Y=new WeakMap;var Z=n(881),J={};J.styleTagTransform=w(),J.setAttributes=m(),J.insert=d().bind(null,"head"),J.domAPI=c(),J.insertStyleElement=y(),h()(Z.A,J),Z.A&&Z.A.locals&&Z.A.locals;class K{constructor(){this.domNode=document.createElement("input"),this.domNode.type="checkbox",this.domNode.classList.add(Z.k)}}var tt,et=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 nt{constructor(t,e){this.name=t,tt.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,tt,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return et(this,tt,"f").domNode}get infoLink(){return et(this,tt,"f").infoLink}set infoLink(t){et(this,tt,"f").infoLink=t}}tt=new WeakMap;var rt=n(709),it={};it.styleTagTransform=w(),it.setAttributes=m(),it.insert=d().bind(null,"head"),it.domAPI=c(),it.insertStyleElement=y(),h()(rt.A,it),rt.A&&rt.A.locals&&rt.A.locals;class st{constructor(){this.domNode=document.createElement("input"),this.domNode.type="color",this.domNode.classList.add(rt.V)}}var ot,at=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 ut{constructor(t,e){this.name=t,ot.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,ot,new X(t,e),"f"),this.domNode.style.cursor="pointer"}get domNode(){return at(this,ot,"f").domNode}get infoLink(){return at(this,ot,"f").infoLink}set infoLink(t){at(this,ot,"f").infoLink=t}}ot=new WeakMap;const ht={},lt=[];function ct(t,e){if(Array.isArray(t))for(const n of t)ct(n,e);else if("object"!=typeof t)dt(Object.getOwnPropertyNames(e)),ht[t]=Object.assign(ht[t]||{},e);else for(const e in t)ct(e,t[e])}function ft(t){return ht[t]||{}}function dt(t){lt.push(...t)}function pt(t,e){let n;const r=t.length,i=[];for(n=0;n<r;n++)i.push(e(t[n]));return i}function mt(t){return t%360*Math.PI/180}function gt(t){return t.charAt(0).toUpperCase()+t.slice(1)}function yt(t,e,n,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 vt(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:u}=e.bbox();s&&(r=r.includes("left")?a:r.includes("right")?a+n:a+n/2),o&&(i=i.includes("top")?u:i.includes("bottom")?u+t:u+t/2)}return[r,i]}const wt=new Set(["desc","metadata","title"]),bt=t=>wt.has(t.nodeName),xt=(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"))},_t="http://www.w3.org/2000/svg",Nt="http://www.w3.org/2000/xmlns/",kt="http://www.w3.org/1999/xlink",St={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};class Mt{}const Ct={},At="___SYMBOL___ROOT___";function Et(t,e=_t){return St.document.createElementNS(e,t)}function Tt(t,e=!1){if(t instanceof Mt)return t;if("object"==typeof t)return jt(t);if(null==t)return new Ct[At];if("string"==typeof t&&"<"!==t.charAt(0))return jt(St.document.querySelector(t));const n=e?St.document.createElement("div"):Et("svg");return n.innerHTML=t,t=jt(n.firstChild),n.removeChild(n.firstChild),t}function Ot(t,e){return e&&(e instanceof St.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:Et(t)}function Lt(t){if(!t)return null;if(t.instance instanceof Mt)return t.instance;if("#document-fragment"===t.nodeName)return new Ct.Fragment(t);let e=gt(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":Ct[e]||(e="Dom"),new Ct[e](t)}let jt=Lt;function Wt(t,e=t.name,n=!1){return Ct[e]=t,n&&(Ct[At]=t),dt(Object.getOwnPropertyNames(t.prototype)),t}let Pt=1e3;function Dt(t){return"Svgjs"+gt(t)+Pt++}function It(t){for(let e=t.children.length-1;e>=0;e--)It(t.children[e]);return t.id?(t.id=Dt(t.nodeName),t):t}function Bt(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 Rt(t){return function(...e){const n=e[e.length-1];return!n||n.constructor!==Object||n instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(n)}}ct("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=Tt(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=Tt(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=Tt(t)).before(this),this},insertAfter:function(t){return(t=Tt(t)).after(this),this}});const zt=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,Ft=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,qt=/rgb\((\d+),(\d+),(\d+)\)/,Ut=/(#[a-z_][a-z0-9\-_]*)/i,Vt=/\)\s*,?\s*/,Gt=/\s/g,Ht=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,Xt=/^rgb\(/,Yt=/^(\s+)?$/,$t=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qt=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Zt=/[\s,]+/,Jt=/[MLHVCSQTAZ]/i;function Kt(t){const e=Math.round(t),n=Math.max(0,Math.min(255,e)).toString(16);return 1===n.length?"0"+n:n}function te(t,e){for(let n=e.length;n--;)if(null==t[e[n]])return!1;return!0}function ee(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}ct("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Zt)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter((function(e){return e!==t})).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),ct("Dom",{css:function(t,e){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(t){return!!t.length})).forEach((function(t){const e=t.split(/\s*:\s*/);n[e[0]]=e[1]})),n;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;n[e]=this.node.style.getPropertyValue(t)}return n}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Yt.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Yt.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),ct("Dom",{data:function(t,e,n){if(null==t)return this.data(pt(function(t){let e;const n=t.length,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}}),ct("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class ne{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof ne||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:n,round:r,sin:i,PI:s}=Math;if("vibrant"===t){const t=24*n()+57,e=38*n()+45,r=360*n();return new ne(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 ne(t,o,a)}if("pastel"===t){const t=8*n()+86,e=17*n()+9,r=360*n();return new ne(t,e,r,"lch")}if("dark"===t){const t=10+10*n(),e=50*n()+86,r=360*n();return new ne(t,e,r,"lch")}if("rgb"===t){const t=255*n(),e=255*n(),r=255*n();return new ne(t,e,r)}if("lab"===t){const t=100*n(),e=256*n()-128,r=256*n()-128;return new ne(t,e,r,"lab")}if("grey"===t){const t=255*n();return new ne(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ht.test(t)||Xt.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 ne(0,0,0,1,"cmyk"):new ne((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),u=(o+a)/2,h=o===a,l=o-a;return new ne(360*(h?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*(h?0:u>.5?l/(2-o-a):l/(o+a)),100*u,"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=te(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:te(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:te(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:te(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:te(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:te(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=e||n.space,n}(t,e);Object.assign(this,n)}else if("string"==typeof t)if(Xt.test(t)){const e=t.replace(Gt,""),[n,r,i]=qt.exec(e).slice(1,4).map((t=>parseInt(t)));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!Ht.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,n,r,i]=Ft.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:u}=this,h="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:u}:{};Object.assign(this,h)}lab(){const{x:t,y:e,z:n}=this.xyz();return new ne(116*e-16,500*(t-e),200*(e-n),"lab")}lch(){const{l:t,a:e,b:n}=this.lab(),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 ne(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,u=o-s/200,h=16/116,l=.008856,c=7.787;t=.95047*(a**3>l?a**3:(a-h)/c),e=1*(o**3>l?o**3:(o-h)/c),n=1.08883*(u**3>l?u**3:(u-h)/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,u=r>a?1.055*o(r,1/2.4)-.055:12.92*r,h=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 ne(255*u,255*h,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 ne(n,n,n);const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,s=255*ee(i,r,t+1/3),o=255*ee(i,r,t),a=255*ee(i,r,t-1/3);return new ne(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 ne(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(Kt);return`#${t}${e}${n}`}toRgb(){const[t,e,n]=this._clamped();return`rgb(${t},${e},${n})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:n}=this.rgb(),[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,u=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,h=(.4124*o+.3576*a+.1805*u)/.95047,l=(.2126*o+.7152*a+.0722*u)/1,c=(.0193*o+.1192*a+.9505*u)/1.08883,f=h>.008856?Math.pow(h,1/3):7.787*h+16/116,d=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 ne(f,d,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 re{constructor(...t){this.init(...t)}clone(){return new re(this)}init(t,e){const n=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==n.x?0:n.x,this.y=null==n.y?0:n.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){se.isMatrixLike(t)||(t=new se(t));const{x:e,y:n}=this;return this.x=t.a*e+t.c*n+t.e,this.y=t.b*e+t.d*n+t.f,this}}function ie(t,e,n){return Math.abs(e-t)<(n||1e-6)}class se{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,n=t.flip&&(e||"x"===t.flip)?-1:1,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,u=t.shear||0,h=t.rotate||t.theta||0,l=new re(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),c=l.x,f=l.y,d=new re(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),p=d.x,m=d.y,g=new re(t.translate||t.tx||t.translateX,t.ty||t.translateY),y=g.x,v=g.y,w=new re(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:o,scaleY:a,skewX:i,skewY:s,shear:u,theta:h,rx:w.x,ry:w.y,tx:y,ty:v,ox:c,oy:f,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,u=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=u,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 se(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,u=n*s-r*i,h=u>0?1:-1,l=h*Math.sqrt(n*n+r*r),c=Math.atan2(h*r,h*n),f=180/Math.PI*c,d=Math.cos(c),p=Math.sin(c),m=(n*i+r*s)/u,g=i*l/(m*n-r)||s*l/(m*r+n);return{scaleX:l,scaleY:g,shear:m,rotate:f,translateX:o-t+t*d*l+e*(m*d*l-p*g),translateY:a-e+t*p*l+e*(m*p*l+d*g),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new se(t);return ie(this.a,e.a)&&ie(this.b,e.b)&&ie(this.c,e.c)&&ie(this.d,e.d)&&ie(this.e,e.e)&&ie(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=se.fromArray([1,0,0,1,0,0]);return t=t instanceof Ae?t.matrixify():"string"==typeof t?se.fromArray(t.split(Zt).map(parseFloat)):Array.isArray(t)?se.fromArray(t):"object"==typeof t&&se.isMatrixLike(t)?t:"object"==typeof t?(new se).transform(t):6===arguments.length?se.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,n=this.c,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,u=-e/o,h=-n/o,l=t/o,c=-(a*i+h*s),f=-(u*i+l*s);return this.a=a,this.b=u,this.c=h,this.d=l,this.e=c,this.f=f,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof se?t:new se(t);return se.matrixMultiply(this,e,this)}rotate(t,e,n){return this.clone().rotateO(t,e,n)}rotateO(t,e=0,n=0){t=mt(t);const r=Math.cos(t),i=Math.sin(t),{a:s,b:o,c:a,d:u,e:h,f:l}=this;return this.a=s*r-o*i,this.b=o*r+s*i,this.c=a*r-u*i,this.d=u*r+a*i,this.e=h*r-l*i+n*i-e*r+e,this.f=l*r+h*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:u,f:h}=this;return this.a=i*t,this.b=s*e,this.c=o*t,this.d=a*e,this.e=u*t-n*t+n,this.f=h*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:u}=this;return this.a=r+i*t,this.c=s+o*t,this.e=a+u*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=mt(t),e=mt(e);const i=Math.tan(t),s=Math.tan(e),{a:o,b:a,c:u,d:h,e:l,f:c}=this;return this.a=o+a*i,this.b=a+o*s,this.c=u+h*i,this.d=h+u*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(se.isMatrixLike(t))return new se(t).multiplyO(this);const e=se.formatTransforms(t),{x:n,y:r}=new re(e.ox,e.oy).transform(this),i=(new se).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 re(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 oe(){if(!oe.nodes){const t=Tt().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;oe.nodes={svg:t,path:e}}if(!oe.nodes.svg.node.parentNode){const t=St.document.body||St.document.documentElement;oe.nodes.svg.addTo(t)}return oe.nodes}function ae(t){return!(t.width||t.height||t.x||t.y)}Wt(se,"Matrix");class ue{constructor(...t){this.init(...t)}addOffset(){return this.x+=St.window.pageXOffset,this.y+=St.window.pageYOffset,new ue(this)}init(t){return t="string"==typeof t?t.split(Zt).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return ae(this)}merge(t){const e=Math.min(this.x,t.x),n=Math.min(this.y,t.y),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 ue(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 se||(t=new se(t));let e=1/0,n=-1/0,r=1/0,i=-1/0;return[new re(this.x,this.y),new re(this.x2,this.y),new re(this.x,this.y2),new re(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 ue(e,r,n-e,i-r)}}function he(t,e,n){let r;try{if(r=e(t.node),ae(r)&&(i=t.node)!==St.document&&!(St.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===St.document}).call(St.document.documentElement,i))throw new Error("Element not in the dom")}catch(e){r=n(t)}var i;return r}ct({viewbox:{viewbox(t,e,n,r){return null==t?new ue(this.attr("viewBox")):this.attr("viewBox",new ue(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 u=a/t;u===1/0&&(u=Number.MAX_SAFE_INTEGER/100),e=e||new re(n/2/s+i.x,r/2/o+i.y);const h=new ue(i).transform(new se({scale:u,origin:e}));return this.viewbox(h)}}}),Wt(ue,"Box");class le extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}const ce=le;Bt([le],{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 fe=["toArray","constructor","each"];function de(t,e){return new ce(pt((e||St.document).querySelectorAll(t),(function(t){return Lt(t)})))}le.extend=function(t){t=t.reduce(((t,e)=>(fe.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t)),{}),Bt([le],t)};let pe=0;const me={};function ge(t){let e=t.getEventHolder();return e===St.window&&(e=me),e.events||(e.events={}),e.events}function ye(t){return t.getEventTarget()}function ve(t,e,n,r,i){const s=n.bind(r||t),o=Tt(t),a=ge(o),u=ye(o);e=Array.isArray(e)?e:e.split(Zt),n._svgjsListenerId||(n._svgjsListenerId=++pe),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,u.addEventListener(e,s,i||!1)}))}function we(t,e,n,r){const i=Tt(t),s=ge(i),o=ye(i);("function"!=typeof n||(n=n._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Zt)).forEach((function(t){const e=t&&t.split(".")[0],a=t&&t.split(".")[1];let u,h;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(h in s[e][a])we(o,[e,a].join("."),h);delete s[e][a]}}else if(a)for(t in s)for(u in s[t])a===u&&we(o,[t,a].join("."));else if(e){if(s[e]){for(u in s[e])we(o,[e,u].join("."));delete s[e]}}else{for(t in s)we(o,t);!function(t){let e=t.getEventHolder();e===St.window&&(e=me),e.events&&(e.events={})}(i)}}))}class be extends Mt{addEventListener(){}dispatch(t,e,n){return function(t,e,n,r){const i=ye(t);return e instanceof St.window.Event||(e=new St.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 we(this,t,e,n),this}on(t,e,n,r){return ve(this,t,e,n,r),this}removeEventListener(){}}function xe(){}Wt(be,"EventTarget");const _e={"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 Ne extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Zt).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class ke{constructor(...t){this.init(...t)}convert(t){return new ke(this.value,t)}divide(t){return t=new ke(t),new ke(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(zt))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof ke&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new ke(t),new ke(this-t,this.unit||t.unit)}plus(t){return t=new ke(t),new ke(this+t,this.unit||t.unit)}times(t){return t=new ke(t),new ke(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 Se=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Me=[];class Ce extends be{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=Tt(t)).removeNamespace&&this.node instanceof St.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 Tt(t).put(this,e)}children(){return new ce(pt(this.node.children,(function(t){return Lt(t)})))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let n=this.node.cloneNode(t);return e&&(n=It(n)),new this.constructor(n)}each(t,e){const n=this.children();let 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 Ce(Et(t),e))}first(){return Lt(this.node.firstChild)}get(t){return Lt(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=Dt(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return Lt(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=Lt(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=Lt(e.node.parentNode));return e}put(t,e){return t=Tt(t),this.add(t,e),t}putIn(t,e){return Tt(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=Tt(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,_t)}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=Lt(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=Et("wrapper",n),i=St.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)}}Bt(Ce,{attr:function(t,e,n){if(null==t){t={},e=this.node.attributes;for(const n of e)t[n.nodeName]=$t.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))?_e[t]:$t.test(e)?parseFloat(e):e;"number"==typeof(e=Me.reduce(((e,n)=>n(t,e,this)),e))?e=new ke(e):Se.has(t)&&ne.isColor(e)?e=new ne(e):e.constructor===Array&&(e=new Ne(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 de(t,this.node)},findOne:function(t){return Lt(this.node.querySelector(t))}}),Wt(Ce,"Dom");class Ae extends Ce{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 ke(t).plus(this.x()))}dy(t=0){return this.y(new ke(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=Tt(t));const n=new ce;let r=this;for(;(r=r.parent())&&r.node!==St.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(Ut);return e?Tt(e[1]):null}root(){const t=this.parent(Ct[At]);return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const n=yt(this,t,e);return this.width(new ke(n.width)).height(new ke(n.height))}width(t){return this.attr("width",t)}writeDataToDom(){return xt(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}}Bt(Ae,{bbox:function(){const t=he(this,(t=>t.getBBox()),(t=>{try{const e=t.clone().addTo(oe().svg).show(),n=e.node.getBBox();return e.remove(),n}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}}));return new ue(t)},rbox:function(t){const e=he(this,(t=>t.getBoundingClientRect()),(t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)})),n=new ue(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 re(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new se(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new se(e)}return new se(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new se}}}),Wt(Ae,"Element");const Ee={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach((function(t){const e={};let n;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof ne||ne.isRgb(e)||e instanceof Ae)this.attr(t,e);else for(n=Ee[t].length-1;n>=0;n--)null!=e[Ee[t][n]]&&this.attr(Ee.prefix(t,Ee[t][n]),e[Ee[t][n]]);return this},ct(["Element","Runner"],e)})),ct(["Element","Runner"],{matrix:function(t,e,n,r,i,s){return null==t?new se(this):this.attr("transform",new se(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)}}),ct("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new ke(t)):this.rx(t).ry(e)}}),ct("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new re(this.node.getPointAtLength(t))}}),ct(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),ct("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce((function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t}),{})),ct("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(Vt).slice(0,-1).map((function(t){const e=t.trim().split("(");return[e[0],e[1].split(Zt).map((function(t){return parseFloat(t)}))]})).reverse().reduce((function(t,e){return"matrix"===e[0]?t.lmultiply(se.fromArray(e[1])):t[e[0]].apply(t,e[1])}),new se)},toParent:function(t,e){if(this===t)return this;if(bt(this.node))return this.addTo(t,e);const n=this.screenCTM(),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 se(this).decompose();return null==t?e:e[t]}se.isMatrixLike(t)||(t={...t,origin:vt(t,this)});const n=new se(!0===e?this:e||!1).transform(t);return this.attr("transform",n)}});class Te extends Ae{flatten(){return this.each((function(){if(this instanceof Te)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()}}Wt(Te,"Container");class Oe extends Te{constructor(t,e=t){super(Ot("defs",t),e)}flatten(){return this}ungroup(){return this}}Wt(Oe,"Defs");class Le extends Ae{}function je(t){return this.attr("rx",t)}function We(t){return this.attr("ry",t)}function Pe(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function De(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function Ie(t){return this.attr("cx",t)}function Be(t){return this.attr("cy",t)}function Re(t){return null==t?2*this.rx():this.rx(new ke(t).divide(2))}function ze(t){return null==t?2*this.ry():this.ry(new ke(t).divide(2))}Wt(Le,"Shape");class Fe extends Le{constructor(t,e=t){super(Ot("ellipse",t),e)}size(t,e){const n=yt(this,t,e);return this.rx(new ke(n.width).divide(2)).ry(new ke(n.height).divide(2))}}Bt(Fe,t),ct("Container",{ellipse:Rt((function(t=0,e=t){return this.put(new Fe).size(t,e).move(0,0)}))}),Wt(Fe,"Ellipse");class qe extends Ce{constructor(t=St.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 Ce(Et("wrapper",n));return t.add(this.node.cloneNode(!0)),t.xml(!1,n)}return super.xml(t,!1,n)}}Wt(qe,"Fragment");const Ue=qe;function Ve(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new ke(t),fy:new ke(e)}):this.attr({x1:new ke(t),y1:new ke(e)})}function Ge(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new ke(t),cy:new ke(e)}):this.attr({x2:new ke(t),y2:new ke(e)})}class He extends Te{constructor(t,e){super(Ot(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 ue}targets(){return de("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()+")"}}Bt(He,e),ct({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:Rt((function(t,e){return this.put(new He(t)).update(e)}))}}),Wt(He,"Gradient");class Xe extends Te{constructor(t,e=t){super(Ot("pattern",t),e)}attr(t,e,n){return"transform"===t&&(t="patternTransform"),super.attr(t,e,n)}bbox(){return new ue}targets(){return de("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}ct({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:Rt((function(t,e,n){return this.put(new Xe).update(n).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})}))}}),Wt(Xe,"Pattern");class Ye extends Le{constructor(t,e=t){super(Ot("image",t),e)}load(t,e){if(!t)return this;const n=new St.window.Image;return ve(n,"load",(function(t){const r=this.parent(Xe);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof Xe&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)}),this),ve(n,"load error",(function(){we(n)})),this.attr("href",n.src=t,kt)}}var $e;$e=function(t,e,n){return"fill"!==t&&"stroke"!==t||Qt.test(e)&&(e=n.root().defs().image(e)),e instanceof Ye&&(e=n.root().defs().pattern(0,0,(t=>{t.add(e)}))),e},Me.push($e),ct({Container:{image:Rt((function(t,e){return this.put(new Ye).size(0,0).load(t,e)}))}}),Wt(Ye,"Image");class Qe extends Ne{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 ue(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(Zt).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){se.isMatrixLike(t)||(t=new se(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 Ze=Qe;function Je(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}function Ke(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}function tn(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)}function en(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)}class nn extends Le{constructor(t,e=t){super(Ot("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=yt(this,t,e);return this.attr(this.array().size(n.width,n.height).toLine())}}Bt(nn,i),ct({Container:{line:Rt((function(...t){return nn.prototype.plot.apply(this.put(new nn),null!=t[0]?t:[0,0,0,0])}))}}),Wt(nn,"Line");class rn extends Te{constructor(t,e=t){super(Ot("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}}function sn(t,e){return function(n){return null==n?this[t]:(this[t]=n,e&&e.call(this),this)}}ct({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:Rt((function(t,e,n){return this.put(new rn).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(n)}))},marker:{marker(t,e,n,r){let i=["marker"];return"all"!==t&&i.push(t),i=i.join("-"),t=arguments[1]instanceof rn?arguments[1]:this.defs().marker(e,n,r),this.attr(i,t)}}}),Wt(rn,"Marker");const on={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,n,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 an{done(){return!1}}class un extends an{constructor(t=">"){super(),this.ease=on[t]||t}step(t,e,n){return"number"!=typeof t?n<1?t:e:t+(e-t)*this.ease(n)}}class hn extends an{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,n,r){return this.stepper(t,e,n,r)}}function ln(){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}Bt(class extends hn{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:sn("_duration",ln),overshoot:sn("_overshoot",ln)}),Bt(class extends hn{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:sn("_windup"),p:sn("P"),i:sn("I"),d:sn("D")});const cn={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},fn={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]]}},dn="mlhvqtcsaz".split("");for(let t=0,e=dn.length;t<e;++t)fn[dn[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 fn[t](e,n,r)}}(dn[t].toUpperCase());function pn(t){return t.segment.length&&t.segment.length-1===cn[t.segment[0].toUpperCase()]}function mn(t,e){t.inNumber&&gn(t,!1);const n=Jt.test(e);if(n)t.segment=[e];else{const e=t.lastCommand,n=e.toLowerCase(),r=e===n;t.segment=["m"===n?r?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],n}function gn(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,pn(t)&&yn(t)}function yn(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return fn[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function vn(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),n=t.segment.length;return e&&(4===n||5===n)}function wn(t){return"E"===t.lastToken.toUpperCase()}const bn=new Set([" ",",","\t","\n","\r","\f"]);class xn extends Ne{bbox(){return oe().path.setAttribute("d",this.toString()),new ue(oe.nodes.path.getBBox())}move(t,e){const n=this.bbox();if(t-=n.x,e-=n.y,!isNaN(t)&&!isNaN(e))for(let n,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 re,p:new re};for(;i.lastToken=r,r=t.charAt(n++);)if(i.inSegment||!mn(i,r))if("."!==r)if(isNaN(parseInt(r)))if(bn.has(r))i.inNumber&&gn(i,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(Jt.test(r)){if(i.inNumber)gn(i,!1);else{if(!pn(i))throw new Error("parser Error");yn(i)}--n}}else i.number+=r,i.hasExponent=!0;else{if(i.inNumber&&!wn(i)){gn(i,!1),--n;continue}i.number+=r,i.inNumber=!0}else{if("0"===i.number||vn(i)){i.inNumber=!0,i.number=r,gn(i,!0);continue}i.inNumber=!0,i.number+=r}else{if(i.pointSeen||i.hasExponent){gn(i,!1),--n;continue}i.inNumber=!0,i.pointSeen=!0,i.number+=r}return i.inNumber&&gn(i,!1),i.inSegment&&pn(i)&&yn(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 _n=t=>{const e=typeof t;return"number"===e?ke:"string"===e?ne.isColor(t)?ne:Zt.test(t)?Jt.test(t)?xn:Ne:zt.test(t)?ke:kn:An.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Ne:"object"===e?Cn:kn};class Nn{constructor(t){this._stepper=t||new un("-"),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(_n(t));let e=new this._type(t);return this._type===ne&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Cn&&(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 kn{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 Sn{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,Sn.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Sn.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Mn=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Cn{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]===ne&&t[n+7]!==e[n+7]){const e=t[n+7],r=new ne(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=_n(t[n]),i=new r(t[n]).toArray();e.push([n,r,i.length,...i])}return e.sort(Mn),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 An=[kn,Sn,Cn];class En extends Le{constructor(t,e=t){super(Ot("path",t),e)}array(){return this._array||(this._array=new xn(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new xn(t))}size(t,e){const n=yt(this,t,e);return this.attr("d",this.array().size(n.width,n.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}function Tn(){return this._array||(this._array=new Qe(this.attr("points")))}function On(){return delete this._array,this}function Ln(t,e){return this.attr("points",this.array().move(t,e))}function jn(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Qe(t))}function Wn(t,e){const n=yt(this,t,e);return this.attr("points",this.array().size(n.width,n.height))}En.prototype.MorphArray=xn,ct({Container:{path:Rt((function(t){return this.put(new En).plot(t||new xn)}))}}),Wt(En,"Path");class Pn extends Le{constructor(t,e=t){super(Ot("polygon",t),e)}}ct({Container:{polygon:Rt((function(t){return this.put(new Pn).plot(t||new Qe)}))}}),Bt(Pn,i),Bt(Pn,s),Wt(Pn,"Polygon");class Dn extends Le{constructor(t,e=t){super(Ot("polyline",t),e)}}ct({Container:{polyline:Rt((function(t){return this.put(new Dn).plot(t||new Qe)}))}}),Bt(Dn,i),Bt(Dn,s),Wt(Dn,"Polyline");class In extends Le{constructor(t,e=t){super(Ot("rect",t),e)}}Bt(In,{rx:je,ry:We}),ct({Container:{rect:Rt((function(t,e){return this.put(new In).size(t,e)}))}}),Wt(In,"Rect");class Bn{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const Rn={nextDraw:null,frames:new Bn,timeouts:new Bn,immediates:new Bn,timer:()=>St.window.performance||St.window.Date,transforms:[],frame(t){const e=Rn.frames.push({run:t});return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),e},timeout(t,e){e=e||0;const n=Rn.timer().now()+e,r=Rn.timeouts.push({run:t,time:n});return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),r},immediate(t){const e=Rn.immediates.push(t);return null===Rn.nextDraw&&(Rn.nextDraw=St.window.requestAnimationFrame(Rn._draw)),e},cancelFrame(t){null!=t&&Rn.frames.remove(t)},clearTimeout(t){null!=t&&Rn.timeouts.remove(t)},cancelImmediate(t){null!=t&&Rn.immediates.remove(t)},_draw(t){let e=null;const n=Rn.timeouts.last();for(;(e=Rn.timeouts.shift())&&(t>=e.time?e.run():Rn.timeouts.push(e),e!==n););let r=null;const i=Rn.frames.last();for(;r!==i&&(r=Rn.frames.shift());)r.run(t);let s=null;for(;s=Rn.immediates.shift();)s();Rn.nextDraw=Rn.timeouts.first()||Rn.frames.first()?St.window.requestAnimationFrame(Rn._draw):null}},zn=Rn,Fn=function(t){const e=t.start,n=t.runner.duration();return{start:e,duration:n,end:e+n,runner:t.runner}},qn=function(){const t=St.window;return(t.performance||t.Date).now()};class Un extends be{constructor(t=qn){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(Fn);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 zn.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=zn.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)}}ct({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new Un,this._timeline):(this._timeline=t,this)}}});class Vn extends be{constructor(t){super(),this.id=Vn.id++,t="function"==typeof(t=null==t?400:t)?new hn(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof hn,this._stepper=this._isDeclarative?t:new un,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new se,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,n){let r=1,i=!1,s=0;return e=e??0,n=n||"last","object"!=typeof(t=t??400)||t instanceof an||(e=t.delay??e,n=t.when??n,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=Vn.sanitise(t,e,n),i=new Vn(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 se,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter((t=>!t.isTransform)))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new un(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)},u=i*(r+n)-r;return a=e<=0?Math.round(t(1e-5)):e<u?t(e):Math.round(t(u-1e-5)),a}const u=Math.floor(this.loops()),h=s&&u%2==0;return a=u+(h&&!o||o&&h?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||xe,runner:e||xe,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 Un||(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 se,a=this._run(o?t:e),this.fire("step",this)),this.done=this.done||a&&o,s&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,n=this._queue.length;e<n;++e){const n=this._queue[e],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}}Vn.id=0;class Gn{constructor(t=new se,e=-1,n=!0){this.transforms=t,this.id=e,this.done=n}clearTransformsFromQueue(){}}Bt([Vn,Gn],{mergeWith(t){return new Gn(t.transforms.lmultiply(this.transforms),t.id)}});const Hn=(t,e)=>t.lmultiplyO(e),Xn=t=>t.transforms;function Yn(){const t=this._transformationRunners.runners.map(Xn).reduce(Hn,new se);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class $n{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 Gn).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}}ct({Element:{animate(t,e,n){const r=Vn.sanitise(t,e,n),i=this.timeline();return new Vn(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(Xn).reduce(Hn,new se)},_addRunner(t){this._transformationRunners.add(t),zn.cancelImmediate(this._frameId),this._frameId=zn.immediate(Yn.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new $n).add(new Gn(new se(this))))}}}),Bt(Vn,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,n){if("string"==typeof e)return this.styleAttr(t,{[e]:n});let r=e;if(this._tryRetarget(t,r))return this;let i=new Nn(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 Cn(i.from()).valueOf();Object.assign(n,e),i.from(n)}const u=new Cn(i.to()).valueOf();Object.assign(u,e),i.to(u),s=n,r=e})),this._rememberMorpher(t,i),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let n=new Nn(this._stepper).to(new ke(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=se.isMatrixLike(t);n=null!=t.affine?t.affine:null!=n?n:!r;const i=new Nn(this._stepper).type(n?Sn:se);let s,o,a,u,h;return this.queue((function(){o=o||this.element(),s=s||vt(t,o),h=new se(e?void 0:o),o._addRunner(this),e||o._clearTransformRunnersBefore(this)}),(function(l){e||this.clearTransform();const{x:c,y:f}=new re(s).transform(o._currentTransform(this));let d=new se({...t,origin:[c,f]}),p=this._isDeclarative&&a?a:h;if(n){d=d.decompose(c,f),p=p.decompose(c,f);const t=d.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);d.rotate=n[s]}e&&(r||(d.rotate=t.rotate||0),this._isDeclarative&&u&&(p.rotate=u)),i.from(p),i.to(d);const m=i.at(l);return u=m.rotate,a=new se(m),this.addTransform(a),o._addRunner(this),i.done()}),(function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(s=vt(e,o)),t={...e,origin:s}}),!0),this._isDeclarative&&this._rememberMorpher("transform",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 ke(e),this._tryRetarget(t,e))return this;const n=new Nn(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 ke(t))})),this._rememberMorpher(t,n),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const n=new Nn(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 ke(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 Nn(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 ue(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)}}),Bt(Vn,{rx:je,ry:We,from:Ve,to:Ge}),Wt(Vn,"Runner");class Qn extends Te{constructor(t,e=t){super(Ot("svg",t),e),this.namespace()}defs(){return this.isRoot()?Lt(this.node.querySelector("defs"))||this.put(new Oe):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof St.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:_t,version:"1.1"}).attr("xmlns:xlink",kt,Nt):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Nt).attr("xmlns:svgjs",null,Nt)}root(){return this.isRoot()?this:super.root()}}ct({Container:{nested:Rt((function(){return this.put(new Qn)}))}}),Wt(Qn,"Svg",!0);class Zn extends Te{constructor(t,e=t){super(Ot("symbol",t),e)}}function Jn(t){return!1===this._build&&this.clear(),this.node.appendChild(St.document.createTextNode(t)),this}function Kn(){return this.node.getComputedTextLength()}function tr(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)}function er(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}function nr(t,e,n=this.bbox()){return this.x(t,n).y(e,n)}function rr(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)}function ir(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)}function sr(t,e,n=this.bbox()){return this.cx(t,n).cy(e,n)}function or(t){return this.attr("x",t)}function ar(t){return this.attr("y",t)}function ur(t,e){return this.ax(t).ay(e)}function hr(t){return this._build=!!t,this}ct({Container:{symbol:Rt((function(){return this.put(new Zn)}))}}),Wt(Zn,"Symbol");class lr extends Le{constructor(t,e=t){super(Ot("text",t),e),this.dom.leading=this.dom.leading??new ke(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new ke(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(bt(this.node))return;const i=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=n*new ke(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 ke(t.leading||1.3),this}writeDataToDom(){return xt(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let n=0;t="";for(let r=0,i=e.length;r<i;++r)"textPath"===e[r].nodeName||bt(e[r])?0===r&&(n=r+1):(r!==n&&3!==e[r].nodeType&&!0===Lt(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()}}Bt(lr,o),ct({Container:{text:Rt((function(t=""){return this.put(new lr).text(t)})),plain:Rt((function(t=""){return this.put(new lr).plain(t)}))}}),Wt(lr,"Text");class cr extends Le{constructor(t,e=t){super(Ot("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 lr))return this;const e=t.index(this),n=St.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=t.dom.leading*new ke(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)}}Bt(cr,o),ct({Tspan:{tspan:Rt((function(t=""){const e=new cr;return this._build||this.clear(),this.put(e).text(t)}))},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),Wt(cr,"Tspan");class fr extends Le{constructor(t,e=t){super(Ot("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 ke(t).divide(2))}}Bt(fr,{x:Pe,y:De,cx:Ie,cy:Be,width:Re,height:ze}),ct({Container:{circle:Rt((function(t=0){return this.put(new fr).size(t).move(0,0)}))}}),Wt(fr,"Circle");class dr extends Te{constructor(t,e=t){super(Ot("clipPath",t),e)}remove(){return this.targets().forEach((function(t){t.unclip()})),super.remove()}targets(){return de("svg [clip-path*="+this.id()+"]")}}ct({Container:{clip:Rt((function(){return this.defs().put(new dr)}))},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof dr?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Wt(dr,"ClipPath");class pr extends Ae{constructor(t,e=t){super(Ot("foreignObject",t),e)}}function mr(t,e){return this.children().forEach((n=>{let r;try{r=n.node instanceof St.window.SVGSVGElement?new ue(n.attr(["x","y","width","height"])):n.bbox()}catch(t){return}const i=new se(n),s=i.translate(t,e).transform(i.inverse()),o=new re(r.x,r.y).transform(s);n.move(o.x,o.y)})),this}function gr(t){return this.dmove(t,0)}function yr(t){return this.dmove(0,t)}function vr(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)}function wr(t=0,e=0,n=this.bbox()){const r=t-n.x,i=e-n.y;return this.dmove(r,i)}function br(t,e,n=this.bbox()){const r=yt(this,t,e,n),i=r.width/n.width,s=r.height/n.height;return this.children().forEach((t=>{const e=new re(n).transform(new se(t).inverse());t.scale(i,s,e.x,e.y)})),this}function xr(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)}function _r(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)}function Nr(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}ct({Container:{foreignObject:Rt((function(t,e){return this.put(new pr).size(t,e)}))}}),Wt(pr,"ForeignObject");class kr extends Te{constructor(t,e=t){super(Ot("g",t),e)}}Bt(kr,a),ct({Container:{group:Rt((function(){return this.put(new kr)}))}}),Wt(kr,"G");class Sr extends Te{constructor(t,e=t){super(Ot("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,kt)}}Bt(Sr,a),ct({Container:{link:Rt((function(t){return this.put(new Sr).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 Sr,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}}}),Wt(Sr,"A");class Mr extends Te{constructor(t,e=t){super(Ot("mask",t),e)}remove(){return this.targets().forEach((function(t){t.unmask()})),super.remove()}targets(){return de("svg [mask*="+this.id()+"]")}}ct({Container:{mask:Rt((function(){return this.defs().put(new Mr)}))},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Mr?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),Wt(Mr,"Mask");class Cr extends Ae{constructor(t,e=t){super(Ot("stop",t),e)}update(t){return("number"==typeof t||t instanceof ke)&&(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 ke(t.offset)),this}}ct({Gradient:{stop:function(t,e,n){return this.put(new Cr).update(t,e,n)}}}),Wt(Cr,"Stop");class Ar extends Ae{constructor(t,e=t){super(Ot("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,n={}){return this.rule("@font-face",{fontFamily:t,src:e,...n})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let n=t+"{";for(const t in e)n+=t.replace(/([A-Z])/g,(function(t,e){return"-"+e.toLowerCase()}))+":"+e[t]+";";return n+="}",n}(t,e))}}ct("Dom",{style(t,e){return this.put(new Ar).rule(t,e)},fontface(t,e,n){return this.put(new Ar).font(t,e,n)}}),Wt(Ar,"Style");class Er extends lr{constructor(t,e=t){super(Ot("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let n=null;return e&&(n=e.plot(t)),null==t?n:this}track(){return this.reference("href")}}ct({Container:{textPath:Rt((function(t,e){return t instanceof lr||(t=this.text(t)),t.path(e)}))},Text:{path:Rt((function(t,e=!0){const n=new Er;let r;if(t instanceof En||(t=this.defs().path(t)),n.attr("href","#"+t,kt),e)for(;r=this.node.firstChild;)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:Rt((function(t){return t instanceof lr||(t=(new lr).addTo(this.parent()).text(t)),t.path(this)})),targets(){return de("svg textPath").filter((t=>(t.attr("href")||"").includes(this.id())))}}}),Er.prototype.MorphArray=xn,Wt(Er,"TextPath");class Tr extends Le{constructor(t,e=t){super(Ot("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,kt)}}ct({Container:{use:Rt((function(t,e){return this.put(new Tr).use(t,e)}))}}),Wt(Tr,"Use"),Bt([Qn,Zn,Ye,Xe,rn],ft("viewbox")),Bt([nn,Dn,Pn,En],ft("marker")),Bt(lr,ft("Text")),Bt(En,ft("Path")),Bt(Oe,ft("Defs")),Bt([lr,cr],ft("Tspan")),Bt([In,Fe,He,Vn],ft("radius")),Bt(be,ft("EventTarget")),Bt(Ce,ft("Dom")),Bt(Ae,ft("Element")),Bt(Le,ft("Shape")),Bt([Te,Ue],ft("Container")),Bt(He,ft("Gradient")),Bt(Vn,ft("Runner")),ce.extend([...new Set(lt)]),function(t=[]){An.push(...[].concat(t))}([ke,ne,ue,se,Ne,Qe,xn,re]),Bt(An,{to(t){return(new Nn).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 Or,Lr,jr,Wr,Pr,Dr,Ir,Br,Rr,zr,Fr,qr,Ur,Vr,Gr,Hr,Xr,Yr,$r,Qr,Zr,Jr,Kr,ti,ei,ni,ri,ii,si,oi,ai,ui,hi,li,ci,fi,di,pi,mi,gi,yi,vi,wi,bi,xi,_i,Ni,ki,Si,Mi,Ci,Ai,Ei,Ti,Oi,Li,ji,Wi,Pi,Di,Ii,Bi,Ri,zi,Fi,qi,Ui,Vi,Gi,Hi,Xi,Yi,$i,Qi,Zi,Ji,Ki,ts,es,ns,rs,is,ss,os,as,us,hs,ls,cs,fs,ds,ps,ms,gs,ys,vs,ws,bs=n(169),xs=n(726),_s=n(692),Ns=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},ks=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 Ss{constructor(t){Or.add(this),Lr.set(this,void 0),this.domNode=document.createElement("div"),jr.set(this,new Ms),Wr.set(this,document.createElement("div")),Pr.set(this,void 0),Dr.set(this,void 0),Ir.set(this,document.createElement("div")),Br.set(this,void 0),Rr.set(this,void 0),zr.set(this,void 0),Fr.set(this,void 0),qr.set(this,void 0),Ur.set(this,void 0),Vr.set(this,void 0),Gr.set(this,void 0),Hr.set(this,void 0),Xr.set(this,void 0),Yr.set(this,void 0),$r.set(this,void 0),Ns(this,Lr,t,"f"),this.domNode.classList.add(_.lf),ks(this,jr,"f").domNode.addEventListener("click",(()=>this.domNode.classList.toggle(_.ho))),this.domNode.append(ks(this,jr,"f").domNode),ks(this,Wr,"f").classList.add(_.Qs),this.domNode.append(ks(this,Wr,"f")),Ns(this,Pr,new Cs(t),"f"),ks(this,Wr,"f").append(ks(this,Pr,"f").domNode),Ns(this,Dr,new As(t),"f"),ks(this,Wr,"f").append(ks(this,Dr,"f").domNode),ks(this,Ir,"f").classList.add(_.eB),ks(this,Wr,"f").append(ks(this,Ir,"f")),t.selectedBases.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedBases].length>0?ks(this,Or,"m",Zr).call(this):ks(this,Or,"m",Jr).call(this))})),Ns(this,Br,new Es(t),"f"),ks(this,Ir,"f").append(ks(this,Br,"f").domNode),Ns(this,Rr,new Ts(t),"f"),ks(this,Ir,"f").append(ks(this,Rr,"f").domNode),Ns(this,zr,new Os(t),"f"),ks(this,Ir,"f").append(ks(this,zr,"f").domNode),Ns(this,Fr,new Ls(t),"f"),ks(this,Ir,"f").append(ks(this,Fr,"f").domNode),Ns(this,qr,new js(t),"f"),ks(this,Ir,"f").append(ks(this,qr,"f").domNode),Ns(this,Ur,new Ws(t),"f"),ks(this,Ir,"f").append(ks(this,Ur,"f").domNode),Ns(this,Vr,new Ps(t),"f"),ks(this,Ir,"f").append(ks(this,Vr,"f").domNode),Ns(this,Gr,new Ds(t),"f"),ks(this,Ir,"f").append(ks(this,Gr,"f").domNode),Ns(this,Hr,new Is(t),"f"),ks(this,Ir,"f").append(ks(this,Hr,"f").domNode),Ns(this,Xr,new zs(t),"f"),ks(this,Ir,"f").append(ks(this,Xr,"f").domNode),Ns(this,Yr,new Fs(t),"f"),ks(this,Ir,"f").append(ks(this,Yr,"f").domNode),Ns(this,$r,new qs(t),"f"),ks(this,Ir,"f").append(ks(this,$r,"f").domNode)}refresh(){ks(this,Or,"a",Qr).forEach((t=>t.refresh())),[...ks(this,Lr,"f").selectedBases].length>0?ks(this,Or,"m",Zr).call(this):ks(this,Or,"m",Jr).call(this)}}Lr=new WeakMap,jr=new WeakMap,Wr=new WeakMap,Pr=new WeakMap,Dr=new WeakMap,Ir=new WeakMap,Br=new WeakMap,Rr=new WeakMap,zr=new WeakMap,Fr=new WeakMap,qr=new WeakMap,Ur=new WeakMap,Vr=new WeakMap,Gr=new WeakMap,Hr=new WeakMap,Xr=new WeakMap,Yr=new WeakMap,$r=new WeakMap,Or=new WeakSet,Qr=function(){return[ks(this,Pr,"f"),ks(this,Dr,"f"),ks(this,Br,"f"),ks(this,Rr,"f"),ks(this,zr,"f"),ks(this,Fr,"f"),ks(this,qr,"f"),ks(this,Ur,"f"),ks(this,Vr,"f"),ks(this,Gr,"f"),ks(this,Hr,"f"),ks(this,Xr,"f"),ks(this,Yr,"f"),ks(this,$r,"f")]},Zr=function(){ks(this,Ir,"f").style.display="block"},Jr=function(){ks(this,Ir,"f").style.display="none"};class Ms{constructor(){this.domNode=document.createElement("div"),Kr.set(this,document.createElementNS("http://www.w3.org/2000/svg","svg")),ti.set(this,document.createElement("p")),this.domNode.classList.add(_.wx),ks(this,Kr,"f").classList.add(_.m9),ks(this,Kr,"f").setAttribute("viewBox","0 0 6 10"),ks(this,Kr,"f").setAttribute("width","6"),ks(this,Kr,"f").setAttribute("height","10"),ks(this,Kr,"f").innerHTML='\n <path\n d="M 1 1 L 5 5 L 1 9"\n stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"\n fill="none"\n ></path>\n ',this.domNode.append(ks(this,Kr,"f")),ks(this,ti,"f").classList.add(_.aW),ks(this,ti,"f").textContent="Bases",this.domNode.append(ks(this,ti,"f"))}}Kr=new WeakMap,ti=new WeakMap;class Cs{constructor(t){ei.set(this,void 0),this.domNode=document.createElement("p"),ni.set(this,document.createElement("span")),ri.set(this,document.createElement("span")),Ns(this,ei,t,"f"),this.domNode.classList.add(_.IU),ks(this,ni,"f").style.fontWeight="700",this.domNode.append(ks(this,ni,"f"),ks(this,ri,"f")),ks(this,ei,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...ks(this,ei,"f").selectedBases].length;ks(this,ni,"f").textContent=`${t}`,ks(this,ri,"f").textContent=1==t?" base is selected.":" bases are selected."}}ei=new WeakMap,ni=new WeakMap,ri=new WeakMap;class As{constructor(t){ii.add(this),si.set(this,void 0),this.domNode=document.createElement("div"),oi.set(this,new A),ai.set(this,document.createElement("div")),ui.set(this,{All:new P("All",(()=>ks(this,ii,"m",ci).call(this))),None:new P("None",(()=>ks(this,ii,"m",fi).call(this))),A:new P("A",(()=>ks(this,ii,"m",di).call(this,"A"))),U:new P("U",(()=>ks(this,ii,"m",di).call(this,"U"))),G:new P("G",(()=>ks(this,ii,"m",di).call(this,"G"))),C:new P("C",(()=>ks(this,ii,"m",di).call(this,"C"))),T:new P("T",(()=>ks(this,ii,"m",di).call(this,"T"))),a:new P("a",(()=>ks(this,ii,"m",di).call(this,"a"))),u:new P("u",(()=>ks(this,ii,"m",di).call(this,"u"))),g:new P("g",(()=>ks(this,ii,"m",di).call(this,"g"))),c:new P("c",(()=>ks(this,ii,"m",di).call(this,"c"))),t:new P("t",(()=>ks(this,ii,"m",di).call(this,"t"))),Outlined:new P("Outlined",(()=>ks(this,ii,"m",pi).call(this))),Paired:new P("Paired",(()=>ks(this,ii,"m",mi).call(this))),Unpaired:new P("Unpaired",(()=>ks(this,ii,"m",gi).call(this)))}),hi.set(this,void 0),Ns(this,si,t,"f"),this.domNode.classList.add(_.vw),ks(this,oi,"f").textContent="Select:",ks(this,oi,"f").domNode.addEventListener("click",(()=>ks(this,ii,"m",li).call(this))),this.domNode.append(ks(this,oi,"f").domNode);let e=document.createElement("div");_s(e).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"6px"}),this.domNode.append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"23px"}),n.append(...["All","None"].map((t=>ks(this,ui,"f")[t].domNode))),e.append(n),_s(ks(this,ai,"f")).css({display:"flex",flexDirection:"column",gap:"6px"}),e.append(ks(this,ai,"f")),ks(this,ai,"f").style.display="none",ks(this,oi,"f").caret.pointRight();let r=document.createElement("div");_s(r).css({display:"flex",flexDirection:"row",gap:"17px"}),r.append(...["A","U","G","C","T"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(r);let i=document.createElement("div");_s(i).css({display:"flex",flexDirection:"row",gap:"18px"}),i.append(...["a","u","g","c","t"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(i),ks(this,ai,"f").append(ks(this,ui,"f").Outlined.domNode);let s=document.createElement("div");_s(s).css({display:"flex",flexDirection:"row",gap:"18px"}),s.append(...["Paired","Unpaired"].map((t=>ks(this,ui,"f")[t].domNode))),ks(this,ai,"f").append(s),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ns(this,hi,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),ks(this,hi,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){let t=[...ks(this,si,"f").drawing.bases],e=new Set([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2]))),n=t.filter((t=>!e.has(t))),r=new Set(ks(this,si,"f").selectedBases),i=[...ks(this,si,"f").selectedOutlines];0==t.length?(ks(this,ui,"f").All.disable(),ks(this,ui,"f").All.tooltip.textContent="There are no bases in the drawing."):r.size==t.length?(ks(this,ui,"f").All.disable(),ks(this,ui,"f").All.tooltip.textContent="All bases are already selected."):(ks(this,ui,"f").All.enable(),ks(this,ui,"f").All.tooltip.textContent="Select all bases."),0==r.size?(ks(this,ui,"f").None.disable(),ks(this,ui,"f").None.tooltip.textContent="No bases are selected."):(ks(this,ui,"f").None.enable(),ks(this,ui,"f").None.tooltip.textContent="Deselect all bases."),["A","U","G","C","T","a","u","g","c","t"].forEach((e=>{let n=t.filter((t=>t.textContent==e)),i=ks(this,ui,"f")[e];0==n.length?(i.disable(),i.tooltip.textContent=`No bases have the letter "${e}".`):n.every((t=>r.has(t)))?(i.disable(),i.tooltip.textContent=`All bases with the letter "${e}" are already selected.`):(i.enable(),i.tooltip.textContent=`Select all bases with the letter "${e}".`)})),0==i.length?(ks(this,ui,"f").Outlined.disable(),ks(this,ui,"f").Outlined.tooltip.textContent="No outlines are selected."):i.map((t=>t.owner)).every((t=>r.has(t)))?(ks(this,ui,"f").Outlined.disable(),ks(this,ui,"f").Outlined.tooltip.textContent="All bases outlined by the selected outlines are already selected."):(ks(this,ui,"f").Outlined.enable(),ks(this,ui,"f").Outlined.tooltip.textContent="Select bases outlined by the selected outlines."),0==e.size?(ks(this,ui,"f").Paired.disable(),ks(this,ui,"f").Paired.tooltip.textContent="There are no paired bases in the drawing."):[...e].every((t=>r.has(t)))?(ks(this,ui,"f").Paired.disable(),ks(this,ui,"f").Paired.tooltip.textContent="All paired bases are already selected."):(ks(this,ui,"f").Paired.enable(),ks(this,ui,"f").Paired.tooltip.textContent="Select all paired bases."),0==n.length?(ks(this,ui,"f").Unpaired.disable(),ks(this,ui,"f").Unpaired.tooltip.textContent="There are no unpaired bases in the drawing."):n.every((t=>r.has(t)))?(ks(this,ui,"f").Unpaired.disable(),ks(this,ui,"f").Unpaired.tooltip.textContent="All unpaired bases are already selected."):(ks(this,ui,"f").Unpaired.enable(),ks(this,ui,"f").Unpaired.tooltip.textContent="Select all unpaired bases.")}}si=new WeakMap,oi=new WeakMap,ai=new WeakMap,ui=new WeakMap,hi=new WeakMap,ii=new WeakSet,li=function(){let t="none"!=ks(this,ai,"f").style.display;ks(this,ai,"f").style.display=t?"none":"flex",t?ks(this,oi,"f").caret.pointRight():ks(this,oi,"f").caret.pointDown()},ci=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases])},fi=function(){ks(this,si,"f").removeFromSelected([...ks(this,si,"f").drawing.bases])},di=function(t){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases].filter((e=>e.domNode.textContent==t)))},pi=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").selectedOutlines].map((t=>t.owner)))},mi=function(){ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])))},gi=function(){let t=new Set([...ks(this,si,"f").drawing.secondaryBonds].flatMap((t=>[t.base1,t.base2])));ks(this,si,"f").addToSelected([...ks(this,si,"f").drawing.bases].filter((e=>!t.has(e))))};class Es{constructor(t){yi.add(this),vi.set(this,void 0),this.domNode=document.createElement("div"),wi.set(this,document.createElement("p")),bi.set(this,new P),xi.set(this,new P),Ns(this,vi,t,"f"),this.domNode.classList.add(_.Te),ks(this,wi,"f").classList.add(_.QB),ks(this,wi,"f").textContent="Send to:",this.domNode.append(ks(this,wi,"f")),ks(this,bi,"f").domNode.addEventListener("click",(()=>ks(this,yi,"m",_i).call(this))),ks(this,bi,"f").textContent="Front",ks(this,bi,"f").domNode.style.marginLeft="26px",this.domNode.append(ks(this,bi,"f").domNode),ks(this,xi,"f").domNode.addEventListener("click",(()=>ks(this,yi,"m",Ni).call(this))),ks(this,xi,"f").textContent="Back",ks(this,xi,"f").domNode.style.marginLeft="28px",this.domNode.append(ks(this,xi,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){ks(this,yi,"m",ki).call(this),ks(this,yi,"m",Si).call(this)}}vi=new WeakMap,wi=new WeakMap,bi=new WeakMap,xi=new WeakMap,yi=new WeakSet,_i=function(){let t=[...ks(this,vi,"f").selectedBases];0!=t.length?(ks(this,vi,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode)))):this.refresh()},Ni=function(){let t=[...ks(this,vi,"f").selectedBases];0!=t.length?(ks(this,vi,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode)))):this.refresh()},ki=function(){0==[...ks(this,vi,"f").selectedBases].length?(ks(this,bi,"f").disable(),ks(this,bi,"f").tooltip.textContent="No bases are selected."):(ks(this,bi,"f").enable(),ks(this,bi,"f").tooltip.textContent="Bring the selected bases to the front.")},Si=function(){0==[...ks(this,vi,"f").selectedBases].length?(ks(this,xi,"f").disable(),ks(this,xi,"f").tooltip.textContent="No bases are selected."):(ks(this,xi,"f").enable(),ks(this,xi,"f").tooltip.textContent="Send the selected bases to the back.")};class Ts{constructor(t){Mi.add(this),Ci.set(this,void 0),Ai.set(this,new z({onSubmit:()=>ks(this,Mi,"m",Ti).call(this)})),Ei.set(this,void 0),Ns(this,Ci,t,"f"),Ns(this,Ei,new Q("Text Content",ks(this,Ai,"f").domNode),"f"),ks(this,Ei,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent",this.domNode.style.marginTop="23px",this.domNode.style.alignSelf="start",ks(this,Ci,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,Ci,"f").drawing.domNode,{characterData:!0,subtree:!0}),this.refresh()}get domNode(){return ks(this,Ei,"f").domNode}refresh(){let t=[...ks(this,Ci,"f").selectedBases];try{ks(this,Ai,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.textContent)&&void 0!==e?e:""})))}catch(t){ks(this,Ai,"f").domNode.value=""}}}Ci=new WeakMap,Ai=new WeakMap,Ei=new WeakMap,Mi=new WeakSet,Ti=function(){var t;let e=null!==(t=ks(this,Ai,"f").domNode.value)&&void 0!==t?t:"";if(e=e.trim(),!e)return void this.refresh();let n=[...ks(this,Ci,"f").selectedBases];0==n.length||n.every((t=>t.textContent===e))||(ks(this,Ci,"f").pushUndoStack(),n.forEach((t=>t.maintainingCenterPoint((()=>t.textContent=e))))),this.refresh()};class Os{constructor(t){Oi.set(this,void 0),Li.set(this,void 0),ji.set(this,void 0),Ns(this,Oi,t,"f"),Ns(this,Li,new Gs(t,"fill"),"f"),Ns(this,ji,new Q("Fill",ks(this,Li,"f").domNode),"f"),ks(this,ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,ji,"f").domNode}refresh(){ks(this,Li,"f").refresh()}}Oi=new WeakMap,Li=new WeakMap,ji=new WeakMap;class Ls{constructor(t){Wi.add(this),Pi.set(this,void 0),Di.set(this,new st),Ii.set(this,void 0),Bi.set(this,void 0),Ri.set(this,void 0),Ns(this,Pi,t,"f"),ks(this,Di,"f").domNode.addEventListener("input",(()=>ks(this,Wi,"m",zi).call(this))),Ns(this,Ii,new ut("Fill Color",ks(this,Di,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,Pi,"f").selectedBases.addEventListener("change",(()=>Ns(this,Bi,void 0,"f"))),ks(this,Di,"f").domNode.addEventListener("focus",(()=>Ns(this,Ri,ks(this,Di,"f").domNode.value,"f"))),ks(this,Pi,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,Pi,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return ks(this,Ii,"f").domNode}refresh(){let t=[...ks(this,Pi,"f").selectedBases];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));ks(this,Di,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){ks(this,Di,"f").domNode.value="#000000"}else ks(this,Di,"f").domNode.value="#000000"}}Pi=new WeakMap,Di=new WeakMap,Ii=new WeakMap,Bi=new WeakMap,Ri=new WeakMap,Wi=new WeakSet,zi=function(){if(ks(this,Di,"f").domNode.value===ks(this,Ri,"f"))return;let t=[...ks(this,Pi,"f").selectedBases];0!=t.length?(t.every((t=>{var e;return(null===(e=t.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===ks(this,Di,"f").domNode.value.toLowerCase()}))||((ks(this,Pi,"f").undoStack.isEmpty()||ks(this,Pi,"f").undoStack.peek()!==ks(this,Bi,"f"))&&(ks(this,Pi,"f").pushUndoStack(),Ns(this,Bi,ks(this,Pi,"f").undoStack.peek(),"f")),t.forEach((t=>t.setAttribute("fill",ks(this,Di,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class js{constructor(t){Fi.set(this,void 0),qi.set(this,void 0),Ui.set(this,void 0),Ns(this,Fi,t,"f"),Ns(this,qi,new Gs(t,"fill-opacity"),"f"),Ns(this,Ui,new Q("Fill Opacity",ks(this,qi,"f").domNode),"f"),ks(this,Ui,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Ui,"f").domNode}refresh(){ks(this,qi,"f").refresh()}}Fi=new WeakMap,qi=new WeakMap,Ui=new WeakMap;class Ws{constructor(t){Vi.set(this,void 0),Gi.set(this,void 0),Hi.set(this,void 0),Ns(this,Vi,t,"f"),Ns(this,Gi,new Gs(t,"font-family"),"f"),Ns(this,Hi,new Q("Font Family",ks(this,Gi,"f").domNode),"f"),ks(this,Hi,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-family",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Hi,"f").domNode}refresh(){ks(this,Gi,"f").refresh()}}Vi=new WeakMap,Gi=new WeakMap,Hi=new WeakMap;class Ps{constructor(t){Xi.set(this,void 0),Yi.set(this,void 0),$i.set(this,void 0),Ns(this,Xi,t,"f"),Ns(this,Yi,new Gs(t,"font-size"),"f"),Ns(this,$i,new Q("Font Size",ks(this,Yi,"f").domNode),"f"),ks(this,$i,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-size",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,$i,"f").domNode}refresh(){ks(this,Yi,"f").refresh()}}Xi=new WeakMap,Yi=new WeakMap,$i=new WeakMap;class Ds{constructor(t){Qi.set(this,void 0),Zi.set(this,void 0),Ji.set(this,void 0),Ns(this,Qi,t,"f"),Ns(this,Zi,new Gs(t,"font-weight"),"f"),Ns(this,Ji,new Q("Font Weight",ks(this,Zi,"f").domNode),"f"),ks(this,Ji,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-weight",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,Ji,"f").domNode}refresh(){ks(this,Zi,"f").refresh()}}Qi=new WeakMap,Zi=new WeakMap,Ji=new WeakMap;class Is{constructor(t){Ki.add(this),ts.set(this,void 0),es.set(this,new K),ns.set(this,void 0),Ns(this,ts,t,"f"),ks(this,es,"f").domNode.addEventListener("change",(()=>ks(this,Ki,"m",rs).call(this))),Ns(this,ns,new nt("Bold",ks(this,es,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,ts,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,ts,"f").drawing.domNode,{attributes:!0,attributeFilter:["font-weight"],subtree:!0}),this.refresh()}get domNode(){return ks(this,ns,"f").domNode}refresh(){let t=[...ks(this,ts,"f").selectedBases];0==t.length?ks(this,es,"f").domNode.checked=!1:ks(this,es,"f").domNode.checked=t.every(Bs)}}function Bs(t){let e=t.getAttribute("font-weight");if(null===e)return!1;let n=Number.parseFloat(e);return Number.isNaN(n)?"bold"===e.toLowerCase():n>=700}function Rs(t){return!Bs(t)}ts=new WeakMap,es=new WeakMap,ns=new WeakMap,Ki=new WeakSet,rs=function(){let t=[...ks(this,ts,"f").selectedBases];0!=t.length?ks(this,es,"f").domNode.checked&&t.every(Bs)?this.refresh():ks(this,es,"f").domNode.checked||!t.every(Rs)?(ks(this,ts,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{ks(this,es,"f").domNode.checked&&Rs(t)?t.setAttribute("font-weight","700"):!ks(this,es,"f").domNode.checked&&Bs(t)&&t.setAttribute("font-weight","400")}))})),this.refresh(),ks(this,es,"f").domNode.blur()):this.refresh():this.refresh()};class zs{constructor(t){is.set(this,void 0),ss.set(this,void 0),os.set(this,void 0),Ns(this,is,t,"f"),Ns(this,ss,new Gs(t,"font-style"),"f"),Ns(this,os,new Q("Font Style",ks(this,ss,"f").domNode),"f"),ks(this,os,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/font-style",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,os,"f").domNode}refresh(){ks(this,ss,"f").refresh()}}is=new WeakMap,ss=new WeakMap,os=new WeakMap;class Fs{constructor(t){as.set(this,void 0),us.set(this,void 0),hs.set(this,void 0),Ns(this,as,t,"f"),Ns(this,us,new Gs(t,"text-decoration"),"f"),Ns(this,hs,new Q("Text Decoration",ks(this,us,"f").domNode),"f"),ks(this,hs,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/text-decoration",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return ks(this,hs,"f").domNode}refresh(){ks(this,us,"f").refresh()}}as=new WeakMap,us=new WeakMap,hs=new WeakMap;class qs{constructor(t){ls.add(this),cs.set(this,void 0),fs.set(this,new K),ds.set(this,void 0),Ns(this,cs,t,"f"),ks(this,fs,"f").domNode.addEventListener("change",(()=>ks(this,ls,"m",ps).call(this))),Ns(this,ds,new nt("Underlined",ks(this,fs,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),ks(this,cs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,cs,"f").drawing.domNode,{attributes:!0,attributeFilter:["text-decoration"],subtree:!0}),this.refresh()}get domNode(){return ks(this,ds,"f").domNode}refresh(){let t=[...ks(this,cs,"f").selectedBases];0==t.length?ks(this,fs,"f").domNode.checked=!1:ks(this,fs,"f").domNode.checked=t.every(Us)}}function Us(t){let e=t.getAttribute("text-decoration");return null!==e&&e.split(/\s/).map((t=>t.toLowerCase())).includes("underline")}function Vs(t){return!Us(t)}cs=new WeakMap,fs=new WeakMap,ds=new WeakMap,ls=new WeakSet,ps=function(){let t=[...ks(this,cs,"f").selectedBases];0!=t.length?ks(this,fs,"f").domNode.checked&&t.every(Us)?this.refresh():ks(this,fs,"f").domNode.checked||!t.every(Vs)?(ks(this,cs,"f").pushUndoStack(),t.forEach((t=>{t.maintainingCenterPoint((()=>{ks(this,fs,"f").domNode.checked&&Vs(t)?t.setAttribute("text-decoration","underline"):!ks(this,fs,"f").domNode.checked&&Us(t)&&t.setAttribute("text-decoration","")}))})),this.refresh(),ks(this,fs,"f").domNode.blur()):this.refresh():this.refresh()};class Gs{constructor(t,e){ms.add(this),gs.set(this,void 0),ys.set(this,void 0),vs.set(this,new z({onSubmit:()=>ks(this,ms,"m",ws).call(this)})),Ns(this,gs,t,"f"),Ns(this,ys,e,"f"),ks(this,gs,"f").selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(ks(this,gs,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return ks(this,vs,"f").domNode}refresh(){let t=[...ks(this,gs,"f").selectedBases];try{ks(this,vs,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.getAttribute(ks(this,ys,"f")))&&void 0!==e?e:""})))}catch(t){ks(this,vs,"f").domNode.value=""}}}gs=new WeakMap,ys=new WeakMap,vs=new WeakMap,ms=new WeakSet,ws=function(){let t=ks(this,vs,"f").domNode.value,e=[...ks(this,gs,"f").selectedBases];0==e.length||e.every((e=>e.getAttribute(ks(this,ys,"f"))===t))||(ks(this,gs,"f").pushUndoStack(),e.forEach((e=>e.maintainingCenterPoint((()=>e.setAttribute(ks(this,ys,"f"),t)))))),this.refresh()};var Hs=n(924),Xs={};Xs.styleTagTransform=w(),Xs.setAttributes=m(),Xs.insert=d().bind(null,"head"),Xs.domAPI=c(),Xs.insertStyleElement=y(),h()(Hs.Ay,Xs),Hs.Ay&&Hs.Ay.locals&&Hs.Ay.locals;var Ys=n(723),$s={};$s.styleTagTransform=w(),$s.setAttributes=m(),$s.insert=d().bind(null,"head"),$s.domAPI=c(),$s.insertStyleElement=y(),h()(Ys.Ay,$s),Ys.Ay&&Ys.Ay.locals&&Ys.Ay.locals;var Qs,Zs=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 Js{constructor(t,e){this.domNode=document.createElement("div"),Qs.set(this,document.createElement("p")),this.tooltip=new j.Tooltip(""),this.domNode.classList.add(Ys.kL),Zs(this,Qs,"f").classList.add(Ys.Wu),!t||(this.textContent=t),!e||(this.onClick=e),this.domNode.append(Zs(this,Qs,"f")),this.tooltip.owner=this.domNode}get textContent(){return Zs(this,Qs,"f").textContent}set textContent(t){Zs(this,Qs,"f").textContent=t}get onClick(){return Zs(this,Qs,"f").onclick}set onClick(t){Zs(this,Qs,"f").onclick=t}click(){Zs(this,Qs,"f").click()}disable(){Zs(this,Qs,"f").classList.add(Ys.r9)}enable(){Zs(this,Qs,"f").classList.remove(Ys.r9)}isDisabled(){return Zs(this,Qs,"f").classList.contains(Ys.r9)}isEnabled(){return!this.isDisabled()}}Qs=new WeakMap;var Ks,to,eo,no,ro,io,so,oo,ao,uo,ho,lo,co,fo,po,mo,go,yo,vo,wo,bo,xo,_o,No,ko,So,Mo,Co,Ao,Eo,To,Oo,Lo,jo,Wo,Po,Do,Io,Bo,Ro,zo,Fo,qo,Uo,Vo,Go,Ho,Xo,Yo,$o,Qo,Zo,Jo,Ko,ta,ea,na,ra,ia,sa,oa,aa,ua,ha,la,ca,fa,da,pa,ma,ga,ya,va,wa,ba,xa,_a,Na,ka,Sa,Ma,Ca,Aa,Ea,Ta,Oa,La,ja,Wa,Pa,Da,Ia,Ba,Ra,za,Fa,qa,Ua=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},Va=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),to.set(this,void 0),this.domNode=document.createElement("div"),eo.set(this,new A),no.set(this,document.createElement("div")),ro.set(this,void 0),io.set(this,document.createElement("div")),so.set(this,void 0),oo.set(this,void 0),ao.set(this,void 0),uo.set(this,void 0),ho.set(this,void 0),lo.set(this,void 0),co.set(this,void 0),fo.set(this,void 0),po.set(this,void 0),mo.set(this,void 0),go.set(this,void 0),yo.set(this,void 0),vo.set(this,void 0),Ua(this,to,t,"f"),this.domNode.classList.add(Hs.qM),Va(this,eo,"f").textContent="Outlines",Va(this,eo,"f").domNode.addEventListener("click",(()=>this.toggle())),this.domNode.append(Va(this,eo,"f").domNode),Va(this,no,"f").classList.add(Hs.Qs),this.domNode.append(Va(this,no,"f")),Ua(this,ro,new Ha(t),"f"),Va(this,no,"f").append(Va(this,ro,"f").domNode),Ua(this,so,new Xa(t),"f"),Va(this,no,"f").append(Va(this,so,"f").domNode),Ua(this,oo,new Ya(t),"f"),Va(this,no,"f").append(Va(this,oo,"f").domNode),Ua(this,ao,new $a(t),"f"),Va(this,no,"f").append(Va(this,ao,"f").domNode),Va(this,io,"f").classList.add(Hs.eB),Va(this,no,"f").append(Va(this,io,"f")),t.selectedOutlines.addEventListener("change",(()=>{document.body.contains(this.domNode)&&([...t.selectedOutlines].length>0?Va(this,Ks,"m",bo).call(this):Va(this,Ks,"m",xo).call(this))})),Ua(this,uo,new Qa(t),"f"),Va(this,io,"f").append(Va(this,uo,"f").domNode),Ua(this,ho,new Za(t),"f"),Va(this,io,"f").append(Va(this,ho,"f").domNode),Ua(this,lo,new Ja(t),"f"),Va(this,io,"f").append(Va(this,lo,"f").domNode),Ua(this,co,new Ka(t),"f"),Va(this,io,"f").append(Va(this,co,"f").domNode),Ua(this,fo,new tu(t),"f"),Va(this,io,"f").append(Va(this,fo,"f").domNode),Ua(this,po,new eu(t),"f"),Va(this,io,"f").append(Va(this,po,"f").domNode),Ua(this,mo,new nu(t),"f"),Va(this,io,"f").append(Va(this,mo,"f").domNode),Ua(this,go,new ru(t),"f"),Va(this,io,"f").append(Va(this,go,"f").domNode),Ua(this,yo,new iu(t),"f"),Va(this,io,"f").append(Va(this,yo,"f").domNode),Ua(this,vo,new su(t),"f"),Va(this,io,"f").append(Va(this,vo,"f").domNode)}isOpen(){return this.domNode.classList.contains(Hs.ho)}toggle(){this.isOpen()?(this.domNode.classList.remove(Hs.ho),Va(this,eo,"f").caret.pointRight()):(this.domNode.classList.add(Hs.ho),Va(this,eo,"f").caret.pointDown())}refresh(){Va(this,Ks,"a",wo).forEach((t=>t.refresh())),[...Va(this,to,"f").selectedOutlines].length>0?Va(this,Ks,"m",bo).call(this):Va(this,Ks,"m",xo).call(this)}}to=new WeakMap,eo=new WeakMap,no=new WeakMap,ro=new WeakMap,io=new WeakMap,so=new WeakMap,oo=new WeakMap,ao=new WeakMap,uo=new WeakMap,ho=new WeakMap,lo=new WeakMap,co=new WeakMap,fo=new WeakMap,po=new WeakMap,mo=new WeakMap,go=new WeakMap,yo=new WeakMap,vo=new WeakMap,Ks=new WeakSet,wo=function(){return[Va(this,ro,"f"),Va(this,so,"f"),Va(this,oo,"f"),Va(this,ao,"f"),Va(this,uo,"f"),Va(this,ho,"f"),Va(this,lo,"f"),Va(this,co,"f"),Va(this,fo,"f"),Va(this,po,"f"),Va(this,mo,"f"),Va(this,go,"f"),Va(this,yo,"f"),Va(this,vo,"f")]},bo=function(){Va(this,io,"f").style.display="flex"},xo=function(){Va(this,io,"f").style.display="none"};class Ha{constructor(t){_o.set(this,void 0),this.domNode=document.createElement("p"),No.set(this,document.createElement("span")),ko.set(this,document.createElement("span")),Ua(this,_o,t,"f"),this.domNode.classList.add(Hs.vM),Va(this,No,"f").style.fontWeight="700",this.domNode.append(Va(this,No,"f"),Va(this,ko,"f")),Va(this,_o,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){let t=[...Va(this,_o,"f").selectedOutlines].length;Va(this,No,"f").textContent=`${t}`,Va(this,ko,"f").textContent=1==t?" outline is selected.":" outlines are selected."}}_o=new WeakMap,No=new WeakMap,ko=new WeakMap;class Xa{constructor(t){So.add(this),Mo.set(this,void 0),this.domNode=document.createElement("div"),Co.set(this,document.createElement("p")),Ao.set(this,new P),Eo.set(this,new P),To.set(this,new P),Oo.set(this,void 0),Ua(this,Mo,t,"f"),this.domNode.classList.add(Hs.VX),Va(this,Co,"f").classList.add(Hs.iE),Va(this,Co,"f").textContent="Select:",this.domNode.append(Va(this,Co,"f")),Va(this,Ao,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",Lo).call(this))),Va(this,Ao,"f").textContent="All",Va(this,Ao,"f").domNode.style.marginLeft="20px",this.domNode.append(Va(this,Ao,"f").domNode),Va(this,Eo,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",jo).call(this))),Va(this,Eo,"f").textContent="Outlining",Va(this,Eo,"f").domNode.style.marginLeft="17px",this.domNode.append(Va(this,Eo,"f").domNode),Va(this,To,"f").domNode.addEventListener("click",(()=>Va(this,So,"m",Wo).call(this))),Va(this,To,"f").textContent="None",Va(this,To,"f").domNode.style.marginLeft="17px",this.domNode.append(Va(this,To,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ua(this,Oo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Va(this,Oo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}refresh(){Va(this,So,"m",Po).call(this),Va(this,So,"m",Do).call(this),Va(this,So,"m",Io).call(this)}}Mo=new WeakMap,Co=new WeakMap,Ao=new WeakMap,Eo=new WeakMap,To=new WeakMap,Oo=new WeakMap,So=new WeakSet,Lo=function(){let t=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").addToSelected(t)},jo=function(){let t=new Set(Va(this,Mo,"f").selectedBases),e=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").addToSelected(e.filter((e=>t.has(e.owner))))},Wo=function(){let t=[...Va(this,Mo,"f").drawing.outlines];Va(this,Mo,"f").removeFromSelected(t)},Po=function(){let t=[...Va(this,Mo,"f").drawing.outlines],e=[...Va(this,Mo,"f").selectedOutlines];0==t.length?(Va(this,Ao,"f").disable(),Va(this,Ao,"f").tooltip.textContent="There are no outlines in the drawing."):e.length==t.length?(Va(this,Ao,"f").disable(),Va(this,Ao,"f").tooltip.textContent="All outlines are already selected."):(Va(this,Ao,"f").enable(),Va(this,Ao,"f").tooltip.textContent="Select all outlines.")},Do=function(){let t=[...Va(this,Mo,"f").drawing.outlines],e=new Set(Va(this,Mo,"f").selectedBases),n=t.filter((t=>e.has(t.owner))),r=new Set(Va(this,Mo,"f").selectedOutlines);0==e.size?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="No bases are selected."):0==n.length?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="No selected bases are outlined."):n.every((t=>r.has(t)))?(Va(this,Eo,"f").disable(),Va(this,Eo,"f").tooltip.textContent="All outlines outlining the selected bases are already selected."):(Va(this,Eo,"f").enable(),Va(this,Eo,"f").tooltip.textContent="Select outlines outlining the selected bases.")},Io=function(){0==[...Va(this,Mo,"f").selectedOutlines].length?(Va(this,To,"f").disable(),Va(this,To,"f").tooltip.textContent="No outlines are selected."):(Va(this,To,"f").enable(),Va(this,To,"f").tooltip.textContent="Deselect all outlines.")};class Ya{constructor(t){Bo.add(this),Ro.set(this,void 0),this.domNode=document.createElement("div"),zo.set(this,new Js("Add",(()=>Va(this,Bo,"m",Go).call(this)))),Fo.set(this,new K),qo.set(this,new nt("Only add missing outlines",Va(this,Fo,"f").domNode)),Uo.set(this,void 0),Ua(this,Ro,t,"f"),this.domNode.style.marginTop="29px",this.domNode.style.display="flex",this.domNode.style.flexDirection="column",this.domNode.append(Va(this,zo,"f").domNode),Va(this,Fo,"f").domNode.checked=!0,Va(this,qo,"f").domNode.style.margin="10px 0px 0px 10px",Va(this,qo,"f").domNode.style.alignSelf="start",this.domNode.append(Va(this,qo,"f").domNode),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ua(this,Uo,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Va(this,Uo,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Va(this,Fo,"f").domNode.addEventListener("change",(()=>this.refresh())),this.refresh()}refresh(){let t=[...Va(this,Ro,"f").selectedBases],e=[...Va(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t)));0==t.length?(Va(this,zo,"f").disable(),Va(this,zo,"f").tooltip.textContent="No bases are selected."):Va(this,Bo,"a",Vo)&&0==r.length?(Va(this,zo,"f").disable(),Va(this,zo,"f").tooltip.textContent="The selected bases are already outlined."):(Va(this,zo,"f").enable(),Va(this,zo,"f").tooltip.textContent="Outline the selected bases.")}}Ro=new WeakMap,zo=new WeakMap,Fo=new WeakMap,qo=new WeakMap,Uo=new WeakMap,Bo=new WeakSet,Vo=function(){return Va(this,Fo,"f").domNode.checked},Go=function(){let t=[...Va(this,Ro,"f").selectedBases];if(0==t.length)return;let e=[...Va(this,Ro,"f").drawing.outlines],n=new Set(e.map((t=>t.owner))),r=t.filter((t=>!n.has(t))),i=Va(this,Bo,"a",Vo)?r:t;if(0==i.length)return;Va(this,Ro,"f").pushUndoStack();let s=i.map((t=>Va(this,Ro,"f").drawing.outline(t)));Va(this,Ro,"f").addToSelected(s),this.refresh()};class $a{constructor(t){Ho.set(this,void 0),Xo.set(this,new Js("Remove",(()=>this.press()))),Ua(this,Ho,t,"f"),this.domNode.style.marginTop="18px",Va(this,Ho,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}get domNode(){return Va(this,Xo,"f").domNode}press(){let t=[...Va(this,Ho,"f").selectedOutlines];0!=t.length?(Va(this,Ho,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())),this.refresh()):this.refresh()}refresh(){0==[...Va(this,Ho,"f").selectedOutlines].length?(Va(this,Xo,"f").disable(),Va(this,Xo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Xo,"f").enable(),Va(this,Xo,"f").tooltip.textContent="Remove the selected outlines from the drawing.")}}Ho=new WeakMap,Xo=new WeakMap;class Qa{constructor(t){Yo.add(this),$o.set(this,void 0),this.domNode=document.createElement("div"),Qo.set(this,document.createElement("p")),Zo.set(this,new P),Jo.set(this,new P),Ua(this,$o,t,"f"),this.domNode.classList.add(Hs.Te),Va(this,Qo,"f").classList.add(Hs.QB),Va(this,Qo,"f").textContent="Send to:",this.domNode.append(Va(this,Qo,"f")),Va(this,Zo,"f").domNode.addEventListener("click",(()=>Va(this,Yo,"m",Ko).call(this))),Va(this,Zo,"f").textContent="Front",Va(this,Zo,"f").domNode.style.marginLeft="24px",this.domNode.append(Va(this,Zo,"f").domNode),Va(this,Jo,"f").domNode.addEventListener("click",(()=>Va(this,Yo,"m",ta).call(this))),Va(this,Jo,"f").textContent="Back",Va(this,Jo,"f").domNode.style.marginLeft="28px",this.domNode.append(Va(this,Jo,"f").domNode),t.selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),this.refresh()}refresh(){Va(this,Yo,"m",ea).call(this),Va(this,Yo,"m",na).call(this)}}$o=new WeakMap,Qo=new WeakMap,Zo=new WeakMap,Jo=new WeakMap,Yo=new WeakSet,Ko=function(){let t=[...Va(this,$o,"f").selectedOutlines];0!=t.length?(Va(this,$o,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},ta=function(){let t=[...Va(this,$o,"f").selectedOutlines];0!=t.length?(Va(this,$o,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},ea=function(){0==[...Va(this,$o,"f").selectedOutlines].length?(Va(this,Zo,"f").disable(),Va(this,Zo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Zo,"f").enable(),Va(this,Zo,"f").tooltip.textContent="Bring the selected outlines to the front.")},na=function(){0==[...Va(this,$o,"f").selectedOutlines].length?(Va(this,Jo,"f").disable(),Va(this,Jo,"f").tooltip.textContent="No outlines are selected."):(Va(this,Jo,"f").enable(),Va(this,Jo,"f").tooltip.textContent="Send selected outlines to the back.")};class Za{constructor(t){ra.set(this,void 0),ia.set(this,void 0),sa.set(this,void 0),Ua(this,ra,t,"f"),Ua(this,ia,new ou(t,"r"),"f"),Ua(this,sa,new Q("Radius",Va(this,ia,"f").domNode),"f"),Va(this,sa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/r",this.domNode.style.marginTop="24px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Va(this,sa,"f").domNode}refresh(){Va(this,ia,"f").refresh()}}ra=new WeakMap,ia=new WeakMap,sa=new WeakMap;class Ja{constructor(t){oa.set(this,void 0),aa.set(this,void 0),ua.set(this,void 0),Ua(this,oa,t,"f"),Ua(this,aa,new ou(t,"fill"),"f"),Ua(this,ua,new Q("Fill",Va(this,aa,"f").domNode),"f"),Va(this,ua,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,ua,"f").domNode}refresh(){Va(this,aa,"f").refresh()}}oa=new WeakMap,aa=new WeakMap,ua=new WeakMap;class Ka{constructor(t){ha.add(this),la.set(this,void 0),ca.set(this,new st),fa.set(this,void 0),da.set(this,void 0),pa.set(this,void 0),Ua(this,la,t,"f"),Va(this,ca,"f").domNode.addEventListener("input",(()=>Va(this,ha,"m",ma).call(this))),Ua(this,fa,new ut("Fill Color",Va(this,ca,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Va(this,la,"f").selectedOutlines.addEventListener("change",(()=>Ua(this,da,void 0,"f"))),Va(this,ca,"f").domNode.addEventListener("focus",(()=>Ua(this,pa,Va(this,ca,"f").domNode.value,"f"))),Va(this,la,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,la,"f").drawing.domNode,{attributes:!0,attributeFilter:["fill"],subtree:!0}),this.refresh()}get domNode(){return Va(this,fa,"f").domNode}refresh(){let t=[...Va(this,la,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).fill)).map((t=>new ne(t)));Va(this,ca,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Va(this,ca,"f").domNode.value="#000000"}else Va(this,ca,"f").domNode.value="#000000"}}la=new WeakMap,ca=new WeakMap,fa=new WeakMap,da=new WeakMap,pa=new WeakMap,ha=new WeakSet,ma=function(){if(Va(this,ca,"f").domNode.value===Va(this,pa,"f"))return;let t=[...Va(this,la,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("fill"))||void 0===e?void 0:e.toLowerCase())===Va(this,ca,"f").domNode.value.toLowerCase()}))||((Va(this,la,"f").undoStack.isEmpty()||Va(this,la,"f").undoStack.peek()!==Va(this,da,"f"))&&(Va(this,la,"f").pushUndoStack(),Ua(this,da,Va(this,la,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("fill",Va(this,ca,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class tu{constructor(t){ga.set(this,void 0),ya.set(this,void 0),va.set(this,void 0),Ua(this,ga,t,"f"),Ua(this,ya,new ou(t,"fill-opacity"),"f"),Ua(this,va,new Q("Fill Opacity",Va(this,ya,"f").domNode),"f"),Va(this,va,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/fill-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,va,"f").domNode}refresh(){Va(this,ya,"f").refresh()}}ga=new WeakMap,ya=new WeakMap,va=new WeakMap;class eu{constructor(t){wa.set(this,void 0),ba.set(this,void 0),xa.set(this,void 0),Ua(this,wa,t,"f"),Ua(this,ba,new ou(t,"stroke"),"f"),Ua(this,xa,new Q("Stroke",Va(this,ba,"f").domNode),"f"),Va(this,xa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,xa,"f").domNode}refresh(){Va(this,ba,"f").refresh()}}wa=new WeakMap,ba=new WeakMap,xa=new WeakMap;class nu{constructor(t){_a.add(this),Na.set(this,void 0),ka.set(this,new st),Sa.set(this,void 0),Ma.set(this,void 0),Ca.set(this,void 0),Ua(this,Na,t,"f"),Va(this,ka,"f").domNode.addEventListener("input",(()=>Va(this,_a,"m",Aa).call(this))),Ua(this,Sa,new ut("Stroke Color",Va(this,ka,"f").domNode),"f"),_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),Va(this,Na,"f").selectedOutlines.addEventListener("change",(()=>Ua(this,Ma,void 0,"f"))),Va(this,ka,"f").domNode.addEventListener("focus",(()=>Ua(this,Ca,Va(this,ka,"f").domNode.value,"f"))),Va(this,Na,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,Na,"f").drawing.domNode,{attributes:!0,attributeFilter:["stroke"],subtree:!0}),this.refresh()}get domNode(){return Va(this,Sa,"f").domNode}refresh(){let t=[...Va(this,Na,"f").selectedOutlines];if(0!=t.length)try{let e=t.map((t=>window.getComputedStyle(t.domNode).stroke)).map((t=>new ne(t)));Va(this,ka,"f").domNode.value=(0,bs.consensusValue)(e.map((t=>t.toHex().toLowerCase())))}catch(t){Va(this,ka,"f").domNode.value="#000000"}else Va(this,ka,"f").domNode.value="#000000"}}Na=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Ma=new WeakMap,Ca=new WeakMap,_a=new WeakSet,Aa=function(){if(Va(this,ka,"f").domNode.value===Va(this,Ca,"f"))return;let t=[...Va(this,Na,"f").selectedOutlines];0!=t.length?(t.every((t=>{var e;return(null===(e=t.domNode.getAttribute("stroke"))||void 0===e?void 0:e.toLowerCase())===Va(this,ka,"f").domNode.value.toLowerCase()}))||((Va(this,Na,"f").undoStack.isEmpty()||Va(this,Na,"f").undoStack.peek()!==Va(this,Ma,"f"))&&(Va(this,Na,"f").pushUndoStack(),Ua(this,Ma,Va(this,Na,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute("stroke",Va(this,ka,"f").domNode.value.toLowerCase())))),this.refresh()):this.refresh()};class ru{constructor(t){Ea.set(this,void 0),Ta.set(this,void 0),Oa.set(this,void 0),Ua(this,Ea,t,"f"),Ua(this,Ta,new ou(t,"stroke-opacity"),"f"),Ua(this,Oa,new Q("Stroke Opacity",Va(this,Ta,"f").domNode),"f"),Va(this,Oa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",_s(this.domNode).css({marginTop:"12px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Oa,"f").domNode}refresh(){Va(this,Ta,"f").refresh()}}Ea=new WeakMap,Ta=new WeakMap,Oa=new WeakMap;class iu{constructor(t){La.set(this,void 0),ja.set(this,void 0),Wa.set(this,void 0),Ua(this,La,t,"f"),Ua(this,ja,new ou(t,"stroke-width"),"f"),Ua(this,Wa,new Q("Stroke Width",Va(this,ja,"f").domNode),"f"),Va(this,Wa,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Wa,"f").domNode}refresh(){Va(this,ja,"f").refresh()}}La=new WeakMap,ja=new WeakMap,Wa=new WeakMap;class su{constructor(t){Pa.set(this,void 0),Da.set(this,void 0),Ia.set(this,void 0),Ua(this,Pa,t,"f"),Ua(this,Da,new ou(t,"stroke-dasharray"),"f"),Ua(this,Ia,new Q("Stroke Dash-Array",Va(this,Da,"f").domNode),"f"),Va(this,Ia,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",_s(this.domNode).css({marginTop:"10px",alignSelf:"start"}),this.refresh()}get domNode(){return Va(this,Ia,"f").domNode}refresh(){Va(this,Da,"f").refresh()}}Pa=new WeakMap,Da=new WeakMap,Ia=new WeakMap;class ou{constructor(t,e){Ba.add(this),Ra.set(this,void 0),za.set(this,void 0),Fa.set(this,new z({onSubmit:()=>Va(this,Ba,"m",qa).call(this)})),Ua(this,Ra,t,"f"),Ua(this,za,e,"f"),Va(this,Ra,"f").selectedOutlines.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})).observe(Va(this,Ra,"f").drawing.domNode,{attributes:!0,subtree:!0}),this.refresh()}get domNode(){return Va(this,Fa,"f").domNode}refresh(){let t=[...Va(this,Ra,"f").selectedOutlines];try{Va(this,Fa,"f").domNode.value=(0,bs.consensusValue)(t.map((t=>{var e;return null!==(e=t.domNode.getAttribute(Va(this,za,"f")))&&void 0!==e?e:""})))}catch(t){Va(this,Fa,"f").domNode.value=""}}}Ra=new WeakMap,za=new WeakMap,Fa=new WeakMap,Ba=new WeakSet,qa=function(){let t=Va(this,Fa,"f").domNode.value,e=[...Va(this,Ra,"f").selectedOutlines];0==e.length||e.every((e=>e.domNode.getAttribute(Va(this,za,"f"))===t))||(Va(this,Ra,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Va(this,za,"f"),t)))),this.refresh()};var au=n(401),uu={};uu.styleTagTransform=w(),uu.setAttributes=m(),uu.insert=d().bind(null,"head"),uu.domAPI=c(),uu.insertStyleElement=y(),h()(au.Ay,uu),au.Ay&&au.Ay.locals&&au.Ay.locals;var hu=n(933),lu={};lu.styleTagTransform=w(),lu.setAttributes=m(),lu.insert=d().bind(null,"head"),lu.domAPI=c(),lu.insertStyleElement=y(),h()(hu.Ay,lu),hu.Ay&&hu.Ay.locals&&hu.Ay.locals;var cu,fu,du,pu,mu,gu,yu,vu,wu=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},bu=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 xu{constructor(t,e){cu.add(this),fu.set(this,void 0),du.set(this,void 0),this.domNode=document.createElement("div"),pu.set(this,document.createElement("p")),this.buttons={Front:new P("Front",(()=>bu(this,cu,"m",mu).call(this))),Back:new P("Back",(()=>bu(this,cu,"m",gu).call(this)))},yu.set(this,{refresh:[]}),wu(this,fu,t,"f"),wu(this,du,e,"f"),this.domNode.classList.add(hu.Te),bu(this,pu,"f").classList.add(hu.Pf),bu(this,pu,"f").textContent="Send to:",this.domNode.append(bu(this,pu,"f")),this.buttons.Front.domNode.style.marginLeft="24px",this.domNode.append(this.buttons.Front.domNode),this.buttons.Back.domNode.style.marginLeft="28px",this.domNode.append(this.buttons.Back.domNode),t.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...bu(this,fu,"f")];0==t.length?this.buttons.Front.disable():this.buttons.Front.enable(),0==t.length?this.buttons.Back.disable():this.buttons.Back.enable(),bu(this,cu,"m",vu).call(this,"refresh")}addEventListener(t,e){bu(this,yu,"f")[t].push(e)}removeEventListener(t,e){bu(this,yu,"f")[t]=bu(this,yu,"f")[t].filter((t=>t!==e))}}fu=new WeakMap,du=new WeakMap,pu=new WeakMap,yu=new WeakMap,cu=new WeakSet,mu=function(){let t=[...bu(this,fu,"f")];0!=t.length?(bu(this,du,"f").pushUndoStack(),t.forEach((t=>(0,xs.bringToFront)(t.domNode))),this.refresh()):this.refresh()},gu=function(){let t=[...bu(this,fu,"f")];0!=t.length?(bu(this,du,"f").pushUndoStack(),t.forEach((t=>(0,xs.sendToBack)(t.domNode))),this.refresh()):this.refresh()},vu=function(t){bu(this,yu,"f")[t].forEach((t=>t()))};var _u,Nu,ku,Su,Mu,Cu,Au=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},Eu=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 Tu{constructor(t,e,n){_u.add(this),Nu.set(this,void 0),ku.set(this,void 0),Su.set(this,void 0),Mu.set(this,new z({onSubmit:()=>Eu(this,_u,"m",Cu).call(this)})),Au(this,Nu,t,"f"),Au(this,ku,e,"f"),Au(this,Su,n,"f"),e.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),new MutationObserver((()=>{!document.body.contains(this.domNode)||this.refresh()})).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Eu(this,Mu,"f").domNode}refresh(){try{Eu(this,Mu,"f").domNode.value=(0,bs.consensusValue)([...Eu(this,ku,"f")].map((t=>{var e;return null!==(e=t.domNode.getAttribute(Eu(this,Nu,"f")))&&void 0!==e?e:""})))}catch(t){Eu(this,Mu,"f").domNode.value=""}}}Nu=new WeakMap,ku=new WeakMap,Su=new WeakMap,Mu=new WeakMap,_u=new WeakSet,Cu=function(){let t=Eu(this,Mu,"f").domNode.value,e=[...Eu(this,ku,"f")];0==e.length||e.every((e=>e.domNode.getAttribute(Eu(this,Nu,"f"))===t))?this.refresh():(Eu(this,Su,"f").pushUndoStack(),e.forEach((e=>e.domNode.setAttribute(Eu(this,Nu,"f"),t))))};var Ou,Lu,ju,Wu,Pu,Du,Iu,Bu,Ru=n(543),zu=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},Fu=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 qu{constructor(t,e,n){Ou.add(this),Lu.set(this,void 0),ju.set(this,void 0),Wu.set(this,void 0),Pu.set(this,new st),Du.set(this,void 0),Iu.set(this,void 0),zu(this,Lu,t,"f"),zu(this,ju,e,"f"),zu(this,Wu,n,"f"),Fu(this,Pu,"f").domNode.addEventListener("input",(()=>Fu(this,Ou,"m",Bu).call(this))),e.addEventListener("change",(()=>zu(this,Du,void 0,"f"))),Fu(this,Pu,"f").domNode.addEventListener("focus",(()=>zu(this,Iu,Fu(this,Pu,"f").domNode.value,"f"))),e.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),new MutationObserver((()=>{!document.body.contains(this.domNode)||this.refresh()})).observe(n.drawing.domNode,{attributes:!0,attributeFilter:[t],subtree:!0}),this.refresh()}get domNode(){return Fu(this,Pu,"f").domNode}refresh(){let t=[...Fu(this,ju,"f")];if(0!=t.length)try{let e=Ru.camelCase(Fu(this,Lu,"f")),n=t.map((t=>window.getComputedStyle(t.domNode)[e])).map((t=>new ne(t)));Fu(this,Pu,"f").domNode.value=(0,bs.consensusValue)(n.map((t=>t.toHex().toLowerCase())))}catch(t){Fu(this,Pu,"f").domNode.value="#000000"}else Fu(this,Pu,"f").domNode.value="#000000"}}Lu=new WeakMap,ju=new WeakMap,Wu=new WeakMap,Pu=new WeakMap,Du=new WeakMap,Iu=new WeakMap,Ou=new WeakSet,Bu=function(){if(Fu(this,Pu,"f").domNode.value===Fu(this,Iu,"f"))return;let t=[...Fu(this,ju,"f")];0!=t.length?t.every((t=>{var e;return(null===(e=t.domNode.getAttribute(Fu(this,Lu,"f")))||void 0===e?void 0:e.toLowerCase())===Fu(this,Pu,"f").domNode.value.toLowerCase()}))?this.refresh():((Fu(this,Wu,"f").undoStack.isEmpty()||Fu(this,Wu,"f").undoStack.peek()!==Fu(this,Du,"f"))&&(Fu(this,Wu,"f").pushUndoStack(),zu(this,Du,Fu(this,Wu,"f").undoStack.peek(),"f")),t.forEach((t=>t.domNode.setAttribute(Fu(this,Lu,"f"),Fu(this,Pu,"f").domNode.value.toLowerCase())))):this.refresh()};var Uu,Vu,Gu,Hu,Xu,Yu,$u,Qu,Zu,Ju,Ku,th,eh,nh,rh,ih,sh,oh,ah,uh,hh,lh,ch,fh,dh,ph,mh,gh,yh,vh,wh,bh,xh,_h,Nh,kh,Sh,Mh,Ch,Ah,Eh,Th,Oh,Lh,jh,Wh,Ph,Dh,Ih,Bh,Rh,zh,Fh,qh,Uh,Vh,Gh=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},Hh=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 Xh{constructor(t){Uu.add(this),Vu.set(this,void 0),this.domNode=document.createElement("div"),Gu.set(this,new A("Primary Bonds",(()=>this.toggle()))),Hu.set(this,document.createElement("div")),Xu.set(this,void 0),Yu.set(this,void 0),$u.set(this,document.createElement("div")),Qu.set(this,void 0),Zu.set(this,void 0),Ju.set(this,void 0),Ku.set(this,void 0),th.set(this,void 0),eh.set(this,void 0),nh.set(this,void 0),Gh(this,Vu,t,"f"),this.domNode.classList.add(au.gP),this.domNode.append(Hh(this,Gu,"f").domNode),Hh(this,Hu,"f").classList.add(au.Qs),this.domNode.append(Hh(this,Hu,"f")),Gh(this,Xu,new Yh(t),"f"),Hh(this,Hu,"f").append(Hh(this,Xu,"f").domNode),Gh(this,Yu,new $h(t),"f"),Hh(this,Hu,"f").append(Hh(this,Yu,"f").domNode),Hh(this,$u,"f").classList.add(au.eB),Hh(this,Hu,"f").append(Hh(this,$u,"f")),t.selectedPrimaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedPrimaryBonds].length?Hh(this,Uu,"m",ih).call(this):Hh(this,Uu,"m",sh).call(this))})),Gh(this,Qu,new Qh(t),"f"),Hh(this,$u,"f").append(Hh(this,Qu,"f").domNode),Gh(this,Zu,new Zh(t),"f"),Hh(this,$u,"f").append(Hh(this,Zu,"f").domNode),Gh(this,Ju,new Jh(t),"f"),Hh(this,$u,"f").append(Hh(this,Ju,"f").domNode),Gh(this,Ku,new Kh(t),"f"),Hh(this,$u,"f").append(Hh(this,Ku,"f").domNode),Gh(this,th,new tl(t),"f"),Hh(this,$u,"f").append(Hh(this,th,"f").domNode),Gh(this,eh,new el(t),"f"),Hh(this,$u,"f").append(Hh(this,eh,"f").domNode),Gh(this,nh,new nl(t),"f"),Hh(this,$u,"f").append(Hh(this,nh,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(au.yZ)}collapse(){this.domNode.classList.add(au.yZ),Hh(this,Gu,"f").caret.pointRight()}expand(){this.domNode.classList.remove(au.yZ),Hh(this,Gu,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Hh(this,Uu,"a",rh).forEach((t=>t.refresh())),0==[...Hh(this,Vu,"f").selectedPrimaryBonds].length?Hh(this,Uu,"m",ih).call(this):Hh(this,Uu,"m",sh).call(this)}}Vu=new WeakMap,Gu=new WeakMap,Hu=new WeakMap,Xu=new WeakMap,Yu=new WeakMap,$u=new WeakMap,Qu=new WeakMap,Zu=new WeakMap,Ju=new WeakMap,Ku=new WeakMap,th=new WeakMap,eh=new WeakMap,nh=new WeakMap,Uu=new WeakSet,rh=function(){return[Hh(this,Xu,"f"),Hh(this,Yu,"f"),Hh(this,Qu,"f"),Hh(this,Zu,"f"),Hh(this,Ju,"f"),Hh(this,Ku,"f"),Hh(this,th,"f"),Hh(this,eh,"f"),Hh(this,nh,"f")]},ih=function(){Hh(this,$u,"f").style.display="none"},sh=function(){Hh(this,$u,"f").style.display="flex"};class Yh{constructor(t){oh.set(this,void 0),this.domNode=document.createElement("p"),ah.set(this,document.createElement("span")),uh.set(this,document.createElement("span")),Gh(this,oh,t,"f"),this.domNode.classList.add(au.vM),Hh(this,ah,"f").style.fontWeight="700",this.domNode.append(Hh(this,ah,"f"),Hh(this,uh,"f")),Hh(this,oh,"f").selectedPrimaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Hh(this,oh,"f").selectedPrimaryBonds].length;Hh(this,ah,"f").textContent=`${t}`,Hh(this,uh,"f").textContent=1==t?" primary bond is selected.":" primary bonds are selected."}}oh=new WeakMap,ah=new WeakMap,uh=new WeakMap;class $h{constructor(t){hh.add(this),lh.set(this,void 0),this.domNode=document.createElement("div"),ch.set(this,new A("Select:",(()=>this.toggle()))),fh.set(this,{All:new P("All",(()=>Hh(this,hh,"m",yh).call(this))),None:new P("None",(()=>Hh(this,hh,"m",vh).call(this))),Between:new P("Between",(()=>Hh(this,hh,"m",wh).call(this))),Connecting:new P("Connecting",(()=>Hh(this,hh,"m",xh).call(this)))}),dh.set(this,document.createElement("div")),ph.set(this,document.createElement("div")),mh.set(this,document.createElement("div")),gh.set(this,void 0),Gh(this,lh,t,"f"),this.domNode.classList.add(au.vw),this.domNode.append(Hh(this,ch,"f").domNode),_s(Hh(this,dh,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"10px"}),this.domNode.append(Hh(this,dh,"f")),_s(Hh(this,ph,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Hh(this,ph,"f").append(...["All","None"].map((t=>Hh(this,fh,"f")[t].domNode))),Hh(this,dh,"f").append(Hh(this,ph,"f")),_s(Hh(this,mh,"f")).css({display:"flex",flexDirection:"row",gap:"20px"}),Hh(this,mh,"f").append(...["Between","Connecting"].map((t=>Hh(this,fh,"f")[t].domNode))),Hh(this,dh,"f").append(Hh(this,mh,"f")),Hh(this,mh,"f").style.display="none",Hh(this,ch,"f").caret.pointRight(),t.selectedPrimaryBonds.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Gh(this,gh,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Hh(this,gh,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Hh(this,mh,"f").style.display}collapse(){Hh(this,mh,"f").style.display="none",Hh(this,ch,"f").caret.pointRight()}expand(){Hh(this,mh,"f").style.display="flex",Hh(this,ch,"f").caret.pointDown()}refresh(){let t=[...Hh(this,lh,"f").drawing.primaryBonds],e=new Set(Hh(this,lh,"f").selectedPrimaryBonds);0==t.length?(Hh(this,fh,"f").All.disable(),Hh(this,fh,"f").All.tooltip.textContent="There are no primary bonds in the drawing."):t.every((t=>e.has(t)))?(Hh(this,fh,"f").All.disable(),Hh(this,fh,"f").All.tooltip.textContent="All primary bonds are already selected."):(Hh(this,fh,"f").All.enable(),Hh(this,fh,"f").All.tooltip.textContent="Select all primary bonds."),0==e.size?(Hh(this,fh,"f").None.disable(),Hh(this,fh,"f").None.tooltip.textContent="No primary bonds are selected."):(Hh(this,fh,"f").None.enable(),Hh(this,fh,"f").None.tooltip.textContent="Deselect all primary bonds.");let n=[...Hh(this,lh,"f").selectedBases],r=Hh(this,hh,"a",bh);0==n.length?(Hh(this,fh,"f").Between.disable(),Hh(this,fh,"f").Between.tooltip.textContent="No bases are selected."):r.every((t=>e.has(t)))?(Hh(this,fh,"f").Between.disable(),Hh(this,fh,"f").Between.tooltip.textContent="All primary bonds between the selected bases are already selected."):(Hh(this,fh,"f").Between.enable(),Hh(this,fh,"f").Between.tooltip.textContent="Select primary bonds between the selected bases.");let i=Hh(this,hh,"a",_h);0==n.length?(Hh(this,fh,"f").Connecting.disable(),Hh(this,fh,"f").Connecting.tooltip.textContent="No bases are selected."):i.every((t=>e.has(t)))?(Hh(this,fh,"f").Connecting.disable(),Hh(this,fh,"f").Connecting.tooltip.textContent="All primary bonds connecting the selected bases are already selected."):(Hh(this,fh,"f").Connecting.enable(),Hh(this,fh,"f").Connecting.tooltip.textContent="Select primary bonds connecting the selected bases.")}}lh=new WeakMap,ch=new WeakMap,fh=new WeakMap,dh=new WeakMap,ph=new WeakMap,mh=new WeakMap,gh=new WeakMap,hh=new WeakSet,yh=function(){Hh(this,lh,"f").addToSelected([...Hh(this,lh,"f").drawing.primaryBonds])},vh=function(){Hh(this,lh,"f").removeFromSelected([...Hh(this,lh,"f").drawing.primaryBonds])},wh=function(){Hh(this,lh,"f").addToSelected(Hh(this,hh,"a",bh))},bh=function(){let t=new Set(Hh(this,lh,"f").selectedBases);return[...Hh(this,lh,"f").drawing.primaryBonds].filter((e=>t.has(e.base1)&&t.has(e.base2)))},xh=function(){Hh(this,lh,"f").addToSelected(Hh(this,hh,"a",_h))},_h=function(){let t=new Set(Hh(this,lh,"f").selectedBases);return[...Hh(this,lh,"f").drawing.primaryBonds].filter((e=>t.has(e.base1)||t.has(e.base2)))};class Qh{constructor(t){Nh.add(this),kh.set(this,void 0),Sh.set(this,void 0),Gh(this,kh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Sh,new xu(e,t),"f"),this.domNode.style.marginTop="26px",Hh(this,Sh,"f").addEventListener("refresh",(()=>Hh(this,Nh,"m",Mh).call(this))),this.refresh()}get domNode(){return Hh(this,Sh,"f").domNode}refresh(){Hh(this,Sh,"f").refresh()}}kh=new WeakMap,Sh=new WeakMap,Nh=new WeakSet,Mh=function(){let t=[...Hh(this,kh,"f").selectedPrimaryBonds];Hh(this,Sh,"f").buttons.Front.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Bring the selected primary bonds to the front.",Hh(this,Sh,"f").buttons.Back.tooltip.textContent=0==t.length?"No primary bonds are selected.":"Send the selected primary bonds to the back."};class Zh{constructor(t){Ch.set(this,void 0),Ah.set(this,void 0),Eh.set(this,void 0),Gh(this,Ch,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Ah,new Tu("stroke",e,t),"f"),Gh(this,Eh,new Q("Stroke",Hh(this,Ah,"f").domNode),"f"),Hh(this,Eh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="21px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Eh,"f").domNode}refresh(){Hh(this,Ah,"f").refresh()}}Ch=new WeakMap,Ah=new WeakMap,Eh=new WeakMap;class Jh{constructor(t){Th.set(this,void 0),Oh.set(this,void 0),Lh.set(this,void 0),Gh(this,Th,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Oh,new qu("stroke",e,t),"f"),Gh(this,Lh,new ut("Stroke Color",Hh(this,Oh,"f").domNode),"f"),Hh(this,Lh,"f").domNode.style.marginTop="12px",Hh(this,Lh,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Lh,"f").domNode}refresh(){Hh(this,Oh,"f").refresh()}}Th=new WeakMap,Oh=new WeakMap,Lh=new WeakMap;class Kh{constructor(t){jh.set(this,void 0),Wh.set(this,void 0),Ph.set(this,void 0),Gh(this,jh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Wh,new Tu("stroke-opacity",e,t),"f"),Gh(this,Ph,new Q("Stroke Opacity",Hh(this,Wh,"f").domNode),"f"),Hh(this,Ph,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Ph,"f").domNode}refresh(){Hh(this,Wh,"f").refresh()}}jh=new WeakMap,Wh=new WeakMap,Ph=new WeakMap;class tl{constructor(t){Dh.set(this,void 0),Ih.set(this,void 0),Bh.set(this,void 0),Gh(this,Dh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Ih,new Tu("stroke-width",e,t),"f"),Gh(this,Bh,new Q("Stroke Width",Hh(this,Ih,"f").domNode),"f"),Hh(this,Bh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Bh,"f").domNode}refresh(){Hh(this,Ih,"f").refresh()}}Dh=new WeakMap,Ih=new WeakMap,Bh=new WeakMap;class el{constructor(t){Rh.set(this,void 0),zh.set(this,void 0),Fh.set(this,void 0),Gh(this,Rh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,zh,new Tu("stroke-linecap",e,t),"f"),Gh(this,Fh,new Q("Stroke Line-Cap",Hh(this,zh,"f").domNode),"f"),Hh(this,Fh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Fh,"f").domNode}refresh(){Hh(this,zh,"f").refresh()}}Rh=new WeakMap,zh=new WeakMap,Fh=new WeakMap;class nl{constructor(t){qh.set(this,void 0),Uh.set(this,void 0),Vh.set(this,void 0),Gh(this,qh,t,"f");let e=t.selectedPrimaryBonds;Gh(this,Uh,new Tu("stroke-dasharray",e,t),"f"),Gh(this,Vh,new Q("Stroke Dash-Array",Hh(this,Uh,"f").domNode),"f"),Hh(this,Vh,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Hh(this,Vh,"f").domNode}refresh(){Hh(this,Uh,"f").refresh()}}qh=new WeakMap,Uh=new WeakMap,Vh=new WeakMap;var rl=n(358),il=n(705),sl={};sl.styleTagTransform=w(),sl.setAttributes=m(),sl.insert=d().bind(null,"head"),sl.domAPI=c(),sl.insertStyleElement=y(),h()(il.Ay,sl),il.Ay&&il.Ay.locals&&il.Ay.locals;var ol,al,ul,hl,ll,cl,fl,dl,pl,ml,gl,yl,vl,wl,bl,xl,_l,Nl,kl,Sl,Ml,Cl,Al,El,Tl,Ol,Ll,jl,Wl,Pl,Dl,Il,Bl,Rl,zl,Fl,ql,Ul,Vl,Gl,Hl,Xl,Yl,$l,Ql,Zl,Jl,Kl,tc,ec,nc,rc,ic,sc,oc,ac,uc,hc,lc,cc,fc,dc,pc,mc,gc,yc,vc,wc,bc,xc,_c,Nc,kc,Sc,Mc,Cc=n(127),Ac=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},Ec=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 Tc{constructor(t){ol.add(this),al.set(this,void 0),this.domNode=document.createElement("div"),ul.set(this,new A("Secondary Bonds",(()=>this.toggle()))),hl.set(this,document.createElement("div")),ll.set(this,void 0),cl.set(this,void 0),fl.set(this,void 0),dl.set(this,void 0),pl.set(this,document.createElement("div")),ml.set(this,void 0),gl.set(this,void 0),yl.set(this,void 0),vl.set(this,void 0),wl.set(this,void 0),bl.set(this,void 0),xl.set(this,void 0),Ac(this,al,t,"f"),this.domNode.classList.add(il.Se),this.domNode.append(Ec(this,ul,"f").domNode),Ec(this,hl,"f").classList.add(il.Qs),this.domNode.append(Ec(this,hl,"f")),Ac(this,ll,new Oc(t),"f"),Ec(this,hl,"f").append(Ec(this,ll,"f").domNode),Ac(this,cl,new Lc(t),"f"),Ec(this,hl,"f").append(Ec(this,cl,"f").domNode),Ac(this,fl,new jc(t),"f"),Ec(this,hl,"f").append(Ec(this,fl,"f").domNode),Ac(this,dl,new Wc(t),"f"),Ec(this,hl,"f").append(Ec(this,dl,"f").domNode),Ec(this,pl,"f").classList.add(il.eB),Ec(this,hl,"f").append(Ec(this,pl,"f")),t.selectedSecondaryBonds.addEventListener("change",(()=>{document.body.contains(this.domNode)&&(0==[...t.selectedSecondaryBonds].length?Ec(this,ol,"m",kl).call(this):Ec(this,ol,"m",Nl).call(this))})),Ac(this,ml,new Pc(t),"f"),Ec(this,pl,"f").append(Ec(this,ml,"f").domNode),Ac(this,gl,new Dc(t),"f"),Ec(this,pl,"f").append(Ec(this,gl,"f").domNode),Ac(this,yl,new Ic(t),"f"),Ec(this,pl,"f").append(Ec(this,yl,"f").domNode),Ac(this,vl,new Bc(t),"f"),Ec(this,pl,"f").append(Ec(this,vl,"f").domNode),Ac(this,wl,new Rc(t),"f"),Ec(this,pl,"f").append(Ec(this,wl,"f").domNode),Ac(this,bl,new zc(t),"f"),Ec(this,pl,"f").append(Ec(this,bl,"f").domNode),Ac(this,xl,new Fc(t),"f"),Ec(this,pl,"f").append(Ec(this,xl,"f").domNode),this.collapse(),this.refresh()}isCollapsed(){return this.domNode.classList.contains(il.yZ)}collapse(){this.domNode.classList.add(il.yZ),Ec(this,ul,"f").caret.pointRight()}expand(){this.domNode.classList.remove(il.yZ),Ec(this,ul,"f").caret.pointDown()}toggle(){this.isCollapsed()?this.expand():this.collapse()}refresh(){Ec(this,ol,"a",_l).forEach((t=>t.refresh())),0==[...Ec(this,al,"f").selectedSecondaryBonds].length?Ec(this,ol,"m",kl).call(this):Ec(this,ol,"m",Nl).call(this)}}al=new WeakMap,ul=new WeakMap,hl=new WeakMap,ll=new WeakMap,cl=new WeakMap,fl=new WeakMap,dl=new WeakMap,pl=new WeakMap,ml=new WeakMap,gl=new WeakMap,yl=new WeakMap,vl=new WeakMap,wl=new WeakMap,bl=new WeakMap,xl=new WeakMap,ol=new WeakSet,_l=function(){return[Ec(this,ll,"f"),Ec(this,cl,"f"),Ec(this,fl,"f"),Ec(this,dl,"f"),Ec(this,ml,"f"),Ec(this,gl,"f"),Ec(this,yl,"f"),Ec(this,vl,"f"),Ec(this,wl,"f"),Ec(this,bl,"f"),Ec(this,xl,"f")]},Nl=function(){Ec(this,pl,"f").style.display="flex"},kl=function(){Ec(this,pl,"f").style.display="none"};class Oc{constructor(t){Sl.set(this,void 0),this.domNode=document.createElement("p"),Ml.set(this,document.createElement("span")),Cl.set(this,document.createElement("span")),Ac(this,Sl,t,"f"),this.domNode.classList.add(il.vM),Ec(this,Ml,"f").style.fontWeight="700",this.domNode.append(Ec(this,Ml,"f"),Ec(this,Cl,"f")),Ec(this,Sl,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.refresh()}refresh(){let t=[...Ec(this,Sl,"f").selectedSecondaryBonds].length;Ec(this,Ml,"f").textContent=`${t}`,Ec(this,Cl,"f").textContent=1==t?" secondary bond is selected.":" secondary bonds are selected."}}Sl=new WeakMap,Ml=new WeakMap,Cl=new WeakMap;class Lc{constructor(t){Al.add(this),El.set(this,void 0),this.domNode=document.createElement("div"),Tl.set(this,new A("Select:",(()=>this.toggle()))),Ol.set(this,{All:new P("All",(()=>Ec(this,Al,"m",Dl).call(this))),None:new P("None",(()=>Ec(this,Al,"m",Il).call(this))),Between:new P("Between",(()=>Ec(this,Al,"m",Bl).call(this))),Connecting:new P("Connecting",(()=>Ec(this,Al,"m",zl).call(this))),"A:U":new P("A:U",(()=>Ec(this,Al,"m",ql).call(this))),"A:T":new P("A:T",(()=>Ec(this,Al,"m",Vl).call(this))),"G:C":new P("G:C",(()=>Ec(this,Al,"m",Hl).call(this))),"G:U":new P("G:U",(()=>Ec(this,Al,"m",Yl).call(this))),"G:T":new P("G:T",(()=>Ec(this,Al,"m",Ql).call(this)))}),Ll.set(this,document.createElement("div")),jl.set(this,document.createElement("div")),Wl.set(this,document.createElement("div")),Pl.set(this,void 0),Ac(this,El,t,"f"),this.domNode.classList.add(il.vw),this.domNode.append(Ec(this,Tl,"f").domNode),_s(Ec(this,Ll,"f")).css({marginTop:"1.5px",display:"flex",flexDirection:"column",gap:"12px"}),this.domNode.append(Ec(this,Ll,"f")),_s(Ec(this,jl,"f")).css({display:"flex",flexDirection:"row",gap:"27px"}),Ec(this,jl,"f").append(...["All","None"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Ll,"f").append(Ec(this,jl,"f")),_s(Ec(this,Wl,"f")).css({display:"flex",flexDirection:"column",gap:"12px"}),Ec(this,Ll,"f").append(Ec(this,Wl,"f")),Ec(this,Wl,"f").style.display="none",Ec(this,Tl,"f").caret.pointRight();let e=document.createElement("div");_s(e).css({display:"flex",flexDirection:"row",gap:"20px"}),e.append(...["Between","Connecting"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Wl,"f").append(e);let n=document.createElement("div");_s(n).css({display:"flex",flexDirection:"row",gap:"12px"}),n.append(...["A:U","G:C","G:U","A:T","G:T"].map((t=>Ec(this,Ol,"f")[t].domNode))),Ec(this,Wl,"f").append(n),t.selectedSecondaryBonds.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),t.selectedBases.addEventListener("change",(()=>document.body.contains(this.domNode)?this.refresh():{})),Ac(this,Pl,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ec(this,Pl,"f").observe(t.drawing.domNode,{childList:!0,characterData:!0,subtree:!0}),this.refresh()}toggle(){this.isCollapsed()?this.expand():this.collapse()}isCollapsed(){return"none"==Ec(this,Wl,"f").style.display}collapse(){Ec(this,Wl,"f").style.display="none",Ec(this,Tl,"f").caret.pointRight()}expand(){Ec(this,Wl,"f").style.display="flex",Ec(this,Tl,"f").caret.pointDown()}refresh(){let t=[...Ec(this,El,"f").drawing.secondaryBonds],e=new Set(Ec(this,El,"f").selectedSecondaryBonds);0==t.length?(Ec(this,Ol,"f").All.disable(),Ec(this,Ol,"f").All.tooltip.textContent="There are no secondary bonds in the drawing."):t.every((t=>e.has(t)))?(Ec(this,Ol,"f").All.disable(),Ec(this,Ol,"f").All.tooltip.textContent="All secondary bonds are already selected."):(Ec(this,Ol,"f").All.enable(),Ec(this,Ol,"f").All.tooltip.textContent="Select all secondary bonds."),0==e.size?(Ec(this,Ol,"f").None.disable(),Ec(this,Ol,"f").None.tooltip.textContent="No secondary bonds are selected."):(Ec(this,Ol,"f").None.enable(),Ec(this,Ol,"f").None.tooltip.textContent="Deselect all secondary bonds.");let n=[...Ec(this,El,"f").selectedBases],r=Ec(this,Al,"a",Rl);0==n.length?(Ec(this,Ol,"f").Between.disable(),Ec(this,Ol,"f").Between.tooltip.textContent="No bases are selected."):r.every((t=>e.has(t)))?(Ec(this,Ol,"f").Between.disable(),Ec(this,Ol,"f").Between.tooltip.textContent="All secondary bonds between the selected bases are already selected."):(Ec(this,Ol,"f").Between.enable(),Ec(this,Ol,"f").Between.tooltip.textContent="Select secondary bonds between the selected bases.");let i=Ec(this,Al,"a",Fl);0==n.length?(Ec(this,Ol,"f").Connecting.disable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="No bases are selected."):i.every((t=>e.has(t)))?(Ec(this,Ol,"f").Connecting.disable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="All secondary bonds connecting the selected bases are already selected."):(Ec(this,Ol,"f").Connecting.enable(),Ec(this,Ol,"f").Connecting.tooltip.textContent="Select secondary bonds connecting the selected bases."),[["A:U",Ec(this,Al,"a",Ul)],["A:T",Ec(this,Al,"a",Gl)],["G:C",Ec(this,Al,"a",Xl)],["G:U",Ec(this,Al,"a",$l)],["G:T",Ec(this,Al,"a",Zl)]].forEach((([t,n])=>{0==n.length?(Ec(this,Ol,"f")[t].disable(),Ec(this,Ol,"f")[t].tooltip.textContent=`There are no ${t} base-pairs in the drawing.`):n.every((t=>e.has(t)))?(Ec(this,Ol,"f")[t].disable(),Ec(this,Ol,"f")[t].tooltip.textContent=`All secondary bonds between ${t} base-pairs are already selected.`):(Ec(this,Ol,"f")[t].enable(),Ec(this,Ol,"f")[t].tooltip.textContent=`Select secondary bonds between ${t} base-pairs.`)}))}}El=new WeakMap,Tl=new WeakMap,Ol=new WeakMap,Ll=new WeakMap,jl=new WeakMap,Wl=new WeakMap,Pl=new WeakMap,Al=new WeakSet,Dl=function(){Ec(this,El,"f").addToSelected([...Ec(this,El,"f").drawing.secondaryBonds])},Il=function(){Ec(this,El,"f").removeFromSelected([...Ec(this,El,"f").drawing.secondaryBonds])},Bl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Rl))},Rl=function(){let t=new Set(Ec(this,El,"f").selectedBases);return[...Ec(this,El,"f").drawing.secondaryBonds].filter((e=>t.has(e.base1)&&t.has(e.base2)))},zl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Fl))},Fl=function(){let t=new Set(Ec(this,El,"f").selectedBases);return[...Ec(this,El,"f").drawing.secondaryBonds].filter((e=>t.has(e.base1)||t.has(e.base2)))},ql=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Ul))},Ul=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(qc)},Vl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Gl))},Gl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Uc)},Hl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Xl))},Xl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Vc)},Yl=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",$l))},$l=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Gc)},Ql=function(){Ec(this,El,"f").addToSelected(Ec(this,Al,"a",Zl))},Zl=function(){return[...Ec(this,El,"f").drawing.secondaryBonds].filter(Hc)};class jc{constructor(t){Jl.set(this,void 0),this.domNode=document.createElement("div"),Kl.set(this,new Js("Add",(()=>this.press()))),tc.set(this,new K),ec.set(this,new nt("Only add missing secondary bonds",Ec(this,tc,"f").domNode)),nc.set(this,void 0),Ac(this,Jl,t,"f"),this.domNode.classList.add(il.Ol),this.domNode.append(Ec(this,Kl,"f").domNode,Ec(this,ec,"f").domNode),Ec(this,tc,"f").domNode.checked=!0,Ec(this,ec,"f").domNode.style.marginLeft="10px",Ec(this,Jl,"f").selectedBases.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),Ac(this,nc,new MutationObserver((()=>document.body.contains(this.domNode)?this.refresh():{})),"f"),Ec(this,nc,"f").observe(t.drawing.domNode,{childList:!0,subtree:!0}),Ec(this,tc,"f").domNode.addEventListener("change",(()=>this.refresh()))}press(){let t=[...Ec(this,Jl,"f").drawing.bases],e=[...Ec(this,Jl,"f").selectedBases];e=(0,rl.seqSorted)(e,t);let n=(0,Cc.antiParallelPairs)(e),r=[...Ec(this,Jl,"f").drawing.secondaryBonds],i=(0,Cc.missing)(Yc(r),n);0!=n.length&&(Ec(this,tc,"f").domNode.checked&&0==i.length||(Ec(this,Jl,"f").pushUndoStack(),Ec(this,tc,"f").domNode.checked?i.forEach((t=>Ec(this,Jl,"f").drawing.addSecondaryBond(...t))):n.forEach((t=>Ec(this,Jl,"f").drawing.addSecondaryBond(...t)))))}refresh(){let t=[...Ec(this,Jl,"f").drawing.bases],e=[...Ec(this,Jl,"f").selectedBases];e=(0,rl.seqSorted)(e,t);let n=(0,Cc.antiParallelPairs)(e),r=[...Ec(this,Jl,"f").drawing.secondaryBonds],i=(0,Cc.missing)(Yc(r),n);0==e.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="No bases are selected."):1==e.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="At least two bases must be selected."):Ec(this,tc,"f").domNode.checked&&0==i.length?(Ec(this,Kl,"f").disable(),Ec(this,Kl,"f").tooltip.textContent="There are no missing pairs between the selected bases."):(Ec(this,Kl,"f").enable(),Ec(this,Kl,"f").tooltip.textContent="Add secondary bonds between the selected bases.")}}Jl=new WeakMap,Kl=new WeakMap,tc=new WeakMap,ec=new WeakMap,nc=new WeakMap;class Wc{constructor(t){rc.set(this,void 0),ic.set(this,new Js("Remove",(()=>this.press()))),Ac(this,rc,t,"f"),Ec(this,rc,"f").selectedSecondaryBonds.addEventListener("change",(()=>{!document.body.contains(this.domNode)||this.refresh()})),this.domNode.style.marginTop="15px"}get domNode(){return Ec(this,ic,"f").domNode}press(){let t=[...Ec(this,rc,"f").selectedSecondaryBonds];0!=t.length&&(Ec(this,rc,"f").pushUndoStack(),t.forEach((t=>t.domNode.remove())))}refresh(){0==[...Ec(this,rc,"f").selectedSecondaryBonds].length?(Ec(this,ic,"f").disable(),Ec(this,ic,"f").tooltip.textContent="No secondary bonds are selected."):(Ec(this,ic,"f").enable(),Ec(this,ic,"f").tooltip.textContent="Remove the selected secondary bonds from the drawing.")}}rc=new WeakMap,ic=new WeakMap;class Pc{constructor(t){sc.add(this),oc.set(this,void 0),ac.set(this,void 0),Ac(this,oc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,ac,new xu(e,t),"f"),this.domNode.style.marginTop="27px",Ec(this,ac,"f").addEventListener("refresh",(()=>Ec(this,sc,"m",uc).call(this))),this.refresh()}get domNode(){return Ec(this,ac,"f").domNode}refresh(){Ec(this,ac,"f").refresh()}}oc=new WeakMap,ac=new WeakMap,sc=new WeakSet,uc=function(){let t=[...Ec(this,oc,"f").selectedSecondaryBonds];Ec(this,ac,"f").buttons.Front.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Bring the selected secondary bonds to the front.",Ec(this,ac,"f").buttons.Back.tooltip.textContent=0==t.length?"No secondary bonds are selected.":"Send the selected secondary bonds to the back."};class Dc{constructor(t){hc.set(this,void 0),lc.set(this,void 0),cc.set(this,void 0),Ac(this,hc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,lc,new Tu("stroke",e,t),"f"),Ac(this,cc,new Q("Stroke",Ec(this,lc,"f").domNode),"f"),Ec(this,cc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke",this.domNode.style.marginTop="22px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,cc,"f").domNode}refresh(){Ec(this,lc,"f").refresh()}}hc=new WeakMap,lc=new WeakMap,cc=new WeakMap;class Ic{constructor(t){fc.set(this,void 0),dc.set(this,void 0),pc.set(this,void 0),Ac(this,fc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,dc,new qu("stroke",e,t),"f"),Ac(this,pc,new ut("Stroke Color",Ec(this,dc,"f").domNode),"f"),Ec(this,pc,"f").domNode.style.marginTop="12px",Ec(this,pc,"f").domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,pc,"f").domNode}refresh(){Ec(this,dc,"f").refresh()}}fc=new WeakMap,dc=new WeakMap,pc=new WeakMap;class Bc{constructor(t){mc.set(this,void 0),gc.set(this,void 0),yc.set(this,void 0),Ac(this,mc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,gc,new Tu("stroke-opacity",e,t),"f"),Ac(this,yc,new Q("Stroke Opacity",Ec(this,gc,"f").domNode),"f"),Ec(this,yc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-opacity",this.domNode.style.marginTop="12px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,yc,"f").domNode}refresh(){Ec(this,gc,"f").refresh()}}mc=new WeakMap,gc=new WeakMap,yc=new WeakMap;class Rc{constructor(t){vc.set(this,void 0),wc.set(this,void 0),bc.set(this,void 0),Ac(this,vc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,wc,new Tu("stroke-width",e,t),"f"),Ac(this,bc,new Q("Stroke Width",Ec(this,wc,"f").domNode),"f"),Ec(this,bc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-width",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,bc,"f").domNode}refresh(){Ec(this,wc,"f").refresh()}}vc=new WeakMap,wc=new WeakMap,bc=new WeakMap;class zc{constructor(t){xc.set(this,void 0),_c.set(this,void 0),Nc.set(this,void 0),Ac(this,xc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,_c,new Tu("stroke-linecap",e,t),"f"),Ac(this,Nc,new Q("Stroke Line-Cap",Ec(this,_c,"f").domNode),"f"),Ec(this,Nc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-linecap",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,Nc,"f").domNode}refresh(){Ec(this,_c,"f").refresh()}}xc=new WeakMap,_c=new WeakMap,Nc=new WeakMap;class Fc{constructor(t){kc.set(this,void 0),Sc.set(this,void 0),Mc.set(this,void 0),Ac(this,kc,t,"f");let e=t.selectedSecondaryBonds;Ac(this,Sc,new Tu("stroke-dasharray",e,t),"f"),Ac(this,Mc,new Q("Stroke Dash-Array",Ec(this,Sc,"f").domNode),"f"),Ec(this,Mc,"f").infoLink="https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/stroke-dasharray",this.domNode.style.marginTop="10px",this.domNode.style.alignSelf="start",this.refresh()}get domNode(){return Ec(this,Mc,"f").domNode}refresh(){Ec(this,Sc,"f").refresh()}}function qc(t){return new rl.BasePair(t.base1,t.base2).isAU()}function Uc(t){return new rl.BasePair(t.base1,t.base2).isAT()}function Vc(t){return new rl.BasePair(t.base1,t.base2).isGC()}function Gc(t){return new rl.BasePair(t.base1,t.base2).isGU()}function Hc(t){return new rl.BasePair(t.base1,t.base2).isGT()}function Xc(t){return[t.base1,t.base2]}function Yc(t){return t.map(Xc)}kc=new WeakMap,Sc=new WeakMap,Mc=new WeakMap;var $c=n(290),Qc={};Qc.styleTagTransform=w(),Qc.setAttributes=m(),Qc.insert=d().bind(null,"head"),Qc.domAPI=c(),Qc.insertStyleElement=y(),h()($c.A,Qc),$c.A&&$c.A.locals&&$c.A.locals;var Zc,Jc,Kc,tf,ef,nf,rf,sf,of=n(139),af=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},uf=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 hf{constructor(t){Zc.add(this),Jc.set(this,void 0),this.domNode=document.createElement("div"),Kc.set(this,void 0),tf.set(this,void 0),ef.set(this,void 0),nf.set(this,void 0),rf.set(this,void 0),af(this,Jc,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),af(this,Kc,new Ss(t),"f"),n.append(uf(this,Kc,"f").domNode),af(this,tf,new Ga(t),"f"),n.append(uf(this,tf,"f").domNode),af(this,ef,new Xh(t),"f"),n.append(uf(this,ef,"f").domNode),af(this,nf,new Tc(t),"f"),n.append(uf(this,nf,"f").domNode);let r=function(){let t=document.createElement("p");return t.classList.add($c._),t.textContent="Close",t}();r.addEventListener("click",(()=>this.close())),this.domNode.append(r),af(this,rf,new of.DragTranslater(this.domNode),"f")}appendTo(t){this.refresh(),this.reposition(),t.appendChild(this.domNode)}close(){this.domNode.remove()}refresh(){uf(this,Zc,"a",sf).forEach((t=>t.refresh()))}reposition(){uf(this,rf,"f").untranslate()}}Jc=new WeakMap,Kc=new WeakMap,tf=new WeakMap,ef=new WeakMap,nf=new WeakMap,rf=new WeakMap,Zc=new WeakSet,sf=function(){return[uf(this,Kc,"f"),uf(this,tf,"f"),uf(this,ef,"f"),uf(this,nf,"f")]}})(),r})()));
|