genoverse 4.1.0-alpha → 4.1.0-alpha.2

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/genoverse.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(){var t,e,n={6153:function(t,e,n){"use strict";n.d(e,{Kx:function(){return a.default},Ss:function(){return c.default},xI:function(){return o.default}});var i=n(3006),r=n.n(i),o=n(1572),s=n(4770),a=n(6767),l=n(6815),c=n(3257),h=n(5932);function u(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var b=r().extend({height:12,margin:2,resizable:!0,border:!0,unsortable:!1,fixedOrder:!1,invert:!1,legend:!1,children:void 0,name:void 0,autoHeight:void 0,hideEmpty:void 0,constructor:function(t){(this.stranded||t.stranded)&&(this.controller=this.controller||s.default,this.model=this.model||l.default),this.models={},this.views={},this.setInterface(),this.extend(t),this.setDefaults(),this.setEvents(),(0,h.A)(this,"Track"),this.setLengthMap(),this.setMVC(),this.browser.scale>0&&(this.controller.setScale(),this.controller.makeFirstImage()),this.children&&this.addChildTracks(),this.legend&&this.addLegend()},setEvents:function(){},setDefaults:function(){this.config=this.config||{},this.configSettings=this.configSettings||{},this.defaultConfig=this.defaultConfig||{},this.controls=this.controls||[],this.defaultName=this.name,this.configName=[],this.defaultHeight=this.height,this.defaultAutoHeight=this.autoHeight,this.autoHeight=void 0!==this.autoHeight?this.autoHeight:this.browser.trackAutoHeight,this.hideEmpty=void 0!==this.hideEmpty?this.hideEmpty:this.browser.hideEmptyTracks,this.height+=this.margin,this.initialHeight=this.height,"auto"===this.resizable&&(this.autoHeight=!0),this.setDefaultConfig()},setDefaultConfig:function(){var t=this;Object.entries(this.defaultConfig).forEach(function(e){var n=m(e,2),i=n[0],r=n[1];void 0===t.config[i]&&(t.config[i]=r)}),this._setCurrentConfig()},setInterface:function(){var t=this;this._interface={},["Controller","Model","View"].forEach(function(e){Object.keys(b[e].prototype).forEach(function(n){/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(n)||(t._interface[n]=e.toLowerCase())})})},setMVC:function(){var t=this;this.model&&"function"==typeof this.model.abort&&this.model.abort(),this._defaults=this._defaults||{};var e=this.browser.jQuery.extend(!0,{},this.constructor.prototype,this.getSettingsForLength()[1]),n={prop:{},func:{}},i={};if(e.controller=e.controller||this.controller||o.default,Object.entries(e).forEach(function(e){var r=m(e,2),o=r[0],s=r[1];!/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(o)&&isNaN(o)&&("controller"===t._interface[o]?n["function"==typeof s?"func":"prop"][o]=s:b.prototype.hasOwnProperty(o)||/^(controller|models|views|config|disabled)$/.test(o)||(void 0===t._defaults[o]&&(t._defaults[o]=t[o]),i[o]=s))}),Object.entries(this._defaults).forEach(function(t){var e=m(t,2),n=e[0],r=e[1];void 0===i[n]&&(i[n]=r)}),!this.browser.jQuery.isEmptyObject(this._currentConfig)){var r={};Object.entries(this._currentConfig.prop).forEach(function(e){var o=m(e,2),s=o[0],a=o[1],l=t._interface[s];/model|view/.test(l)?i[l][s]!==a&&(i[l][s]=a,r[l]=!0):"controller"===l?n.prop[s]=a:i[s]=a}),Object.keys(r).forEach(function(t){i[t].setDefaults(!0)})}this.extend(i),this.model.setChrProps(),this.controller&&"function"!=typeof this.controller?(n.prop.threshold=n.prop.threshold||this.controller.constructor.prototype.threshold,Object.assign(this.controller,n.prop,{model:this.model,view:this.view})):this.controller=this.newMVC(e.controller,n.func,d(d({},n.prop),{},{model:this.model,view:this.view}))},newMVC:function(t,e,n){return new(t.extend(this.browser.jQuery.extend(!0,{},d(d(d({},t.prototype),e),{},{prop:this.prop.bind(this)}))))(d(d({},n),{},{browser:this.browser,width:this.width,track:this}))},setLengthMap:function(){var t=this,e={},n={},i=this.browser.jQuery,r=function(t,e){var n={browser:!0,width:!0,track:!0};for(var o in t)if(!n[o]){if(n[o]=!0,f(t[o])!==f(e[o]))return!1;if("function"==typeof t[o]&&"function"==typeof e[o]){if(t[o].toString()!==e[o].toString())return!1}else{if(!("object"!==f(t[o])||t[o]instanceof i||r(t[o],e[o])))return!1;if(t[o]!==e[o])return!1}}return Object.keys(e).every(function(t){return n[t]})},o=[[-1,{view:this.view||c.default,model:this.model||a.default}]];for(var s in this)if(!isNaN(s)){var l=this[s];o.push([Number(s),!1===l?{threshold:Number(s),resizable:"auto",featureHeight:0,model:a.default,view:c.default}:i.extend(!0,{},l)])}o.sort(function(t,e){return e[0]-t[0]}).forEach(function(e,n){var r=m(e,2),s=r[0],l=r[1];if(!l.model||!l.view)for(var h=-1===s?{}:{model:Object.keys(l).some(function(e){return"model"===t._interface[e]}),view:Object.keys(l).some(function(e){return"view"===t._interface[e]})},u=n+1;u<o.length&&(!l.model&&o[u][1].model&&(l.model=h.model?a.default.extend(i.extend(!0,{},o[u][1].model.prototype)):o[u][1].model),!l.view&&o[u][1].view&&(l.view=h.view?c.default.extend(i.extend(!0,{},o[u][1].view.prototype)):o[u][1].view),!l.model||!l.view);u++);}),o.forEach(function(s,a){var l=m(s,2),c=l[0],h=l[1],u=o[a-1]?o[a-1][1]:{},f=i.extend(!0,{},t.constructor.prototype,h),p={model:{prop:{},func:{}},view:{prop:{},func:{}}};Object.entries(f).forEach(function(e){var n=m(e,2),i=n[0],r=n[1];"constructor"!==i&&p[t._interface[i]]&&(p[t._interface[i]]["function"==typeof r?"func":"prop"][i]=r)}),["model","view"].forEach(function(e){if("function"==typeof f[e]){var n=t["".concat(e,"s")];u[e]instanceof f[e]?f[e]=u[e]:(f[e]=t.newMVC(f[e],p[e].func,p[e].prop),n[c]&&r(n[c].constructor.prototype,d(d({},f[e].constructor.prototype),p[e].prop))&&(f[e]=n[c]))}}),e[c]=h.model=f.model,n[c]=h.view=f.view}),this.lengthMap=o,this.models=e,this.views=n},getSettingsForLength:function(){var t=this.browser.length||this.browser.end-this.browser.start+1;return this.lengthMap.find(function(e){var n=m(e,1)[0];return t>n||1===t&&1===n||t<0&&n<0})||[]},prop:function(t,e){var n=this,i=this._interface[t]?this[this._interface[t]]:this[["controller","model","view"].find(function(e){return n[e]&&void 0!==n[e][t]})]||this;return void 0!==e&&(null===e?delete i[t]:i[t]=e),i?i[t]:void 0},setHeight:function(t,e){return t=this.disabled||!0!==e&&t<this.prop("featureHeight")||this.prop("threshold")&&!this.prop("thresholdMessage")&&this.browser.length>this.prop("threshold")?0:Math.max(t,this.prop("minLabelHeight")),this.height=t,t},resetHeight:function(){if(!0===this.resizable){var t=this.prop("resizer");this.autoHeight=!![this.defaultAutoHeight,this.browser.trackAutoHeight].sort(function(t,e){return(null!=t?0:1)-(null!=e?0:1)})[0],this.controller.resize(this.autoHeight?this.prop("fullVisibleHeight"):this.defaultHeight+this.margin+(t?t.height():0)),this.initialHeight=this.height}},setConfig:function(t,e){var n=this;if("string"==typeof t&&void 0!==e){var i={};i[t]=e,t=i}var r=!1;if(Object.entries(t).forEach(function(t){var e=m(t,2),i=e[0],o=e[1];void 0!==n.configSettings[i]&&void 0!==n.configSettings[i][o]&&n.config[i]!==o&&(n.config[i]=o,r=!0)}),r){var o=this.prop("featuresById");Object.values(o).forEach(function(t){delete t.menuEl}),this._setCurrentConfig(),this.disabled||this.reset.apply(this,u(r?["config",t]:[])),(this.prop("childTracks")||[]).forEach(function(e){e.setConfig(t)}),this.browser.saveConfig()}},_setCurrentConfig:function(){var t,e=this,n=(Array.isArray(this.controls)?this.controls:[]).reduce(function(t,e){return t.add(e)},this.browser.jQuery()),i=[],r=[],o=[];(this._currentConfig={prop:{},func:{}},Object.keys(this.configSettings).forEach(function(t){var s=e.getConfig(t);s&&(r.push(s),s.featureFilter&&i.push(s.featureFilter),o.push(s.hasOwnProperty("name")?"function"==typeof s.name?s.name.call(e):s.name:!1!==s.featureFilter&&n.filter('[data-control="'.concat(t,'"]')).find('[value="'.concat(e.config[t],'"]')).html()))}),r.length)&&(o=o.filter(Boolean),delete(r=(t=this.browser.jQuery).extend.apply(t,[!0,{}].concat(u(r),[{featureFilters:i,name:"".concat(this.defaultName).concat(o.length?" - ".concat(o.join(", ")):""),configName:[this.defaultName].concat(o)}]))).featureFilter);Object.entries(r).forEach(function(t){var n=m(t,2),i=n[0],r=n[1];e._currentConfig["function"!=typeof r||/^(before|after)/.test(i)?"prop":"func"][i]=r}),r.name&&this.updateName(r.name,r.configName)},getConfig:function(t){return this.configSettings[t][this.config[t]]},addChildTracks:function(){if(this.children){var t=this,e=this.browser,n=[].concat(this.children).filter(function(t){return t.prototype instanceof b}),i={parentTrack:this,controls:"off",threshold:this.prop("threshold")};setTimeout(function(){t.childTracks=n.map(function(n){return n.prototype.isLegend||n.isLegend?(t.addLegend(n.extend(i),!0),t.legendTrack):e.addTrack(n.extend(i))}),t.controller.setLabelHeight()},1)}},addLegend:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.legend,e=arguments.length>1?arguments[1]:void 0;if(null!=t&&t.prototype.isLegend){var n=this,i=!0===t.prototype.shared?Genoverse.getTrackNamespace(t):t.prototype.shared||this.id,r={id:"".concat(i,"Legend"),name:t.prototype.name||"".concat(this.defaultName," Legend"),type:i};this.legendType=i,!0===e?o():setTimeout(o,1)}function o(){return n.legendTrack=n.browser.legends[r.id]||n.browser.addTrack(t.extend(r)),n.legendTrack}},changeChr:function(){Object.values(this.models).forEach(function(t){return t.setChrProps()})},updateName:function(t,e){this.controller&&"function"!=typeof this.controller?this.controller.setName(t,e):(this.name=t,this.configName=e||[])},enable:function(){!0===this.disabled&&(this.disabled=!1,this.controller.resize(this.initialHeight),this.reset())},disable:function(){this.disabled||(this.disabled=!0,this.controller.resize(0))},reset:function(){var t;"resizing"!==(arguments.length<=0?void 0:arguments[0])&&this.setLengthMap(),Object.values(this.models).filter(function(t){return!1!==t.url}).forEach(function(t){return t.init(!0)}),Object.values(this.views).forEach(function(t){return t.init(!0)}),(t=this.controller).reset.apply(t,arguments)},remove:function(){this.browser.removeTrack(this)},destructor:function(){var t=this;["controller","model","view","models","views","lengthMap"].forEach(function(e){var n;"function"==typeof(null==t||null===(n=t[e])||void 0===n?void 0:n.destroy)&&t[e].destroy(),delete t[e]})}});b.Controller=o.default,b.Model=a.default,b.View=c.default,e.Ay=b},1572:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(5932);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({scrollBuffer:1.2,threshold:Infinity,clickTolerance:0,messages:void 0,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=h(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,o.A)(this,"Controller"),this.init()},init:function(){this.setDefaults(),this.addDomElements(),this.addUserEventHandlers(),this.deferreds=[]},setDefaults:function(){this.imgRange={},this.scrollRange={},this.messages=this.messages||{error:"ERROR: ",threshold:"Data for this track is not displayed in regions greater than ",resize:'Some features are currently hidden, <a class="gv-resize">resize to see all</a>'}},reset:function(t){this.abort(),this.setDefaults(),this.resetImages(),this.browser.closeMenus(this),"resizing"!==t&&(this.setScale(),this.makeFirstImage())},resetImages:function(){this.scrollContainer.empty(),this.resetImageRanges()},resetImageRanges:function(){var t=this.browser;this.left=0,this.scrollStart=["ss",t.chr,t.start,t.end].join("-"),this.imgRange[this.scrollStart]=this.imgRange[this.scrollStart]||{left:-2*this.width,right:2*this.width},this.scrollRange[this.scrollStart]=this.scrollRange[this.scrollStart]||{start:Math.max(t.start-t.length,1),end:Math.min(t.end+t.length,t.chromosomeSize)}},setName:function(t,e){this.track.name=t,this.labelName=this.labelName||this.browser.jQuery('<span class="gv-name">').appendTo(this.label),this.labelName.attr("title",t).html(e&&e.length?e.map(function(t){return'<span class="gv-name-part">'.concat(t,"</span>")}):t),this.minLabelHeight=this.label.parents("body").length?Math.max(this.labelName.outerHeight(!0),this.labelName.outerHeight()):0,this.setLabelHeight(!0),t&&!this.track._constructing&&this.track.height<this.minLabelHeight&&this.resize(this.minLabelHeight)},addDomElements:function(){var t=this.track.name||"",e=this.browser.jQuery;this.menus=e(),this.container=e('<div class="gv-track-container">').appendTo(this.browser.wrapper),this.scrollContainer=e('<div class="gv-scroll-container">').appendTo(this.container),this.imgContainer=e('<div class="gv-image-container">').width(this.width).addClass(this.prop("invert")?"gv-invert":""),this.label=e("<li>").appendTo(this.browser.labelContainer).height(this.prop("height")).data("track",this.track),this.context=e("<canvas>")[0].getContext("2d"),this.messageContainer=e('\n <div class="gv-message-container">\n <div class="gv-messages"></div>\n <i class="gv-control gv-collapse fas fa-angle-double-left"></i>\n <i class="gv-control gv-expand fas fa-angle-double-right"></i>\n </div>\n ').appendTo(this.container),this.prop("border")&&e('<div class="gv-track-border">').appendTo(this.container),this.prop("unsortable")?this.label.addClass("gv-unsortable"):e('<div class="gv-handle">').appendTo(this.label),this.prop("children")?(this.superContainer=e('<div class="gv-track-container gv-track-super-container">').insertAfter(this.container),this.container.appendTo(this.superContainer)):this.prop("parentTrack")&&(this.superContainer=this.prop("parentTrack").prop("superContainer"),this.container.appendTo(this.superContainer),this.label.remove(),this.label=this.prop("parentTrack").prop("label")),this.setName(t,this.track.configName),this.container.height(this.prop("disabled")?0:Math.max(this.prop("height"),this.minLabelHeight))},addUserEventHandlers:function(){var t=this,e=this.browser;this.container.on("mouseup",".gv-image-container",function(n){n.which&&1!==n.which||"number"==typeof e.dragStart&&e.start!==e.dragStart||"select"===e.dragAction&&e.selector.outerWidth(!0)>2||t.click(n)}),this.messageContainer.children().on("click",function(){var e=t.messageContainer.children(".gv-messages").is(":visible")?" gv-collapsed":"",n=t.messageContainer.find(".gv-msg").data("code");t.messageContainer.attr("class","gv-message-container".concat(e)),t.checkHeight(),"error"!==n&&(document.cookie="gv_msg_".concat(n,"_").concat(t.prop("id"),"=1; expires=").concat(e?"Tue, 19 Jan 2038":"Thu, 01 Jan 1970"," 00:00:00 GMT; path=/"))})},click:function(t){var e=this.browser.jQuery(t.target),n=t.pageX-this.container.parent().offset().left+this.browser.scaledStart,i=t.pageY-e.offset().top;return this.imgContainer.hasClass("gv-invert")&&(i=e.height()-i),this.browser.makeMenu(this.getClickedFeatures(n,i,e),t,this.track)},getClickedFeatures:function(t,e,n){var i={x:t,y:e,w:1,h:1},r=this.scale,o=r<1?this.clickTolerance:0;o&&(i.x-=o/2,i.w+=o);var s=this[n&&n.hasClass("gv-labels")?"labelPositions":"featurePositions"].search(i);return o?s.filter(function(e){var n=e.position[r].bounds,i=n.x+n.w/2,s=Math.min(n.x,i-o/2),a=Math.max(n.x+n.w,i+o/2);return t>=s&&t<=a}).sort(function(e,n){return Math.abs(e.position[r].start-t)-Math.abs(n.position[r].start-t)}):this.model.sortFeatures(s)},showMessage:function(t,e){var n=this.messageContainer.children(".gv-messages");if(!n.children(".gv-".concat(t)).show().length){var i=this.browser.jQuery('<div class="gv-msg gv-'.concat(t,'">').concat(this.messages[t]).concat(e||"","</div>")).data("code",t).prependTo(n);if("resize"===t){var r=this;i.children("a.gv-resize").on("click",function(){r.resize(r.fullVisibleHeight)})}this.messageContainer[document.cookie.match("".concat(["gv_msg",t,this.prop("id")].join("_"),"=1"))?"addClass":"removeClass"]("gv-collapsed")}var o=this.messageContainer.show().outerHeight(!0);o>this.prop("height")&&this.resize(o,void 0,!1),n=null},hideMessage:function(t){var e=this.messageContainer.find(".gv-msg");t?(e=e.filter(".gv-".concat(t)).hide()).length&&!e.siblings().filter(function(){return"none"!==this.style.display}).length&&this.messageContainer.hide():(e.hide(),this.messageContainer.hide()),e=null},showError:function(t){this.showMessage("error",t)},checkHeight:function(){var t;(this.browser.length>this.threshold?this.thresholdMessage?(this.showMessage("threshold",this.thresholdMessage),this.fullVisibleHeight=Math.max(this.messageContainer.outerHeight(!0),this.minLabelHeight)):this.fullVisibleHeight=0:this.thresholdMessage&&this.hideMessage("threshold"),this.prop("resizable"))&&(this.browser.length>this.threshold?(t=this.prop("autoHeight"),this.prop("autoHeight",!0)):this.fullVisibleHeight=this.visibleFeatureHeight()||(this.messageContainer.is(":visible")?this.messageContainer.outerHeight(!0):this.prop("hideEmpty")?0:this.minLabelHeight),this.autoResize(),void 0!==t&&this.prop("autoHeight",t))},visibleFeatureHeight:function(){var t={x:this.browser.scaledStart,w:this.width,y:0,h:9e99},e=this.scale,n=this.featurePositions.search(t),i=this.prop("hideEmpty")?0:this.minLabelHeight,r=Math.max.apply(Math,c(n.map(function(t){return t.position[e].bottom}).concat(i)));return"separate"===this.prop("labels")&&(this.labelTop=r,r+=Math.max.apply(Math,c(this.labelPositions.search(t).concat(this.prop("repeatLabels")?n:[]).map(function(t){return t.position[e].label.bottom}).concat(i)))),r},autoResize:function(){var t=this.prop("autoHeight");t||"separate"===this.prop("labels")?this.resize(t?this.fullVisibleHeight:this.prop("height"),this.labelTop,!1):this.toggleExpander(!1)},resize:function(t,e,n){t=this.track.setHeight(t,e),"number"==typeof e&&this.imgContainers.children(".gv-labels").css("top",e),this.container.height(t)[t?"show":"hide"](),this.setLabelHeight(),this.toggleExpander(),!1!==n&&this.browser.saveConfig()},toggleExpander:function(t){if(!0===this.prop("resizable")){var e=this.prop("featureMargin"),n=this.prop("height");if(this.fullVisibleHeight-e.top-e.bottom>n&&!this.prop("disabled")){this.showMessage("resize");var i=this,r=this.messageContainer.outerHeight(!0);r>n&&this.resize(r,void 0,t),this.expander=(this.expander||this.browser.jQuery('<div class="gv-expander gv-static">').width(this.width).appendTo(this.container).on("click",function(){i.resize(i.fullVisibleHeight)}))[0===this.prop("height")?"hide":"show"]()}else this.expander&&(this.hideMessage("resize"),this.expander.hide())}},setLabelHeight:function(t){var e=this.prop("parentTrack");if(e)e.controller.setLabelHeight();else{var n=[this].concat(this.prop("childTracks")||[]),i=n.reduce(function(t,e){return t+(e.prop("disabled")?0:e.prop("height"))},0);if(this.label.height(this.prop("disabled")?0:t&&this.minLabelHeight?Math.max(i,this.minLabelHeight):i),n.length>1){var r=n[0].prop("height");n.slice(1).forEach(function(t){var e=t.prop("height");t.prop("labelName").css("top",r)[e?"removeClass":"addClass"]("gv-hide"),r+=e})}}},setWidth:function(t){var e=this.track;[this,e,e.model,e.view].forEach(function(e){e.width=t}),this.imgContainer.add(this.expander).width(t)},setScale:function(){var t=this;this.scale=this.browser.scale,this.track.setMVC(),this.resetImageRanges();var e=this.prop("labels");e&&"overlay"!==e&&this.model.setLabelBuffer(this.browser.labelBuffer),Infinity!==this.threshold&&"auto"!==this.prop("resizable")&&(this.thresholdMessage=this.view.formatLabel(this.threshold)),Object.entries(this.view.setScaleSettings(this.scale)).forEach(function(e){var n=h(e,2),i=n[0],r=n[1];t[i]=r}),this.hideMessage()},move:function(t){this.left+=t,this.scrollContainer.css("left",this.left);var e=this.scrollStart;if(this.imgRange[e]&&this.imgRange[e].left+this.left>-this.scrollBuffer*this.width){var n=this.scrollRange[e].start-1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:n-this.browser.length+1,end:n,left:this.imgRange[e].left,cls:e}),(this.imgRange[e]||{}).left-=this.width,(this.scrollRange[e]||{}).start-=this.browser.length}if(this.imgRange[e]&&this.imgRange[e].right+this.left<this.scrollBuffer*this.width){var i=this.scrollRange[e].end+1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:i,end:i+this.browser.length-1,left:this.imgRange[e].right,cls:e}),(this.imgRange[e]||{}).right+=this.width,(this.scrollRange[e]||{}).end+=this.browser.length}},moveTo:function(t,e,n,i){var r=this.scrollRange[this.scrollStart],o=["ss",t,e,n].join("-");this.scrollRange[o]||e>r.end||n<r.start?(this.resetImageRanges(),this.makeFirstImage(o)):(this.move("number"==typeof i?i:(e-this.browser.start)*this.scale),this.checkHeight())},makeImage:function(t){t.scaledStart=t.scaledStart||t.start*t.scale,t.width=t.width||this.width,t.height=t.height||this.prop("height"),t.featureHeight=t.featureHeight||0,t.labelHeight=t.labelHeight||0;var e,n=this,i=this.browser.jQuery,r=this.browser.length>this.threshold,o=this.imgContainer.clone().addClass("".concat(t.cls," gv-loading").replace(".","_")).css({left:t.left,display:t.cls===this.scrollStart?"block":"none"}),s=!!t.background&&i('<img class="gv-bg">').hide().addClass(t.background).data(t).prependTo(o),a=this.browser.jQuery('<img class="gv-data">').hide().data(t).appendTo(o).on("load",function(){i(this).fadeIn("fast").parent().removeClass("gv-loading"),i(this).siblings(".gv-bg").show()});if(t.container=o,this.imgContainers.push(o[0]),this.scrollContainer.append(this.imgContainers),!r&&!this.model.checkDataRange(t.chr,t.start,t.end)){var l=this.prop("dataBuffer");t.start-=l.start,t.end+=l.end,e=this.model.getData(t.chr,t.start,t.end)}return e||(e=i.Deferred(),setTimeout(e.resolve,1)),this.deferreds.push(e),e.done(function(){var e=r?[]:n.model.findFeatures(t.chr,t.start,t.end);n.render(e,a),s&&n.renderBackground(e,s)}).fail(function(t){n.showError(t)})},makeFirstImage:function(t){var e=this.browser.jQuery,n=e.Deferred();if(this.scrollContainer.children().hide().filter(".".concat(t||this.scrollStart)).show().length)return this.scrollContainer.css("left",0),this.checkHeight(),n.resolve();var i=this,r=this.browser.chr,o=this.browser.start,s=this.browser.end,a=this.browser.length,l=this.scale,h=this.scrollStart,u=[{chr:r,start:o,end:s,scale:l,cls:h,left:0}],f=0,p=this.width;this.browser.isStatic||(o>1&&(u.push({chr:r,start:o-a,end:o-1,scale:l,cls:h,left:-this.width}),f=-this.width,p+=this.width),s<this.browser.getChromosomeSize(r)&&(u.push({chr:r,start:s+1,end:s+a,scale:l,cls:h,left:this.width}),p+=this.width));var d=this.imgContainer.clone().addClass("gv-loading").css({left:f,width:p}).prependTo(this.scrollContainer.css("left",0));function g(){e.when.apply(e,c(u.map(function(t){return i.makeImage(t)}))).done(n.resolve),d.remove()}if(a>this.threshold||this.model.checkDataRange(r,o,s))g();else{var m=this.prop("dataBuffer");this.model.getData(r,o-m.start-a,s+m.end+a).done(g).fail(function(t){i.showError(t)})}return n},render:function(t,e){var n=e.data();t=this.view.positionFeatures(this.view.scaleFeatures(t,n.scale),n);var i=this.browser.jQuery("<canvas>").attr({width:n.width,height:n.featureHeight||1}),r="separate"===this.prop("labels")&&n.labelHeight?i.clone().attr("height",n.labelHeight):i,o=i[0].getContext("2d"),s=r[0].getContext("2d");switch(o.font=s.font=this.prop("font"),this.prop("labels")){case!1:break;case"overlay":s.textAlign="center",s.textBaseline="middle";break;default:s.textAlign="left",s.textBaseline="top"}this.view.draw(t,o,s,n.scale),e.attr("src",i[0].toDataURL()),s!==o&&e.clone(!0).attr({class:"gv-labels",src:r[0].toDataURL()}).insertAfter(e),this.checkHeight()},renderBackground:function(t,e,n){var i=this.browser.jQuery("<canvas>").attr({width:this.width,height:n||1})[0];this.view.drawBackground(t,i.getContext("2d"),e.data()),e.attr("src",i.toDataURL())},populateMenu:function(t){var e=t.label?t.label[0]:t.id;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({title:e,Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)},Object.entries(t).reduce(function(t,n){var i=h(n,2),r=i[0],o=i[1];return"object"===s(o)||o===e||["chr","start","end","sort"].includes(r)?t:Object.assign(t,l({},r,o))},{}))},insertPropertiesIntoMenu:function(t,e,n,i){return this.browser.insertPropertiesIntoMenu(t,e,n,i,this.track)},abort:function(){this.deferreds.forEach(function(t){"pending"===t.state()&&t.reject()}),this.deferreds=[]},destroy:function(){this.abort(),this.container.add(this.label).add(this.menus).remove()}})},4798:function(t,e,n){"use strict";n.r(e);var i=n(1572);e.default=i.default.extend({getClickedFeatures:function(t,e){var n=this.base(t,e)[0];return!!n&&this.makeSeqFeatureMenu(n,Math.floor(t/this.scale))},makeSeqFeatureMenu:function(t,e){return t.featureMenus=t.featureMenus||{},t.featureMenus[e]=t.featureMenus[e]||{title:t.sequence.charAt(e-t.start),Location:"".concat(t.chr,":").concat(e)},t.featureMenus[e].title?t.featureMenus[e]:void 0}})},4770:function(t,e,n){"use strict";n.r(e);var i=n(1572);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({constructor:function(t){if(this.base(t),"function"!=typeof this._makeImage){var e=this.prop("strand"),n=this.prop("featureStrand");if(-1===e)this._makeImage=this.track.makeReverseImage?this.track.makeReverseImage.bind(this):this.makeImage,this.makeImage=function(){};else{e=this.prop("strand",1),this._makeImage=this.makeImage,this.makeImage=this.makeForwardImage;var i=this.track;setTimeout(function(){i.reverseTrack=i.browser.addTrack(i.constructor.extend({id:i.id?"".concat(i.id,"Reverse"):void 0,strand:-1,url:!1,order:"number"==typeof i.orderReverse?i.orderReverse:i.order,forwardTrack:i})),i.controller._deferredReverseTrackImages.forEach(function(t){var e;return(e=i.controller)._makeReverseTrackImage.apply(e,r(t))}),delete i.controller._deferredReverseTrackImages},1)}n||this.prop("featureStrand",e)}},makeForwardImage:function(t){this._makeReverseTrackImage(t,this._makeImage(t))},_makeReverseTrackImage:function(t,e){var n=this.prop("reverseTrack");n?e&&"function"==typeof e.done?e.done(function(){n.controller._makeImage(t,e)}):n.controller._makeImage(t,e):this._deferredReverseTrackImages=(this._deferredReverseTrackImages||[]).concat([[t,e]])},destroy:function(){this.destroying||(this.destroying=!0,this.browser.removeTrack(this.prop("forwardTrack")||this.prop("reverseTrack")),this.base())}})},6767:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(3301),s=n.n(o),a=n(5932);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({dataType:"json",allData:!1,dataBuffer:void 0,xhrFields:void 0,url:void 0,urlParams:void 0,urlParamsGenerator:function(){return{}},data:void 0,dataRequestLimit:void 0,showServerErrors:!1,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=p(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,a.A)(this,"Model"),this.init()},init:function(t){this.setDefaults(t),t&&Object.values(this.featuresById).forEach(function(t){delete t.position}),t&&!this.data||(delete this.dataRangesByChr,delete this.featuresByChr,this.featuresById={},this.setChrProps()),this.dataLoading=[]},setDefaults:function(t){this.dataBuffer=this.dataBuffer||{start:0,end:0},this.urlParams=this.urlParams||this.urlParamsGenerator(),this.xhrFields=this.xhrFields||{},this.dataBufferStart=this.dataBuffer.start,this._url||(this._url=this.url),t&&!this.url&&this._url&&(this.url=this._url)},setChrProps:function(){var t=this.browser.chr;this.dataRangesByChr=this.dataRangesByChr||{},this.featuresByChr=this.featuresByChr||{},this.dataRangesByChr[t]=this.dataRangesByChr[t]||new(s()),this.featuresByChr[t]=this.featuresByChr[t]||new(s())},features:function(t){return this.featuresByChr[t]},dataRanges:function(t){return this.dataRangesByChr[t]},parseURL:function(t,e,n,i){return this.allData&&(e=1,n=this.browser.getChromosomeSize(t)),(i||this.url).replace(/__ASSEMBLY__/,this.browser.assembly).replace(/__CHR__/,t).replace(/__START__/,e).replace(/__END__/,n)},setLabelBuffer:function(t){this.dataBuffer.start=Math.max(this.dataBufferStart,t)},getData:function(t,e,n,i){var r=this,o=this.browser.jQuery;e=Math.max(1,e),n=Math.min(this.browser.getChromosomeSize(t),n);var s=o.Deferred();if(void 0!==this.data)return this.receiveData("function"==typeof this.data.sort?this.data.sort(function(t,e){return t.start-e.start}):this.data,t,e,n),s.resolve();var a=[],l=n-e+1;if(!this.url)return s.resolve();if(this.dataRequestLimit&&l>this.dataRequestLimit)for(var c=Math.ceil(l/this.dataRequestLimit);c--;)a.push([e,c?e+=this.dataRequestLimit-1:n]),e++;else a.push([e,n]);return o.when.apply(o,f(a.map(function(e){var n=o.ajax({url:r.parseURL(t,e[0],e[1]),data:r.urlParams,dataType:r.dataType,xhrFields:r.xhrFields}).done(function(n){r.receiveData(n,t,e[0],e[1])}).fail(function(t,e){var n;if(null!==(n=r.track)&&void 0!==n&&null!==(n=n.controller)&&void 0!==n&&n.showError){for(var i,o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];r.track.controller.showError(r.showServerErrors&&null!==(i=t.responseJSON)&&void 0!==i&&i.message?t.responseJSON.message:"".concat(e," while getting the data, see console for more details"),[t,e].concat(s))}}).always(function(){r.dataLoading=r.dataLoading.filter(function(t){return n!==t})});return n.coords=[t,e[0],e[1]],"function"==typeof i&&n.done(i),r.dataLoading.push(n),n}))).done(s.resolve),s},receiveData:function(t,e,n,i){n=Math.max(n,1),i=Math.min(i,this.browser.getChromosomeSize(e)),this.setDataRange(e,n,i),this.parseData(t,e,n,i),this.allData&&(this.url=!1)},parseData:function(t,e,n){var i=this;t.forEach(function(t,r){t.chr=t.chr||e,t.sort=n+r,i.insertFeature(t)})},updateData:function(t){this.data=t,this.track.reset()},setDataRange:function(t,e,n){this.allData&&(e=1,n=this.browser.getChromosomeSize(t)),this.dataRanges(t).insert({x:e,w:n-e+1,y:0,h:1},[e,n])},checkDataRange:function(t,e,n){e=Math.max(1,e),n=Math.min(this.browser.getChromosomeSize(t),n);var i=this.dataRanges(t).search({x:e,w:n-e+1,y:0,h:1}).sort(function(t,e){return t[0]-e[0]});if(!i.length)return!1;for(var r=1===i.length?i[0][0]:9e99,o=1===i.length?i[0][1]:-9e99,s=0;s<i.length-1;s++){var a=p(i[s],2),l=a[0],c=a[1],h=p(i[s+1],2),u=h[0],f=h[1];if(!(l<=c&&(u>=f||u+1>=c)))return!1;r=Math.min(r,l),o=Math.max(o,u,f)}return e>=r&&n<=o},insertFeature:function(t){if(t.chr){t.id||(t.id=t.ID||this.hashCode(JSON.stringify(h(h({},t),{},{sort:""}))));var e=this.features(t.chr);e&&!this.featuresById[t.id]&&(t.subFeatures&&(t.subFeatures.sort(function(t,e){return t.start-e.start}).forEach(function(e){e.start=Math.min(Math.max(e.start,t.start),t.end),e.end=Math.max(Math.min(e.end,t.end),t.start)}),t.subFeatures.unshift({start:t.start,end:t.start,fake:!0}),t.subFeatures.push({start:t.end,end:t.end,fake:!0})),e.insert({x:t.start,y:0,w:t.end-t.start+1,h:1},t),this.featuresById[t.id]=t)}},findFeatures:function(t,e,n){var i=this,r=this.features(t).search({x:e-this.dataBuffer.start,y:0,w:n-e+this.dataBuffer.start+this.dataBuffer.end+1,h:1});return(this.prop("featureFilters")||[]).forEach(function(t){r=r.filter(function(e){return t.call(i,e)})}),this.sortFeatures(r)},sortFeatures:function(t){return t.sort(function(t,e){return t.sort-e.sort})},hashCode:function(t){var e=0;if(t.length)for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return String(e)},abort:function(){this.dataLoading.forEach(function(t){return t.abort()}),this.dataLoading=[]},destroy:function(){this.abort(),delete this.data,delete this.dataRangesByChr,delete this.featuresByChr,delete this.featuresById}})},6200:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({dataType:"text",init:function(){this.isLocal&&(this.url=!1),this.largeFile||this.indexFile||(this.allData=!0),this.base.apply(this,arguments)},getData:function(t){var e=this;if(this.isLocal&&this.dataFile){var n=new FileReader,i=this.browser.jQuery.Deferred();return n.onload=function(n){i.done(function(){e.receiveData(n.target.result,t,1,e.browser.getChromosomeSize(t))}).resolve()},n.readAsText(this.dataFile),i}for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return this.base.apply(this,[t].concat(o))}})},439:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});var i=n(3541),r=n(8186);function o(t,e){this.block=t,this.offset=e}function s(t,e,n){var i=4294967296*(255&t[e+6])+16777216*(255&t[e+5])+65536*(255&t[e+4])+256*(255&t[e+3])+(255&t[e+2]),r=t[e+1]<<8|t[e];return 0!=i||0!=r||n?new o(i,r):null}function a(t,e){e=Math.min(e||1,t.byteLength-50);for(var n=[],i=[0],o=0;i[0]<e;){var s=new Uint8Array(t,i[0],12),a=s[11]<<8|s[10],l=(0,r.A)(t,12+a+i[0],Math.min(65536,t.byteLength-12-a-i[0]),i);i[0]+=8,o+=l.byteLength,n.push(l)}if(1==n.length)return n[0];for(var c=new Uint8Array(o),h=0,u=0;u<n.length;++u){var f=new Uint8Array(n[u]);arrayCopy(f,0,c,h,f.length),h+=f.length}return c.buffer}function l(t,e){this.minv=t,this.maxv=e}o.prototype.toString=function(){return this.block+":"+this.offset};function c(){}function h(t,e){var n=e,r=(0,i.Uk)(t,n);n+=4;for(var o=0;o<r;++o){(0,i.Uk)(t,n);n+=8+16*(0,i.Uk)(t,n+4)}for(var a=(0,i.Uk)(t,n),l=1e9,c=n+=4,h=0;h<a;++h){var u=s(t,c);if(c+=8,u){var f=u.block;u.offset>0&&(f+=65536),f<l&&(l=f);break}}return{minBlockIndex:l,nbin:r,length:(n+=8*a)-e}}function u(t,e,n,r,o){var s=new c;s.data=t,s.bai=e,s.indexChunks=n;var l=s.indexChunks?s.indexChunks.minBlockIndex:1e9;function f(t){if(!t)return r(null,"Couldn't access BAM");var e=a(t,t.byteLength),n=new Uint8Array(e),o=(0,i.Uk)(n,0);if(21840194!=o)return r(null,"Not a BAM file, magic=0x"+o.toString(16));for(var l=(0,i.Uk)(n,4),c=0;c<l;++c)String.fromCharCode(n[c+8]);var h=(0,i.Uk)(n,l+8),u=l+12;s.chrToIndex={},s.indexToChr=[];for(c=0;c<h;++c){for(var f=(0,i.Uk)(n,u),p="",d=0;d<f-1;++d)p+=String.fromCharCode(n[u+4+d]);(0,i.Uk)(n,u+f+4);s.chrToIndex[p]=c,0==p.indexOf("chr")?s.chrToIndex[p.substring(3)]=c:s.chrToIndex["chr"+p]=c,s.indexToChr.push(p),u=u+8+f}return s.indices?r(s):void 0}if(s.indexChunks){var p=s.indexChunks.chunks;s.indices=[];for(var d=0;d<p.length;d++)s.indices[d]=null;s.data.slice(0,l).fetch(f)}else s.bai.fetch(function(e){var a=function(t){if(!t)return"Couldn't access BAI";var e=new Uint8Array(t),n=(0,i.Uk)(e,0);if(21578050!=n)return r(null,"Not a BAI file, magic=0x"+n.toString(16));var o=(0,i.Uk)(e,4);s.indices=[];for(var a=8,c=0;c<o;++c){var u=a,f=h(e,u);a+=f.length,l=Math.min(f.minBlockIndex,l),f.nbin>0&&(s.indices[c]=new Uint8Array(t,u,a-u))}return!0}(e);!0!==a?s.bai.url&&void 0===o?(s.bai.url=s.data.url.replace(new RegExp(".bam$"),".bai"),u(t,s.bai,n,r,!0)):r(null,a):s.data.slice(0,l).fetch(f)})}c.prototype.blocksForRange=function(t,e,n){var r=this.indices[t];if(!r)return[];for(var o=function(t,e){var n,i=[];for(--e,i.push(0),n=1+(t>>26);n<=1+(e>>26);++n)i.push(n);for(n=9+(t>>23);n<=9+(e>>23);++n)i.push(n);for(n=73+(t>>20);n<=73+(e>>20);++n)i.push(n);for(n=585+(t>>17);n<=585+(e>>17);++n)i.push(n);for(n=4681+(t>>14);n<=4681+(e>>14);++n)i.push(n);return i}(e,n),a=[],c=0;c<o.length;++c)a[o[c]]=!0;for(var h=[],u=[],f=(0,i.Uk)(r,0),p=4,d=0;d<f;++d){var g=(0,i.Uk)(r,p),m=(0,i.Uk)(r,p+4);if(p+=8,a[g])for(var v=0;v<m;++v){var y=s(r,p),b=s(r,p+8);(g<4681?u:h).push(new l(y,b)),p+=16}else p+=16*m}var w=(0,i.Uk)(r,p),x=null,_=Math.min(e>>14,w-1),S=Math.min(n>>14,w-1);for(c=_;c<=S;++c){var k=s(r,p+4+8*c);k&&((!x||k.block<x.block||k.block==x.block&&k.offset<x.offset)&&(x=k))}var T=[];if(null!=x)for(c=0;c<u.length;++c){var C=u[c];(C.maxv.block>x.block||C.maxv.block==x.block&&C.maxv.offset>=x.offset)&&T.push(C)}u=T;var O=[];for(c=0;c<u.length;++c)O.push(u[c]);for(c=0;c<h.length;++c)O.push(h[c]);O.sort(function(t,e){var n=t.minv.block-e.minv.block;return 0!=n?n:t.minv.offset-e.minv.offset});var A=[];if(O.length>0){var E=O[0];for(c=1;c<O.length;++c){var P=O[c];P.minv.block==E.maxv.block?E=new l(E.minv,P.maxv):(A.push(E),E=P)}A.push(E)}return A},c.prototype.fetch=function(t,e,n,i,r){var o=this;r=r||{};var s,l=this.chrToIndex[t];if(void 0===l)s=[];else{if(null===this.indices[l]&&this.indexChunks.chunks[l]){var c=this.indexChunks.chunks[l];return this.bai.slice(c[0],c[1]).fetch(function(o){var s=new Uint8Array(o);return this.indices[l]=s,this.fetch(t,e,n,i,r)}.bind(this))}(s=this.blocksForRange(l,e,n))||i(null,"Error in index fetch")}var h,u=[],f=0;!function t(){if(f>=s.length)return i(u);if(h){var c=new Uint8Array(h),p=o.readBamRecords(c,s[f].minv.offset,u,e,n,l,r);return h=null,++f,p?i(u):t()}var d=s[f],g=d.minv.block,m=d.maxv.block+65536;o.data.slice(g,m-g).fetch(function(e){return h=a(e,d.maxv.block-d.minv.block+1),t()})}()};var f=["=","A","C","x","G","x","x","x","T","x","x","x","x","x","x","N"],p=["M","I","D","N","S","H","P","=","X","?","?","?","?","?","?","?"];function d(){}c.prototype.readBamRecords=function(t,e,n,r,o,s,a){for(;;){var l=e+(0,i.Uk)(t,e)+4;if(l>t.length)return!1;var c=new d,h=(0,i.Uk)(t,e+4),u=(0,i.Uk)(t,e+8),g=(0,i.Uk)(t,e+12),m=(65280&g)>>8,v=255&g,y=(0,i.Uk)(t,e+16),b=(4294901760&y)>>16,w=65535&y,x=(0,i.Uk)(t,e+20),_=(0,i.Uk)(t,e+24),S=(0,i.Uk)(t,e+28);(0,i.Uk)(t,e+32);if(c.segment=this.indexToChr[h],c.flag=b,c.pos=u,c.mq=m,a.light&&(c.seqLength=x),!a.light||a.includeName){for(var k="",T=0;T<v-1;++T)k+=String.fromCharCode(t[e+36+T]);c.readName=k}if(!a.light){_>=0&&(c.nextSegment=this.indexToChr[_],c.nextPos=S);for(var C=e+36+v,O="",A=0;A<w;++A){var E=(0,i.Uk)(t,C);O=O+(E>>4)+p[15&E],C+=4}c.cigar=O;var P="",j=x+1>>1;for(T=0;T<j;++T){var D=t[C+T];(P+=f[(240&D)>>4]).length<x&&(P+=f[15&D])}C+=j,c.seq=P;var I="";for(T=0;T<x;++T)I+=String.fromCharCode(t[C+T]+33);for(C+=x,c.quals=I;C<l;){var M,R=String.fromCharCode(t[C],t[C+1]),N=String.fromCharCode(t[C+2]);if("A"==N)M=String.fromCharCode(t[C+3]),C+=4;else if("i"==N||"I"==N)M=(0,i.Uk)(t,C+3),C+=7;else if("c"==N||"C"==N)M=t[C+3],C+=4;else if("s"==N||"S"==N)M=(0,i.Dt)(t,C+3),C+=5;else if("f"==N)M=(0,i.zH)(t,C+3),C+=7;else if("Z"==N||"H"==N)for(C+=3,M="";;){var F=t[C++];if(0==F)break;M+=String.fromCharCode(F)}else{if("B"!=N)throw"Unknown type "+N;var H,L,z=String.fromCharCode(t[C+3]),B=(0,i.Uk)(t,C+4);if("i"==z||"I"==z||"f"==z)H=4,L="f"==z?i.zH:i.Uk;else if("s"==z||"S"==z)H=2,L=i.Dt;else{if("c"!=z&&"C"!=z)throw"Unknown array type "+z;H=1,L=i.HA}C+=8,M=[];for(var U=0;U<B;++U)M.push(L(t,C)),C+=H}c[R]=M}}if((!r||c.pos<=o&&c.pos+x>=r)&&(void 0!==s&&h!=s||n.push(c)),c.pos>o)return!0;e=l}};var g=function(t,e,n,i,r){t.slice(0,10).fetch(function(o){return o?u(t,e,n,i,r):i(null,"Couldn't access BAM.")},{timeout:5e3})},m=n(6200).default.extend({getData:function(t,e,n){var r=this,o=this.browser.jQuery.Deferred();if(!this.bamFile)if(this.url)this.bamFile=new i.SX(this.url),this.baiFile=new i.SX(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("BAM files must be accompanied by a .bai index file"));this.bamFile=new i.cU(this.dataFile),this.baiFile=new i.cU(this.indexFile)}return g(this.bamFile,this.baiFile,null,function(i,s){s?console.error(s):i.fetch(t,e,n,function(i,s){s?console.error(s):(r.receiveData(i,t,e,n),o.resolve())})}),o},insertFeature:function(t){return t.id="".concat(t.chr,":").concat(t.readName,":").concat(t.pos),t.start=t.pos+1,t.end=t.start+t.seq.length,t.sequence=t.seq,this.base(t)}})},4976:function(t,e,n){"use strict";n.r(e);var i=n(6200);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({parseData:function(t,e){var n=this,i="string"==typeof t?t.split("\n"):t,r=this.prop("thinHeight"),o=this.prop("thickHeight");function a(t){return!isNaN(t)}i.forEach(function(t){var i=t.split("\t").filter(function(t){return t});if(!(i.length<3||"track"===i[0]||"browser"===i[0])){var l=i.length;if(i[0]===String(e)||i[0].toLowerCase()==="chr".concat(e)||i[0].match("[^1-9]".concat(e,"$"))){var c={chr:e,start:parseInt(i[1],10)+1,end:parseInt(i[2],10),name:i[3],color:"#000000",originalFeature:i};if(l>3&&(c.score=parseFloat(i[4],10)),l>5&&(c.strand=i[5]),l>7&&(c.thickStart=parseInt(i[6],10)+1,c.thickEnd=parseInt(i[7],10),c.drawThick=i[6]!==i[7]),i[8]?c.color="rgb(".concat(i[8],")"):c.color=n.scoreColor(isNaN(c.score)?1e3:c.score),12===l){c.blockCount=parseInt(i[9],10);var h=[],u=i[10].split(",").filter(a),f=i[11].split(",").filter(a);u.forEach(function(t,e){var n={start:c.start+parseInt(f[e],10),height:r};if(n.end=n.start+parseInt(t,10)-1,c.drawThick&&n.start<=c.thickEnd&&n.end>=c.thickStart)if(n.start>=c.thickStart&&n.end<=c.thickEnd)n.height=o,h.push(n);else if(n.start<c.thickStart&&n.end<=c.thickEnd){var i=s(s({},n),{},{end:c.thickStart}),a=s(s({},n),{},{start:c.thickStart,height:o});h.push.apply(h,[i,a])}else if(n.start>=c.thickStart&&n.end>c.thickEnd){var l=s(s({},n),{},{start:c.thickEnd}),u=s(s({},n),{},{end:c.thickEnd,height:o});h.push.apply(h,[u,l])}else{var p=s(s({},n),{},{end:c.thickStart}),d=s(s({},n),{},{start:c.thickEnd}),g={start:c.thickStart,end:c.thickEnd,height:o};h.push.apply(h,[p,g,d])}else h.push(n)}),h.length&&(c.subFeatures=h)}n.insertFeature(c)}}})},scoreColor:function(t){return t<=166?"rgb(219,219,219)":t<=277?"rgb(186,186,186)":t<=388?"rgb(154,154,154)":t<=499?"rgb(122,122,122)":t<=611?"rgb(94,94,94)":t<=722?"rgb(67,67,67)":t<=833?"rgb(42,42,42)":t<=944?"rgb(21,21,21)":"#000000"}})},1290:function(t,e,n){"use strict";n.r(e);var i=n(6200);e.default=i.default.extend({parseData:function(t,e){var n=this;t.split("\n").forEach(function(t){if(t.length&&0!==t.indexOf("#")){var i=t.split("\t");if(!(i.length<5)){var r=i[0].toLowerCase();(r===String(e)||r==="chr".concat(e)||r.match("[^1-9]".concat(e,"$"))||r.match("^".concat(e,"\\b")))&&n.insertFeature({id:i.slice(0,5).join("|"),chr:e,start:parseInt(i[3],10),end:parseInt(i[4],10),source:i[1],type:i[2],score:i[5],strand:"-"===i[6]?-1:1,label:"".concat(i[1]," ").concat(i[2]," ").concat(i[3],"-").concat(i[4])})}}})}})},2715:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var i=n(6454),r=n.n(i),o=n(8186);r().prototype.structure.uint64=function(){return parseInt(this.view.getUint64(),10)};var s={string0:function(t){return this.parse(["string",t]).replace(/\0+$/,"")},header:{magic:["string",4],n_ref:"int32",format:"int32",col_seq:"int32",col_beg:"int32",col_end:"int32",meta:"int32",skip:"int32",l_nm:"int32",names:["string0",function(){return this.current.l_nm}]},chunk:{cnk_beg:"uint64",cnk_end:"uint64"},bin:{bin:"uint32",n_chunk:"int32",chunkseq:["array","chunk",function(){return this.current.n_chunk}]},index:{n_bin:"int32",binseq:["array","bin",function(){return this.current.n_bin}],n_intv:"int32",intervseq:["array","uint64",function(){return this.current.n_intv}]},tabix:{head:"header",indexseq:["array","index",function(){return this.current.head.n_ref}]}},a={header:{id1:"uint8",id2:"uint8",cm:"uint8",flg:"uint8",mtime:"uint32",xfl:"uint8",os:"uint8",xlen:"uint16"},subheader:{si1:"uint8",si2:"uint8",slen:"uint16",bsize:"uint16"},bgzfHd:{head:"header",subhead:"subheader"}},l=65536,c=function(t,e){this.vcf_data=t,this.tbi_data=e};c.prototype.readTabix=function(t){var e=function(t){var e={},n=0;for(var i in t)e[t[i].bin]=n,n++;return e};this.inflateRegion(this.tbi_data,0,1e8,function(n){var i=new(r())(n,s).parse("tabix");i.head.names=i.head.names.split("\0"),i.bhash={};for(var o=0;o<i.head.n_ref;o++)i.bhash[o]=e(i.indexseq[o].binseq);t(i)})},c.prototype.getRecords=function(t,e,n,i){var r=this,o=[],s=this.getChunks(t,e,n);if(-1===s)return i([]);var a=function(t){t<s.length?r.inflateRegion(r.vcf_data,s[t].start,s[t].end,function(i,l){var c=i.byteLength-l+s[t].inner_end;(i=r.buffer2String(i).slice(s[t].inner_start,c)).length>0&&(i=i.split("\n").filter(function(t){if(t.length>0){var i=parseInt(t.split("\t")[1],10);return e<=i&&i<=n}return!1}).join("\n"),o.push(i)),a(++t)}):i(o.join("\n"))};a(0)},c.prototype.getChunks=function(t,e,n){var i=this,r=this.tabix;if(-1===(t=r.head.names.indexOf(t.toString())))return-1;var o=this.reg2bins(e,n+1).filter(function(e){return void 0!==r.bhash[t][e]}).map(function(e){return i.bin2Ranges(r,t,e)}).reduce(function(t,e){return e.forEach(function(e){t.push(e)}),t},[]);return o=this.remove_duplicates(o)},c.prototype.inflateRegion=function(t,e,n,i){var r=this,o=[],s=function(e,a){o.push(e),-1===a?i(r.appendBuffers(o),o[o.length-1].byteLength):a<=n?r.inflateBlock(t,a,s):i(r.appendBuffers(o),o[o.length-1].byteLength)};this.inflateBlock(t,e,s)},c.prototype.inflateBlock=function(t,e,n){this.getBGZFHD(t,e,function(i){t.slice(e,i.subhead.bsize+1).fetch(function(t){var r=(0,o.A)(t,18,t.byteLength-18),s=e+i.subhead.bsize+1;27===i.subhead.bsize&&(s=-1),n(r,s)})})},c.prototype.getBGZFHD=function(t,e,n){t.slice(e,19).fetch(function(t){var e=new(r())(t,a).parse("bgzfHd");n(e)})},c.prototype.appendBuffers=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].byteLength;for(var i=new Uint8Array(e),r=0,o=0;o<t.length;o++)i.set(new Uint8Array(t[o]),r),r+=t[o].byteLength;return i.buffer},c.prototype.buffer2String=function(t){for(var e="",n=new Uint8Array(t),i=0;i<n.length;++i)e+=String.fromCharCode(n[i]);return e},c.prototype.remove_duplicates=function(t){for(var e={},n=t.length-1;n>=0;n--){var i=JSON.stringify(t[n]);e[i]?t.splice(n,1):e[i]=!0}return t},c.prototype.bin2Ranges=function(t,e,n){for(var i,r=[],o=t.indexseq[e].binseq[t.bhash[e][n]].chunkseq,s=0;s<o.length;s++)i=o[s],r.push({start:Math.floor(i.cnk_beg/l),inner_start:i.cnk_beg%l,end:Math.floor(i.cnk_end/l),inner_end:i.cnk_end%l});return r},c.prototype.reg2bins=function(t,e){var n,i=[];for(--e,i.push(0),n=1+(t>>26);n<=1+(e>>26);++n)i.push(n);for(n=9+(t>>23);n<=9+(e>>23);++n)i.push(n);for(n=73+(t>>20);n<=73+(e>>20);++n)i.push(n);for(n=585+(t>>17);n<=585+(e>>17);++n)i.push(n);for(n=4681+(t>>14);n<=4681+(e>>14);++n)i.push(n);return i};var h=c,u=n(3541),f=n(6200).default.extend({getData:function(t,e,n,i){var r=this;if(!this.prop("gz"))return this.base(t,e,n,i);var o=this.browser.jQuery.Deferred();if(!this.vcfFile)if(this.url)this.vcfFile=new u.SX(this.url),this.tbiFile=new u.SX(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("GZipped VCF files must be accompanied by a .tbi index file"));this.vcfFile=new u.cU(this.dataFile),this.tbiFile=new u.cU(this.indexFile)}return this.makeVCF(this.vcfFile,this.tbiFile).then(function(i){r.cachedVCF=i,i.getRecords(t,e,n,function(i){r.receiveData(i,t,e,n),o.resolve()})}),o},makeVCF:function(t,e){var n=this.browser.jQuery.Deferred();if(this.cachedVCF)n.resolve(this.cachedVCF);else{var i=new h(t,e);i.readTabix(function(t){i.tabix=t,n.resolve(i)})}return n},parseData:function(t,e){var n=this,i=t.split("\n"),r=!!this.allData&&(this.prop("maxQual")||0);i.forEach(function(t){if(t.length&&0!==t.indexOf("#")){var i=t.split("\t");if(!(i.length<5||i[0]!==String(e)&&i[0]!=="chr".concat(e))){var o=i.slice(0,3).join("|"),s=parseInt(i[1],10),a=i[4].split(",");a.unshift(i[3]),a.forEach(function(t,r){var a=s+t.length-1;n.insertFeature({id:"".concat(o,"|").concat(t),sort:r,chr:e,start:s,end:a,width:a-s,allele:0===r?"REF":"ALT",sequence:t,label:t,labelColor:"#FFFFFF",originalFeature:i})}),!1!==r&&(r=Math.max(r,i[5]))}}}),r&&this.prop("maxQual",r)}})},4734:function(t,e,n){"use strict";n.r(e);var i=n(1216),r=n(6200);e.default=i.Model.extend({dataType:"text",getData:function(){var t;return this.url?this.base.apply(this,arguments):(this.isLocal=!0,this.dataFile=this.track.dataFile,(t=r.default.prototype).getData.apply(t,arguments))},parseData:function(t,e,n,i){for(var r,o=t.split("\n"),s=[];o.length&&(r=o.shift())&&(-1!==r.indexOf("#")||-1!==r.indexOf("browser")||-1!==r.indexOf("track")););if(r){var a=r.split(/\s+/),l=parseInt(a[1].split("=")[1].replace("chr",""),10);if("fixedStep"===a[0]){var c=parseInt(a[3].split("=")[1],10),h=a[4]?parseInt(a[4].split("=")[1],10):1,u=parseInt(a[2].split("=")[1],10);o.forEach(function(t){s.push({chr:l,start:u,end:u+h,height:parseFloat(t)}),u+=c})}else if("variableStep"===a[0]){var f=a[2]?parseInt(a[2].split("=")[1],10):1;o.forEach(function(t){var e=t.split(/\s+/),n={chr:l,start:parseInt(e[0],10),height:parseFloat(e[1])};n.end=n.start+f,s.push(n)})}}return this.base.call(this,s,e,n,i)}})},407:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({})},6448:function(t,e,n){"use strict";n.r(e);var i=n(407);e.default=i.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=gene;content-type=application/json",dataRequestLimit:5e6,parseData:function(t,e){var n=this;t.forEach(function(t){"gene"!==t.feature_type||n.featuresById[t.id]||(t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.transcripts=[],n.insertFeature(t))})}})},932:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({threshold:1e5,chunkSize:1e3,buffer:0,dataType:"text",setChrProps:function(){var t=this.browser.chr;this.base(),this.chunksByChr=this.chunksByChr||{},this.chunksByChr[t]=this.chunksByChr[t]||{}},getData:function(t,e,n){return e=e-e%this.chunkSize+1,n=n+this.chunkSize-n%this.chunkSize,this.base(t,e,n)},parseData:function(t,e,n){t=t.replace(/\n/g,""),this.prop("lowerCase")&&(t=t.toLowerCase());for(var i=0;i<t.length;i+=this.chunkSize)if(!this.chunksByChr[e][n+i]){var r={id:"".concat(e,":").concat(n,":").concat(i),chr:e,start:n+i,end:n+i+this.chunkSize-1,sequence:t.substr(i,this.chunkSize),sort:n+i};this.chunksByChr[e][r.start]=r,this.insertFeature(r)}}})},1104:function(t,e,n){"use strict";n.r(e);var i=n(932);e.default=i.default.extend({url:"//rest.ensembl.org/sequence/region/human/__CHR__:__START__-__END__?content-type=text/plain",dataRequestLimit:1e7})},2581:function(t,e,n){"use strict";n.r(e);var i=n(932);e.default=i.default.extend({url:"https://github.com/DECIPHER-genomics/Genoverse/data/Homo_sapiens.GRCh37.72.dna.chromosome.1.fa",startByte:void 0,lineLength:void 0,getData:function(t,e,n){var i=this,r=this.browser.jQuery,o=r.Deferred();return r.when(this.getStartByte()).done(function(){e=e-e%i.chunkSize+1,n=n+i.chunkSize-n%i.chunkSize;var s=e-1+Math.floor((e-1)/i.lineLength)+i.startByte,a=n-1+Math.floor((n-1)/i.lineLength)+i.startByte;r.ajax({url:i.parseURL(),dataType:i.dataType,headers:{Range:"bytes=".concat(s,"-").concat(a)},xhrFields:i.xhrFields,success:function(r){i.receiveData(r,t,e,n)},error:i.track.controller.showError}).done(function(){o.resolve()}).fail(function(){o.reject()})}).fail(function(){o.reject()}),o},getStartByte:function(){var t=this;return this.startByteRequest?this.startByteRequest:void 0===this.startByte||void 0===this.lineLength?(this.startByteRequest=this.browser.jQuery.ajax({url:this.parseURL(),dataType:"text",headers:{Range:"bytes=0-300"},xhrFields:this.xhrFields,success:function(e){0===e.indexOf(">")?t.startByte=e.indexOf("\n")+1:t.startByte=0,t.lineLength=e.indexOf("\n",t.startByte)-t.startByte}}),this.startByteRequest):void 0}})},8054:function(t,e,n){"use strict";n.r(e);var i=n(6767),r=n(1104);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({seqModel:r.default,getSeqModel:function(){var t=this.prop("models");return t.seq=t.seq||this.track.newMVC(this.seqModel),t.seq},getData:function(t,e,n){var i=this,r=this.browser.jQuery.Deferred(),o=this.getSeqModel().checkDataRange(t,e,n);return this.base(t,e,n).done(function(){o?r.resolve():i.getSeqModel().getData(t,e,n).done(r.resolve)}),r},insertFeature:function(t){return this.base(a(a({},t),{},{end:t.start+t.alt_allele.length-1,length:t.alt_allele.length,sequence:t.alt_allele}))},checkDataRange:function(t,e,n){return this.base(t,e,n)&&this.getSeqModel().checkDataRange(t,e,n)},findFeatures:function(t,e,n){return this.getSeqModel().findFeatures(t,e,n).concat(this.base(t,e,n))}})},6815:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({init:function(t){if(this.base(t),!t){var e=this.prop("forwardTrack");e&&(this.featuresByChr=e.prop("featuresByChr"),this.features=e.prop("features"),this.featuresById=e.prop("featuresById"))}},parseURL:function(){return this.urlParams.strand||(this.urlParams.strand=this.prop("featureStrand")),this.base.apply(this,arguments)},findFeatures:function(){var t=this.track.featureStrand;return this.base.apply(this,arguments).filter(function(e){return e.strand===t})}})},9024:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({})},1331:function(t,e,n){"use strict";n.r(e);var i=n(9024);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=transcript;feature=exon;feature=cds;content-type=application/json",dataRequestLimit:5e6,setDefaults:function(){this.geneIds={},this.seenGenes=0,this.base.apply(this,arguments)},parseData:function(t,e){var n=this,i=this.featuresById,r=[];t.filter(function(t){return"transcript"===t.feature_type}).forEach(function(t,o){i[t.id]||(n.geneIds[t.Parent]=n.geneIds[t.Parent]||++n.seenGenes,t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.sort=1e10*n.geneIds[t.Parent]+(0===t.logic_name.indexOf("ensembl_havana")?0:2e9)+("protein_coding"===t.biotype?0:1e9)+t.start+o,t.cdsStart=Infinity,t.cdsEnd=-Infinity,t.exons={},t.subFeatures=[],n.insertFeature(t)),r.push(t.id)}),t.filter(function(t){return"cds"===t.feature_type&&i[t.Parent]}).forEach(function(t){i[t.Parent].cdsStart=Math.min(i[t.Parent].cdsStart,t.start),i[t.Parent].cdsEnd=Math.max(i[t.Parent].cdsEnd,t.end)}),t.filter(function(t){return"exon"===t.feature_type&&i[t.Parent]&&!i[t.Parent].exons[t.id]}).forEach(function(t){t.end<i[t.Parent].cdsStart||t.start>i[t.Parent].cdsEnd?i[t.Parent].subFeatures.push(s({utr:!0},t)):(t.start<i[t.Parent].cdsStart&&i[t.Parent].subFeatures.push(s(s({utr:!0},t),{},{end:i[t.Parent].cdsStart})),i[t.Parent].subFeatures.push(s(s({},t),{},{start:Math.max(t.start,i[t.Parent].cdsStart),end:Math.min(t.end,i[t.Parent].cdsEnd),strand:i[t.Parent].strand})),t.end>i[t.Parent].cdsEnd&&i[t.Parent].subFeatures.push(s(s({utr:!0},t),{},{start:i[t.Parent].cdsEnd})))}),r.forEach(function(t){return i[t].subFeatures.sort(function(t,e){return t.start-e.start})})}})},3257:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(3301),s=n.n(o),a=n(5932);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({fontHeight:10,fontFamily:"sans-serif",fontWeight:"normal",fontColor:void 0,color:"#000000",minScaledWidth:.5,precisionFactor:0,widthCorrection:1,labels:!0,repeatLabels:!1,bump:!1,alwaysReposition:!1,depth:void 0,featureHeight:void 0,featureMargin:void 0,subFeatureJoinStyle:!1,subFeatureJoinLineWidth:.5,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=p(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,a.A)(this,"View"),this.init()},init:function(){this.setDefaults(),this.scaleSettings={}},setDefaults:function(){var t=this;this.featureMargin=this.featureMargin||{top:3,right:1,bottom:1,left:0},["top","right","bottom","left"].forEach(function(e){"number"!=typeof t.featureMargin[e]&&(t.featureMargin[e]=0)}),this.context=this.browser.jQuery("<canvas>")[0].getContext("2d"),this.featureHeight=void 0!==this.featureHeight?this.featureHeight:this.prop("defaultHeight"),this.font="".concat(this.fontWeight," ").concat(this.fontHeight,"px ").concat(this.fontFamily),this.labelUnits=["bp","kb","Mb","Gb","Tb"],this.context.font=this.font,this.labels&&"overlay"!==this.labels&&(this.depth||"labels"===this.bump)&&(this.labels="separate")},setScaleSettings:function(t){var e=this.browser.chr;if(this.scaleSettings[e]||(this.scaleSettings[e]={}),!this.scaleSettings[e][t]){var n=new(s());this.scaleSettings[e][t]={imgContainers:this.browser.jQuery(),featurePositions:n,labelPositions:"separate"===this.labels?new(s()):n}}return this.scaleSettings[e][t]},roundPixelValue:function(t){return this.precisionFactor?Math.round(t*this.precisionFactor)/this.precisionFactor:t},scaleFeatures:function(t,e){var n=this,i=this.roundPixelValue(Math.max(e,this.widthCorrection));return t.forEach(function(t){t.position||(t.position={}),t.position[e]||(t.position[e]={start:n.roundPixelValue(t.start*e),width:Math.max(n.roundPixelValue((t.end-t.start)*e+i),n.minScaledWidth),height:t.height||n.featureHeight}),t.subFeatures&&(t.subFeatures.forEach(function(n){void 0===n.height&&(n.height=t.position[e].height)}),n.scaleFeatures(t.subFeatures,e))}),t},positionFeatures:function(t,e){var n=this;return e.margin=this.prop("margin"),t.forEach(function(t){return n.positionFeature(t,e)}),e.width=Math.ceil(e.width),e.height=Math.ceil(e.height),e.featureHeight=Math.max(Math.ceil(e.featureHeight),this.prop("resizable")?Math.max(this.prop("height"),this.prop("minLabelHeight")):0),e.labelHeight=Math.ceil(e.labelHeight),t},positionFeature:function(t,e){var n=this,i=e.scale,r=this.scaleSettings[t.chr][i];if(r){var o=t.subFeatures||[];if(t.position[i].X=t.position[i].start-e.scaledStart,o.forEach(function(t){t.position[i].x=t.position[i].start-e.scaledStart,n.subFeatureJoinStyle&&(t.position[i].join=t.position[i].join||{},t.position[i].join.x=t.position[i].start+t.position[i].width-e.scaledStart)}),this.alwaysReposition||!t.position[i].positioned){if(t.position[i].H=t.position[i].height+this.featureMargin.bottom,t.position[i].W=t.position[i].width+(t.marginRight||this.featureMargin.right),t.position[i].Y=("number"==typeof t.position[i].y?t.position[i].y:"number"==typeof t.y?t.y*t.position[i].H:0)+(t.marginTop||this.featureMargin.top),t.label){"string"==typeof t.label&&(t.label=t.label.split("\n"));var s=this.context;t.labelHeight=t.labelHeight||(this.fontHeight+2)*t.label.length,t.labelWidth=t.labelWidth||Math.max.apply(Math,f(t.label.map(function(t){return Math.ceil(s.measureText(t).width)})))+1,!0===this.labels?(t.position[i].H+=t.labelHeight,t.position[i].W=Math.max(t.labelWidth,t.position[i].W)):"separate"!==this.labels||t.position[i].label||(t.position[i].label={x:t.position[i].start,y:t.position[i].Y,w:t.labelWidth,h:t.labelHeight})}var a={x:t.position[i].start,y:t.position[i].Y,w:t.position[i].W,h:t.position[i].H+(t.marginTop||this.featureMargin.top)};t.position[i].bounds=a,!0===this.bump&&this.bumpFeature(a,t,i,r.featurePositions),r.featurePositions.insert(a,t),t.position[i].bottom=t.position[i].Y+a.h+e.margin,t.position[i].positioned=!0}var l=!(!this.subFeatureJoinStyle||!o.length)&&{height:Math.max.apply(Math,f(o.map(function(t){return t.fake?0:t.position[i].height})))/2*(t.strand>0?-1:1),y:t.position[i].Y+t.position[i].height/2};o.forEach(function(e,n){e.position[i].y=t.position[i].Y+(t.position[i].height-e.position[i].height)/2,l&&o[n+1]&&Object.assign(e.position[i].join,h({width:o[n+1].position[i].x-e.position[i].join.x},l))}),"separate"===this.labels&&t.position[i].label&&(!this.alwaysReposition&&t.position[i].label.positioned||(this.bumpFeature(t.position[i].label,t,i,r.labelPositions),t.position[i].label.bottom=t.position[i].label.y+t.position[i].label.h+e.margin,t.position[i].label.positioned=!0,r.labelPositions.insert(t.position[i].label,t)),e.labelHeight=Math.max(e.labelHeight,t.position[i].label.bottom)),e.featureHeight=Math.max(e.featureHeight,t.position[i].bottom),e.height=Math.max(e.height,e.featureHeight+e.labelHeight)}},bumpFeature:function(t,e,n,i){for(var r=this.scaleSettings[e.chr][n],o=i===r.labelPositions&&i!==r.featurePositions,s=!0,a=0;s;){if(this.depth&&++a>=this.depth){if(!o)for(var l=r.featurePositions.search(t),c=l.length;c--;)if(!1!==l[c].position[n].visible){e.position[n].visible=!1;break}break}var h=i.search(t)[0];h&&h.id!==e.id?t.y=h.position[n][o?"label":"bounds"].y+h.position[n][o?"label":"bounds"].h:s=!1}o||(e.position[n].Y=t.y)},draw:function(t,e,n,i){var r=this;t.forEach(function(t){if(!1!==t.position[i].visible){var o=h(h({},t),{},{x:t.position[i].X,y:t.position[i].Y,width:t.position[i].width,height:t.position[i].height,labelPosition:t.position[i].label});r.drawFeature(o,e,n,i),o.legend!==t.legend&&(t.legend=o.legend,t.legendColor=o.color)}})},drawFeature:function(t,e,n,i){!1===t.color||t.color||this.setFeatureColor(t),t.subFeatures?this.drawSubFeatures(t,e,n,i):((t.x<0||t.x+t.width>this.width)&&this.truncateForDrawing(t),!1!==t.color&&(e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height)),!0===t.clear&&e.clearRect(t.x,t.y,t.width,t.height),t.borderColor&&(e.strokeStyle=t.borderColor,e.strokeRect(t.x,Math.floor(t.y)+.5,t.width,t.height))),this.labels&&t.label&&this.drawLabel(t,n,i),t.decorations&&this.decorateFeature(t,e,i)},drawSubFeatures:function(t,e,n,i){var r=this,o=this.browser.jQuery.extend(!0,{},t,{subFeatures:!1,label:!1}),s=this.browser.jQuery.extend(!0,[],t.subFeatures),a=t.joinColor||t.color;s.forEach(function(t){t.fake||r.drawFeature(h(h(h({},o),t.position[i]),t),e,n,i),t.position[i].join&&t.position[i].join.width>0&&r.drawSubFeatureJoin(h({color:a},t.position[i].join),e)})},drawLabel:function(t,e,n){var i=this,r=t.untruncated,o=(r||t).width;if(!("overlay"===this.labels&&t.labelWidth>=Math.floor(o))){t.labelPosition&&(e.labelPositions=e.labelPositions||new(s())),"string"==typeof t.label&&(t.label=[t.label]);var a,l,c,h=(r||t).x,u=this.repeatLabels&&Math.ceil((o-Math.max(n,1)-("overlay"===this.labels?t.labelWidth:0))/this.width)||1,f=o/u;this.repeatLabels&&(n>1||"overlay"!==this.labels)&&(f=this.browser.length*n,u=Math.ceil(o/f)),t.labelColor||this.setLabelColor(t),e.fillStyle=t.labelColor,"overlay"===this.labels?(a=[t.label.join(" ")],l=t.y+(t.height+1)/2,c=0):(a=t.label,l=t.labelPosition?t.labelPosition.y:t.y+t.height+this.featureMargin.bottom,c=this.fontHeight+2);var p="center"===e.textAlign?.5:0,d=t.labelWidth*p;u>1&&(p+=Math.max(Math.floor(-(t.labelWidth+h)/f),0));for(var g=function(){var r=h+p*f;if(r+t.labelWidth>=0){if(r-d>i.width||p>=1&&r+t.labelWidth>t.position[n].X+t.position[n].width)return 1;a.forEach(function(i,o){var s=l+o*c;e.labelPositions&&e.labelPositions.search({x:r,y:s,w:t.labelWidth,h:c}).length?t.position[n].label.visible=!1:(e.fillText(i,r,s),e.labelPositions&&e.labelPositions.insert({x:r,y:s,w:t.labelWidth,h:c},i))})}};p<u&&!g();p++);}},setFeatureColor:function(t){t.color=this.color},setLabelColor:function(t){t.labelColor=this.fontColor||t.color||this.color},shadeColor:function(t,e){var n=parseInt(t.slice(1),16),i=n>>16,r=n>>8&255,o=255&n;return"#".concat((16777216+65536*(Math.round((255-i)*e)+i)+256*(Math.round((255-r)*e)+r)+(Math.round((255-o)*e)+o)).toString(16).slice(1))},truncateForDrawing:function(t){var e=Math.min(Math.max(t.x,-1),this.width+1),n=t.x-e+t.width;n+e>this.width&&(n=this.width-e+1),t.untruncated={x:t.x,width:t.width},t.x=e,t.width=Math.max(n,0)},drawSubFeatureJoin:function(t,e){var n=this.truncateSubFeatureJoinForDrawing(t);if(n){var i=e.lineWidth;switch(e.strokeStyle=t.color,e.lineWidth=this.subFeatureJoinLineWidth,e.beginPath(),e.moveTo(n.x1,n.y1),this.subFeatureJoinStyle){case"line":e.lineTo(n.x3,n.y1);break;case"peak":e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3);break;case"curve":e.quadraticCurveTo(n.x2,n.y2,n.x3,n.y3)}e.stroke(),e.lineWidth=i}},truncateSubFeatureJoinForDrawing:function(t){var e=t.y,n=e;"line"===this.subFeatureJoinStyle&&(this.truncateForDrawing(t),e+=.5);var i,r,o=t.x,s=t.x+t.width;if(s<0||o>this.width)return!1;if("peak"===this.subFeatureJoinStyle){var a=(o+s)/2;i=a;var l=((r=t.y+t.height)-e)/(a-o);a<0?(r=t.y+l*s,i=0):a>this.width&&(r=t.y+l*(this.width-t.x),i=this.width),o<0&&(e=a<0?r:t.y-l*t.x,o=0),s>this.width&&(n=a>this.width?r:r-l*(this.width-i),s=this.width)}else"curve"===this.subFeatureJoinStyle&&(i=t.x+t.width/2,r=t.y+t.height);return{x1:o,y1:e,x2:i,y2:r,x3:s,y3:n}},formatLabel:function(t){var e=Math.floor((t.toString().length-1)/3),n=this.labelUnits[e];return t/=Math.pow(10,3*e),"".concat(Math.floor(t)).concat("bp"===n?"":".".concat((t.toString().split(".")[1]||"").concat("00").substring(0,2))," ").concat(n)},drawBackground:function(){},decorateFeature:function(){},destroy:function(){delete this.scaleSettings}})},2425:function(t,e,n){"use strict";n.r(e);var i=n(3257);e.default=i.default.extend({featureHeight:5,labels:!0,repeatLabels:!0,bump:!0})},9954:function(t,e,n){"use strict";n.r(e);var i=n(2425);e.default=i.default.extend({setFeatureColor:function(t){t.color="#000000";var e=t.logic_name||"",n=(t.biotype||"").toLowerCase();0===e.indexOf("ensembl_havana")?(t.color="#CD9B1D",t.labelColor="#B78000",t.legend="Merged Ensembl/Havana"):!{sense_intronic:1,sense_overlapping:1,processed_transcript:1,nonsense_mediated_decay:1,non_stop_decay:1,antisense:1,retained_intron:1,tec:1,non_coding:1,ambiguous_orf:1,disrupted_domain:1,"3prime_overlapping_ncrna":1,protein_coding_CDS_not_defined:1}[n]?t.biotype.indexOf("protein_coding")>-1?(t.color="#A00000",t.legend="Protein coding"):"artifact"===t.biotype||n.indexOf("pseudogene")>-1?(t.color="#666666",t.legend="Pseudogene"):/rna/.test(n)||"ribozyme"===n?(t.color="#8B668B",t.legend="RNA gene"):/^tr(?:_.+)?_gene$/.test(n)?(t.color="#CD6600",t.legend="TR gene"):/^ig_.+_gene$/.test(n)?(t.color="#8B4500",t.legend="IG gene"):"lrg_gene"===n&&(t.color="#8080FF",t.legend="LRG gene"):(t.color="#0000FF",t.legend="Processed transcript"),t.labelColor=t.labelColor||t.color}})},1661:function(t,e,n){"use strict";n.r(e);var i=n(3257);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({featureMargin:{top:0,right:0,bottom:0,left:0},colors:{default:"#CCCCCC",A:"#73E973",T:"#DE4C61",G:"#FFFF77",C:"#688EC0"},labelColors:{default:"#000000",T:"#FFFFFF",C:"#FFFFFF"},labels:"overlay",setDefaults:function(){this.base.apply(this,arguments);var t=this.prop("lowerCase");this.labelYOffset="number"==typeof this.labelYOffset?this.labelYOffset:(this.featureHeight+1)/2,this.widestLabel="string"==typeof this.widestLabel?this.widestLabel:t?"g":"G",this.labelWidth={},this.labelWidth[this.widestLabel]=Math.ceil(this.context.measureText(this.widestLabel).width)+1,t&&[this.colors,this.labelColors].forEach(function(t){return Object.entries(t).forEach(function(e){var n=r(e,2),i=n[0],o=n[1];t[i.toLowerCase()]=o})})},draw:function(t,e,n,i){var r=this;e.textBaseline="middle",e.textAlign="center";var o=Math.max(i,this.minScaledWidth);t.forEach(function(t){return r.drawSequence(t,e,i,o)})},drawSequence:function(t,e,n,i){for(var r=this.labelWidth[this.widestLabel]<i-1,o=0;o<t.sequence.length;o++){var s=t.position[n].X+o*n;if(!(s<-n||s>e.canvas.width)){var a=t.sequence.charAt(o);e.fillStyle=this.colors[a]||this.colors.default,e.fillRect(s,t.position[n].Y,i,this.featureHeight),r&&(e.fillStyle=this.labelColors[a]||this.labelColors.default,e.fillText(a,s+i/2,t.position[n].Y+this.labelYOffset))}}}})},472:function(t,e,n){"use strict";n.r(e);var i=n(1661);e.default=i.default.extend({featureHeight:15,featureMargin:{top:0,right:0,bottom:4,left:0},bump:!0,showLegend:!1,positionFeature:function(t,e){var n=t.position[e.scale];t.alt_allele&&(n.positioned||(n.reference={end:n.start+t.ref_allele.length*e.scale}),n.reference.x=n.reference.end-e.scaledStart),this.base(t,e)},bumpFeature:function(t,e){if(e.alt_allele){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];this.base.apply(this,[t,e].concat(i))}},draw:function(t,e,n,i){var r={seq:[],snv:[]};t.forEach(function(t){r[t.alt_allele?"snv":"seq"].push(t)}),this.base(r.seq,e,n,i),this.highlightSNVs(r.snv,e,i),this.base(r.snv,e,n,i),this.outlineSNVs(r.snv,e,i)},highlightSNVs:function(t,e,n){var i=this;t.forEach(function(t){var r=t.position[n],o=[r.X,r.reference.x,r.X+r.width];if(!(o[2]<0||o[0]>i.width)){(o[0]<0||o[2]>i.width)&&i.truncateForDrawing(o);var s=[0,r.Y-i.featureMargin.bottom/2,r.Y,r.Y+i.featureHeight];t.highlightColor||i.setHighlightColor(t),e.strokeStyle=e.fillStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[0],s[0]),e.lineTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[2],s[2]),e.lineTo(o[2],s[3]),e.lineTo(o[0],s[3]),e.closePath(),e.stroke(),e.lineWidth=1,e.globalAlpha=.5,e.fill(),e.globalAlpha=1}})},outlineSNVs:function(t,e,n){var i=this;t.forEach(function(t){var r=t.position[n],o=[r.X,r.X+r.width],s=[r.Y,r.Y+i.featureHeight];e.strokeStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[0],s[1]),e.lineTo(o[0],s[0]),e.stroke(),e.lineWidth=1})},truncateForDrawing:function(t){for(var e=0;e<t.length;e++)t[e]=Math.min(Math.max(t[e],-1),this.width+1)},setHighlightColor:function(t){t.highlightColor="-"===t.alt_allele||t.alt_allele.length<t.ref_allele.length?"#D31D00":"#1DD300"}})},7550:function(t,e,n){"use strict";n.r(e);var i=n(3257);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({featureHeight:12,utrHeight:7,labels:!0,repeatLabels:!0,bump:!0,subFeatureJoinStyle:"curve",scaleFeatures:function(t,e){var n=this;return t.forEach(function(t){var e=t.subFeatures||[];e.length&&(e.forEach(function(t){t.utr&&(t.height=n.utrHeight)}),t.height=Math.max.apply(Math,r(e.map(function(t){return t.fake?0:t.height||0}).concat(n.featureHeight))))}),this.base(t,e)}})},6305:function(t,e,n){"use strict";n.r(e);var i=n(9954),r=n(7550);e.default=r.default.extend({setFeatureColor:function(t){i.default.prototype.setFeatureColor(t),(t.subFeatures||[]).forEach(function(e){e.utr&&(e.color=!1,e.borderColor=t.color)})}})},2624:function(t,e,n){"use strict";n.r(e);var i=n(6153);e.default=i.Ay.extend({id:"chromosome",margin:1,featureMargin:{top:0,right:0,bottom:0,left:0},labels:"overlay",url:!1,allData:!0,colors:{acen:"#708090",gneg:"#FFFFFF",gpos:"#000000",gpos100:"#000000",gpos25:"#D9D9D9",gpos33:"#BFBFBF",gpos50:"#999999",gpos66:"#7F7F7F",gpos75:"#666666",gvar:"#E0E0E0",stalk:"#708090"},labelColors:{gneg:"#000000",gvar:"#000000",gpos25:"#000000",gpos33:"#000000"},getData:function(t,e,n){var i=this.browser.jQuery;return this.receiveData(i.extend(!0,[],this.browser.genome[t].bands),t,e,n),i.Deferred().resolveWith(this)},insertFeature:function(t){t.label="acen"!==t.type&&"stalk"!==t.type&&t.id,t.menuTitle=t.id?t.chr+t.id:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.color=this.prop("colors")[t.type]||"#FFFFFF",t.labelColor=this.prop("labelColors")[t.type]||"#FFFFFF",t.id&&(t.id=t.chr+t.id),this.base(t)},drawFeature:function(t,e,n,i){if(e.fillStyle=t.color,e.strokeStyle="#000000","acen"===t.type)e.beginPath(),this.drawnAcen?(e.moveTo(t.x+t.width,.5),e.lineTo(t.x,(t.height+.5)/2),e.lineTo(t.x+t.width,t.height+.5)):(e.moveTo(t.x,.5),e.lineTo(t.x+t.width,(t.height+.5)/2),e.lineTo(t.x,t.height+.5),this.drawnAcen=!0),e.fill(),e.stroke();else if("stalk"===t.type)for(var r=0;r<2;r++)e.beginPath(),e.moveTo(t.x,.5),e.lineTo(t.x+.25*t.width,.25*t.height+.5),e.lineTo(t.x+.75*t.width,.25*t.height+.5),e.lineTo(t.x+t.width,.5),e[r?"moveTo":"lineTo"](t.x+t.width,t.height+.5),e.lineTo(t.x+.75*t.width,.75*t.height-.5),e.lineTo(t.x+.25*t.width,.75*t.height-.5),e.lineTo(t.x,t.height+.5),e[r?"stroke":"fill"]();else{this.base(t,e,n,i),e.beginPath();var o=this.browser.getChromosomeSize(t.chr);if(1===t.start||t.end===o){if(1===t.start){var s=t.x+t.width-(t.end===o?5:0);e.clearRect(0,0,5,t.height+.5),e.fillStyle=t.color,e.moveTo(5,.5),e.lineTo(s,.5),e.moveTo(5,t.height+.5),e.lineTo(s,t.height+.5),e.moveTo(5,.5),e.bezierCurveTo(-1,.5,-1,t.height+.5,5,t.height+.5),e.fill()}t.end===o&&(e.clearRect(t.x+t.width-5,0,5,t.height+.5),1!==t.start&&(e.fillStyle=t.color,e.moveTo(t.x,.5),e.lineTo(t.x+t.width-5,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width-5,t.height+.5)),e.moveTo(t.x+t.width-5,.5),e.bezierCurveTo(this.width+1,.5,this.width+1,t.height+.5,t.x+t.width-5,t.height+.5),e.fill())}else e.moveTo(t.x,.5),e.lineTo(t.x+t.width,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width,t.height+.5);e.stroke()}},drawLabel:function(t){if(1!==t.start&&t.end!==this.browser.getChromosomeSize(t.chr)||!(t.labelWidth>=Math.floor(t.width-5))){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.base.apply(this,[t].concat(n))}},populateMenu:function(t){return{title:t.menuTitle,Position:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)}}})},2254:function(t,e,n){"use strict";n.r(e);var i=n(6153);e.default=i.Ay.extend({setInterface:function(){this.base(),this._interface.isLocal="model",this._interface.dataFile="model",this._interface.indexFile="model",this._interface.largeFile="model"}})},3593:function(t,e,n){"use strict";n.r(e);var i=n(439),r=n(1661),o=n(2254);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=o.default.extend({name:"BAM",indexExt:".bai",threshold:1e5,largeFile:!0,model:i.default,view:r.default.extend({bump:!0,autoHeight:!0}),click:function(){var t=this.base.apply(this,arguments);return t&&t.addClass("gv-wrap-values"),t},populateMenu:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({title:t.readName},t);return delete e.sequence,delete e.id,this.base(e)}})},3350:function(t,e,n){"use strict";n.r(e);var i=n(4976),r=n(2254);e.default=r.default.extend({name:"BED",model:i.default,bump:!0,featureHeight:10,thickHeight:10,thinHeight:7,subFeatureJoinStyle:"curve",populateMenu:function(t){var e=[!1,!1,!1,"name","score","strand","thickStart","thickEnd","itemRgb","blockCount","blockSizes","blockStarts"];return t.originalFeature.reduce(function(t,n,i){return e[i]&&(t[e[i]]=n),t},{title:'<a target="_blank" href="https://genome.ucsc.edu/FAQ/FAQformat.html#format1">BED feature details</a>',Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)})}})},148:function(t,e,n){"use strict";n.r(e);var i=n(9292),r=n(3541),o=n(4976),s=n(3350);e.default=s.default.extend({name:"bigbed",model:o.default.extend({getData:function(t,e,n){var o=this,s=this.browser.jQuery,a=s.Deferred();this.bigbedFile||(this.bigbedFile=this.bigbedFile||(this.url?new r.SX(this.url):new r.cU(this.track.dataFile)));var l=s.Deferred().done(function(){o.bwReader.getValues(t,e,n,function(i,r){r||(i.sort(function(t,e){return t.start-e.start}),i.length?o.receiveData(i,t,i[0].start,i[i.length-1].end):o.receiveData(i,t,e,n)),a.resolve()})});return this.bwReader?l.resolve():new i.A(this.bigbedFile,function(i){if(!i)return o.receiveData([],t,e,n),a.resolve();o.bwReader=i,l.resolve()}),a}})})},5330:function(t,e,n){"use strict";n.r(e);var i=n(9292),r=n(3541),o=n(1216);e.default=o.default.extend({name:"bigwig",height:100,setDefaults:function(){this.bwReader=null,this.base.apply(this,arguments)},getData:function(t,e,n){var o=this,s=this.browser.jQuery.Deferred();this.bigwigFile||(this.bigwigFile=this.bigwigFile||(this.url?new r.SX(this.url):new r.cU(this.track.dataFile)));var a=this.browser.jQuery.Deferred().done(function(){o.prop("bwReader").getValues(t,e,n,function(i,r){r||(i.sort(function(t,e){return t.start-e.start}),i.length?o.receiveData(i,t,i[0].start,i[i.length-1].end):o.receiveData(i,t,e,n)),s.resolve()})});return this.prop("bwReader")?a.resolve():new i.A(this.bigwigFile,function(i){if(!i)return o.receiveData([],t,e,n),s.resolve();o.prop("bwReader",i),a.resolve()}),s}})},1200:function(t,e,n){"use strict";n.r(e);var i=n(1290),r=n(2254);e.default=r.default.extend({name:"GFF",model:i.default,bump:!0,height:100,featureHeight:5})},8598:function(t,e,n){"use strict";n.r(e);var i=n(2715),r=n(3257),o=n(1661),s=n(2254);e.default=s.default.extend({name:"VCF",indexExt:".tbi",model:i.default,autoHeight:!1,maxQual:void 0,afterSetMVC:function(){this.prop("gz")&&this.prop("threshold",1e5)},populateMenu:function(t){return{title:'<a target="_blank" href="https://www.internationalgenome.org/wiki/Analysis/vcf4.0">VCF feature details</a>',CHROM:t.originalFeature[0],POS:t.originalFeature[1],ID:t.originalFeature[2],REF:t.originalFeature[3],ALT:t.originalFeature[4],QUAL:t.originalFeature[5],FILTER:t.originalFeature[6],INFO:t.originalFeature[7].split(";").join("<br />")}},1:{view:o.default.extend({bump:!0,labels:!1,featureMargin:{top:0,right:0,bottom:0,left:0},draw:function(t,e,n,i){this.base(t,e,n,i),this.highlightRef(t,e,i)},highlightRef:function(t,e,n){e.strokeStyle="black",t.forEach(function(t){"REF"===t.allele&&e.strokeRect(t.position[n].X,t.position[n].Y,t.position[n].width,t.position[n].height)})}})},1e3:{view:r.default.extend({bump:!1,labels:!1,drawFeature:function(t){var e=this.prop("maxQual");if(e&&!t.color){var n=Math.min(255,Math.floor(255*(t.originalFeature[5]||0)/e))-127,i=n>0?255:127+n,r=n<0?255:127-n;t.color="rgb(".concat(i,",").concat(r,",0)")}for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];this.base.apply(this,[t].concat(s))}})}})},728:function(t,e,n){"use strict";n.r(e);var i=n(4734),r=n(1216);e.default=r.default.extend({model:i.default,name:"wig",height:100})},4529:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(6448),o=n(1331),s=n(9954),a=n(6305),l=n(6829);e.default=i.Ay.extend({id:"genes",name:"Genes",height:200,legend:l.default,populateMenu:function(t){var e="https://www.ensembl.org/Homo_sapiens/".concat("transcript"===t.feature_type?"Transcript":"Gene","/Summary?").concat("transcript"===t.feature_type?"t":"g","=").concat(t.id),n={title:'<a target="_blank" href="'.concat(e,'">').concat(t.external_name?"".concat(t.external_name," (").concat(t.id,")"):t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Source:t.source,Biotype:t.biotype};return"transcript"===t.feature_type&&(n.Gene='<a target="_blank" href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g='.concat(t.Parent,'">').concat(t.Parent,"</a>")),n},2e6:{labels:!1},1e5:{labels:!0,model:r.default,view:s.default},1:{labels:!0,model:o.default,view:a.default}})},3330:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return c},Model:function(){return h},View:function(){return u}});var i=n(6153),r=n(6829);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=i.xI.extend({setYRange:function(t,e){this.browser.dragging||(this.prop("showZeroY")?this.prop("range",[Math.min(t,0),Math.max(e,0)]):this.prop("range",[t,e]),this.track.reset())},yMinMaxFromFeatures:function(t){var e=Infinity,n=-Infinity;return"Line"===this.prop("type")?t.forEach(function(t){return t.coords.forEach(function(t){var i=a(t,2)[1];isNaN(i)||(e=Math.min(e,i),n=Math.max(n,i))})}):t.forEach(function(t){var i=t.height;isNaN(i)||(e=Math.min(e,i),n=Math.max(n,i))}),{min:e=Infinity===e?0:e,max:n=-Infinity===n?0:n}},afterSetName:function(){this.minLabelHeight=Math.max(this.minLabelHeight,2*this.prop("fontHeight")+this.prop("margin")+this.prop("marginTop"))},visibleFeatureHeight:function(){if("auto"===this.prop("rescaleable")){var t=this.track.getYScale(),e=this.yMinMaxFromFeatures(this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end));return Math.ceil(Math.max(t*(e.max-e.min),this.prop("hideEmpty")?0:this.minLabelHeight))}return this.prop("height")},resize:function(){var t,e,n=this.prop("height"),i=this.base.apply(this,arguments),r=this.prop("height");if(n!==r)if(!0===this.prop("rescaleable")){var o=this.prop("range"),s=Math.max.apply(null,o.map(function(t){return(t.toString().split(".")[1]||"").length})),a=o[1]-o[0],l=Math.ceil((a*(r/n)-a)/2);this.setYRange(parseFloat((o[0]-l).toFixed(s),10),parseFloat((o[1]+l).toFixed(s),10))}else this.track.reset();return null===(t=this.prop("expander"))||void 0===t||t.hide(),null===(e=this.prop("resizer"))||void 0===e||e.removeClass("gv-resizer-expander"),i},autoResize:function(){if("auto"===this.prop("rescaleable")){var t=this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end);if(t.length){var e=this.prop("range"),n=this.yMinMaxFromFeatures(t);if(n.min||n.max){var i=Math.max.apply(null,e.map(function(t){return(t.toString().split(".")[1]||"").length})),r=Math.pow(10,i),o=parseFloat((Math.floor(n.min*r)/r).toFixed(i),10),s=parseFloat((Math.ceil(n.max*r)/r).toFixed(i),10);this.prop("showZeroY")&&(o=Math.min(o,0),s=Math.max(s,0)),o===s&&s++,o===e[0]&&s===e[1]||this.setYRange(o,s)}}}else this.base.apply(this,arguments)},makeFirstImage:function(){var t=this;return this.base.apply(this,arguments).done(function(){t.prop("yAxisPlaceholder").hide(),t.prop("offsetContainer").prepend(t.prop("guidelinesCanvas")).before(t.prop("yAxisCanvas").removeClass("gv-loading"))})},typeWrapper:function(t){for(var e,n=c[this.prop("type")]||c.prototype,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return(e=n[t]||c.prototype[t]).call.apply(e,[this].concat(r))},click:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["click"].concat(e))},getClickedFeatures:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["getClickedFeatures"].concat(e))},populateMenu:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["populateMenu"].concat(e))}}),h=i.Kx.extend({dataBuffer:{start:1,end:1},setLabelBuffer:function(){},sortFeatures:function(t){return t.sort(function(t,e){return t.start-e.start})}}),u=i.Ss.extend({featureMargin:{},featureDataSets:function(t){var e=this.prop("datasets").concat({name:"_default"}),n=e.reduce(function(t,e){var n=e.name;return Object.assign(t,s({},n,!0))},{});return{list:e,features:t.reduce(function(t,e){var i=n[e.dataset]?e.dataset:"_default";return t[i]=t[i]||[],t[i].push(e),t},{})}}});e.default=i.Ay.extend({controller:c,margin:10,invert:!0,yAxisLabels:void 0,yRange:void 0,showZeroY:!0,globalAlpha:1,axesSettings:{axisColor:"black",axisLabelColor:"black",scaleLineColor:"#E5E5E5"},datasets:[],legend:r.default,labels:!1,resizable:!0,rescaleableY:"auto",setDefaults:function(){this.range=this.yRange||[0,this.height],this.rescaleable=this.rescaleableY,this.browser.jQuery.isPlainObject(this.margin)&&(this.invert?(this.marginTop=this.margin.bottom,this.margin=this.margin.top):(this.marginTop=this.margin.top,this.margin=this.margin.bottom)),this.marginTop="number"==typeof this.marginTop?this.marginTop:this.margin,!1===this.resizable?this.resizable=this.rescaleable:"auto"===this.resizable&&(this.rescaleable="auto"),this.base.apply(this,arguments),this.legend&&!this.datasets.length&&(this.legend=!1),this.height+=this.marginTop,this.initialHeight+=this.marginTop},setHeight:function(t){return this.base(t,!0)},setMVC:function(){var t=this.browser.jQuery,e=this.controller instanceof i.xI,n=this.base.apply(this,arguments);if(!e){var r=this.prop("scrollContainer");this.yAxisPlaceholder=t('<div class="gv-image-container gv-loading">'),this.yAxisCanvas=t('<canvas class="gv-image-container gv-barchart-axis">').attr("width",this.width),this.guidelinesCanvas=t('<canvas class="gv-image-container gv-barchart-guide">').attr("width",this.width),this.disabled&&this.yAxisCanvas.add(this.guidelinesCanvas).attr("height",0),this.offsetContainer=this.browser.jQuery('<div class="gv-scroll-container-offset">').width(this.width).insertAfter(r).append(r).before(this.yAxisPlaceholder),this.drawAxes()}return n},afterSetMVC:function(){var t,e;null===(t=this.prop("heightToggler"))||void 0===t||t.addClass("gv-hidden"),null===(e=this.prop("resizer"))||void 0===e||e.off("click")},reset:function(){return this.drawAxes(),this.base.apply(this,arguments)},enable:function(){var t=this.disabled,e=this.base.apply(this,arguments);return t&&this.drawAxes(),e},getYScale:function(){var t=this.prop("range");return(this.prop("height")-this.prop("margin")-this.prop("marginTop"))/(t[1]-t[0])},drawAxes:function(){if(!this.prop("disabled")){var t,e=this.width,n=this.prop("height"),i=this.prop("invert"),r=this.prop("margin"),o=this.prop("marginTop"),s=this.prop("fontHeight"),a=this.prop("range"),l=this.prop("axesSettings"),c=this.getYScale(),h=this.prop("yAxisCanvas").attr("height",n)[0].getContext("2d"),u=this.prop("guidelinesCanvas").attr("height",n)[0].getContext("2d"),f=this.prop("yAxisLabels");if(!f){var p=Math.floor((n-r-o)/(2*s)),d=(a[1]-a[0])/p;f=[],d!==Math.round(d)&&(t=Math.max.apply(null,a.map(function(t){return(t.toString().split(".")[1]||"").length}))+1);for(var g=0;g<=p;g++)f.push((a[0]+d*g)[t?"toFixed":"toString"](t))}var m=Math.max.apply(null,f.map(function(t){return h.measureText(t).width}))+10;this.prop("offsetContainer").css("marginLeft",m).width(e-m),this.prop("scrollContainer").css("marginLeft",-m),this.prop("yAxisPlaceholder").width(m).show(),h.fillStyle=l.axisColor,h.fillRect(m-1,i?r:o,1,n-r-o),u.fillStyle=l.scaleLineColor,h.fillStyle=l.axisLabelColor,h.textBaseline="middle",h.textAlign="right",f.forEach(function(t){var r=o+(parseFloat(t,10)-a[0])*c;r=i?n-r:r,u.fillRect(0,r,e,1),h.fillRect(m-4,r,4,1),h.fillText(t,m-6,r)});var v=-a[0]*c+o;u.fillStyle=l.axisColor,u.fillRect(0,i?n-v:v,e,1)}}})},1216:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return u},Model:function(){return f},View:function(){return p}});var i=n(3006),r=n.n(i),o=n(3330),s=n(3511);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={getClickedFeatures:function(t,e){var n=this.prop("marginTop")-this.prop("range")[0]*this.track.getYScale(),i=this.scale,r=i>1?0:1,o=this.prop("featuresByChr")[this.browser.chr].search({x:(t-r/2)/i,y:0,w:(1+r)/i,h:1});return o.length&&(e<n&&0===o.filter(function(t){return t.position[i].bounds.y+t.position[i].bounds.h<=e&&t.position[i].bounds.y>=e}).length||e>=n&&0===this.featurePositions.search({x:t,y:e,w:1,h:1}).length)&&(o=[]),o.length?[this.model.sortFeatures(o)]:[]},populateMenu:function(t){if(!t.length)return[];var e=t[0].start,n=t[t.length-1].end,i=t[0].start!==t[t.length-1].start,r={title:"".concat(t[0].chr,":").concat(e===n?e:"".concat(e,"-").concat(n))};function o(t){var e=t.map(function(t){return t.height}).sort(function(t,e){return t-e});return{avg:e.reduce(function(t,e){return t+e},0)/e.length,min:e[0],max:e[e.length-1]}}if(i)if(1===t.length){var s=o(t);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else{r=[r];var a,l=this.prop("datasets");l.length?(a=l.reduce(function(t,e){return Object.assign(t,h({},e.name,[]))},{}),t.forEach(function(t){a[t.dataset].push(t)})):(l=[{name:""}],a={"":t}),l.forEach(function(t){var e=o(a[t.name]);r.push(c({Average:e.avg,Min:e.min,Max:e.max},t.name?{title:t.name}:{}))})}else 1===t.length?r.Value=t[0].height:t.forEach(function(t){r[t.dataset]=t.height});return r}},f=o.Model.extend({insertFeature:function(t){var e=this.prop("datasets");e.length&&(t.legend=t.dataset,t.color=(e.filter(function(e){return e.name===t.dataset})[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.base.apply(this,[t].concat(i))}}),p=o.View.extend({scaleFeatures:function(t,e){var n=this.track.getYScale(),i=this.prop("marginTop")-this.prop("range")[0]*n;return(t=this.base(t,e)).forEach(function(t){t.position[e].height=t.height*n,t.position[e].y=i}),t},draw:function(t,e,n,i){var r=this,o=this.browser.jQuery,s=this.featureDataSets(t),a=this.prop("margin"),l=i<1?Math.ceil(1/i):0,h={color:this.color,globalAlpha:this.prop("globalAlpha")};s.list.forEach(function(t){var a=c(c({},h),t),u=t.name,f=o.extend(!0,[],s.features[u]||[]);if(f.length){if(l){for(var p=[],d=0,g=function(){for(var t=f[d].start,e=[];f[d]&&f[d].start-t<l;)e.push(f[d++]);var n=o.extend(!0,{},e[0],{height:e.reduce(function(t,e){return t+e.height},0)/e.length,end:e[e.length-1].end});["H","W","height","width"].forEach(function(t){n.position[i][t]=e.reduce(function(e,n){return e+n.position[i][t]},0)/e.length}),p.push(n)};d<f.length;)g();f=p}f.forEach(function(t){t.color=a.color}),e.globalAlpha=a.globalAlpha,r.base(f,e,n,i)}}),e.clearRect(0,0,this.width,this.prop("marginTop")-1),e.clearRect(0,this.prop("height")-a,this.width,a)}});e.default=o.default.extend({type:"Bar",model:f,view:p,threshold:5e5,1e4:c(c({},Object.keys(s.default.prototype).reduce(function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t},{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,n,i){var r=[];return t.forEach(function(t){for(var e=t.start;e<t.end;e++)r.push([e,t.height])}),this.base([{chr:e,start:n,end:i,coords:r}],e,n,i)}})}),5e4:c(c({},Object.keys(s.default.prototype).reduce(function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t},{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,n,i){return this.base([{chr:e,start:n,end:i,coords:t.map(function(t){return[t.start,t.height]})}],e,n,i)}})})})},3511:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return u},Model:function(){return f},View:function(){return p}});var i=n(1572),r=n(3330);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={click:function(){if(this.prop("showPopups")){var t;this.prop("menus").hide(),this.browser.closeMenus(this);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.default.prototype.click).call.apply(t,[this].concat(n))}},getClickedFeatures:function(t){var e=this,n={x:t,y:0,w:1,h:9e99},i=this.scale>1?0:1/this.scale,r=n.x/this.scale,o=i?[Math.floor(r-i),Math.ceil(r+i)]:[Math.floor(r),Math.floor(r)],s={};return this.featurePositions.search(n).forEach(function(t){s[t.dataset]||(s[t.dataset]=t)}),[this.model.sortFeatures(Object.keys(s).map(function(t){return e.browser.jQuery.extend(!0,{},s[t],{clickedCoords:s[t].coords.filter(function(t){return t[0]>=o[0]&&t[0]<=o[1]})})}))]},populateMenu:function(t){if(!t.length||!t[0].clickedCoords.length)return[];var e=t[0].clickedCoords[0][0],n=t[0].clickedCoords[t[0].clickedCoords.length-1][0],i=e!==n,r={title:"".concat(t[0].chr,":").concat(e===n?e:"".concat(e,"-").concat(n))};function o(t){var e=t.map(function(t){return t[1]}).sort(function(t,e){return t-e});return{avg:e.reduce(function(t,e){return t+e},0)/e.length,min:e[0],max:e[e.length-1]}}if(i)if(1===t.length){var s=o(t[0].clickedCoords);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else r=[r],t.forEach(function(e){var n=o(t.clickedCoords);r.push({title:e.dataset,Average:n.avg,Min:n.min,Max:n.max})});else 1===t.length?r.Value=t[0].clickedCoords[0][1]:t.forEach(function(t){r[t.dataset]=t.clickedCoords[0][1]});return r}},f=r.Model.extend({parseData:function(t,e,n,i){var r,o=[];return t.sort(function(t,e){return t.start-e.start||t.x-e.x}).forEach(function(t){if(void 0===t.y||t.coords)r&&(o.push(r),r=void 0),o.push(t);else{var e=function(t){return void 0!==t.x?t.x:t.start+(t.start===t.end?0:(t.end-t.start+1)/2)}(t);r&&r.coords[r.coords.length-1][0]===e-1?(r.coords.push([e,t.y]),r.end=e):(r&&o.push(r),r=c({coords:[[e,t.y]],start:e,end:e},t))}}),r&&o.push(r),this.base(o,e,n,i)},insertFeature:function(t){var e=this.prop("datasets");t.coords?t.coords=t.coords.map(function(e,n){return e.length>1?e:[t.start+n,e]}).filter(function(e){return e[0]>=t.start&&e[0]<=t.end}):t.y?t.coords=[[t.start+(t.start===t.end?0:(t.end-t.start+1)/2),t.y]]:t.coords=[],e.length&&(t.legend=t.dataset,t.color=(e.filter(function(e){return e.name===t.dataset})[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.base.apply(this,[t].concat(i))}}),p=r.View.extend({featureHeight:1,positionFeatures:function(t,e){var n=e.scale,i=this.track.getYScale(),r=this.prop("marginTop")-this.prop("range")[0]*i,o=(n>1?n/2:0)-e.scaledStart;function s(t){return[t[0]*n+o,t[1]*i+r]}return t.forEach(function(t){t.coordPositions=t.coords.map(s)}),e.featureHeight=this.prop("height"),this.base(t,e)},draw:function(t,e,n,i){if(t.length){var r=this.featureDataSets(t),o=this.prop("height"),a=this.prop("marginTop"),l=this.prop("margin"),h=Math.min(Math.max(a,a-this.prop("range")[0]*this.track.getYScale()),o-a),u=i<1?Math.floor(1/i):0,f={color:this.color,fill:this.prop("fill"),lineWidth:this.prop("lineWidth"),globalAlpha:this.prop("globalAlpha")};r.list.forEach(function(t){var n,i,o=c(c({},f),t),a=t.name;(r.features[a]||[]).forEach(function(t,l){var c=t.coordPositions;if(c.length){if(u){for(var f=[],p=0,d=0;d<c.length;){for(var g=t.coords[d][0],m=[];c[d]&&t.coords[d][0]-g<u;)m.push(c[d++]);var v=m.length;(m=m.reduce(function(t,e){return t[0]+=e[0],t[1]+=e[1],t},[0,0]))[0]=Math.round(m[0]/v),f.length&&m[0]===f[f.length-1][0]?f[f.length-1][1]=(f[f.length-1][1]*p+m[1])/(p+v):f.push([m[0],m[1]/v]),p=v}c=f,t.binnedCoords=c}e.fillStyle=e.strokeStyle=o.color,e.lineWidth=o.lineWidth,o.fill&&(e.globalAlpha=o.globalAlpha),e.beginPath(),o.fill?(e.moveTo(c[0][0],h),e.lineTo.apply(e,s(c[0]))):e.moveTo.apply(e,s(c[0])),c.forEach(function(t){return e.lineTo.apply(e,s(t))}),e.stroke(),o.fill&&(e.lineTo(c[c.length-1][0],h),e.closePath(),e.fill()),(n=l?r.features[a][l-l]:void 0)&&n.end===t.start-1&&(e.beginPath(),i=(u?n.binnedCoords:n.coordPositions).slice(-1),e.moveTo.apply(e,s(i[0])),e.lineTo.apply(e,s(c[0])),e.stroke(),o.fill&&(e.lineTo(c[0][0],h),e.lineTo(i[0][0],h),e.closePath(),e.fill())),o.fill&&(e.globalAlpha=1)}})}),e.clearRect(0,0,this.width,a-1),e.clearRect(0,o-l,this.width,l)}}});e.default=r.default.extend({type:"Line",showPopups:!0,fill:!1,lineWidth:1,model:f,view:p})},5034:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(4770),o=n(6815);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.Ay.extend({id:"highlights",unsortable:!0,fixedOrder:!0,repeatLabels:!0,resizable:!1,border:!1,alwaysReposition:!0,height:15,featureHeight:2,order:-1,orderReverse:9e99,controls:"off",colors:["#777777","#F08080","#3CB371","#6495ED","#FFA500","#9370DB"],labels:"separate",depth:1,featureMargin:{top:13,right:0,bottom:0,left:0},margin:0,constructor:function(){return this.colorIndex=0,this.base.apply(this,arguments)},addHighlights:function(t){var e=this;t.forEach(function(t){return e.model.insertFeature(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({label:"".concat(t.start,"-").concat(t.end)},t))}),this.reset()},removeHighlights:function(t){var e=this.prop("featuresByChr"),n=this.prop("featuresById");(t=t||Object.values(n)).forEach(function(t){if(!1!==t.removable){var i=e[t.chr],r={x:t.start,y:0,w:t.end-t.start+1,h:1},o=i.search(r).filter(function(e){return e.id===t.id});o.length&&i.remove(r,o[0]),delete n[t.id]}}),1===this.prop("strand")&&this.prop("reverseTrack").removeHighlights(t),this.reset()},controller:r.default.extend({setDefaults:function(){-1===this.prop("strand")&&(this.prop("labels",!1),this.prop("border",!1),this.prop("height",2),this.prop("featureMargin").top=0),this.base()},setName:function(t){-1===this.prop("strand")?(this.base(""),this.minLabelHeight=0,this.label.height(0)):this.base(t)},makeImage:function(t){1===this.prop("strand")&&(t.background="gv-full-height");var e=this.base(t);return t.container.addClass(t.background),e},render:function(t,e){this.base(t,e),e.siblings(".gv-labels").css("top",this.prop("featureHeight")-this.prop("featureMargin").top)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},populateMenu:function(t){var e=[];return t.length>1&&e.push({title:"Highlights"}),t.forEach(function(t){var n="".concat(t.start,"-").concat(t.end),i={title:t.label?t.label[0]:n,start:!1};i[i.title===n?"title":"Location"]="".concat(t.chr,":").concat(n),i['<a class="gv-focus-highlight" href="#" data-chr="'.concat(t.chr,'" data-start="').concat(t.start,'" data-end="').concat(t.end,'">Focus here</a>')]="",!1!==t.removable&&(i['<a class="gv-remove-highlight" href="#" data-id="'.concat(t.id,'">Remove this highlight</a>')]="",i['<a class="gv-remove-highlights" href="#">Remove all highlights</a>']=""),e.push(i)}),e},click:function(){var t=this.browser.jQuery;if(1===this.prop("strand")){var e=this.base.apply(this,arguments);if(e&&!e.data("highlightEvents")){var n=this.track;e.find(".gv-remove-highlight").on("click",function(){var i=t(this).data("id");return n.removeHighlights(e.data("feature").filter(function(t){return t.id===i})),!1}),e.find(".gv-remove-highlights").on("click",function(){return n.removeHighlights(),!1}),e.find(".gv-focus-highlight").on("click",function(){var e=t(this).data(),i=e.end-e.start+1,r=Math.max(Math.round(i/4),25);return n.browser.moveTo(e.chr,e.start-r,e.end+r,!0),!1}),e.data("highlightEvents",!0)}}},getClickedFeatures:function(t,e){var n={},i=this.scale,r=this.featurePositions.search({x:t,y:e,w:1,h:1}).concat(this.labelPositions.search({x:t,y:e,w:1,h:1}).filter(function(t){return!1!==t.position[i].label.visible})).filter(function(t){var e=!n[t.id];return n[t.id]=!0,e});return!!r.length&&[this.model.sortFeatures(r)]}}),model:o.default.extend({url:!1,insertFeature:function(t){if(t.id="".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.sort=t.start,!t.color){var e=this.prop("colors"),n=this.prop("colorIndex");t.color=e[n++],this.prop("colorIndex",e[n]?n:0)}this.featuresById[t.id]||this.base(t)},findFeatures:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.Kx.prototype.findFeatures).call.apply(t,[this].concat(n))}}),view:i.Ss.extend({positionFeatures:function(t,e){var n=this.base(t,e);return e.featureHeight=Math.max(e.featureHeight-this.featureMargin.top,0),n},draw:function(t,e,n,i){1===this.prop("strand")&&(e.fillStyle="#FFF",e.fillRect(0,0,e.canvas.width,e.canvas.height)),this.base(t,e,n,i)},drawBackground:function(t,e,n){var i=this,r=this.browser.jQuery;-1!==this.prop("strand")&&t.forEach(function(t){e.fillStyle=t.color,i.drawFeature(r.extend(!0,{},t,{x:t.position[n.scale].X,y:0,width:t.position[n.scale].width,height:e.canvas.height,color:i.shadeColor(e.fillStyle,.8),border:t.color,label:!1,decorations:!0}),e,!1,n.scale)})},decorateFeature:function(t,e){var n=t.x+.5,i=n+t.width,r=!1;e.strokeStyle=t.border,e.lineWidth=2,e.beginPath(),n>=0&&n<=this.width&&(e.moveTo(n,t.y),e.lineTo(n,t.y+t.height),r=!0),i>=0&&i<=this.width&&(e.moveTo(i,t.y),e.lineTo(i,t.y+t.height),r=!0),r&&e.stroke(),e.lineWidth=1}})})},6829:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return h},Model:function(){return u},View:function(){return f}});var i=n(6170);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=i.Controller.extend({init:function(){this.base(),this.container.addClass("gv-track-container-legend"),this.browser.legends[this.track.id]=this.track,this.track.setTracks()},destroy:function(){delete this.browser.legends[this.prop("id")],this.base()}}),u=i.Model.extend({findFeatures:function(){var t={x:this.browser.scaledStart,y:0,w:this.width},e=this.track.tracks.flatMap(function(e){var n=e.prop("featurePositions"),i=l(l({},t),{},{h:e.prop("height")});return n?n.search(i).concat(e.prop("labelPositions").search(i)):[]}).reduce(function(t,e){return Array.isArray(e.legend)?e.legend.forEach(function(e){t[e.label]=e.color}):e.legend&&(t[e.legend]=e.legendColor||e.color),t},{});return this.sortFeatures(Object.entries(e).map(function(t){var e=o(t,2);return[e[0],e[1]]}))},sortFeatures:function(t){return t.sort(function(t,e){return t[0].localeCompare(e[0])})}}),f=i.View.extend({textColor:"#000000",labels:"overlay",featureHeight:12,positionFeatures:function(t,e){var n=this;if(e.positioned)return t;var i=0,r=0,s=this.width/2,a=this.fontHeight+5,l=e.xOffset||0,c=[];return t.forEach(function(t){var e=o(t,2),h=e[0],u=e[1],f=i*s+5,p=r*a+5,d=n.context.measureText(h).width;c.push({x:f+l,y:p,width:20,height:n.featureHeight,color:u},{x:f+l+5+20,y:p,width:d+1,height:n.featureHeight,color:!1,labelColor:n.textColor,labelWidth:d,label:h}),2===++i&&(i=0,r++)}),e.height=this.prop("height",t.length?(r+(i?1:0))*a+5:0),e.width=this.width,e.positioned=!0,this.base(c,e)}});e.default=i.default.extend({isLegend:!0,unsortable:!0,lockToTrack:!0,removable:!1,controller:h,model:u,view:f,setDefaults:function(){this.order=void 0!==this.order?this.order:9e99,this.id=this.id||"legend",this.type=this.type||"legend",this.base()},setEvents:function(){this.browser.on({"afterAddTracks afterRemoveTracks":function(){this.destroying||(Object.values(this.legends).forEach(function(t){return t.setTracks()}),this.sortTracks())},afterRemoveTracks:function(t){this.destroying||(t.forEach(function(t){t.legendTrack&&0===t.legendTrack.tracks.length&&t.legendTrack.remove()}),Object.values(this.legends).forEach(function(t){return t.controller.makeImage({})}))},afterUpdateTrackOrder:function(t,e){var n=e.item.data("track"),i=this.legends[n.id]||n.legendTrack;i&&i.lockToTrack&&!1===i.unsortable&&(i.lockToTrack=!1),Object.values(this.legends).forEach(function(t){return t.updateOrder()}),this.sortTracks()}}),this.browser.on({afterPositionFeatures:function(t,e){var n=this.prop("legendTrack");n&&setTimeout(function(){n.controller.makeImage(e)},1)},afterResize:function(t,e){var n=this.prop("legendTrack");n&&!0===e&&n.controller.makeImage({})},afterCheckHeight:function(){var t=this.prop("legendTrack");t&&t.controller.makeImage({})},afterSetMVC:function(){var t=this.prop("legendTrack");t&&t.tracks.length&&(t.disable(),!1!==this.legend&&t.enable())}},this)},setTracks:function(){var t=this,e=this.type;this.tracks=this.browser.tracks.filter(function(n){return n.legendType===e&&(n.legendTrack=n.legendTrack||t,!0)}).flatMap(function(e){return[e].concat(e.prop("childTracks"),e.prop("parentTrack")).filter(function(e){return e&&e!==t&&!e.prop("disabled")})}),this.updateOrder(),"object"===r(this.controller)?this[this.tracks.length?"enable":"disable"]():this.disabled=!this.tracks.length},updateOrder:function(){if(this.lockToTrack){var t=this.tracks.filter(function(t){return!t.prop("parentTrack")});t.length&&(this.order=t[t.length-1].order+.1)}},enable:function(){this.base(),this.controller.makeImage({})},disable:function(){delete this.controller.stringified,this.base()}})},9897:function(t,e,n){"use strict";n.r(e);var i=n(3301),r=n.n(i),o=n(6153);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=o.Ay.extend({unsortable:!0,fixedOrder:!0,order:0,orderReverse:1e5,featureStrand:1,controls:"off",height:20,featureHeight:3,featureMargin:{top:0,right:0,bottom:2,left:0},margin:0,minPixPerMajor:100,color:"#000000",autoHeight:!1,labels:!0,bump:!1,resizable:!1,click:function(){},colors:{majorGuideLine:"#CCCCCC",minorGuideLine:"#E5E5E5"},setEvents:function(){var t=this.browser;function e(){t.jQuery(".gv-bg.gv-full-height",t.container).height(function(){return t.wrapper.outerHeight(!0)-t.jQuery(this).parents(".gv-track-container").position().top})}t.on("afterAddTracks",e),t.on("afterResize",this,e)},setScale:function(){for(var t,e=this.prop("width")/this.prop("minPixPerMajor"),n=5,i=-1,o="".concat(this.browser.start).split(""),s="".concat(this.browser.end).split(""),a={},l=o.length;l<s.length;l++)o.unshift("0");for(var c=s.length;c<o.length;c++)s.unshift("0");for(var h=0;h<o.length;h++)if((t=Number(s.slice(0,o.length-h).join(""))-Number(o.slice(0,o.length-h).join("")))&&t<=e){i=Number("1".concat(Array(h).fill("0").join("")));break}-1===i?(i=1===this.browser.length?1:Number("1".concat(Array(o.length).fill("0").join(""))),n=1):5*t<=e?(i/=5,n=2):4*t<=e?(i/=4,n=1):2*t<=e&&(i/=2),i=Math.max(i,1),a[this.browser.chr]=new(r()),this.prop("minorUnit",Math.max(i/n,1)),this.prop("majorUnit",i),this.prop("featuresByChr",a),this.prop("featuresById",{}),this.prop("seen",{}),this.base()},setFeatures:function(t,e,n){for(var i,r,o,s=this.prop("minorUnit"),a=this.prop("majorUnit"),l=this.prop("seen"),c=(e=Math.max(e-e%s-a,0))/s%2?1:-1,h=e;h<n+s;h+=s)c*=-1,l[h]||(l[h]=1,i={id:"".concat(t,":").concat(h),chr:t,strand:1,sort:h},r=h&&h%a===0,1===c&&(i.start=h,i.end=h+s-1),r&&((o=this.view.formatLabel(h))!==this.lastLabel&&(i.label=o,i.end||(i.start=h,i.end=h-1)),this.lastLabel=o),i.end&&this.model.insertFeature(i))},makeFirstImage:function(t){return this.base(-1===this.prop("strand")?this.track.forwardTrack.prop("scrollStart"):t)},makeImage:function(t){t.background="gv-guidelines gv-full-height",t.featureHeight=this.prop("height"),this.track.setFeatures(t.chr,t.start,t.end);var e=this.base(t);return t.container.addClass("gv-full-height"),e},makeReverseImage:function(t){this.imgContainers.push(t.container.clone().html(t.container.children(".gv-data").clone(!0).css({opacity:1,background:this.browser.wrapper.css("backgroundColor")}))[0]),this.scrollContainer.append(this.imgContainers)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},draw:function(t,e,n,i){var r,o,s,a=this.prop("minorUnit"),l=Math.ceil(a*i),c=t.length;for(e.textBaseline="top",e.fillStyle=this.color,this.guideLines={major:{}};c--;)r=t[c],s=(o=Math.round(r.position[i].X))+l-1,this.drawFeature(h(h({},r),{},{x:o,y:0,width:Math.ceil(r.position[i].width),height:this.featureHeight}),e,n,i),r.label&&(o>-1&&e.fillRect(o,this.featureHeight,1,this.featureHeight),this.guideLines.major[r.start]=!0),r.end<r.start&&(o--,s++),this.guideLines[r.start]=o,this.guideLines[r.start+a]=s;e.fillRect(0,0,e.canvas.width,1),e.fillRect(0,this.featureHeight,e.canvas.width,1)},drawBackground:function(t,e){var n=this;Object.entries(this.guideLines).forEach(function(t){var i=a(t,2),r=i[0],o=i[1];o>=0&&o<=n.width&&(e.fillStyle=n.track.colors[n.guideLines.major[r]?"majorGuideLine":"minorGuideLine"],e.fillRect(o,0,1,e.canvas.height))})},formatLabel:function(t){return this.prop("minorUnit")<1e3?t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):this.base(t)}})},7826:function(t,e,n){"use strict";n.r(e);var i=n(6170);e.default=i.default.extend({strand:1,color:"#000000",height:12,labels:"overlay",unsortable:!0,fixedOrder:!0,arrowWidth:7,resize:function(){},makeFirstImage:function(){this.prop("scaleline",!1),this.base.apply(this,arguments)},render:function(t,e){this.base(t,e),this.prop("drawnScale",e.data("scale"))},positionFeatures:function(t,e){var n=this.prop("scaleline");if(e.scale===this.drawnScale)return!1;if(n)return n;var i=this.prop("strand"),r=this.prop("height"),o=this.formatLabel(this.browser.length),s=this.context.measureText(o).width,a=10,l=r/2,c=(this.width-s-a)/2;if(i){var h=1===i?"Forward strand":"Reverse strand",u=this.context.measureText(h).width,f=1===i?this.width-this.prop("arrowWidth")-u-15:this.prop("arrowWidth")+5;n=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:c,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o},{x:f,y:0,width:u+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:u,label:h}]}else n=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:c,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o}];return this.base(this.prop("scaleline",n),e)},decorateFeature:function(t,e){var n=this.prop("strand"),i=this.prop("height"),r=this.prop("arrowWidth"),o=this.width;e.strokeStyle=this.color,[-1,1].filter(function(t){return!n||t===n}).forEach(function(t){var n=1===t?o-r:r,s=n+t*r;e.beginPath(),e.moveTo(n,.25*i),e.lineTo(s,.5*i),e.lineTo(n,.75*i),e.closePath(),e.stroke(),e.fill()})}})},6170:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return r},Model:function(){return o},View:function(){return s}});var i=n(6153),r=i.xI.extend({addDomElements:function(){this.base(),this.image=this.browser.jQuery("<img>").appendTo(this.imgContainer),this.container.toggleClass("gv-track-container gv-track-container-static").prepend(this.imgContainer),this.scrollContainer.add(this.messageContainer).remove()},reset:function(){delete this.stringified,this.base.apply(this,arguments)},setWidth:function(t){this.base(t),this.image.width=this.width},makeFirstImage:function(){this.base.apply(this,arguments),this.container.css("left",0),this.imgContainer.show()},makeImage:function(t){if(this.prop("disabled"))return this.browser.jQuery.Deferred().resolve();var e=this.view.positionFeatures(this.model.findFeatures(t.chr,t.start,t.end),t);if(e){var n=JSON.stringify(e);if(this.stringified!==n){var i=this.prop("height");t.width=this.width,t.featureHeight=i,this.render(e,this.image.data(t)),this.imgContainer.children(":last").show(),this.resize(i,void 0,!1),this.stringified=n}}return this.browser.jQuery.Deferred().resolve()}}),o=i.Kx.extend({url:!1,checkDataRange:function(){return!0}}),s=i.Ss.extend({featureMargin:{top:0,right:1,bottom:0,left:1},positionFeature:function(){},scaleFeatures:function(t){return t},draw:function(t,e,n,i){var r=this;t.forEach(function(t){return r.drawFeature(t,e,n,i)})}});e.default=i.Ay.extend({controls:"off",resizable:!1,controller:r,model:o,view:s})},3875:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(6829);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.Ay.extend({id:"dbSNP",name:"dbSNP",info:"All sequence variants from the database of Single Nucleotide Polymorphisms (dbSNP)",url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=variation;content-type=application/json",dataRequestLimit:5e6,threshold:1e5,labels:!1,legend:r.default,autoHeight:!0,colorMap:{transcript_ablation:"#ff0000",splice_acceptor_variant:"#FF581A",splice_donor_variant:"#FF581A",stop_gained:"#ff0000",frameshift_variant:"#9400D3",stop_lost:"#ff0000",start_lost:"#ffd700",transcript_amplification:"#ff69b4",inframe_insertion:"#ff69b4",inframe_deletion:"#ff69b4",missense_variant:"#ffd700",protein_altering_variant:"#FF0080",splice_region_variant:"#ff7f50",incomplete_terminal_codon_variant:"#ff00ff",stop_retained_variant:"#76ee00",synonymous_variant:"#76ee00",coding_sequence_variant:"#458b00",mature_miRNA_variant:"#458b00","5_prime_UTR_variant":"#7ac5cd","3_prime_UTR_variant":"#7ac5cd",non_coding_transcript_exon_variant:"#32cd32",intron_variant:"#02599c",NMD_transcript_variant:"#ff4500",non_coding_transcript_variant:"#32cd32",upstream_gene_variant:"#a2b5cd",downstream_gene_variant:"#a2b5cd",TFBS_ablation:"#a52a2a",TFBS_amplification:"#a52a2a",TF_binding_site_variant:"#a52a2a",regulatory_region_ablation:"#a52a2a",regulatory_region_amplification:"#a52a2a",feature_elongation:"#7f7f7f",regulatory_region_variant:"#a52a2a",feature_truncation:"#7f7f7f",intergenic_variant:"#636363"},insertFeature:function(t){t.color=this.prop("colorMap")[t.consequence_type],t.legend=t.consequence_type,t.start>t.end&&(t.decorations=!0),this.base(t)},decorateFeature:function(t,e,n){e.fillStyle=t.color,e.beginPath(),e.moveTo(t.position[n].X-3,t.position[n].Y+this.featureHeight),e.lineTo(t.position[n].X,t.position[n].Y+this.featureHeight-4),e.lineTo(t.position[n].X+3,t.position[n].Y+this.featureHeight),e.fill(),n>1&&e.fillRect(t.position[n].X-.5,t.position[n].Y,1.5,t.position[n].height)},populateMenu:function(t){var e=this.browser.jQuery.Deferred(),n=[{title:'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Summary?v='.concat(t.id,'" target="_blank">').concat(t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Consequence:t.consequence_type,Alleles:t.alleles.join(", ")}];return this.browser.jQuery.ajax({url:"//rest.ensembl.org/variation/human/".concat(t.id,"?population_genotypes=1;content-type=application/json"),dataType:"json",success:function(i){var r=i.population_genotypes.filter(function(t){return/1000GENOMES.+ALL/.test(t.population)}),o={};r.length&&(r.forEach(function(t){t.frequency=parseFloat(t.frequency,10),t.count=parseInt(t.count,10),o[t.population]=o[t.population]||[],o[t.population].push(t)}),n.push.apply(n,l(Object.entries(o).map(function(t){var e=a(t,2),n=e[0];return e[1].sort(function(t,e){return t.count<e.count}).reduce(function(t,e){return Object.assign(t,s({},e.genotype,["".concat((100*e.frequency).toFixed(2),"%"),e.count]))},{title:"".concat(n," population genotypes"),Genotype:["Frequency","Count"],start:!1,end:!1})})).concat([s({start:!1,end:!1},'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Population?v='.concat(t.id,'" target="_blank">See all population genotypes</a>'),"")]))),e.resolve(n)}}),e},5e3:{bump:!1},1:{bump:!0}})},9292:function(t,e,n){"use strict";n.d(e,{A:function(){return s}}),n.dn(s);var i=n(3301),r=n.n(i),o=n(8186);function s(t,e){var n={fetchedData:new(r())},i=function(t,e){return t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]+4294967296*t[e+4]},s=function(t,e){var i,r,o,s,a=[],l=new Uint8Array(t),c=new Int16Array(t),h=new Int32Array(t),u=new Float32Array(t),f=h[0],p=parseInt(n.chroms[f].replace("chr",""),10),d=h[1]+1,g=h[3],m=h[4],v=l[20],y=c[11];if(3===v)for(i=0;i<y;i++)o=(r=d+i*g)+m-1,s=u[i+6],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(2===v)for(i=0;i<y;i++)o=(r=h[2*i+6]+1)+m-1,s=u[2*i+7],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(1===v)for(i=0;i<y;i++)r=h[3*i+6]+1,o=h[3*i+7],s=u[3*i+8],r>o&&(r=o),f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});return a},a=function(t,e){for(var i,r,o,s=[],a=new Uint8Array(t),l=new Int32Array(t),c=0;c<l.length;){for(i={chromid:l[c],chr:n.chroms[l[c]],start:l[c+1],end:l[c+2]},c+=12;0!==(r=a[c++]);)o+=String.fromCharCode(r);i.chromid===e.chrom&&s.push([i.chr,i.start,i.end,o].join("\t"))}return s},l=function(e,i,r){var o=e+i,s=n.fetchedData.search({x:e,w:i,y:0,h:1}).filter(function(t){return t[0]<=e&&t[1]>=o});1===s.length?r(s[0][2].slice(e-s[0][0],e+i)):t.slice(e,i).fetch(function(t){n.fetchedData.insert({x:e,w:i,y:0,h:1},[e,e+i,t]),r(t)})},c=function(t,e,r,c){var h=[],u=n.chroms.indexOf(t);if(-1===u&&-1===(u=n.chroms.indexOf("chr".concat(t))))return c([],"chrom not found");var f,p,d,g,m,v={chrom:u,start:e,end:r};f=0,p=function(){var t="bigwig"===n.type?s:"bigbed"===n.type&&a,e=[];if(t&&h.length)for(var i=0;i<h.length;i++)e=e.concat(t(h[i].data,v));c(e)},d=function(){if(h.sort(function(t,e){return(0|t.offset)-(0|e.offset)}),0===h.length)return p();for(var t=0,e=h[0].offset,i=0;i<h.length;i++)t+=h[i].size;l(e,t,function(e){for(var i,r,s=0,a=0;s<t;)i=h[a],r=n.uncompressBufSize>0?(0,o.A)(e,s+2,i.size-2):e.slice(s,s+i.size),h[a].data=r,s+=i.size,a++;p()})},g=function(t,e,n,r){var o,s=function(t,e){var n,r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t),l=s[e/2+1],c={isLeaf:o[e],children:l,chrIdxStart:new Array(l),baseStart:new Array(l),chrIdxEnd:new Array(l),baseEnd:new Array(l),dataOffset:new Array(l),x:{}};if(c.isLeaf)c.x.size=new Array(l);else for(c.x.child=new Array(l),r=0;r<l;r++)c.x.child[r]=-1;for(e+=4,r=0;r<l;r++)n=e/4,c.chrIdxStart[r]=a[n],c.baseStart[r]=a[n+1],c.chrIdxEnd[r]=a[n+2],c.baseEnd[r]=a[n+3],c.dataOffset[r]=i(o,e+16),e+=24,c.isLeaf&&(c.x.size[r]=i(o,e),e+=8);return c}(t,e),a=function(t){for(var e=t.children,n=[],i=0;i<e;i++){var r=t.chrIdxStart[i],o=t.baseStart[i],s=t.chrIdxEnd[i],a=t.baseEnd[i];(r<v.chrom||r==v.chrom&&o<=v.end)&&(s>v.chrom||s==v.chrom&&a>=v.start)&&n.push(i)}return n}(s);if(s.isLeaf){for(o=0;o<a.length;o++)h.push({offset:s.dataOffset[a[o]],size:s.x.size[a[o]]});return[]}r(a.map(function(t){return s.dataOffset[t]}),n+1)},(m=function(t,e){f+=t.length;var i=t[0],r=4+32*n.Rheader.blockSize,o=t[t.length-1]+r;l(i,o-i,function(n){for(var r=0;r<t.length;r++)g(n,t[r]-i,e,m),0===--f&&d()})})([n.rootOffset],1)},h=function(){var t=n.unzoomedDataOffset-n.chromTreeOffset;l(n.chromTreeOffset,t+4-t%4,function(t){var r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t);2026540177===a[0]?(n.bpTree={itemsPerBlock:a[1],keySize:a[2],valueSize:a[3],itemCount:i(o,16)},n.chroms=new Array(n.bpTree.itemCount),n.lengths=new Array(n.bpTree.itemCount)):r="chromosome id B+ tree not found!",r?e(null,r):function(t){for(var e,i,r,a,l,c=s[t/2+1],h=t+4;c>0;){for(c--,e="",i=0;i<n.bpTree.keySize;i++)0!==(r=o[h+i])&&(e+=String.fromCharCode(r));h+=n.bpTree.keySize,a=o[h+3]<<24|o[h+2]<<16|o[h+1]<<8|o[h+0],l=o[h+7]<<24|o[h+6]<<16|o[h+5]<<8|o[h+4],h+=8,n.chroms[a]=e,n.lengths[a]=l}}(32),l(n.unzoomedIndexOffset,48,function(t){var r=new Uint8Array(t),o=new Uint32Array(t);610839776===o[0]?(n.Rheader={blockSize:o[1],nItems:i(r,8),chrIdxStart:o[4],baseStart:o[5],chrIdxEnd:o[6],baseEnd:o[7],endFileOffset:i(r,32),nItemsPerSlot:o[10]},n.rootOffset=n.unzoomedIndexOffset+48,n.getValues=c,e(n)):e(null,"R-tree not found!")})})};l(0,512,function(t){var r,o,s,a,c,u=new Uint8Array(t),f=new Uint16Array(t),p=new Uint32Array(t),d=p[0];2291137574===d?n.type="bigwig":2273964779===d?n.type="bigbed":r=654086024===d||3958540679===d?"big-endian files not supported yet!":"unsupported file format",r&&e(null,r),n.version=f[2],n.numZoomLevels=f[3],n.chromTreeOffset=i(u,8),n.unzoomedDataOffset=i(u,16),n.unzoomedIndexOffset=i(u,24),n.fieldCount=f[16],n.definedFieldCount=f[17],n.asOffset=i(u,36),n.totalSummaryOffset=i(u,44),n.uncompressBufSize=p[13],n.extHeaderOffset=i(u,56),n.compressed=n.uncompressBufSize>0,n.summary=n.totalSummaryOffset>0,n.extHeader=n.extHeaderOffset>0,n.zoomHeaders=[];for(var g=0;g<n.numZoomLevels;g++)o=p[16+6*g],s=i(u,72+24*g),a=i(u,80+24*g),n.zoomHeaders.push({reductionLevel:o,dataOffset:s,indexOffset:a});c=h,0===n.asOffset?c():l(n.asOffset,2048,function(t){for(var e=new Uint8Array(t),i="",r=0;r<e.length&&0!==e[r];r++)i+=String.fromCharCode(e[r]);var o=/([\w[]]+)\s+(\w+)\s*;\s*("([^"]+)")?\s*/g,s=/(\w+)\s+(\w+)\s+("([^"]+)")?\s*\(\s*/.exec(i);if(s){var a={declType:s[1],name:s[2],comment:s[4],fields:[]};i=i.substring(s[0]);for(var l=o.exec(i);null!==l;l=o.exec(i))a.fields.push({type:l[1],name:l[2],comment:l[4]});n.schema=a}c()})})}},3541:function(t,e,n){"use strict";n.d(e,{cU:function(){return y},SX:function(){return b},HA:function(){return E},zH:function(){return C},Uk:function(){return O},Dt:function(){return A}});function i(t){return a(l(s(t),8*t.length))}function r(t){for(var e="",n=t.length,i=0;i<n;i+=3)for(var r=t.charCodeAt(i)<<16|(i+1<n?t.charCodeAt(i+1)<<8:0)|(i+2<n?t.charCodeAt(i+2):0),o=0;o<4;o++)8*i+6*o>8*t.length?e+="":e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-o)&63);return e}function o(t){for(var e,n,i="",r=-1;++r<t.length;)e=t.charCodeAt(r),n=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&e<=56319&&56320<=n&&n<=57343&&(e=65536+((1023&e)<<10)+(1023&n),r++),e<=127?i+=String.fromCharCode(e):e<=2047?i+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?i+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(i+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return i}function s(t){for(var e=Array(t.length>>2),n=0;n<e.length;n++)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function a(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),i=1732584193,r=-271733879,o=-1732584194,s=271733878,a=-1009589776,l=0;l<t.length;l+=16){for(var p=i,d=r,g=o,m=s,v=a,y=0;y<80;y++){n[y]=y<16?t[l+y]:f(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var b=u(u(f(i,5),c(y,r,o,s)),u(u(a,n[y]),h(y)));a=s,s=o,o=f(r,30),r=i,i=b}i=u(i,p),r=u(r,d),o=u(o,g),s=u(s,m),a=u(a,v)}return Array(i,r,o,s,a)}function c(t,e,n,i){return t<20?e&n|~e&i:t<40?e^n^i:t<60?e&n|e&i|n&i:e^n^i}function h(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function f(t,e){return t<<e|t>>>32-e}var p=function(t){return r(i(o(t)))};function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function m(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==v(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t){this.blob=t}function b(t,e,n,i){i||("object"===v(e)?(i=e,e=void 0):i={}),this.url=t,this.start=e||0,n&&(this.end=n),this.opts=i}y.prototype.slice=function(t,e){return new y(this.blob.slice?e?this.blob.slice(t,t+e):this.blob.slice(t):e?this.blob.webkitSlice(t,t+e):this.blob.webkitSlice(t))},y.prototype.salted=function(){return this},"undefined"!=typeof FileReader?y.prototype.fetch=function(t){var e=new FileReader;e.onloadend=function(n){t(_(e.result))},e.readAsBinaryString(this.blob)}:y.prototype.fetch=function(t){var e=new FileReaderSync;try{t(e.readAsArrayBuffer(this.blob))}catch(e){t(null,e)}},b.prototype.slice=function(t,e){if(t<0)throw"Bad slice "+t;var n=this.start,i=this.end;return n&&t?n+=t:n=t||n,i=e&&n?n+e-1:i||e-1,new b(this.url,n,i,this.opts)};var w=0,x="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>=0&&navigator.userAgent.indexOf("Chrome")<0;function _(t){if(!t)return null;for(var e=new Uint8Array(t.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n);return e.buffer}b.prototype.fetchAsText=function(t){var e=this;this.getURL().then(function(n){try{var i=new XMLHttpRequest;if((x||e.opts.salt)&&n.indexOf("?")<0&&(n=n+"?salt="+p(Date.now()+","+ ++w)),i.open("GET",n,!0),e.end){if(e.end-e.start>1e8)throw"Monster fetch!";i.setRequestHeader("Range","bytes="+e.start+"-"+e.end),e.end-e.start+1}i.onreadystatechange=function(){if(4==i.readyState)return 200==i.status||206==i.status?t(i.responseText):t(null)},e.opts.credentials&&(i.withCredentials=!0),i.send()}catch(e){return t(null)}}).catch(function(e){return console.log(e),t(null,e)})},b.prototype.salted=function(){return new b(this.url,this.start,this.end,g(g({},this.opts),{},{salt:!0}))},b.prototype.getURL=function(){return this.opts.resolver?this.opts.resolver(this.url).then(function(t){return"string"==typeof t?t:t.url}):Promise.resolve(this.url)},b.prototype.fetch=function(t,e){var n=this,i=(e=e||{}).attempt||1,r=e.truncatedLength;if(i>3)return t(null);this.getURL().then(function(o){try{var s;e.timeout&&!n.opts.credentials&&(s=setTimeout(function(){return console.log("timing out "+o),l.abort(),t(null,"Timeout")},e.timeout));var a,l=new XMLHttpRequest;if((x||n.opts.salt)&&o.indexOf("?")<0&&(o=o+"?salt="+p(Date.now()+","+ ++w)),l.open("GET",o,!0),l.overrideMimeType("text/plain; charset=x-user-defined"),n.end){if(n.end-n.start>1e8)throw"Monster fetch!";l.setRequestHeader("Range","bytes="+n.start+"-"+n.end),a=n.end-n.start+1}l.responseType="arraybuffer",l.onreadystatechange=function(){if(4==l.readyState){if(s&&clearTimeout(s),200==l.status||206==l.status){if(l.response){var e=l.response.byteLength;return!a||a==e||r&&e==r?t(l.response):n.fetch(t,{attempt:i+1,truncatedLength:e})}if(l.mozResponseArrayBuffer)return t(l.mozResponseArrayBuffer);var o=l.responseText;return!a||a==o.length||r&&o.length==r?t(_(l.responseText)):n.fetch(t,{attempt:i+1,truncatedLength:o.length})}return n.fetch(t,{attempt:i+1})}},n.opts.credentials&&(l.withCredentials=!0),l.send()}catch(e){return t(null)}}).catch(function(e){return console.log(e),t(null,e)})};var S=new ArrayBuffer(8),k=new Uint8Array(S),T=new Float32Array(S);function C(t,e){return k[0]=t[e],k[1]=t[e+1],k[2]=t[e+2],k[3]=t[e+3],T[0]}function O(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function A(t,e){return t[e+1]<<8|t[e]}function E(t,e){return t[e]}},8186:function(t,e){"use strict";var n=15,i=-2,r=-3,o=-5,s=13,a=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],l=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],c=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],p=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function d(){}function g(){this.was=[0]}d.prototype.inflateInit=function(t,e){return t||(t=15),e&&(e=!1),this.istate=new g,this.istate.inflateInit(this,e?-t:t)},d.prototype.inflate=function(t){return null==this.istate?i:this.istate.inflate(this,t)},d.prototype.inflateEnd=function(){if(null==this.istate)return i;var t=istate.inflateEnd(this);return this.istate=null,t},d.prototype.inflateSync=function(){return istate.inflateSync(this)},d.prototype.inflateSetDictionary=function(t,e){return istate.inflateSetDictionary(this,t,e)},g.prototype.inflateReset=function(t){return null==t||null==t.istate?i:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=0!=t.istate.nowrap?7:0,t.istate.blocks.reset(t,null),0)},g.prototype.inflateEnd=function(t){return null!=this.blocks&&this.blocks.free(t),this.blocks=null,0},g.prototype.inflateInit=function(t,e){return t.msg=null,this.blocks=null,nowrap=0,e<0&&(e=-e,nowrap=1),e<8||e>15?(this.inflateEnd(t),i):(this.wbits=e,t.istate.blocks=new y(t,0!=t.istate.nowrap?null:this,1<<e),this.inflateReset(t),0)},g.prototype.inflate=function(t,e){var n,a;if(null==t||null==t.istate||null==t.next_in)return i;for(e=4==e?o:0,n=o;;)switch(t.istate.mode){case 0:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.next_in[t.next_in_index++]))){t.istate.mode=s,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=s,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,a=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+a)%31!=0){t.istate.mode=s,t.msg="incorrect header check",t.istate.marker=5;break}if(!(32&a)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?n:(n=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=s,t.msg="need dictionary",t.istate.marker=0,i;case 7:if((n=t.istate.blocks.proc(t,n))==r){t.istate.mode=s,t.istate.marker=0;break}if(0==n&&(n=e),1!=n)return n;if(n=e,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=s,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return 1;case s:return r;default:return i}},g.prototype.inflateSetDictionary=function(t,e,n){var o=0,s=n;return null==t||null==t.istate||6!=t.istate.mode?i:t._adler.adler32(1,e,0,n)!=t.adler?r:(t.adler=t._adler.adler32(0,null,0,0),s>=1<<t.istate.wbits&&(o=n-(s=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,o,s),t.istate.mode=7,0)};var m=[0,0,255,255];g.prototype.inflateSync=function(t){var e,n,a,l,c;if(null==t||null==t.istate)return i;if(t.istate.mode!=s&&(t.istate.mode=s,t.istate.marker=0),0==(e=t.avail_in))return o;for(n=t.next_in_index,a=t.istate.marker;0!=e&&a<4;)t.next_in[n]==m[a]?a++:a=0!=t.next_in[n]?0:4-a,n++,e--;return t.total_in+=n-t.next_in_index,t.next_in_index=n,t.avail_in=e,t.istate.marker=a,4!=a?r:(l=t.total_in,c=t.total_out,this.inflateReset(t),t.total_in=l,t.total_out=c,t.istate.mode=7,0)},g.prototype.inflateSyncPoint=function(t){return null==t||null==t.istate||null==t.istate.blocks?i:t.istate.blocks.sync_point()};var v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(t,e,n){this.hufts=new Int32Array(4320),this.window=new Uint8Array(n),this.end=n,this.checkfn=e,this.mode=0,this.reset(t,null),this.left=0,this.table=0,this.index=0,this.blens=null,this.bb=new Int32Array(1),this.tb=new Int32Array(1),this.codes=new b,this.last=0,this.bitk=0,this.bitb=0,this.read=0,this.write=0,this.check=0,this.inftree=new w}y.prototype.reset=function(t,e){e&&(e[0]=this.check),6==this.mode&&this.codes.free(t),this.mode=0,this.bitk=0,this.bitb=0,this.read=this.write=0,this.checkfn&&(t.adler=this.check=t._adler.adler32(0,null,0,0))},y.prototype.proc=function(t,e){var n,o,l,c,h,u,f;for(c=t.next_in_index,h=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u;;)switch(this.mode){case 0:for(;l<3;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}switch(n=7&o,this.last=1&n,n>>>1){case 0:o>>>=3,o>>>=n=7&(l-=3),l-=n,this.mode=1;break;case 1:x(m=new Int32Array(1),y=new Int32Array(1),b=[],w=[],t),this.codes.init(m[0],y[0],b[0],0,w[0],0,t),o>>>=3,l-=3,this.mode=6;break;case 2:o>>>=3,l-=3,this.mode=3;break;case 3:return o>>>=3,l-=3,this.mode=s,t.msg="invalid block type",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e)}break;case 1:for(;l<32;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if((~o>>>16&65535)!=(65535&o))return this.mode=s,t.msg="invalid stored block lengths",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);this.left=65535&o,o=l=0,this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,write=u,this.inflate_flush(t,e);if(0==f&&(u==end&&0!=read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f&&(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,u==this.end&&0!=this.read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f)))return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);if(e=0,(n=this.left)>h&&(n=h),n>f&&(n=f),S(t.next_in,c,this.window,u,n),c+=n,h-=n,u+=n,f-=n,0!=(this.left-=n))break;this.mode=0!=this.last?7:0;break;case 3:for(;l<14;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(this.table=n=16383&o,(31&n)>29||(n>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);if(n=258+(31&n)+(n>>5&31),null==this.blens||this.blens.length<n)this.blens=new Int32Array(n);else for(var p=0;p<n;p++)this.blens[p]=0;o>>>=14,l-=14,this.index=0,mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;l<3;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}this.blens[v[this.index++]]=7&o,o>>>=3,l-=3}for(;this.index<19;)this.blens[v[this.index++]]=0;if(this.bb[0]=7,0!=(n=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t)))return(e=n)==r&&(this.blens=null,this.mode=9),this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,write=u,this.inflate_flush(t,e);this.index=0,this.mode=5;case 5:for(;n=this.table,this.index<258+(31&n)+(n>>5&31);){var d,g;for(n=this.bb[0];l<n;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(n=this.hufts[3*(this.tb[0]+(o&a[n]))+1],(g=this.hufts[3*(this.tb[0]+(o&a[n]))+2])<16)o>>>=n,l-=n,this.blens[this.index++]=g;else{for(p=18==g?7:g-14,d=18==g?11:3;l<n+p;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(l-=n,d+=(o>>>=n)&a[p],o>>>=p,l-=p,(p=this.index)+d>258+(31&(n=this.table))+(n>>5&31)||16==g&&p<1)return this.blens=null,this.mode=9,t.msg="invalid bit length repeat",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);g=16==g?this.blens[p-1]:0;do{this.blens[p++]=g}while(0!=--d);this.index=p}}this.tb[0]=-1;var m=new Int32Array(1),y=new Int32Array(1),b=new Int32Array(1),w=new Int32Array(1);if(m[0]=9,y[0]=6,n=this.table,0!=(n=this.inftree.inflate_trees_dynamic(257+(31&n),1+(n>>5&31),this.blens,m,y,b,w,this.hufts,t)))return n==r&&(this.blens=null,this.mode=s),e=n,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);this.codes.init(m[0],y[0],this.hufts,b[0],this.hufts,w[0],t),this.mode=6;case 6:if(this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,1!=(e=this.codes.proc(this,t,e)))return this.inflate_flush(t,e);if(e=0,this.codes.free(t),c=t.next_in_index,h=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u,0==this.last){this.mode=0;break}this.mode=7;case 7:if(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,this.read!=this.write)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);mode=12;case 8:return e=1,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);case 9:return e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);default:return e=i,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e)}},y.prototype.free=function(t){this.reset(t,null),this.window=null,this.hufts=null},y.prototype.set_dictionary=function(t,e,n){S(t,e,window,0,n),this.read=this.write=n},y.prototype.sync_point=function(){return 1==this.mode},y.prototype.inflate_flush=function(t,e){var n,i,r;return i=t.next_out_index,(n=((r=this.read)<=this.write?this.write:this.end)-r)>t.avail_out&&(n=t.avail_out),0!=n&&e==o&&(e=0),t.avail_out-=n,t.total_out+=n,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,n)),S(this.window,r,t.next_out,i,n),i+=n,(r+=n)==this.end&&(r=0,this.write==this.end&&(this.write=0),(n=this.write-r)>t.avail_out&&(n=t.avail_out),0!=n&&e==o&&(e=0),t.avail_out-=n,t.total_out+=n,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,n)),S(this.window,r,t.next_out,i,n),i+=n,r+=n),t.next_out_index=i,this.read=r,e};function b(){}function w(){}function x(t,e,n,i,r){return t[0]=9,e[0]=5,n[0]=l,i[0]=c,0}b.prototype.init=function(t,e,n,i,r,o,s){this.mode=0,this.lbits=t,this.dbits=e,this.ltree=n,this.ltree_index=i,this.dtree=r,this.dtree_index=o,this.tree=null},b.prototype.proc=function(t,e,n){var o,s,l,c,h,u,f,p=0,d=0,g=0;for(g=e.next_in_index,c=e.avail_in,p=t.bitb,d=t.bitk,u=(h=t.write)<t.read?t.read-h-1:t.end-h;;)switch(this.mode){case 0:if(u>=258&&c>=10&&(t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,n=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,t,e),g=e.next_in_index,c=e.avail_in,p=t.bitb,d=t.bitk,u=(h=t.write)<t.read?t.read-h-1:t.end-h,0!=n)){this.mode=1==n?7:9;break}this.need=this.lbits,this.tree=this.ltree,this.tree_index=this.ltree_index,this.mode=1;case 1:for(o=this.need;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>>=this.tree[s+1],d-=this.tree[s+1],0==(l=this.tree[s])){this.lit=this.tree[s+2],this.mode=6;break}if(16&l){this.get=15&l,this.len=this.tree[s+2],this.mode=2;break}if(!(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}if(32&l){this.mode=7;break}return this.mode=9,e.msg="invalid literal/length code",n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 2:for(o=this.get;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}this.len+=p&a[o],p>>=o,d-=o,this.need=this.dbits,this.tree=this.dtree,this.tree_index=this.dtree_index,this.mode=3;case 3:for(o=this.need;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>=this.tree[s+1],d-=this.tree[s+1],16&(l=this.tree[s])){this.get=15&l,this.dist=this.tree[s+2],this.mode=4;break}if(!(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}return this.mode=9,e.msg="invalid distance code",n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 4:for(o=this.get;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}this.dist+=p&a[o],p>>=o,d-=o,this.mode=5;case 5:for(f=h-this.dist;f<0;)f+=t.end;for(;0!=this.len;){if(0==u&&(h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u&&(t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);t.window[h++]=t.window[f++],u--,f==t.end&&(f=0),this.len--}this.mode=0;break;case 6:if(0==u&&(h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u&&(t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,t.window[h++]=this.lit,u--,this.mode=0;break;case 7:if(d>7&&(d-=8,c++,g--),t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,t.read!=t.write)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);this.mode=8;case 8:return n=1,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 9:return n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);default:return n=i,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n)}},b.prototype.free=function(t){},b.prototype.inflate_fast=function(t,e,n,i,o,s,l,c){var h,u,f,p,d,g,m,v,y,b,w,x,_,k,T,C;m=c.next_in_index,v=c.avail_in,d=l.bitb,g=l.bitk,b=(y=l.write)<l.read?l.read-y-1:l.end-y,w=a[t],x=a[e];do{for(;g<20;)v--,d|=(255&c.next_in[m++])<<g,g+=8;if(0!=(p=(u=n)[C=3*((f=i)+(h=d&w))]))for(;;){if(d>>=u[C+1],g-=u[C+1],16&p){for(p&=15,_=u[C+2]+(d&a[p]),d>>=p,g-=p;g<15;)v--,d|=(255&c.next_in[m++])<<g,g+=8;for(p=(u=o)[C=3*((f=s)+(h=d&x))];;){if(d>>=u[C+1],g-=u[C+1],16&p){for(p&=15;g<p;)v--,d|=(255&c.next_in[m++])<<g,g+=8;if(k=u[C+2]+(d&a[p]),d>>=p,g-=p,b-=_,y>=k)T=y-k,l.window[y++]=l.window[T++],l.window[y++]=l.window[T++],_-=2;else{T=y-k;do{T+=l.end}while(T<0);if(_>(p=l.end-T)){if(_-=p,y-T>0&&p>y-T)do{l.window[y++]=l.window[T++]}while(0!=--p);else S(l.window,T,l.window,y,p),y+=p,T+=p,p=0;T=0}}do{l.window[y++]=l.window[T++]}while(0!=--_);break}if(64&p)return c.msg="invalid distance code",v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,r;h+=u[C+2],p=u[C=3*(f+(h+=d&a[p]))]}break}if(64&p)return 32&p?(v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,1):(c.msg="invalid literal/length code",v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,r);if(h+=u[C+2],0==(p=u[C=3*(f+(h+=d&a[p]))])){d>>=u[C+1],g-=u[C+1],l.window[y++]=u[C+2],b--;break}}else d>>=u[C+1],g-=u[C+1],l.window[y++]=u[C+2],b--}while(b>=258&&v>=10);return v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,0},w.prototype.huft_build=function(t,e,i,s,a,l,c,h,u,f,p){var d,g,m,v,y,b,w,x,_,k,T,C,O,A,E;k=0,y=i;do{this.c[t[e+k]]++,k++,y--}while(0!=y);if(this.c[0]==i)return c[0]=-1,h[0]=0,0;for(x=h[0],b=1;b<=n&&0==this.c[b];b++);for(w=b,x<b&&(x=b),y=n;0!=y&&0==this.c[y];y--);for(m=y,x>y&&(x=y),h[0]=x,A=1<<b;b<y;b++,A<<=1)if((A-=this.c[b])<0)return r;if((A-=this.c[y])<0)return r;for(this.c[y]+=A,this.x[1]=b=0,k=1,O=2;0!=--y;)this.x[O]=b+=this.c[k],O++,k++;y=0,k=0;do{0!=(b=t[e+k])&&(this.v[this.x[b]++]=y),k++}while(++y<i);for(i=this.x[m],this.x[0]=y=0,k=0,v=-1,C=-x,this.u[0]=0,T=0,E=0;w<=m;w++)for(d=this.c[w];0!=d--;){for(;w>C+x;){if(v++,E=(E=m-(C+=x))>x?x:E,(g=1<<(b=w-C))>d+1&&(g-=d+1,O=w,b<E))for(;++b<E&&!((g<<=1)<=this.c[++O]);)g-=this.c[O];if(E=1<<b,this.hn[0]+E>1440)return r;this.u[v]=T=this.hn[0],this.hn[0]+=E,0!=v?(this.x[v]=y,this.r[0]=b,this.r[1]=x,b=y>>>C-x,this.r[2]=T-this.u[v-1]-b,S(this.r,0,u,3*(this.u[v-1]+b),3)):c[0]=T}for(this.r[1]=w-C,k>=i?this.r[0]=192:p[k]<s?(this.r[0]=this.v[k]<256?0:96,this.r[2]=this.v[k++]):(this.r[0]=l[this.v[k]-s]+16+64,this.r[2]=a[this.v[k++]-s]),g=1<<w-C,b=y>>>C;b<E;b+=g)S(this.r,0,u,3*(T+b),3);for(b=1<<w-1;0!=(y&b);b>>>=1)y^=b;for(y^=b,_=(1<<C)-1;(y&_)!=this.x[v];)v--,_=(1<<(C-=x))-1}return 0!=A&&1!=m?o:0},w.prototype.inflate_trees_bits=function(t,e,n,i,s){var a;return this.initWorkArea(19),this.hn[0]=0,(a=this.huft_build(t,0,19,19,null,null,n,e,i,this.hn,this.v))==r?s.msg="oversubscribed dynamic bit lengths tree":a!=o&&0!=e[0]||(s.msg="incomplete dynamic bit lengths tree",a=r),a},w.prototype.inflate_trees_dynamic=function(t,e,n,i,s,a,l,c,d){var g;return this.initWorkArea(288),this.hn[0]=0,0!=(g=this.huft_build(n,0,t,257,h,u,a,i,c,this.hn,this.v))||0==i[0]?(g==r?d.msg="oversubscribed literal/length tree":-4!=g&&(d.msg="incomplete literal/length tree",g=r),g):(this.initWorkArea(288),0!=(g=this.huft_build(n,t,e,0,f,p,l,s,c,this.hn,this.v))||0==s[0]&&t>257?(g==r?d.msg="oversubscribed distance tree":g==o?(d.msg="incomplete distance tree",g=r):-4!=g&&(d.msg="empty distance tree with lengths",g=r),g):0)},w.prototype.initWorkArea=function(t){null==this.hn&&(this.hn=new Int32Array(1),this.v=new Int32Array(t),this.c=new Int32Array(16),this.r=new Int32Array(3),this.u=new Int32Array(n),this.x=new Int32Array(16)),this.v.length<t&&(this.v=new Int32Array(t));for(var e=0;e<t;e++)this.v[e]=0;for(e=0;e<16;e++)this.c[e]=0;for(e=0;e<3;e++)this.r[e]=0;S(this.c,0,this.u,0,n),S(this.c,0,this.x,0,16)};var _="function"==typeof new Uint8Array(1).subarray;function S(t,e,n,i,r){if(0!=r){if(!t)throw"Undef src";if(!n)throw"Undef dest";0==e&&r==t.length?k(t,n,i):_?k(t.subarray(e,e+r),n,i):1==t.BYTES_PER_ELEMENT&&r>100?k(new Uint8Array(t.buffer,t.byteOffset+e,r),n,i):function(t,e,n,i,r){for(var o=0;o<r;++o)n[i+o]=t[e+o]}(t,e,n,i,r)}}function k(t,e,n){e.set(t,n)}e.A=function(t,e,n,i){t=e?n?new Uint8Array(t,e,n):new Uint8Array(t,e,t.byteLength-e):new Uint8Array(t);var r=new d;r.inflateInit(15,!0),r.next_in=t,r.next_in_index=0,r.avail_in=t.length;for(var s=[],a=0;;){var l=new Uint8Array(32e3);r.next_out=l,r.next_out_index=0,r.avail_out=l.length;var c=r.inflate(0);if(0!=c&&1!=c&&c!=o)throw r.msg;if(0!=r.avail_out){var h=new Uint8Array(l.length-r.avail_out);S(l,0,h,0,l.length-r.avail_out),l=h}if(s.push(l),a+=l.length,1==c||c==o)break}if(i&&(i[0]=(e||0)+r.next_in_index),1==s.length)return s[0].buffer;for(var u=new Uint8Array(a),f=0,p=0;p<s.length;++p){var g=s[p];S(g,0,u,f,g.length),f+=g.length}return u.buffer}},5932:function(t,e){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var i=function(t,e,n,i,r,o){var s="".concat(e).concat(n),a=r["".concat(s,".once")]||[],l=(r[s]||[]).concat(a,"function"==typeof i[s]?i[s]:[]);a.length&&delete r["".concat(s,".once")],l.forEach(function(e){return e.apply(t,o)})},r=function(t,e,r,o,s){if(!e.functions[t]&&!/^(before|after)/.test(t)){var a="".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)),l=s.for,c=!!l&&"".concat(s.label,".").concat(t),h="time"===l||"object"===n(l)&&l[t];e.functions[t]=e[t].bind(e),e[t]=function(){var n,s,u,f,p=(null===(n=e._currentConfig||(null===(s=e.track)||void 0===s?void 0:s._currentConfig))||void 0===n?void 0:n.func)||{};!0===l?console.log(c):h&&console.time("time: ".concat(c));for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];(i(e,"before",a,r,o,g),p[t])?(e.base=e.functions[t]||function(){},u=p[t].apply(e,g)):u=(f=e.functions)[t].apply(f,g);return i(e,"after",a,r,o,g),h&&console.timeEnd("time: ".concat(c)),u}}};e.A=function(t,e){t.functions=t.functions||{};var n="Genoverse"===e,i=n||"Track"===e?t:t.track,o=n?t.events.browser:t.browser.events.tracks,s={for:i.debug,label:!!i.debug&&[n?"Genoverse":i.id||i.name||"Track",t!==i&&e].filter(Boolean).join(".")};for(var a in t)"function"!=typeof t[a]||"function"==typeof t[a].ancestor||a.match(/^(base|extend|constructor|controller|model|view|on|once|prop|loadPlugins|loadGenome|jQuery)$/)||r(a,t,i,o,s)}},3006:function(t){var e;t.exports=((e=function(){}).extend=function(t,n){var i=e.prototype.extend;e._prototyping=!0;var r=new this;i.call(r,t),r.base=function(){},delete e._prototyping;var o=r.constructor,s=r.constructor=function(){if(!e._prototyping)if(this._constructing||this.constructor===s)this._constructing=!0,o.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||i).call(arguments[0],r)};return s.ancestor=this,s.extend=this.extend,s.forEach=this.forEach,s.implement=this.implement,s.prototype=r,s.toString=this.toString,s.valueOf=function(t){return"object"===t?s:o.valueOf()},i.call(s,n),"function"==typeof s.init&&s.init(),s},e.prototype={extend:function(t,n){if(arguments.length>1){var i=this[t];if(i&&"function"==typeof n&&(!i.valueOf||i.valueOf()!==n.valueOf())&&/\bbase\b/.test(n)){var r=n.valueOf();n=function(){var t=this.base||e.prototype.base;this.base=i;var n=r.apply(this,arguments);return this.base=t,n},n.valueOf=function(t){return"object"===t?n:r},n.toString=e.toString}this[t]=n}else if(t){var o=e.prototype.extend;e._prototyping||"function"==typeof this||(o=this.extend||o);for(var s={toSource:null},a=["constructor","toString","valueOf"],l=e._prototyping?0:1;l<a.length;l++){var c=a[l];t[c]!==s[c]&&o.call(this,c,t[c])}for(var h in t)s[h]||o.call(this,h,t[h])}return this}},e=e.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,n){for(var i in t)void 0===this.prototype[i]&&e.call(n,t[i],i,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}}),e)},3569:function(t){!function(){t.exports=function(t){"use strict";function e(t,e){return"object"==typeof t&&null!==t&&(t.constructor===e||Object.prototype.toString.call(t)==="[object "+e.name+"]")}function n(t,n){return!n&&e(t,Array)?t:Array.prototype.slice.call(t)}function i(t,e){return void 0!==t?t:e}function r(t,n,o,s){if(r.is(t)){var a=t.slice(n,n+o);return a._littleEndian=i(s,a._littleEndian),a}if(!r.is(this))return new r(t,n,o,s);if(this.buffer=t=r.wrapBuffer(t),this._isArrayBuffer=c.ArrayBuffer&&e(t,ArrayBuffer),this._isPixelData=!1,this._isDataView=c.DataView&&this._isArrayBuffer,this._isNodeBuffer=c.NodeBuffer&&e(t,Buffer),!this._isNodeBuffer&&!this._isArrayBuffer&&!e(t,Array))throw new TypeError("jDataView buffer has an incompatible type");this._littleEndian=!!s;var l="byteLength"in t?t.byteLength:t.length;this.byteOffset=n=i(n,0),this.byteLength=o=i(o,l-n),this._offset=this._bitOffset=0,this._isDataView?this._view=new DataView(t,n,o):this._checkBounds(n,o,l),this._engineAction=this._isDataView?this._dataViewAction:this._isNodeBuffer?this._nodeBufferAction:this._isArrayBuffer?this._arrayBufferAction:this._arrayAction}function o(t){if(c.NodeBuffer)return new Buffer(t,"binary");for(var e=new(c.ArrayBuffer?Uint8Array:Array)(t.length),n=0,i=t.length;i>n;n++)e[n]=255&t.charCodeAt(n);return e}function s(t){return t>=0&&31>t?1<<t:s[t]||(s[t]=Math.pow(2,t))}function a(t,e){this.lo=t,this.hi=e}function l(){a.apply(this,arguments)}var c={NodeBuffer:"Buffer"in t,DataView:"DataView"in t,ArrayBuffer:"ArrayBuffer"in t,PixelData:!1},h=t.TextEncoder,u=t.TextDecoder;c.NodeBuffer&&function(t){try{t.writeFloatLE(1/0,0)}catch(t){c.NodeBuffer=!1}}(new Buffer(4));var f={Int8:1,Int16:2,Int32:4,Uint8:1,Uint16:2,Uint32:4,Float32:4,Float64:8};r.wrapBuffer=function(t){switch(typeof t){case"number":if(c.NodeBuffer)(t=new Buffer(t)).fill(0);else if(c.ArrayBuffer)t=new Uint8Array(t).buffer;else{t=new Array(t);for(var i=0;i<t.length;i++)t[i]=0}return t;case"string":t=o(t);default:return"length"in t&&!(c.NodeBuffer&&e(t,Buffer)||c.ArrayBuffer&&e(t,ArrayBuffer))&&(c.NodeBuffer?t=new Buffer(t):c.ArrayBuffer?e(t,ArrayBuffer)||(e(t=new Uint8Array(t).buffer,ArrayBuffer)||(t=new Uint8Array(n(t,!0)).buffer)):t=n(t)),t}},r.is=function(t){return t&&t.jDataView},r.from=function(){return new r(arguments)},r.Uint64=a,a.prototype={valueOf:function(){return this.lo+s(32)*this.hi},toString:function(){return Number.prototype.toString.apply(this.valueOf(),arguments)}},a.fromNumber=function(t){var e=Math.floor(t/s(32));return new a(t-e*s(32),e)},r.Int64=l,l.prototype="create"in Object?Object.create(a.prototype):new a,l.prototype.valueOf=function(){return this.hi<s(31)?a.prototype.valueOf.apply(this,arguments):-(s(32)-this.lo+s(32)*(s(32)-1-this.hi))},l.fromNumber=function(t){var e,n;if(t>=0){var i=a.fromNumber(t);e=i.lo,n=i.hi}else e=t-(n=Math.floor(t/s(32)))*s(32),n+=s(32);return new l(e,n)};var p=r.prototype={compatibility:c,jDataView:!0,_checkBounds:function(t,e,n){if("number"!=typeof t)throw new TypeError("Offset is not a number.");if("number"!=typeof e)throw new TypeError("Size is not a number.");if(0>e)throw new RangeError("Length is negative.");if(0>t||t+e>i(n,this.byteLength))throw new RangeError("Offsets are out of bounds.")},_action:function(t,e,n,r,o){return this._engineAction(t,e,i(n,this._offset),i(r,this._littleEndian),o)},_dataViewAction:function(t,e,n,i,r){return this._offset=n+f[t],e?this._view["get"+t](n,i):this._view["set"+t](n,r,i)},_arrayBufferAction:function(e,n,r,o,s){var a,l=f[e],c=t[e+"Array"];if(o=i(o,this._littleEndian),1===l||(this.byteOffset+r)%l===0&&o)return a=new c(this.buffer,this.byteOffset+r,1),this._offset=r+l,n?a[0]:a[0]=s;var h=new Uint8Array(n?this.getBytes(l,r,o,!0):l);return a=new c(h.buffer,0,1),n?a[0]:(a[0]=s,void this._setBytes(r,h,o))},_arrayAction:function(t,e,n,i,r){return e?this["_get"+t](n,i):this["_set"+t](n,r,i)},_getBytes:function(t,e,r){r=i(r,this._littleEndian),e=i(e,this._offset),t=i(t,this.byteLength-e),this._checkBounds(e,t),e+=this.byteOffset,this._offset=e-this.byteOffset+t;var o=this._isArrayBuffer?new Uint8Array(this.buffer,e,t):(this.buffer.slice||Array.prototype.slice).call(this.buffer,e,e+t);return r||1>=t?o:n(o).reverse()},getBytes:function(t,e,r,o){var s=this._getBytes(t,e,i(r,!0));return o?n(s):s},_setBytes:function(t,e,r){var o=e.length;if(0!==o){if(r=i(r,this._littleEndian),t=i(t,this._offset),this._checkBounds(t,o),!r&&o>1&&(e=n(e,!0).reverse()),t+=this.byteOffset,this._isArrayBuffer)new Uint8Array(this.buffer,t,o).set(e);else if(this._isNodeBuffer)new Buffer(e).copy(this.buffer,t);else for(var s=0;o>s;s++)this.buffer[t+s]=e[s];this._offset=t-this.byteOffset+o}},setBytes:function(t,e,n){this._setBytes(t,e,i(n,!0))},getString:function(t,e,n){if(this._isNodeBuffer)return e=i(e,this._offset),t=i(t,this.byteLength-e),this._checkBounds(e,t),this._offset=e+t,this.buffer.toString(n||"binary",this.byteOffset+e,this.byteOffset+this._offset);var r=this._getBytes(t,e,!0);if(n="utf8"===n?"utf-8":n||"binary",u&&"binary"!==n)return new u(n).decode(this._isArrayBuffer?r:new Uint8Array(r));var o="";t=r.length;for(var s=0;t>s;s++)o+=String.fromCharCode(r[s]);return"utf-8"===n&&(o=decodeURIComponent(escape(o))),o},setString:function(t,e,n){if(this._isNodeBuffer)return t=i(t,this._offset),this._checkBounds(t,e.length),void(this._offset=t+this.buffer.write(e,this.byteOffset+t,n||"binary"));var r;n="utf8"===n?"utf-8":n||"binary",h&&"binary"!==n?r=new h(n).encode(e):("utf-8"===n&&(e=unescape(encodeURIComponent(e))),r=o(e)),this._setBytes(t,r,!0)},getChar:function(t){return this.getString(1,t)},setChar:function(t,e){this.setString(t,e)},tell:function(){return this._offset},seek:function(t){return this._checkBounds(t,0),this._offset=t},skip:function(t){return this.seek(this._offset+t)},slice:function(t,e,n){function o(t,e){return 0>t?t+e:t}return t=o(t,this.byteLength),e=o(i(e,this.byteLength),this.byteLength),n?new r(this.getBytes(e-t,t,!0,!0),void 0,void 0,this._littleEndian):new r(this.buffer,this.byteOffset+t,e-t,this._littleEndian)},alignBy:function(t){return this._bitOffset=0,1!==i(t,1)?this.skip(t-(this._offset%t||t)):this._offset},_getFloat64:function(t,e){var n=this._getBytes(8,t,e),i=1-2*(n[7]>>7),r=((n[7]<<1&255)<<3|n[6]>>4)-1023,o=(15&n[6])*s(48)+n[5]*s(40)+n[4]*s(32)+n[3]*s(24)+n[2]*s(16)+n[1]*s(8)+n[0];return 1024===r?0!==o?NaN:1/0*i:-1023===r?i*o*s(-1074):i*(1+o*s(-52))*s(r)},_getFloat32:function(t,e){var n=this._getBytes(4,t,e),i=1-2*(n[3]>>7),r=(n[3]<<1&255|n[2]>>7)-127,o=(127&n[2])<<16|n[1]<<8|n[0];return 128===r?0!==o?NaN:1/0*i:-127===r?i*o*s(-149):i*(1+o*s(-23))*s(r)},_get64:function(t,e,n){n=i(n,this._littleEndian),e=i(e,this._offset);for(var r=n?[0,4]:[4,0],o=0;2>o;o++)r[o]=this.getUint32(e+r[o],n);return this._offset=e+8,new t(r[0],r[1])},getInt64:function(t,e){return this._get64(l,t,e)},getUint64:function(t,e){return this._get64(a,t,e)},_getInt32:function(t,e){var n=this._getBytes(4,t,e);return n[3]<<24|n[2]<<16|n[1]<<8|n[0]},_getUint32:function(t,e){return this._getInt32(t,e)>>>0},_getInt16:function(t,e){return this._getUint16(t,e)<<16>>16},_getUint16:function(t,e){var n=this._getBytes(2,t,e);return n[1]<<8|n[0]},_getInt8:function(t){return this._getUint8(t)<<24>>24},_getUint8:function(t){return this._getBytes(1,t)[0]},_getBitRangeData:function(t,e){var n=(i(e,this._offset)<<3)+this._bitOffset,r=n+t,o=n>>>3,s=r+7>>>3,a=this._getBytes(s-o,o,!0),l=0;(this._bitOffset=7&r)&&(this._bitOffset-=8);for(var c=0,h=a.length;h>c;c++)l=l<<8|a[c];return{start:o,bytes:a,wideValue:l}},getSigned:function(t,e){var n=32-t;return this.getUnsigned(t,e)<<n>>n},getUnsigned:function(t,e){var n=this._getBitRangeData(t,e).wideValue>>>-this._bitOffset;return 32>t?n&~(-1<<t):n},_setBinaryFloat:function(t,e,n,i,r){var o,a,l=0>e?1:0,c=~(-1<<i-1),h=1-c;0>e&&(e=-e),0===e?(o=0,a=0):isNaN(e)?(o=2*c+1,a=1):1/0===e?(o=2*c+1,a=0):(o=Math.floor(Math.log(e)/Math.LN2))>=h&&c>=o?(a=Math.floor((e*s(-o)-1)*s(n)),o+=c):(a=Math.floor(e/s(h-n)),o=0);for(var u=[];n>=8;)u.push(a%256),a=Math.floor(a/256),n-=8;for(o=o<<n|a,i+=n;i>=8;)u.push(255&o),o>>>=8,i-=8;u.push(l<<i|o),this._setBytes(t,u,r)},_setFloat32:function(t,e,n){this._setBinaryFloat(t,e,23,8,n)},_setFloat64:function(t,e,n){this._setBinaryFloat(t,e,52,11,n)},_set64:function(t,e,n,r){"object"!=typeof n&&(n=t.fromNumber(n)),r=i(r,this._littleEndian),e=i(e,this._offset);var o=r?{lo:0,hi:4}:{lo:4,hi:0};for(var s in o)this.setUint32(e+o[s],n[s],r);this._offset=e+8},setInt64:function(t,e,n){this._set64(l,t,e,n)},setUint64:function(t,e,n){this._set64(a,t,e,n)},_setUint32:function(t,e,n){this._setBytes(t,[255&e,e>>>8&255,e>>>16&255,e>>>24],n)},_setUint16:function(t,e,n){this._setBytes(t,[255&e,e>>>8&255],n)},_setUint8:function(t,e){this._setBytes(t,[255&e])},setUnsigned:function(t,e,n){var i=this._getBitRangeData(n,t),r=i.wideValue,o=i.bytes;r&=~(~(-1<<n)<<-this._bitOffset),r|=(32>n?e&~(-1<<n):e)<<-this._bitOffset;for(var s=o.length-1;s>=0;s--)o[s]=255&r,r>>>=8;this._setBytes(i.start,o,!0)}},d={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"};for(var g in p._nodeBufferAction=function(t,e,n,i,r){this._offset=n+f[t];var o=d[t]+("Int8"===t||"Uint8"===t?"":i?"LE":"BE");return n+=this.byteOffset,e?this.buffer["read"+o](n):this.buffer["write"+o](r,n)},f)!function(t){p["get"+t]=function(e,n){return this._action(t,!0,e,n)},p["set"+t]=function(e,n,i){this._action(t,!1,e,i,n)}}(g);for(var m in p._setInt32=p._setUint32,p._setInt16=p._setUint16,p._setInt8=p._setUint8,p.setSigned=p.setUnsigned,p)"set"===m.slice(0,3)&&function(t){p["write"+t]=function(){Array.prototype.unshift.call(arguments,void 0),this["set"+t].apply(this,arguments)}}(m.slice(3));return r}(this)}()},6454:function(t,e,n){!function(){"undefined"==typeof jDataView&&(jDataView=n(3569));var e;function i(t,e){if(!(this instanceof arguments.callee))throw new Error("Constructor may not be called as a function");t instanceof jDataView||(t=new jDataView(t,void 0,void 0,!0)),this.view=t,this.view.seek(0),this.structure=function(t){for(var e=1;e<arguments.length;++e){var n=arguments[e];for(var i in n)void 0!==n[i]&&(t[i]=n[i])}return t}({},i.prototype.structure,e)}function r(t){return"function"==typeof t&&(t=t.call(this)),t}i.prototype.structure={uint8:function(){return this.view.getUint8()},uint16:function(){return this.view.getUint16()},uint32:function(){return this.view.getUint32()},int8:function(){return this.view.getInt8()},int16:function(){return this.view.getInt16()},int32:function(){return this.view.getInt32()},float32:function(){return this.view.getFloat32()},float64:function(){return this.view.getFloat64()},char:function(){return this.view.getChar()},string:function(t){return this.view.getString(r.call(this,t))},array:function(t,e){e=r.call(this,e);for(var n=[],i=0;i<e;++i)n.push(this.parse(t));return n},seek:function(t,e){if(t=r.call(this,t),e instanceof Function){var n=this.view.tell();this.view.seek(t);var i=e.call(this);return this.view.seek(n),i}return this.view.seek(t)},tell:function(){return this.view.tell()},skip:function(t){return t=r.call(this,t),this.view.seek(this.view.tell()+t),t}},i.prototype.seek=i.prototype.structure.seek,i.prototype.tell=i.prototype.structure.tell,i.prototype.skip=i.prototype.structure.skip,i.prototype.parse=function(t){if(t instanceof Function)return t.apply(this,Array.prototype.slice.call(arguments,1));if("string"==typeof t&&(t=[t]),t instanceof Array){if(!((n=t[0])in this.structure))throw new Error("Missing structure for `"+n+"`");return this.parse.apply(this,[this.structure[n]].concat(t.slice(1)))}if("object"==typeof t){var e={};for(var n in t)this.current=e,e[n]=this.parse(t[n]);return e}throw new Error("Unknown structure type `"+t+"`")},"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:void 0!==n.g&&(e=n.g),e.jParser=i,t.exports=i}()},9983:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}})})})?i.apply(e,r):i)||(t.exports=o)}()},724:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?i.apply(e,r):i)||(t.exports=o)}()},2336:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){return t.ui.plugin={add:function(e,n,i){var r,o=t.ui[e].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(t,e,n,i){var r,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,n)}}},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},4224:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){return function(){var e,n=Math.max,i=Math.abs,r=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=t.fn.position;function h(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function u(e,n){return parseInt(t.css(e,n),10)||0}function f(t){return null!=t&&t===t.window}function p(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:f(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var n,i,r=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),n=o.offsetWidth,r.css("overflow","scroll"),n===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),e=n-i},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=f(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:!i&&!r?t(e).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);var l,f,d,g,m,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),_={};return v=p(y),y[0].preventDefault&&(e.at="left top"),f=v.width,d=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,n,i=(e[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",t=s.exec(i[0]),n=s.exec(i[1]),_[this]=[t?t[0]:0,n?n[0]:0],e[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?m.left+=f:"center"===e.at[0]&&(m.left+=f/2),"bottom"===e.at[1]?m.top+=d:"center"===e.at[1]&&(m.top+=d/2),l=h(_.at,f,d),m.left+=l[0],m.top+=l[1],this.each(function(){var r,o,s=t(this),a=s.outerWidth(),c=s.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),S=a+p+u(this,"marginRight")+w.width,k=c+v+u(this,"marginBottom")+w.height,T=t.extend({},m),C=h(_.my,s.outerWidth(),s.outerHeight());"right"===e.my[0]?T.left-=a:"center"===e.my[0]&&(T.left-=a/2),"bottom"===e.my[1]?T.top-=c:"center"===e.my[1]&&(T.top-=c/2),T.left+=C[0],T.top+=C[1],r={marginLeft:p,marginTop:v},t.each(["left","top"],function(n,i){t.ui.position[x[n]]&&t.ui.position[x[n]][i](T,{targetWidth:f,targetHeight:d,elemWidth:a,elemHeight:c,collisionPosition:r,collisionWidth:S,collisionHeight:k,offset:[l[0]+C[0],l[1]+C[1]],my:e.my,at:e.at,within:b,elem:s})}),e.using&&(o=function(t){var r=g.left-T.left,o=r+f-a,l=g.top-T.top,h=l+d-c,u={target:{element:y,left:g.left,top:g.top,width:f,height:d},element:{element:s,left:T.left,top:T.top,width:a,height:c},horizontal:o<0?"left":r>0?"right":"center",vertical:h<0?"top":l>0?"bottom":"middle"};f<a&&i(r+o)<f&&(u.horizontal="center"),d<c&&i(l+h)<d&&(u.vertical="middle"),n(i(r),i(o))>n(i(l),i(h))?u.important="horizontal":u.important="vertical",e.using.call(this,t,u)}),s.offset(t.extend(T,{using:o}))})},t.ui.position={fit:{left:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&c<=0?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&l<=0?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=n(t.left-a,t.left)},top:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollTop:r.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&c<=0?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&l<=0?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=n(t.top-a,t.top)}},flip:{left:function(t,e){var n,r,o=e.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-a-l,f="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];h<0?((n=t.left+f+p+d+e.collisionWidth-a-s)<0||n<i(h))&&(t.left+=f+p+d):u>0&&((r=t.left-e.collisionPosition.marginLeft+f+p+d-l)>0||i(r)<u)&&(t.left+=f+p+d)},top:function(t,e){var n,r,o=e.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-a-l,f="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,d=-2*e.offset[1];h<0?((r=t.top+f+p+d+e.collisionHeight-a-s)<0||r<i(h))&&(t.top+=f+p+d):u>0&&((n=t.top-e.collisionPosition.marginTop+f+p+d-l)>0||i(n)<u)&&(t.top+=f+p+d)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},2299:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.fn.scrollParent=function(e){var n=this.css("position"),i="absolute"===n,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!i||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)}})?i.apply(e,r):i)||(t.exports=o)}()},6883:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692)],void 0===(o="function"==typeof(i=function(t){return t.ui=t.ui||{},t.ui.version="1.14.2"})?i.apply(e,r):i)||(t.exports=o)}()},9139:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){var e=0,n=Array.prototype.hasOwnProperty,i=Array.prototype.slice;return t.cleanData=function(e){return function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)(i=t._data(r,"events"))&&i.remove&&t(r).triggerHandler("remove");e(n)}}(t.cleanData),t.widget=function(e,n,i){var r,o,s,a={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var c=l+"-"+e;return i||(i=n,n=t.Widget),Array.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(s=new n).options=t.widget.extend({},s.options),t.each(i,function(t,e){a[t]="function"==typeof e?function(){function i(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),r?(t.each(r._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,s=i.call(arguments,1),a=0,l=s.length;a<l;a++)for(r in s[a])o=s[a][r],n.call(s[a],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each(function(){var n,i=t.data(this,r);return"instance"===o?(l=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=i[o].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each(function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(){var n=[];e.element.each(function(e,r){t.map(i.classesElementLookup,function(t){return t}).some(function(t){return t.is(r)})||n.push(r)}),i._on(t(n),{remove:"_untrackClassesElement"})}function o(o,s){var a,l;for(l=0;l<o.length;l++)a=i.classesElementLookup[o[l]]||t(),e.add?(r(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),i.classesElementLookup[o[l]]=a,n.push(o[l]),s&&e.classes[o[l]]&&n.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,function(i,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,h=l[2];h?r.on(c,h,a):n.on(c,a)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,s=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof s&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&t.effects&&t.effects.effect[a]?i[e](r):a!==e&&i[a]?i[a](r.duration,r.easing,o):i.queue(function(n){t(this)[e](),o&&o.call(i[0]),n()})}}),t.widget},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},1758:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(9983),n(2336),n(2299),n(6883),n(9139)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=this.document[0].activeElement;t(e.target).closest(n).length||t(n).trigger("blur")},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",e)&&n._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper,r=i?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(i=(n=t(r.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=r.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,i){var r=t.extend({},n,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n,i){var r=t.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))})},drag:function(e,n,i){t.each(i.sortables,function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r})),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",e),i.dropped=o.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(e),n.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,i){var r=t("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,n,i){var r=i.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,n,i){var r=i.options;r._opacity&&t(n.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,i){var r=i.options,o=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+s.offsetHeight-e.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+s.offsetWidth-e.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(a).scrollTop()<r.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<r.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(a).scrollLeft()<r.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<r.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,i){var r=i.options;i.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),n=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,i){var r,o,s,a,l,c,h,u,f,p,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)c=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,u=(h=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>c+g||b<h-g||y>u+g||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(h-b)<=g,o=Math.abs(u-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),p=r||o||s||a,"outer"!==d.snapMode&&(r=Math.abs(h-y)<=g,o=Math.abs(u-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(r||o||s||a||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=r||o||s||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,i){var r,o=i.options,s=t.makeArray(t(o.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});s.length&&(r=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,n,i){var r=i.options;r._zIndex&&t(n.helper).css("zIndex",r._zIndex)}}),t.ui.draggable})?i.apply(e,r):i)||(t.exports=o)}()},3662:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883),n(9139)],void 0===(o="function"==typeof(i=function(t){var e=!1;return t(document).on("mouseup",function(){e=!1}),t.widget("ui.mouse",{version:"1.14.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o="string"==typeof this.options.cancel&&t(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved&&!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t);return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?i.apply(e,r):i)||(t.exports=o)}()},8604:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(724),n(2336),n(6883),n(9139)],i=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){var i,r=!1,o=t(e).css("overflow");if("hidden"===o)return!1;if("scroll"===o)return!0;if(e[i=n&&"left"===n?"scrollLeft":"scrollTop"]>0)return!0;try{e[i]=1,r=e[i]>0,e[i]=0}catch(t){}return r},_create:function(){var e,n=this.options,i=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,n,i,r,o,s=this.options,a=this;if(this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)r="ui-resizable-"+(e=String.prototype.trim.call(i[n])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var n,i,r,o;for(n in e=e||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")}),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var n,i,r=!1;for(n in this.handles)((i=t(this.handles[n])[0])===e.target||t.contains(i,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,i,r,o,s=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(n+=t(s.containment).scrollLeft()||0,i+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this._helper||(o=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width,height:o.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:o.width,height:o.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,i,r=this.originalMousePosition,o=this.axis,s=e.pageX-r.left||0,a=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[e,s,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,i,r,o,s,a,l,c=this.options,h=this;return this._helper&&(r=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:h.sizeDiff.height,o=i?0:h.sizeDiff.width,s={width:h.helper.width()-o,height:h.helper.height()-r},a=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(s,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,n,i,r,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:Infinity,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),i>o.minHeight&&(o.minHeight=i),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),h=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&c&&(t.left=a-e.minWidth),i&&c&&(t.left=a-e.maxWidth),s&&h&&(t.top=l-e.minHeight),r&&h&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(r[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_calculateAdjustedElementDimensions:function(t){var e,n,i,r=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(r)&&!this._hasScroll(r,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(r.style.width),n=parseFloat(r.style.height),i=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,i,"width"):e,{height:n=isNaN(n)?this._getElementTheoreticalSize(t,i,"height"):n,width:e})},_getElementTheoreticalSize:function(t,e,n){return Math.max(0,Math.ceil(t.get(0)["offset"+n[0].toUpperCase()+n.slice(1)]-e[n]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,l={width:n.size.width-a,height:n.size.height-s},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,h=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&t(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,i,r,o,s,a,l=t(this).resizable("instance"),c=l.options,h=l.element,u=c.containment,f=u instanceof t?u.get(0):/parent/.test(u)?h.parent().get(0):u;f&&(l.containerElement=t(f),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(f),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,i){n[t]=l._num(e.css("padding"+i))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},i=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,s=l._hasScroll(f,"left")?f.scrollWidth:o,a=l._hasScroll(f)?f.scrollHeight:r,l.parentData={element:f,left:i.left,top:i.top,width:s,height:a}))},resize:function(e){var n,i,r,o,s=t(this).resizable("instance"),a=s.options,l=s.containerOffset,c=s.position,h=s._aspectRatio||e.shiftKey,u={top:0,left:0},f=s.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(u=l),c.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-u.left),h&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=a.helper?l.left:0),c.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),h&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?l.top:0),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),r&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),n=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-u.left:s.offset.left-l.left)),i=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-u.top:s.offset.top-l.top)),n+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-n,h&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,h&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.containerPosition,o=e.containerElement,s=t(e.helper),a=s.offset(),l=s.outerWidth()-e.sizeDiff.width,c=s.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-r.left-i.left,width:l,height:c}),e._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-r.left-i.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options;t(n.alsoResize).each(function(){var n=t(this),i=e._calculateAdjustedElementDimensions(n);n.data("ui-resizable-alsoresize",{width:i.width,height:i.height,left:parseFloat(n.css("left")),top:parseFloat(n.css("top"))})})},resize:function(e,n){var i=t(this).resizable("instance"),r=i.options,o=i.originalSize,s=i.originalPosition,a={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0};t(r.alsoResize).each(function(){var e=t(this),i=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var n=(i[e]||0)+(a[e]||0);n&&n>=0&&(r[e]=n||null)}),e.css(r)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,s=n.originalPosition,a=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,h=l[1]||1,u=Math.round((r.width-o.width)/c)*c,f=Math.round((r.height-o.height)/h)*h,p=o.width+u,d=o.height+f,g=i.maxWidth&&i.maxWidth<p,m=i.maxHeight&&i.maxHeight<d,v=i.minWidth&&i.minWidth>p,y=i.minHeight&&i.minHeight>d;i.grid=l,v&&(p+=c),y&&(d+=h),g&&(p-=c),m&&(d-=h),/^(se|s|e)$/.test(a)?(n.size.width=p,n.size.height=d):/^(ne)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.top=s.top-f):/^(sw)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.left=s.left-u):((d-h<=0||p-c<=0)&&(e=n._getPaddingPlusBorderDimensions(this)),d-h>0?(n.size.height=d,n.position.top=s.top-f):(d=h-e.height,n.size.height=d,n.position.top=s.top+o.height-d),p-c>0?(n.size.width=p,n.position.left=s.left-u):(p=c-e.width,n.size.width=p,n.position.left=s.left+o.width-p))}}),t.ui.resizable},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},5285:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(9983),n(2299),n(6883),n(9139)],i=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var i=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return i=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(i=t(e.target)),!!i&&(!(this.options.handle&&!n&&(t(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(r=!0)}),!r))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,n,i){var r,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this._storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),n},_mouseDrag:function(e){var n,i,r,o,s=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(r=(i=this.items[n]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||i+c>a&&i+c<l,f="y"===this.options.axis||e+h>o&&e+h<s,p=u&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!i||!r)&&(e=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n,i,r,o,s=[],a=[],l=this._connectWith();if(l&&e)for(n=l.length-1;n>=0;n--)for(i=(r=t(l[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){s.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=a.length-1;n>=0;n--)a[n][0].each(c);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,r,o,s,a,l,c,h=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(n=f.length-1;n>=0;n--)for(i=(r=t(f[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=u.length-1;n>=0;n--)for(s=u[n][1],i=0,c=(a=u[n][0]).length;i<c;i++)(l=t(a[i])).data(this.widgetName+"-item",s),h.push({item:l,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var n,i,r,o;for(n=this.items.length-1;n>=0;n--)i=this.items[n],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=r.outerWidth(),i.height=r.outerHeight()),o=r.offset(),i.left=o.left,i.top=o.top)},refreshPositions:function(t){var e,n;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var n,i,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,i=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+i+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===i?e._createTrPlaceholder(e.currentItem,r):"img"===i&&r.attr("src",e.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(t,o){n&&!r.forcePlaceholderSize||(o.height()&&(!r.forcePlaceholderSize||"tbody"!==i&&"tr"!==i)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var i=this;e.children().each(function(){t("<td>&#160;</td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(e){var n,i,r,o,s,a,l,c,h,u,f=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,o=null,s=(h=f.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",u=h?"pageX":"pageY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[s],c=!1,e[u]-l>this.items[i][a]/2&&(c=!0),Math.abs(e[u]-l)<r&&(r=Math.abs(e[u]-l),o=this.items[i],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],n=t(r.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*i}},_generatePosition:function(e){var n,i,r=this.options,o=e.pageX,s=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}for(this.fromOutside&&!e&&i.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(i.push(function(t){this._trigger("remove",t,this._uiHash())}),i.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||i.push(r("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(r("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<i.length;n++)i[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}})},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},4692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,h=o.indexOf,u={},f=u.toString,p=u.hasOwnProperty,d=p.toString,g=d.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,o=(n=n||b).createElement("script");if(o.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[f.call(t)]||"object":typeof t}var S="3.7.1",k=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:S,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(c&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,s[e]=T.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},T.extend({expando:"jQuery"+(S+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=s(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&d.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=T.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?T.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.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,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(C(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()});var A=o.pop,E=o.sort,P=o.splice,j="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(I,M)};var R=b,N=c;!function(){var t,e,n,r,s,l,c,u,f,d,g=N,v=T.expando,y=0,b=0,w=tt(),x=tt(),_=tt(),S=tt(),k=function(t,e){return t===e&&(s=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+j+"*("+I+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+j+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",H=new RegExp(j+"+","g"),L=new RegExp("^"+j+"*,"+j+"*"),z=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),B=new RegExp(j+"|>"),U=new RegExp(F),W=new RegExp("^"+I+"$"),q={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\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))},J=function(){lt()},K=ft(function(t){return!0===t.disabled&&O(t,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(R.childNodes),R.childNodes),o[R.childNodes.length].nodeType}catch(t){g={apply:function(t,e){N.apply(t,a.call(e))},call:function(t){N.apply(t,a.call(arguments,1))}}}function Z(t,e,n,i){var r,o,s,a,c,h,p,d=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,u)){if(11!==y&&(c=V.exec(t)))if(r=c[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return g.call(n,s),n}else if(d&&(s=d.getElementById(r))&&Z.contains(e,s)&&s.id===r)return g.call(n,s),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(S[t+" "]||f&&f.test(t))){if(p=t,d=e,1===y&&(B.test(t)||z.test(t))){for((d=Y.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=v)),o=(h=ht(t)).length;o--;)h[o]=(a?"#"+a:":scope")+" "+ut(h[o]);p=h.join(",")}try{return g.apply(n,d.querySelectorAll(p)),n}catch(e){S(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(D,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return O(e,"input")&&e.type===t}}function rt(t){return function(e){return(O(e,"input")||O(e,"button"))&&e.type===t}}function ot(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&&K(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et(function(e){return e=+e,et(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:R;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,u=!T.isXMLDoc(l),d=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",J),m.getById=nt(function(t){return c.appendChild(t).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length}),m.disconnectedMatch=nt(function(t){return d.call(t,"*")}),m.scope=nt(function(){return l.querySelectorAll(":scope")}),m.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),m.getById?(e.filter.ID=function(t){var e=t.replace(X,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,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&&u){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}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&&u)return e.getElementsByClassName(t)},f=[],nt(function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+j+"*(?:value|"+C+")"),t.querySelectorAll("[id~="+v+"-]").length||f.push("~="),t.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")}),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),k=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==R&&Z.contains(R,t)?-1:e===l||e.ownerDocument==R&&Z.contains(R,e)?1:r?h.call(r,t)-h.call(r,e):0:4&n?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),u&&!S[e+" "]&&(!f||!f.test(e)))try{var n=d.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),T.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!u):void 0;return void 0!==r?r:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),E.call(t,k),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)P.call(t,n[i],1)}return r=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:q,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(X,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(X,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]||Z.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]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=ht(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(X,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return O(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&w(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=Z.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,h,u,f,p,d=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;d;){for(u=e;u=u[d];)if(a?O(u,m):1===u.nodeType)return!1;p=d="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(w=(f=(c=(h=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],u=f&&g.childNodes[f];u=++f&&u&&u[d]||(w=f=0)||p.pop();)if(1===u.nodeType&&++w&&u===e){h[t]=[y,f,w];break}}else if(b&&(w=f=(c=(h=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(u=++f&&u&&u[d]||(w=f=0)||p.pop())&&(!(a?O(u,m):1===u.nodeType)||!++w||(b&&((h=u[v]||(u[v]={}))[t]=[y,w]),u!==e)););return(w-=r)===i||w%i===0&&w/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=h.call(t,o[s])]=!(e[i]=o[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],n=[],i=vt(t.replace(D,"$1"));return i[v]?et(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return Z(t,e).length>0}}),contains:et(function(t){return t=t.replace(X,Q),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}}),lang:et(function(t){return W.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(X,Q).toLowerCase(),function(e){var n;do{if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return O(t,"input")&&!!t.checked||O(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){return O(t,"input")&&"button"===t.type||O(t,"button")},text:function(t){var e;return O(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st(function(){return[0]}),last:st(function(t,e){return[e-1]}),eq:st(function(t,e,n){return[n<0?n+e:n]}),even:st(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:st(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:st(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:st(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ht(t,n){var i,r,o,s,a,l,c,h=x[t+" "];if(h)return n?0:h.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(r=L.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=z.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(D," ")}),a=a.slice(i.length)),e.filter)!(r=q[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?Z.error(t):x(t,l).slice(0)}function ut(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ft(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var c,h,u=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(h=e[v]||(e[v]={}),r&&O(e,r))e=e[i]||e;else{if((c=h[o])&&c[0]===y&&c[1]===a)return u[2]=c[2];if(h[o]=u,u[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function dt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et(function(o,s,a,l){var c,u,f,p,d=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)Z(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:dt(y,d,t,a,l);if(n?n(b,p=r||(o?t:v||i)?[]:s,a,l):p=b,i)for(c=dt(p,m),i(c,[],a,l),u=c.length;u--;)(f=c[u])&&(p[m[u]]=!(b[m[u]]=f));if(o){if(r||t){if(r){for(c=[],u=p.length;u--;)(f=p[u])&&c.push(b[u]=f);r(null,p=[],c,l)}for(u=p.length;u--;)(f=p[u])&&(c=r?h.call(o,f):d[u])>-1&&(o[c]=!(s[c]=f))}}else p=dt(p===s?p.splice(v,p.length):p),r?r(null,s,p,l):g.apply(s,p)})}function mt(t){for(var i,r,o,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,u=ft(function(t){return t===i},l,!0),f=ft(function(t){return h.call(i,t)>-1},l,!0),p=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?u(t,e,r):f(t,e,r));return i=null,o}];c<s;c++)if(r=e.relative[t[c].type])p=[ft(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(o=++c;o<s&&!e.relative[t[o].type];o++);return gt(c>1&&pt(p),c>1&&ut(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(D,"$1"),r,c<o&&mt(t.slice(c,o)),o<s&&mt(t=t.slice(o)),o<s&&ut(t))}p.push(r)}return pt(p)}function vt(t,i){var r,o=[],s=[],a=_[t+" "];if(!a){for(i||(i=ht(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=_(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,c,h,f){var p,d,m,v=0,b="0",w=s&&[],x=[],_=n,S=s||o&&e.find.TAG("*",f),k=y+=null==_?1:Math.random()||.1,C=S.length;for(f&&(n=a==l||a||f);b!==C&&null!=(p=S[b]);b++){if(o&&p){for(d=0,a||p.ownerDocument==l||(lt(p),c=!u);m=t[d++];)if(m(p,a||l,c)){g.call(h,p);break}f&&(y=k)}r&&((p=!m&&p)&&v--,s&&w.push(p))}if(v+=b,r&&b!==v){for(d=0;m=i[d++];)m(w,x,a,c);if(s){if(v>0)for(;b--;)w[b]||x[b]||(x[b]=A.call(h));x=dt(x)}g.apply(h,x),f&&!s&&x.length>0&&v+i.length>1&&T.uniqueSort(h)}return f&&(y=k,n=_),w};return r?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,i,r){var o,s,a,l,c,h="function"==typeof t&&t,f=!r&&ht(t=h.selector||t);if(i=i||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&u&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(X,Q),n)||[])[0]))return i;h&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=q.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[l=a.type]);)if((c=e.find[l])&&(r=c(a.matches[0].replace(X,Q),Y.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&ut(s)))return g.apply(i,r),i;break}}return(h||vt(t,f))(r,n,!u,i,!n||Y.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(k).join("")===v,lt(),m.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=vt,Z.select=yt,Z.setDocument=lt,Z.tokenize=ht,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(n))break;i.push(t)}return i},H=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},L=T.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return v(e)?T.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?T.grep(t,function(t){return t===e!==n}):"string"!=typeof e?T.grep(t,function(t){return h.call(e,t)>-1!==n}):T.filter(e,t,n)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<i;e++)if(T.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,r[e],n);return i>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&L.test(t)?T(t):t||[],!1).length}});var U,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||U,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),z.test(i[1])&&T.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,U=T(b);var q=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&T(t);if(!L.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?h.call(T(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return H((t.parentNode||{}).firstChild,t)},children:function(t){return H(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(O(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(t,e){T.fn[t]=function(n,i){var r=T.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=T.filter(i,r)),this.length>1&&($[t]||T.uniqueSort(r),q.test(t)&&r.reverse()),this.pushStack(r)}});var V=/[^\x20\t\r\n\f]+/g;function Y(t){return t}function X(t){throw t}function Q(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(V)||[],function(t,n){e[n]=!0}),e}(t):T.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){T.each(n,function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==_(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;(n=T.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return T.Deferred(function(n){T.each(e,function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function s(t,e,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<o)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,s(o,e,Y,r),s(o,e,X,r)):(o++,c.call(i,s(o,e,Y,r),s(o,e,X,r),s(o,e,Y,e.notifyWith))):(n!==Y&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},h=r?c:function(){try{c()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,h.error),t+1>=o&&(n!==X&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?h():(T.Deferred.getErrorHook?h.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(h.error=T.Deferred.getStackHook()),i.setTimeout(h))}}return T.Deferred(function(i){e[0][3].add(s(0,i,v(r)?r:Y,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:Y)),e[2][3].add(s(0,i,v(n)?n:X))}).promise()},promise:function(t){return null!=t?T.extend(t,r):r}},o={};return T.each(e,function(t,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),o=T.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Q(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Q(r[n],s(n),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&J.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout(function(){throw t})};var K=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),T.ready()}T.fn.ready=function(t){return K.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===_(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(T(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=T.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(V)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||T.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ht=/[A-Z]/g;function ut(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ht,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ut(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=ut(o,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),T.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,r=n.shift(),o=T._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){T.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each(function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=T.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return T.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===T.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=a(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),h=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&pt.exec(T.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;s--;)T.style(t,e,h+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),h/=o;h*=2,T.style(t,e,h+c),n=n||[]}return n&&(h=+h||+l||0,r=n[1]?h+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=h,i.end=r)),r}var wt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=T.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function _t(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=xt(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}T.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(){yt(this)?T(this).show():T(this).hide()})}});var St,kt,Tt=/^(?:checkbox|radio)$/i,Ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ot=/^$|^module$|\/(?:java|ecma)script/i;St=b.createDocumentFragment().appendChild(b.createElement("div")),(kt=b.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),St.appendChild(kt),m.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",m.option=!!St.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&&O(t,e)?T.merge([t],n):n}function Pt(t,e){for(var n=0,i=t.length;n<i;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,m.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var jt=/<|&#?\w+;/;function Dt(t,e,n,i,r){for(var o,s,a,l,c,h,u=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===_(o))T.merge(f,o.nodeType?[o]:o);else if(jt.test(o)){for(s=s||u.appendChild(e.createElement("div")),a=(Ct.exec(o)||["",""])[1].toLowerCase(),l=At[a]||At._default,s.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],h=l[0];h--;)s=s.lastChild;T.merge(f,s.childNodes),(s=u.firstChild).textContent=""}else f.push(e.createTextNode(o));for(u.textContent="",p=0;o=f[p++];)if(i&&T.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),s=Et(u.appendChild(o),"script"),c&&Pt(s),n)for(h=0;o=s[h++];)Ot.test(o.type||"")&&n.push(o);return u}var It=/^([^.]*)(?:\.(.+)|)/;function Mt(){return!0}function Rt(){return!1}function Nt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Nt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Rt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return T().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,r,i,n)})}function Ft(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,T.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Mt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Mt)}T.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,h,u,f,p,d,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(gt,r),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(V)||[""]).length;c--;)p=g=(a=It.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p&&(u=T.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=T.event.special[p]||{},h=T.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:d.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(p,s)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,h):f.push(h),T.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,h,u,f,p,d,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(V)||[""]).length;c--;)if(p=g=(a=It.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p){for(u=T.event.special[p]||{},f=l[p=(i?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)h=f[o],!r&&g!==h.origType||n&&n.guid!==h.guid||a&&!a.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(f.splice(o,1),h.selector&&f.delegateCount--,u.remove&&u.remove.call(t,h));s&&!f.length&&(u.teardown&&!1!==u.teardown.call(t,d,m.handle)||T.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,i,!0);T.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=T.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],h=T.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,c),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?T(r,this).index(c)>-1:T.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&O(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&O(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&O(e,"input")&&at.get(e,"click")||O(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Mt:Rt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Rt,isPropagationStopped:Rt,isImmediatePropagationStopped:Rt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Mt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Mt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Mt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=T.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e);o||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),T.fn.extend({on:function(t,e,n,i){return Nt(this,t,e,n,i)},one:function(t,e,n,i){return Nt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Rt),this.each(function(){T.event.remove(this,t,n,e)})}});var Ht=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)T.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=T.extend({},o),lt.set(e,s))}}function $t(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Gt(t,e,n,i){e=l(e);var r,o,s,a,c,h,u=0,f=t.length,p=f-1,d=e[0],g=v(d);if(g||f>1&&"string"==typeof d&&!m.checkClone&&Lt.test(d))return t.each(function(r){var o=t.eq(r);g&&(e[0]=d.call(this,r,o.html())),Gt(o,e,n,i)});if(f&&(o=(r=Dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=T.map(Et(r,"script"),Ut)).length;u<f;u++)c=r,u!==p&&(c=T.clone(c,!0,!0),a&&T.merge(s,Et(c,"script"))),n.call(t[u],c,u);if(a)for(h=s[s.length-1].ownerDocument,T.map(s,Wt),u=0;u<a;u++)c=s[u],Ot.test(c.type||"")&&!at.access(c,"globalEval")&&T.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):x(c.textContent.replace(zt,""),c,h))}return t}function Vt(t,e,n){for(var i,r=e?T.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(Et(i)),i.parentNode&&(n&&mt(i)&&Pt(Et(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=Et(a),i=0,r=(o=Et(t)).length;i<r;i++)$t(o[i],s[i]);if(e)if(n)for(o=o||Et(t),s=s||Et(a),i=0,r=o.length;i<r;i++)qt(o[i],s[i]);else qt(t,a);return(s=Et(a,"script")).length>0&&Pt(s,!l&&Et(t,"script")),a},cleanData:function(t){for(var e,n,i,r=T.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Gt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)})},prepend:function(){return Gt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Gt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Gt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!At[(Ct.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Gt(this,arguments,function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Et(this)),n&&n.replaceChild(e,this))},t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){T.fn[t]=function(t){for(var n,i=[],r=T(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}});var Yt=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),Xt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Jt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Kt=new RegExp(dt.join("|"),"i");function Zt(t,e,n){var i,r,o,s,a=Xt.test(e),l=t.style;return(n=n||Qt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(D,"$1")||void 0),""!==s||mt(t)||(s=T.style(t,e)),!m.pixelBoxStyles()&&Yt.test(s)&&Kt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(h);var t=i.getComputedStyle(h);n="1%"!==t.top,l=12===e(t.marginLeft),h.style.right="60%",s=36===e(t.right),r=36===e(t.width),h.style.position="absolute",o=12===e(h.offsetWidth/3),gt.removeChild(c),h=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,c=b.createElement("div"),h=b.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===h.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.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",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){var e=T.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=T.css(t,n+dt[s],!0,r)),i?("content"===n&&(l-=T.css(t,"padding"+dt[s],!0,r)),"margin"!==n&&(l-=T.css(t,"border"+dt[s]+"Width",!0,r))):(l+=T.css(t,"padding"+dt[s],!0,r),"padding"!==n?l+=T.css(t,"border"+dt[s]+"Width",!0,r):a+=T.css(t,"border"+dt[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+c}function he(t,e,n){var i=Qt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),o=r,s=Zt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Yt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&O(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ce(t,e,n||(r?"border":"content"),o,i,s)+"px"}function ue(t,e,n,i,r){return new ue.prototype.init(t,e,n,i,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt(e),l=Xt.test(e),c=t.style;if(l||(e=re(a)),s=T.cssHooks[e]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=bt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(T.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,s,a=rt(e);return Xt.test(e)||(e=re(a)),(s=T.cssHooks[e]||T.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Zt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),T.each(["height","width"],function(t,e){T.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,e,i):Jt(t,se,function(){return he(t,e,i)})},set:function(t,n,i){var r,o=Qt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===T.css(t,"boxSizing",!1,o),l=i?ce(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ce(t,e,"border",!1,o)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),le(0,n,l)}}}),T.cssHooks.marginLeft=te(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(t,e){T.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+dt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(T.cssHooks[t+e].set=le)}),T.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Qt(t),r=e.length;s<r;s++)o[e[s]]=T.css(t,e[s],!1,i);return o}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,arguments.length>1)}}),T.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,n=ue.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ue.prototype.init,T.fx.step={};var fe,pe,de=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,T.fx.interval),T.fx.tick())}function ve(){return i.setTimeout(function(){fe=void 0}),fe=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=dt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function we(t,e,n){var i,r,o=0,s=we.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=fe||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(t,[c,i,n]),i<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=T.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=T.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(h,c.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(c,t,h,c.opts))return v(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(h,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(V);for(var n,i=0,r=t.length;i<r;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,c,h,u="width"in e||"height"in e,f=this,p={},d=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()})})),e)if(r=e[i],de.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||T.style(t,i)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(p))for(i in u&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(h=T.css(t,"display"))&&(c?h=c:(_t([t],!0),c=t.style.display||c,h=T.css(t,"display"),_t([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===T.css(t,"float")&&(l||(f.done(function(){d.display=c}),null==c&&(h=d.display,c="none"===h?"":h)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&_t([t],!0),f.done(function(){for(i in g||_t([t]),at.remove(t,"fxshow"),p)T.style(t,i,p[i])})),l=be(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=T.isEmptyObject(t),o=T.speed(e,n,i),s=function(){var e=we(this,T.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=T.timers,s=at.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ge.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||T.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=T.timers,s=i?i.length:0;for(n.finish=!0,T.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(t,e){var n=T.fn[e];T.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}}),T.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){T.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),fe=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pe||(pe=!0,me())},T.fx.stop=function(){pe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var xe,_e=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(V);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||T.find.attr;_e[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=_e[s],_e[s]=r,r=null!=n(t,e,i)?s:null,_e[s]=o),r}});var Se=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Te(t){return(t.match(V)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function Oe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(V)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){T(this).addClass(t.call(this,e,Ce(this)))}):(e=Oe(t)).length?this.each(function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Te(n),i!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){T(this).removeClass(t.call(this,e,Ce(this)))}):arguments.length?(e=Oe(t)).length?this.each(function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Te(n),i!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each(function(n){T(this).toggleClass(t.call(this,n,Ce(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Oe(t),this.each(function(){if(a)for(o=T(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Ce(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Te(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;T.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,T(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,function(t){return null==t?"":t+""})),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ae,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(e=T(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=T.makeArray(e),s=r.length;s--;)((i=r[s]).selected=T.inArray(T.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},m.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=i.location,Pe={guid:Date.now()},je=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var De=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,r){var o,s,a,l,c,h,u,f,d=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!De.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),u=T.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!y(n)){for(l=u.delegateType||g,De.test(l+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(n.ownerDocument||b)&&d.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:u.bindType||g,(h=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&h.apply(s,e),(h=c&&s[c])&&h.apply&&ot(s)&&(t.result=h.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!ot(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),T.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,Ie),n[g](),t.isPropagationStopped()&&f.removeEventListener(g,Ie),T.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var Me=/\[\]$/,Re=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function He(t,e,n,i){var r;if(Array.isArray(e))T.each(e,function(e,r){n||Me.test(t)?i(t,r):He(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==_(e))i(t,e);else for(r in e)He(t+"["+r+"]",e[r],n,i)}T.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){r(this.name,this.value)});else for(n in t)He(n,t[n],e,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Fe.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Tt.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:n.replace(Re,"\r\n")}}).get()}});var Le=/%20/g,ze=/#.*$/,Be=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,qe=/^\/\//,$e={},Ge={},Ve="*/".concat("*"),Ye=b.createElement("a");function Xe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(V)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Qe(t,e,n,i){var r={},o=t===Ge;function s(a){var l;return r[a]=!0,T.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Je(t,e){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&T.extend(!0,t,i),t}Ye.href=Ee.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:Xe($e),ajaxTransport:Xe(Ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,c,h,u,f,p=T.ajaxSetup({},e),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?T(d):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},w={},x={},_="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Ue.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(m.promise(S),p.url=((t||p.url||Ee.href)+"").replace(qe,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(V)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ye.protocol+"//"+Ye.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Qe($e,p,e,S),c)return S;for(u in(h=T.event&&p.global)&&0===T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),r=p.url.replace(ze,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Le,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(je.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Be,"$1"),f=(je.test(r)?"&":"?")+"_="+Pe.guid+++f),p.url=r+f),p.ifModified&&(T.lastModified[r]&&S.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&S.setRequestHeader("If-None-Match",T.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ve+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(d,S,p)||c))return S.abort();if(_="abort",v.add(p.complete),S.done(p.success),S.fail(p.error),n=Qe(Ge,p,e,S)){if(S.readyState=1,h&&g.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(a=i.setTimeout(function(){S.abort("timeout")},p.timeout));try{c=!1,n.send(w,k)}catch(t){if(c)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,s,l){var u,f,b,w,x,_=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,S,s)),!u&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,c={},h=t.dataTypes.slice();if(h[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=h.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],h.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,S,u),u?(p.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=x),(x=S.getResponseHeader("etag"))&&(T.etag[r]=x)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),S.status=t,S.statusText=(e||_)+"",u?m.resolveWith(d,[f,_,S]):m.rejectWith(d,[S,_,b]),S.statusCode(y),y=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,p,u?f:b]),v.fireWith(d,[S,_]),h&&(g.trigger("ajaxComplete",[S,p]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,e){T[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:r,data:n,success:i},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){T(this).wrapInner(t.call(this,e))}):this.each(function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(n){T(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Ze=T.ajaxSettings.xhr();m.cors=!!Ze&&"withCredentials"in Ze,m.ajax=Ze=!!Ze,T.ajaxTransport(function(t){var e,n;if(m.cors||Ze&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);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?o(0,"error"):o(a.status,a.statusText):o(Ke[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Pe.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(je.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||T.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always(function(){void 0===o?T(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),s&&v(o)&&o(s[0]),s=o=void 0}),"script"}),m.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),o=!n&&[],(r=z.exec(t))?[e.createElement(r[1])]:(r=Dt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Te(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=T.css(t,"position"),h=T(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=h.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):h.css(u)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(i,"marginTop",!0),left:e.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||gt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;T.fn[t]=function(i){return tt(this,function(t,i,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=te(m.pixelPosition,function(t,n){if(n)return n=Zt(t,e),Yt.test(n)?T(t).position()[e]+"px":n})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){T.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return tt(this,function(e,n,r){var o;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?T.css(e,n,a):T.style(e,n,r,a)},e,s?r:void 0,s)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||T.guid++,r},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=O,T.isFunction=v,T.isWindow=y,T.camelCase=rt,T.type=_,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=sn),t&&i.jQuery===T&&(i.jQuery=on),T},void 0===r&&(i.jQuery=i.$=T),T})},1549:function(t,e,n){var i=n(2032),r=n(3862),o=n(6721),s=n(2749),a=n(5749);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},79:function(t,e,n){var i=n(3702),r=n(80),o=n(4739),s=n(8655),a=n(1175);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},8223:function(t,e,n){var i=n(6110)(n(9325),"Map");t.exports=i},3661:function(t,e,n){var i=n(3040),r=n(7670),o=n(289),s=n(4509),a=n(2949);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},1873:function(t,e,n){var i=n(9325).Symbol;t.exports=i},4932:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},6547:function(t,e,n){var i=n(3360),r=n(5288),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&r(s,n)&&(void 0!==n||e in t)||i(t,e,n)}},6025:function(t,e,n){var i=n(5288);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},3360:function(t,e,n){var i=n(3243);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},7422:function(t,e,n){var i=n(1769),r=n(7797);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[r(e[n++])];return n&&n==o?t:void 0}},2552:function(t,e,n){var i=n(1873),r=n(659),o=n(9350),s=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}},5083:function(t,e,n){var i=n(1882),r=n(7296),o=n(3805),s=n(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,h=l.toString,u=c.hasOwnProperty,f=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?f:a).test(s(t))}},3170:function(t,e,n){var i=n(6547),r=n(1769),o=n(361),s=n(3805),a=n(7797);t.exports=function(t,e,n,l){if(!s(t))return t;for(var c=-1,h=(e=r(e,t)).length,u=h-1,f=t;null!=f&&++c<h;){var p=a(e[c]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=u){var g=f[p];void 0===(d=l?l(g,p,f):void 0)&&(d=s(g)?g:o(e[c+1])?[]:{})}i(f,p,d),f=f[p]}return t}},7556:function(t,e,n){var i=n(1873),r=n(4932),o=n(8830),s=n(4394),a=i?i.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(s(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},1769:function(t,e,n){var i=n(8830),r=n(8586),o=n(1802),s=n(3222);t.exports=function(t,e){return i(t)?t:r(t,e)?[t]:o(s(t))}},5481:function(t,e,n){var i=n(9325)["__core-js_shared__"];t.exports=i},3243:function(t,e,n){var i=n(6110),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},4840:function(t,e,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},2651:function(t,e,n){var i=n(4218);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},6110:function(t,e,n){var i=n(5083),r=n(392);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},659:function(t,e,n){var i=n(1873),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var r=s.call(t);return i&&(e?t[a]=n:delete t[a]),r}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032:function(t,e,n){var i=n(1042);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},3862:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:function(t,e,n){var i=n(1042),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},2749:function(t,e,n){var i=n(1042),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},5749:function(t,e,n){var i=n(1042);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var i=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}},8586:function(t,e,n){var i=n(8830),r=n(4394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},4218:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:function(t,e,n){var i,r=n(5481),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},3702:function(t){t.exports=function(){this.__data__=[],this.size=0}},80:function(t,e,n){var i=n(6025),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},4739:function(t,e,n){var i=n(6025);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},8655:function(t,e,n){var i=n(6025);t.exports=function(t){return i(this.__data__,t)>-1}},1175:function(t,e,n){var i=n(6025);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},3040:function(t,e,n){var i=n(1549),r=n(79),o=n(8223);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},7670:function(t,e,n){var i=n(2651);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},289:function(t,e,n){var i=n(2651);t.exports=function(t){return i(this,t).get(t)}},4509:function(t,e,n){var i=n(2651);t.exports=function(t){return i(this,t).has(t)}},2949:function(t,e,n){var i=n(2651);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},2224:function(t,e,n){var i=n(104);t.exports=function(t){var e=i(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},1042:function(t,e,n){var i=n(6110)(Object,"create");t.exports=i},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:function(t,e,n){var i=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},1802:function(t,e,n){var i=n(2224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)}),e});t.exports=s},7797:function(t,e,n){var i=n(4394);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},8156:function(t,e,n){var i=n(7422);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},8830:function(t){var e=Array.isArray;t.exports=e},1882:function(t,e,n){var i=n(2552),r=n(3805);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},4394:function(t,e,n){var i=n(2552),r=n(346);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},104:function(t,e,n){var i=n(3661);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},3560:function(t,e,n){var i=n(3170);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},3222:function(t,e,n){var i=n(7556);t.exports=function(t){return null==t?"":i(t)}},6926:function(t,e,n){"use strict";var i=n(1020),r=function(t,e){if(e&&e.bbox)return{leaf:e,x:e.bbox[0],y:e.bbox[1],w:e.bbox[2]-e.bbox[0],h:e.bbox[3]-e.bbox[1]};for(var n=t.length,i=0,r=new Array(n);i<n;)r[i]=[t[i][0],t[i][1]],i++;var o=r[0];n=r.length,i=1;for(var s={min:[].concat(o),max:[].concat(o)};i<n;)r[i][0]<s.min[0]?s.min[0]=r[i][0]:r[i][0]>s.max[0]&&(s.max[0]=r[i][0]),r[i][1]<s.min[1]?s.min[1]=r[i][1]:r[i][1]>s.max[1]&&(s.max[1]=r[i][1]),i++;var a={x:s.min[0],y:s.min[1],w:s.max[0]-s.min[0],h:s.max[1]-s.min[1]};return e&&(a.leaf=e),a},o={point:function(t,e){return e.insertSubtree({x:t.geometry.coordinates[0],y:t.geometry.coordinates[1],w:0,h:0,leaf:t},e.root)},multiPointLineString:function(t,e){return e.insertSubtree(r(t.geometry.coordinates,t),e.root)},multiLineStringPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],t.geometry.coordinates),t),e.root)},multiPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],t.geometry.coordinates)),t),e.root)},makeRec:function(t){return i(t.x,t.y,t.w,t.h)},geometryCollection:function(t,e){if(t.bbox)return e.insertSubtree({leaf:t,x:t.bbox[0],y:t.bbox[1],w:t.bbox[2]-t.bbox[0],h:t.bbox[3]-t.bbox[1]},e.root);for(var n,i=t.geometry.geometries,s=0,a=i.length,l=[];s<a;){switch((n=i[s]).type){case"Point":l.push(o.makeRec({x:n.coordinates[0],y:n.coordinates[1],w:0,h:0}));break;case"MultiPoint":case"LineString":l.push(o.makeRec(r(n.coordinates)));break;case"MultiLineString":case"Polygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],n.coordinates))));break;case"MultiPolygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],n.coordinates)))));break;case"GeometryCollection":a=(i=i.concat(n.geometries)).length}s++}var c=l[0];for(s=1,a=l.length;s<a;)c.expand(l[s]),s++;return e.insertSubtree({leaf:t,x:c.x(),y:c.y(),h:c.h(),w:c.w()},e.root)}};e.geoJSON=function(t){var e,n,i=this;if(Array.isArray(t))e=t.slice();else if(t.features&&Array.isArray(t.features))e=t.features.slice();else{if(!(t instanceof Object))throw"this isn't what we're looking for";e=[t]}for(var r=e.length,s=0;s<r;){if("Feature"===(n=e[s]).type)switch(n.geometry.type){case"Point":o.point(n,i);break;case"MultiPoint":case"LineString":o.multiPointLineString(n,i);break;case"MultiLineString":case"Polygon":o.multiLineStringPolygon(n,i);break;case"MultiPolygon":o.multiPolygon(n,i);break;case"GeometryCollection":o.geometryCollection(n,i)}s++}},e.bbox=function(){var t,e,n,i;switch(arguments.length){case 1:t=arguments[0][0][0],e=arguments[0][0][1],n=arguments[0][1][0],i=arguments[0][1][1];break;case 2:t=arguments[0][0],e=arguments[0][1],n=arguments[1][0],i=arguments[1][1];break;case 4:t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3]}return this.search({x:t,y:e,w:n-t,h:i-e})}},3301:function(t,e,n){"use strict";var i=n(4651),r=n(6926);i.prototype.bbox=r.bbox,i.prototype.geoJSON=r.geoJSON,i.Rectangle=n(1020),t.exports=i},1020:function(t){"use strict";function e(t,n,i,r){if(!(this instanceof e))return new e(t,n,i,r);var o,s,a;t.x?(i=t.w,r=t.h,n=t.y,0!==t.w&&!t.w&&t.x2?(i=t.x2-t.x,r=t.y2-t.y):(i=t.w,r=t.h),t=t.x,o=t+i,s=n+r,a=!(r+i)):(o=t+i,s=n+r,a=!(r+i)),this.x1=this.x=function(){return t},this.y1=this.y=function(){return n},this.x2=function(){return o},this.y2=function(){return s},this.w=function(){return i},this.h=function(){return r},this.p=function(){return a},this.overlap=function(e){return a||e.p()?t<=e.x2()&&o>=e.x()&&n<=e.y2()&&s>=e.y():t<e.x2()&&o>e.x()&&n<e.y2()&&s>e.y()},this.expand=function(e){var a,l,c=e.x(),h=e.y(),u=e.x2(),f=e.y2();return a=t>c?c:t,l=n>h?h:n,i=o>u?o-a:u-a,r=s>f?s-l:f-l,t=a,n=l,this}}e.overlapRectangle=function(t,e){return 0===t.h&&0===t.w||0===e.h&&0===e.w?t.x<=e.x+e.w&&t.x+t.w>=e.x&&t.y<=e.y+e.h&&t.y+t.h>=e.y:t.x<e.x+e.w&&t.x+t.w>e.x&&t.y<e.y+e.h&&t.y+t.h>e.y},e.containsRectangle=function(t,e){return t.x+t.w<=e.x+e.w&&t.x>=e.x&&t.y+t.h<=e.y+e.h&&t.y>=e.y},e.expandRectangle=function(t,e){var n,i,r=t.x+t.w,o=e.x+e.w,s=t.y+t.h,a=e.y+e.h;return n=t.x>e.x?e.x:t.x,i=t.y>e.y?e.y:t.y,t.w=r>o?r-n:o-n,t.h=s>a?s-i:a-i,t.x=n,t.y=i,t},e.makeMBR=function(t,n){if(!t.length)return{x:0,y:0,w:0,h:0};(n=n||{}).x=t[0].x,n.y=t[0].y,n.w=t[0].w,n.h=t[0].h;for(var i=1,r=t.length;i<r;i++)e.expandRectangle(n,t[i]);return n},e.squarifiedRatio=function(t,e,n){var i=(t+e)/2,r=t*e;return r*n/(r/(i*i))},t.exports=e},4651:function(t,e,n){"use strict";var i=n(1020);function r(t){if(!(this instanceof r))return new r(t);var e=3,n=6;isNaN(t)||(e=Math.floor(t/2),n=t);var o={x:0,y:0,w:0,h:0,id:"root",nodes:[]};this.root=o;var s=function(t){for(var e,n=t.slice(),i=[];n.length;)(e=n.pop()).nodes?n=n.concat(e.nodes):e.leaf&&i.push(e);return i},a=function(t,n,r){var o,a,l,c=[],h=[],p=[];if(!t||!i.overlapRectangle(t,r))return p;var d={x:t.x,y:t.y,w:t.w,h:t.h,target:n};for(h.push(r.nodes.length),c.push(r);c.length>0;){if(o=c.pop(),a=h.pop()-1,"target"in d)for(;a>=0;){if(l=o.nodes[a],i.overlapRectangle(d,l)){if(d.target&&"leaf"in l&&l.leaf===d.target||!d.target&&("leaf"in l||i.containsRectangle(l,d))){p="nodes"in l?s(o.nodes.splice(a,1)):o.nodes.splice(a,1),i.makeMBR(o.nodes,o),delete d.target;break}"nodes"in l&&(h.push(a),c.push(o),o=l,a=l.nodes.length)}a--}else if("nodes"in d){o.nodes.splice(a+1,1),o.nodes.length>0&&i.makeMBR(o.nodes,o);for(var g=0;g<d.nodes.length;g++)f(d.nodes[g],o);d.nodes=[],0===c.length&&o.nodes.length<=1?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[],c.push(o),h.push(1)):c.length>0&&o.nodes.length<e?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[]):delete d.nodes}else i.makeMBR(o.nodes,o);0}return p},l=function(t){for(var e=h(t);t.length>0;)c(t,e[0],e[1]);return e},c=function(t,n,r){for(var o,s,a,l=i.squarifiedRatio(n.w,n.h,n.nodes.length+1),c=i.squarifiedRatio(r.w,r.h,r.nodes.length+1),h=t.length-1;h>=0;h--){var u=t[h],f={};f.x=Math.min(n.x,u.x),f.y=Math.min(n.y,u.y),f.w=Math.max(n.x+n.w,u.x+u.w)-f.x,f.h=Math.max(n.y+n.h,u.y+u.h)-f.y;var p=Math.abs(i.squarifiedRatio(f.w,f.h,n.nodes.length+2)-l),d={};d.x=Math.min(r.x,u.x),d.y=Math.min(r.y,u.y),d.w=Math.max(r.x+r.w,u.x+u.w)-d.x,d.h=Math.max(r.y+r.h,u.y+u.h)-d.y;var g=Math.abs(i.squarifiedRatio(d.w,d.h,r.nodes.length+2)-c);(!s||!o||Math.abs(g-p)<o)&&(s=h,o=Math.abs(g-p),a=g<p?r:n)}var m=t.splice(s,1)[0];n.nodes.length+t.length+1<=e?(n.nodes.push(m),i.expandRectangle(n,m)):r.nodes.length+t.length+1<=e?(r.nodes.push(m),i.expandRectangle(r,m)):(a.nodes.push(m),i.expandRectangle(a,m))},h=function(t){for(var e,n,i=t.length-1,r=0,o=t.length-1,s=0,a=t.length-2;a>=0;a--){var l=t[a];l.x>t[r].x?r=a:l.x+l.w<t[i].x+t[i].w&&(i=a),l.y>t[s].y?s=a:l.y+l.h<t[o].y+t[o].h&&(o=a)}return Math.abs(t[i].x+t[i].w-t[r].x)>Math.abs(t[o].y+t[o].h-t[s].y)?i>r?(e=t.splice(i,1)[0],n=t.splice(r,1)[0]):(n=t.splice(r,1)[0],e=t.splice(i,1)[0]):o>s?(e=t.splice(o,1)[0],n=t.splice(s,1)[0]):(n=t.splice(s,1)[0],e=t.splice(o,1)[0]),[{x:e.x,y:e.y,w:e.w,h:e.h,nodes:[e]},{x:n.x,y:n.y,w:n.w,h:n.h,nodes:[n]}]},u=function(t,e,n,r){var o=[];if(!i.overlapRectangle(t,r))return n;for(o.push(r.nodes);o.length>0;)for(var s=o.pop(),a=s.length-1;a>=0;a--){var l=s[a];i.overlapRectangle(t,l)&&("nodes"in l?o.push(l.nodes):"leaf"in l&&(e?n.push(l):n.push(l.leaf)))}return n},f=function(t,e){var r;if(0===e.nodes.length)return e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,void e.nodes.push(t);for(var o,s=function(t,e){var n,r=-1,o=[],s=!0;o.push(e);for(var a=e.nodes;s||-1!==r;){s?s=!1:(o.push(a[r]),a=a[r].nodes,r=-1);for(var l=a.length-1;l>=0;l--){var c=a[l];if("leaf"in c){r=-1;break}var h=i.squarifiedRatio(c.w,c.h,c.nodes.length+1),u=Math.max(c.x+c.w,t.x+t.w)-Math.min(c.x,t.x),f=Math.max(c.y+c.h,t.y+t.h)-Math.min(c.y,t.y),p=i.squarifiedRatio(u,f,c.nodes.length+2);(r<0||Math.abs(p-h)<n)&&(n=Math.abs(p-h),r=l)}}return o}(t,e),a=t;s.length>0;){if(r&&"nodes"in r&&0===r.nodes.length){o=r,r=s.pop();for(var c=0;c<r.nodes.length;c++)if(r.nodes[c]===o||0===r.nodes[c].nodes.length){r.nodes.splice(c,1);break}}else r=s.pop();if("leaf"in a||"nodes"in a||Array.isArray(a)){if(Array.isArray(a)){for(var h=0;h<a.length;h++)i.expandRectangle(r,a[h]);r.nodes=r.nodes.concat(a)}else i.expandRectangle(r,a),r.nodes.push(a);if(r.nodes.length<=n)a={x:r.x,y:r.y,w:r.w,h:r.h};else{var u=l(r.nodes);a=u,s.length<1&&(r.nodes.push(u[0]),s.push(r),a=u[1])}}else i.expandRectangle(r,a),a={x:r.x,y:r.y,w:r.w,h:r.h}}};this.insertSubtree=f,this.getTree=function(){return o},this.setTree=function(t,e){return e||(e=o),i=t,(n=e).nodes=i.nodes,n.x=i.x,n.y=i.y,n.w=i.w,n.h=i.h,n;var n,i},this.search=function(t,e,n){return u(t,e,n=n||[],o)};this.remove=function(t,e){return e&&"function"!=typeof e?function(t,e){return a(t,e,o)}(t,e):function(t){for(var e,n=1,i=[];n>0;)n=(e=a(t,!1,o)).length,i=i.concat(e);return i}(t)},this.insert=function(t,e){return f({x:t.x,y:t.y,w:t.w,h:t.h,leaf:e},o)}}r.prototype.toJSON=function(t){return JSON.stringify(this.root,!1,t)},r.fromJSON=function(t){var e=new r;return e.setTree(JSON.parse(t)),e},t.exports=r,"function"!=typeof Array.isArray&&(Array.isArray=function(t){return"object"==typeof t&&"[object Array]"==={}.toString.call(t)})},2872:function(t,e,n){var i={"./Controller.js":1572,"./Controller/Sequence.js":4798,"./Controller/Stranded.js":4770,"./Model.js":6767,"./Model/File.js":6200,"./Model/File/BAM.js":439,"./Model/File/BED.js":4976,"./Model/File/GFF.js":1290,"./Model/File/VCF.js":2715,"./Model/File/WIG.js":4734,"./Model/Gene.js":407,"./Model/Gene/Ensembl.js":6448,"./Model/Sequence.js":932,"./Model/Sequence/Ensembl.js":1104,"./Model/Sequence/Fasta.js":2581,"./Model/SequenceVariation.js":8054,"./Model/Stranded.js":6815,"./Model/Transcript.js":9024,"./Model/Transcript/Ensembl.js":1331,"./View.js":3257,"./View/Gene.js":2425,"./View/Gene/Ensembl.js":9954,"./View/Sequence.js":1661,"./View/SequenceVariation.js":472,"./View/Transcript.js":7550,"./View/Transcript/Ensembl.js":6305,"./library/Chromosome.js":2624,"./library/File.js":2254,"./library/File/BAM.js":3593,"./library/File/BED.js":3350,"./library/File/BIGBED.js":148,"./library/File/BIGWIG.js":5330,"./library/File/GFF.js":1200,"./library/File/VCF.js":8598,"./library/File/WIG.js":728,"./library/Gene.js":4529,"./library/Graph.js":3330,"./library/Graph/Bar.js":1216,"./library/Graph/Line.js":3511,"./library/HighlightRegion.js":5034,"./library/Legend.js":6829,"./library/Scalebar.js":9897,"./library/Scaleline.js":7826,"./library/Static.js":6170,"./library/dbSNP.js":3875};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=2872},9828:function(t,e,n){var i={"./grch37":[9171,[171]],"./grch37.js":[9171,[171]],"./grch38":[3298,[298]],"./grch38.js":[3298,[298]]};function r(t){try{if(!n.o(i,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=i[t],r=e[0];return n.e(e[1][0]).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=9828,t.exports=r},8768:function(){var t;(t=jQuery).fn.mousehold=function(e,n){if(e&&"function"==typeof e&&(n=e,e=100),n&&"function"==typeof n){var i=0,r=0;return this.each(function(){t(this).mousedown(function(){r=1;var t=0,o=this;i=setInterval(function(){t++,n.call(o,t),r=2},e)});var o=function(){clearInterval(i),1==r&&n.call(this,1),r=0};t(this).mouseout(o),t(this).mouseup(o)})}}},1106:function(){!function(t){var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=e.length;n;)t.event.fixHooks[e[--n]]=t.event.mouseHooks;function i(e){var n=e||window.event,i=[].slice.call(arguments,1),r=0,o=0,s=0;return(e=t.event.fix(n)).type="mousewheel",n.wheelDelta&&(r=n.wheelDelta/120),n.detail&&(r=-n.detail/3),s=r,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(s=0,o=-1*r),void 0!==n.wheelDeltaY&&(s=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(o=-1*n.wheelDeltaX/120),i.unshift(e,r,o,s),(t.event.dispatch||t.event.handle).apply(this,i)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var t=e.length;t;)this.removeEventListener(e[--t],i,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)},783:function(){!function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function n(e,n){this.$element=t(e),this.options=n,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var n=this.getTitle();if(n&&this.enabled){var i=this.tip();i.find(".tipsy-inner")[this.options.html?"html":"text"](n),i[0].className="tipsy",i.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,o=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),s=i[0].offsetWidth,a=i[0].offsetHeight,l=e(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-s/2};break;case"s":r={top:o.top-a-this.options.offset,left:o.left+o.width/2-s/2};break;case"e":r={top:o.top+o.height/2-a/2,left:o.left-s-this.options.offset};break;case"w":r={top:o.top+o.height/2-a/2,left:o.left+o.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=o.left+o.width/2-15:r.left=o.left+o.width/2-s+15),i.css(r).addClass("tipsy-"+l),i.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&i.addClass(e(this.options.className,this.$element[0])),this.options.fade?i.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):i.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,n=this.options;return this.fixTitle(),"string"==typeof(n=this.options).title?t=e.attr("title"==n.title?"original-title":n.title):"function"==typeof n.title&&(t=n.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||n.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){if(!0===e)return this.data("tipsy");if("string"==typeof e){var i=this.data("tipsy");return i&&i[e](),this}function r(i){var r=t.data(i,"tipsy");return r||(r=new n(i,t.fn.tipsy.elementOptions(i,e)),t.data(i,"tipsy",r)),r}if((e=t.extend({},t.fn.tipsy.defaults,e)).live||this.each(function(){r(this)}),"manual"!=e.trigger){var o=e.live?"live":"bind",s="hover"==e.trigger?"mouseenter":"focus",a="hover"==e.trigger?"mouseleave":"blur";this[o](s,function(){var t=r(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},e.delayIn))})[o](a,function(){var t=r(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},e.delayOut)})}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.revalidate=function(){t(".tipsy").each(function(){var e=t.data(this,"tipsy-pointee");e&&function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}(e)||t(this).remove()})},t.fn.tipsy.elementOptions=function(e,n){return t.metadata?t.extend({},n,t(e).metadata()):n},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,n){return function(){var i={ns:n[0],ew:n.length>1&&n[1]},r=t(document).scrollTop()+e,o=t(document).scrollLeft()+e,s=t(this);return s.offset().top<r&&(i.ns="n"),s.offset().left<o&&(i.ew="w"),t(window).width()+t(document).scrollLeft()-s.offset().left<e&&(i.ew="e"),t(window).height()+t(document).scrollTop()-s.offset().top<e&&(i.ns="s"),i.ns+(i.ew?i.ew:"")}}}(jQuery)},7859:function(t,e,n){var i={"./jquery.mousehold.js":8768,"./jquery.mousewheel.js":1106,"./jquery.tipsy.js":783};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=7859},9910:function(t,e,n){var i={"./controlPanel":[2459,[840,407]],"./controlPanel.js":[2459,[840,407]],"./fileDrop":[8966,[966]],"./fileDrop.js":[8966,[966]],"./focusRegion":[2177,[840,423]],"./focusRegion.js":[2177,[840,423]],"./fullscreen":[5184,[840,512]],"./fullscreen.js":[5184,[840,512]],"./karyotype":[6347,[347]],"./karyotype.js":[6347,[347]],"./resizer":[6943,[943]],"./resizer.js":[6943,[943]],"./tooltips":[7557,[840,984]],"./tooltips.js":[7557,[840,984]],"./trackControls":[7052,[52]],"./trackControls.js":[7052,[52]]};function r(t){try{if(!n.o(i,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=i[t],r=e[0];return Promise.all(e[1].map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=9910,t.exports=r},9306:function(t,e,n){"use strict";var i=n(4901),r=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},5548:function(t,e,n){"use strict";var i=n(3517),r=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a constructor")}},3506:function(t,e,n){"use strict";var i=n(3925),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},6469:function(t,e,n){"use strict";var i=n(8227),r=n(2360),o=n(4913).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},679:function(t,e,n){"use strict";var i=n(1625),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new r("Incorrect invocation")}},8551:function(t,e,n){"use strict";var i=n(34),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},4373:function(t,e,n){"use strict";var i=n(8981),r=n(5610),o=n(6198);t.exports=function(t){for(var e=i(this),n=o(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>a;)e[a++]=t;return e}},7916:function(t,e,n){"use strict";var i=n(6080),r=n(9565),o=n(8981),s=n(6319),a=n(4209),l=n(3517),c=n(6198),h=n(2278),u=n(4527),f=n(81),p=n(851),d=n(9539),g=Array;t.exports=function(t){var e=l(this),n=arguments.length,m=n>1?arguments[1]:void 0,v=void 0!==m;v&&(m=i(m,n>2?arguments[2]:void 0));var y,b,w,x,_,S,k=o(t),T=p(k),C=0;if(!T||this===g&&a(T))for(y=c(k),b=e?new this(y):g(y);y>C;C++)S=v?m(k[C],C):k[C],h(b,C,S);else for(b=e?new this:[],_=(x=f(k,T)).next;!(w=r(_,x)).done;C++){S=v?s(x,m,[w.value,C],!0):w.value;try{h(b,C,S)}catch(t){d(x,"throw",t)}}return u(b,C),b}},9617:function(t,e,n){"use strict";var i=n(5397),r=n(5610),o=n(6198),s=function(t){return function(e,n,s){var a=i(e),l=o(a);if(0===l)return!t&&-1;var c,h=r(s,l);if(t&&n!=n){for(;l>h;)if((c=a[h++])!=c)return!0}else for(;l>h;h++)if((t||h in a)&&a[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9213:function(t,e,n){"use strict";var i=n(6080),r=n(7055),o=n(8981),s=n(6198),a=n(1469),l=n(2278),c=function(t){var e=1===t,n=2===t,c=3===t,h=4===t,u=6===t,f=7===t,p=5===t||u;return function(d,g,m){for(var v,y,b=o(d),w=r(b),x=s(w),_=i(g,m),S=0,k=0,T=e?a(d,x):n||f?a(d,0):void 0;x>S;S++)if((p||S in w)&&(y=_(v=w[S],S,b),t))if(e)l(T,S,y);else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:l(T,k++,v)}else switch(t){case 4:return!1;case 7:l(T,k++,v)}return u?-1:c||h?h:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},4527:function(t,e,n){"use strict";var i=n(3724),r=n(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:function(t,e,n){"use strict";var i=n(9504);t.exports=i([].slice)},4488:function(t,e,n){"use strict";var i=n(7680),r=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var s,a,l=1;l<n;){for(a=l,s=t[l];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==l++&&(t[a]=s)}else for(var c=r(n/2),h=o(i(t,0,c),e),u=o(i(t,c),e),f=h.length,p=u.length,d=0,g=0;d<f||g<p;)t[d+g]=d<f&&g<p?e(h[d],u[g])<=0?h[d++]:u[g++]:d<f?h[d++]:u[g++];return t};t.exports=o},7433:function(t,e,n){"use strict";var i=n(4376),r=n(3517),o=n(34),s=n(8227)("species"),a=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},1469:function(t,e,n){"use strict";var i=n(7433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},6319:function(t,e,n){"use strict";var i=n(8551),r=n(9539);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},4428:function(t,e,n){"use strict";var i=n(8227)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2195:function(t,e,n){"use strict";var i=n(9504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){"use strict";var i=n(2140),r=n(4901),o=n(2195),s=n(8227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},7740:function(t,e,n){"use strict";var i=n(9297),r=n(5031),o=n(7347),s=n(4913);t.exports=function(t,e,n){for(var a=r(e),l=s.f,c=o.f,h=0;h<a.length;h++){var u=a[h];i(t,u)||n&&i(n,u)||l(t,u,c(e,u))}}},2211:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,n){"use strict";var i=n(3724),r=n(4913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2278:function(t,e,n){"use strict";var i=n(3724),r=n(4913),o=n(6980);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},2106:function(t,e,n){"use strict";var i=n(283),r=n(4913);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},6840:function(t,e,n){"use strict";var i=n(4901),r=n(4913),o=n(283),s=n(9433);t.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(i(n)&&o(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,n){"use strict";var i=n(6840);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},9433:function(t,e,n){"use strict";var i=n(4576),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},3724:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){"use strict";var i=n(4576),r=n(34),o=i.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:function(t,e,n){"use strict";var i=n(2839);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},9544:function(t,e,n){"use strict";var i=n(2839);t.exports=/ipad|iphone|ipod/i.test(i)&&/applewebkit/i.test(i)},8574:function(t,e,n){"use strict";var i=n(4215);t.exports="NODE"===i},7860:function(t,e,n){"use strict";var i=n(2839);t.exports=/web0s(?!.*chrome)/i.test(i)},2839:function(t,e,n){"use strict";var i=n(4576).navigator,r=i&&i.userAgent;t.exports=r?String(r):""},9519:function(t,e,n){"use strict";var i,r,o=n(4576),s=n(2839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(r=(i=h.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},4215:function(t,e,n){"use strict";var i=n(4576),r=n(2839),o=n(2195),s=function(t){return r.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},6193:function(t,e,n){"use strict";var i=n(9504),r=Error,o=i("".replace),s=String(new r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=o(t,a,"");return t}},747:function(t,e,n){"use strict";var i=n(6699),r=n(6193),o=n(4659),s=Error.captureStackTrace;t.exports=function(t,e,n,a){o&&(s?s(t,e):i(t,"stack",r(n,a)))}},4659:function(t,e,n){"use strict";var i=n(9039),r=n(6980);t.exports=!i(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)})},6518:function(t,e,n){"use strict";var i=n(4576),r=n(7347).f,o=n(6699),s=n(6840),a=n(9433),l=n(7740),c=n(2796);t.exports=function(t,e){var n,h,u,f,p,d=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[d]||a(d,{}):i[d]&&i[d].prototype)for(h in e){if(f=e[h],u=t.dontCallGetSet?(p=r(n,h))&&p.value:n[h],!c(g?h:d+(m?".":"#")+h,t.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(t.sham||u&&u.sham)&&o(f,"sham",!0),s(n,h,f,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},259:function(t,e,n){"use strict";var i=n(4376),r=n(6198),o=n(6837),s=n(6080),a=n(2278),l=function(t,e,n,c,h,u,f,p){for(var d,g,m=h,v=0,y=!!f&&s(f,p);v<c;)v in n&&(d=y?y(n[v],v,e):n[v],u>0&&i(d)?(g=r(d),m=l(t,e,d,g,m,u-1)-1):(o(m+1),a(t,m,d)),m++),v++;return m};t.exports=l},8745:function(t,e,n){"use strict";var i=n(616),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},6080:function(t,e,n){"use strict";var i=n(7476),r=n(9306),o=n(616),s=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){"use strict";var i=n(616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){"use strict";var i=n(3724),r=n(9297),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6706:function(t,e,n){"use strict";var i=n(9504),r=n(9306);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},7476:function(t,e,n){"use strict";var i=n(2195),r=n(9504);t.exports=function(t){if("Function"===i(t))return r(t)}},9504:function(t,e,n){"use strict";var i=n(616),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);t.exports=i?s:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){"use strict";var i=n(4576),r=n(4901);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},851:function(t,e,n){"use strict";var i=n(6955),r=n(5966),o=n(4117),s=n(6269),a=n(8227)("iterator");t.exports=function(t){if(!o(t))return r(t,a)||r(t,"@@iterator")||s[i(t)]}},81:function(t,e,n){"use strict";var i=n(9565),r=n(9306),o=n(8551),s=n(6823),a=n(851),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return o(i(n,t));throw new l(s(t)+" is not iterable")}},5966:function(t,e,n){"use strict";var i=n(9306),r=n(4117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},4576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var i=n(9504),r=n(8981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},421:function(t){"use strict";t.exports={}},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,n){"use strict";var i=n(7751);t.exports=i("document","documentElement")},5917:function(t,e,n){"use strict";var i=n(3724),r=n(9039),o=n(4055);t.exports=!i&&!r(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(2195),s=Object,a=i("".split);t.exports=r(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},3706:function(t,e,n){"use strict";var i=n(9504),r=n(4901),o=n(7629),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},7584:function(t,e,n){"use strict";var i=n(34),r=n(6699);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},1181:function(t,e,n){"use strict";var i,r,o,s=n(8622),a=n(4576),l=n(34),c=n(6699),h=n(9297),u=n(7629),f=n(6119),p=n(421),d="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||u.state){var v=u.state||(u.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new g(d);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var y=f("state");p[y]=!0,i=function(t,e){if(h(t,y))throw new g(d);return e.facade=t,c(t,y,e),e},r=function(t){return h(t,y)?t[y]:{}},o=function(t){return h(t,y)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}}}},4209:function(t,e,n){"use strict";var i=n(8227),r=n(6269),o=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},4376:function(t,e,n){"use strict";var i=n(2195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(4901),s=n(6955),a=n(7751),l=n(3706),c=function(){},h=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=i(u.exec),p=!u.test(c),d=function(t){if(!o(t))return!1;try{return h(c,[],t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!h||r(function(){var t;return d(d.call)||!d(Object)||!d(function(){t=!0})||t})?g:d},2796:function(t,e,n){"use strict";var i=n(9039),r=n(4901),o=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n===h||n!==c&&(r(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,n){"use strict";var i=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},3925:function(t,e,n){"use strict";var i=n(34);t.exports=function(t){return i(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,n){"use strict";var i=n(7751),r=n(4901),o=n(1625),s=n(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},2652:function(t,e,n){"use strict";var i=n(6080),r=n(9565),o=n(8551),s=n(6823),a=n(4209),l=n(6198),c=n(1625),h=n(81),u=n(851),f=n(9539),p=TypeError,d=function(t,e){this.stopped=t,this.result=e},g=d.prototype;t.exports=function(t,e,n){var m,v,y,b,w,x,_,S=n&&n.that,k=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=i(e,S),E=function(t){var e=m;return m=void 0,e&&f(e,"normal"),new d(!0,t)},P=function(t){return k?(o(t),O?A(t[0],t[1],E):A(t[0],t[1])):O?A(t,E):A(t)};if(T)m=t.iterator;else if(C)m=t;else{if(!(v=u(t)))throw new p(s(t)+" is not iterable");if(a(v)){for(y=0,b=l(t);b>y;y++)if((w=P(t[y]))&&c(g,w))return w;return new d(!1)}m=h(t,v)}for(x=T?t.next:m.next;!(_=r(x,m)).done;){var j=_.value;try{w=P(j)}catch(t){if(!m)throw t;f(m,"throw",t)}if("object"==typeof w&&w&&c(g,w))return w}return new d(!1)}},9539:function(t,e,n){"use strict";var i=n(9565),r=n(8551),o=n(5966);t.exports=function(t,e,n){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw n;return n}s=i(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return r(s),n}},3994:function(t,e,n){"use strict";var i=n(7657).IteratorPrototype,r=n(2360),o=n(6980),s=n(687),a=n(6269),l=function(){return this};t.exports=function(t,e,n,c){var h=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),s(t,h,!1,!0),a[h]=l,t}},1088:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(6395),s=n(350),a=n(4901),l=n(3994),c=n(2787),h=n(2967),u=n(687),f=n(6699),p=n(6840),d=n(8227),g=n(6269),m=n(7657),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),_="keys",S="values",k="entries",T=function(){return this};t.exports=function(t,e,n,s,d,m,C){l(n,e,s);var O,A,E,P=function(t){if(t===d&&R)return R;if(!w&&t&&t in I)return I[t];switch(t){case _:case S:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",D=!1,I=t.prototype,M=I[x]||I["@@iterator"]||d&&I[d],R=!w&&M||P(d),N="Array"===e&&I.entries||M;if(N&&(O=c(N.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===b||(h?h(O,b):a(O[x])||p(O,x,T)),u(O,j,!0,!0),o&&(g[j]=T)),v&&d===S&&M&&M.name!==S&&(!o&&y?f(I,"name",S):(D=!0,R=function(){return r(M,this)})),d)if(A={values:P(S),keys:m?R:P(_),entries:P(k)},C)for(E in A)(w||D||!(E in I))&&p(I,E,A[E]);else i({target:e,proto:!0,forced:w||D},A);return o&&!C||I[x]===R||p(I,x,R,{name:d}),g[e]=R,A}},7657:function(t,e,n){"use strict";var i,r,o,s=n(9039),a=n(4901),l=n(34),c=n(2360),h=n(2787),u=n(6840),f=n(8227),p=n(6395),d=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(i=r):g=!0),!l(i)||s(function(){var t={};return i[d].call(t)!==t})?i={}:p&&(i=c(i)),a(i[d])||u(i,d,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,n){"use strict";var i=n(8014);t.exports=function(t){return i(t.length)}},283:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(4901),s=n(9297),a=n(3724),l=n(350).CONFIGURABLE,c=n(3706),h=n(1181),u=h.enforce,f=h.get,p=String,d=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=a&&!r(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=u(t);return s(i,"source")||(i.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&f(this).source||c(this)},"toString")},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},1955:function(t,e,n){"use strict";var i,r,o,s,a,l=n(4576),c=n(3389),h=n(6080),u=n(9225).set,f=n(8265),p=n(9544),d=n(4265),g=n(7860),m=n(8574),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var _=new f,S=function(){var t,e;for(m&&(t=b.domain)&&t.exit();e=_.get();)try{e()}catch(t){throw _.head&&i(),t}t&&t.enter()};p||m||g||!v||!y?!d&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=h(s.then,s),i=function(){a(S)}):m?i=function(){b.nextTick(S)}:(u=h(u,l),i=function(){u(S)}):(r=!0,o=y.createTextNode(""),new v(S).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),x=function(t){_.head||i(),_.add(t)}}t.exports=x},6043:function(t,e,n){"use strict";var i=n(9306),r=TypeError,o=function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw new r("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new o(t)}},2603:function(t,e,n){"use strict";var i=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},4213:function(t,e,n){"use strict";var i=n(3724),r=n(9504),o=n(9565),s=n(9039),a=n(1072),l=n(3717),c=n(8773),h=n(8981),u=n(7055),f=Object.assign,p=Object.defineProperty,d=r([].concat);t.exports=!f||s(function(){if(i&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!==f({},t)[n]||a(f({},e)).join("")!==r})?function(t,e){for(var n=h(t),r=arguments.length,s=1,f=l.f,p=c.f;r>s;)for(var g,m=u(arguments[s++]),v=f?d(a(m),f(m)):a(m),y=v.length,b=0;y>b;)g=v[b++],i&&!o(p,m,g)||(n[g]=m[g]);return n}:f},2360:function(t,e,n){"use strict";var i,r=n(8551),o=n(6801),s=n(8727),a=n(421),l=n(397),c=n(4055),h=n(6119),u="prototype",f="script",p=h("IE_PROTO"),d=function(){},g=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&i?m(i):(e=c("iframe"),n="java"+f+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(i);for(var r=s.length;r--;)delete v[u][s[r]];return v()};a[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d[u]=r(t),n=new d,d[u]=null,n[p]=t):n=v(),void 0===e?n:o.f(n,e)}},6801:function(t,e,n){"use strict";var i=n(3724),r=n(8686),o=n(4913),s=n(8551),a=n(5397),l=n(1072);e.f=i&&!r?Object.defineProperties:function(t,e){s(t);for(var n,i=a(e),r=l(e),c=r.length,h=0;c>h;)o.f(t,n=r[h++],i[n]);return t}},4913:function(t,e,n){"use strict";var i=n(3724),r=n(5917),o=n(8686),s=n(8551),a=n(6969),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",f="configurable",p="writable";e.f=i?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=h(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:u in n?n[u]:i[u],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var i=n(3724),r=n(9565),o=n(8773),s=n(6980),a=n(5397),l=n(6969),c=n(9297),h=n(5917),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=a(t),e=l(e),h)try{return u(t,e)}catch(t){}if(c(t,e))return s(!r(o.f,t,e),t[e])}},8480:function(t,e,n){"use strict";var i=n(1828),r=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){"use strict";var i=n(9297),r=n(4901),o=n(8981),s=n(6119),a=n(2211),l=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?h:null}},1625:function(t,e,n){"use strict";var i=n(9504);t.exports=i({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var i=n(9504),r=n(9297),o=n(5397),s=n(9617).indexOf,a=n(421),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,h=[];for(n in i)!r(a,n)&&r(i,n)&&l(h,n);for(;e.length>c;)r(i,n=e[c++])&&(~s(h,n)||l(h,n));return h}},1072:function(t,e,n){"use strict";var i=n(1828),r=n(8727);t.exports=Object.keys||function(t){return i(t,r)}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},2967:function(t,e,n){"use strict";var i=n(6706),r=n(34),o=n(7750),s=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),s(i),r(n)?(e?t(n,i):n.__proto__=i,n):n}}():void 0)},2357:function(t,e,n){"use strict";var i=n(3724),r=n(9039),o=n(9504),s=n(2787),a=n(1072),l=n(5397),c=o(n(8773).f),h=o([].push),u=i&&r(function(){var t=Object.create(null);return t[2]=2,!c(t,2)}),f=function(t){return function(e){for(var n,r=l(e),o=a(r),f=u&&null===s(r),p=o.length,d=0,g=[];p>d;)n=o[d++],i&&!(f?n in r:c(r,n))||h(g,t?[n,r[n]]:r[n]);return g}};t.exports={entries:f(!0),values:f(!1)}},3179:function(t,e,n){"use strict";var i=n(2140),r=n(6955);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},4270:function(t,e,n){"use strict";var i=n(9565),r=n(4901),o=n(34),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!o(a=i(n,t)))return a;if(r(n=t.valueOf)&&!o(a=i(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!o(a=i(n,t)))return a;throw new s("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var i=n(7751),r=n(9504),o=n(8480),s=n(3717),a=n(8551),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?l(e,n(t)):e}},9167:function(t,e,n){"use strict";var i=n(4576);t.exports=i},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,n){"use strict";var i=n(4576),r=n(550),o=n(4901),s=n(2796),a=n(3706),l=n(8227),c=n(4215),h=n(6395),u=n(9519),f=r&&r.prototype,p=l("species"),d=!1,g=o(i.PromiseRejectionEvent),m=s("Promise",function(){var t=a(r),e=t!==String(r);if(!e&&66===u)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!u||u<51||!/native code/.test(t)){var n=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[p]=i,!(d=n.then(function(){})instanceof i))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||g)});t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:d}},550:function(t,e,n){"use strict";var i=n(4576);t.exports=i.Promise},3438:function(t,e,n){"use strict";var i=n(8551),r=n(34),o=n(6043);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},537:function(t,e,n){"use strict";var i=n(550),r=n(4428),o=n(916).CONSTRUCTOR;t.exports=o||!r(function(t){i.all(t).then(void 0,function(){})})},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},7750:function(t,e,n){"use strict";var i=n(4117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},3389:function(t,e,n){"use strict";var i=n(4576),r=n(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return i[t];var e=o(i,t);return e&&e.value}},7633:function(t,e,n){"use strict";var i=n(7751),r=n(2106),o=n(8227),s=n(3724),a=o("species");t.exports=function(t){var e=i(t);s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},687:function(t,e,n){"use strict";var i=n(4913).f,r=n(9297),o=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},6119:function(t,e,n){"use strict";var i=n(5745),r=n(3392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},7629:function(t,e,n){"use strict";var i=n(6395),r=n(4576),o=n(9433),s="__core-js_shared__",a=t.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:i?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){"use strict";var i=n(7629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},2293:function(t,e,n){"use strict";var i=n(8551),r=n(5548),o=n(4117),s=n(8227)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||o(n=i(a)[s])?e:r(n)}},8183:function(t,e,n){"use strict";var i=n(9504),r=n(1291),o=n(655),s=n(7750),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),h=function(t){return function(e,n){var i,h,u=o(s(e)),f=r(n),p=u.length;return f<0||f>=p?t?"":void 0:(i=l(u,f))<55296||i>56319||f+1===p||(h=l(u,f+1))<56320||h>57343?t?a(u,f):i:t?c(u,f,f+2):h-56320+(i-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},6098:function(t,e,n){"use strict";var i=n(9504),r=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",l=RangeError,c=i(s.exec),h=Math.floor,u=String.fromCharCode,f=i("".charCodeAt),p=i([].join),d=i([].push),g=i("".replace),m=i("".split),v=i("".toLowerCase),y=function(t){return t+22+75*(t<26)},b=function(t,e,n){var i=0;for(t=n?h(t/700):t>>1,t+=h(t/e);t>455;)t=h(t/35),i+=36;return h(i+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=f(t,n++);if(r>=55296&&r<=56319&&n<i){var o=f(t,n++);56320==(64512&o)?d(e,((1023&r)<<10)+(1023&o)+65536):(d(e,r),n--)}else d(e,r)}return e}(t);var n,i,o=t.length,s=128,c=0,g=72;for(n=0;n<t.length;n++)(i=t[n])<128&&d(e,u(i));var m=e.length,v=m;for(m&&d(e,"-");v<o;){var w=r;for(n=0;n<t.length;n++)(i=t[n])>=s&&i<w&&(w=i);var x=v+1;if(w-s>h((r-c)/x))throw new l(a);for(c+=(w-s)*x,s=w,n=0;n<t.length;n++){if((i=t[n])<s&&++c>r)throw new l(a);if(i===s){for(var _=c,S=36;;){var k=S<=g?1:S>=g+26?26:S-g;if(_<k)break;var T=_-k,C=36-k;d(e,u(y(k+T%C))),_=h(T/C),S+=36}d(e,u(y(_))),g=b(c,x,v===m),c=0,v++}}c++,s++}return p(e,"")};t.exports=function(t){var e,n,i=[],r=m(g(v(t),s,"."),".");for(e=0;e<r.length;e++)n=r[e],d(i,c(o,n)?"xn--"+w(n):n);return p(i,".")}},4495:function(t,e,n){"use strict";var i=n(9519),r=n(9039),o=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41})},9225:function(t,e,n){"use strict";var i,r,o,s,a=n(4576),l=n(8745),c=n(6080),h=n(4901),u=n(9297),f=n(9039),p=n(397),d=n(7680),g=n(4055),m=n(2812),v=n(9544),y=n(8574),b=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,S=a.Function,k=a.MessageChannel,T=a.String,C=0,O={},A="onreadystatechange";f(function(){i=a.location});var E=function(t){if(u(O,t)){var e=O[t];delete O[t],e()}},P=function(t){return function(){E(t)}},j=function(t){E(t.data)},D=function(t){a.postMessage(T(t),i.protocol+"//"+i.host)};b&&w||(b=function(t){m(arguments.length,1);var e=h(t)?t:S(t),n=d(arguments,1);return O[++C]=function(){l(e,void 0,n)},r(C),C},w=function(t){delete O[t]},y?r=function(t){x.nextTick(P(t))}:_&&_.now?r=function(t){_.now(P(t))}:k&&!v?(s=(o=new k).port2,o.port1.onmessage=j,r=c(s.postMessage,s)):a.addEventListener&&h(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!f(D)?(r=D,a.addEventListener("message",j,!1)):r=A in g("script")?function(t){p.appendChild(g("script"))[A]=function(){p.removeChild(this),E(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:w}},5610:function(t,e,n){"use strict";var i=n(1291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},5397:function(t,e,n){"use strict";var i=n(7055),r=n(7750);t.exports=function(t){return i(r(t))}},1291:function(t,e,n){"use strict";var i=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},8014:function(t,e,n){"use strict";var i=n(1291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var i=n(7750),r=Object;t.exports=function(t){return r(i(t))}},2777:function(t,e,n){"use strict";var i=n(9565),r=n(34),o=n(757),s=n(5966),a=n(4270),l=n(8227),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=s(t,h);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,n){"use strict";var i=n(2777),r=n(757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},2140:function(t,e,n){"use strict";var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},655:function(t,e,n){"use strict";var i=n(6955),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){"use strict";var i=n(9504),r=0,o=Math.random(),s=i(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},7416:function(t,e,n){"use strict";var i=n(9039),r=n(8227),o=n(3724),s=n(6395),a=r("iterator");t.exports=!i(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),i+=n+t}),n.delete("a",2),n.delete("b",void 0),s&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(s||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host})},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var i=n(3724),r=n(9039);t.exports=i&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:function(t,e,n){"use strict";var i=n(4576),r=n(4901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},8227:function(t,e,n){"use strict";var i=n(4576),r=n(5745),o=n(9297),s=n(3392),a=n(4495),l=n(7040),c=i.Symbol,h=r("wks"),u=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return o(h,t)||(h[t]=a&&o(c,t)?c[t]:u("Symbol."+t)),h[t]}},7145:function(t,e,n){"use strict";var i=n(6518),r=n(1625),o=n(2787),s=n(2967),a=n(7740),l=n(2360),c=n(6699),h=n(6980),u=n(7584),f=n(747),p=n(2652),d=n(2603),g=n(8227)("toStringTag"),m=Error,v=[].push,y=function(t,e){var n,i=r(b,this);s?n=s(new m,i?o(this):b):(n=i?this:l(b),c(n,g,"Error")),void 0!==e&&c(n,"message",d(e)),f(n,y,n.stack,1),arguments.length>2&&u(n,arguments[2]);var a=[];return p(t,v,{that:a}),c(n,"errors",a),n};s?s(y,m):a(y,m,{name:!0});var b=y.prototype=l(m.prototype,{constructor:h(1,y),message:h(1,""),name:h(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:y})},67:function(t,e,n){"use strict";n(7145)},3771:function(t,e,n){"use strict";var i=n(6518),r=n(4373),o=n(6469);i({target:"Array",proto:!0},{fill:r}),o("fill")},113:function(t,e,n){"use strict";var i=n(6518),r=n(9213).find,o=n(6469),s="find",a=!0;s in[]&&Array(1)[s](function(){a=!1}),i({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},8350:function(t,e,n){"use strict";var i=n(6518),r=n(259),o=n(9306),s=n(8981),a=n(6198),l=n(1469);i({target:"Array",proto:!0},{flatMap:function(t){var e,n=s(this),i=a(n);return o(t),e=l(n,0),r(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6449:function(t,e,n){"use strict";var i=n(6518),r=n(259),o=n(8981),s=n(6198),a=n(1291),l=n(1469);i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=s(e),i=void 0===t?1:a(t),c=l(e,0);return r(c,e,e,n,0,i),c}})},4423:function(t,e,n){"use strict";var i=n(6518),r=n(9617).includes,o=n(9039),s=n(6469),a=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});i({target:"Array",proto:!0,forced:a||l},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},3792:function(t,e,n){"use strict";var i=n(5397),r=n(6469),o=n(6269),s=n(1181),a=n(4913).f,l=n(1088),c=n(2529),h=n(6395),u=n(3724),f="Array Iterator",p=s.set,d=s.getterFor(f);t.exports=l(Array,"Array",function(t,e){p(this,{type:f,target:i(t),index:0,kind:e})},function(){var t=d(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)},"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!h&&u&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(t){}},237:function(t,e,n){"use strict";n(6469)("flatMap")},3514:function(t,e,n){"use strict";n(6469)("flat")},9085:function(t,e,n){"use strict";var i=n(6518),r=n(4213);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},5506:function(t,e,n){"use strict";var i=n(6518),r=n(2357).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},6099:function(t,e,n){"use strict";var i=n(2140),r=n(6840),o=n(3179);i||r(Object.prototype,"toString",o,{unsafe:!0})},6034:function(t,e,n){"use strict";var i=n(6518),r=n(2357).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},6167:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{allSettled:function(t){var e=this,n=s.f(e),i=n.resolve,c=n.reject,h=a(function(){var n=o(e.resolve),s=[],a=0,c=1;l(t,function(t){var o=a++,l=!1;c++,r(n,e,t).then(function(t){l||(l=!0,s[o]={status:"fulfilled",value:t},--c||i(s))},function(t){l||(l=!0,s[o]={status:"rejected",reason:t},--c||i(s))})}),--c||i(s)});return h.error&&c(h.value),n.promise}})},6499:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{all:function(t){var e=this,n=s.f(e),i=n.resolve,c=n.reject,h=a(function(){var n=o(e.resolve),s=[],a=0,h=1;l(t,function(t){var o=a++,l=!1;h++,r(n,e,t).then(function(t){l||(l=!0,s[o]=t,--h||i(s))},c)}),--h||i(s)});return h.error&&c(h.value),n.promise}})},3518:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(7751),a=n(6043),l=n(1103),c=n(2652),h=n(537),u="No one promise resolved";i({target:"Promise",stat:!0,forced:h},{any:function(t){var e=this,n=s("AggregateError"),i=a.f(e),h=i.resolve,f=i.reject,p=l(function(){var i=o(e.resolve),s=[],a=0,l=1,p=!1;c(t,function(t){var o=a++,c=!1;l++,r(i,e,t).then(function(t){c||p||(p=!0,h(t))},function(t){c||p||(c=!0,s[o]=t,--l||f(new n(s,u)))})}),--l||f(new n(s,u))});return p.error&&f(p.value),i.promise}})},2003:function(t,e,n){"use strict";var i=n(6518),r=n(6395),o=n(916).CONSTRUCTOR,s=n(550),a=n(7751),l=n(4901),c=n(6840),h=s&&s.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(s)){var u=a("Promise").prototype.catch;h.catch!==u&&c(h,"catch",u,{unsafe:!0})}},436:function(t,e,n){"use strict";var i,r,o,s,a=n(6518),l=n(6395),c=n(8574),h=n(4576),u=n(9167),f=n(9565),p=n(6840),d=n(2967),g=n(687),m=n(7633),v=n(9306),y=n(4901),b=n(34),w=n(679),x=n(2293),_=n(9225).set,S=n(1955),k=n(3138),T=n(1103),C=n(8265),O=n(1181),A=n(550),E=n(916),P=n(6043),j="Promise",D=E.CONSTRUCTOR,I=E.REJECTION_EVENT,M=E.SUBCLASSING,R=O.getterFor(j),N=O.set,F=A&&A.prototype,H=A,L=F,z=h.TypeError,B=h.document,U=h.process,W=P.f,q=W,$=!!(B&&B.createEvent&&h.dispatchEvent),G="unhandledrejection",V=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},Y=function(t,e){var n,i,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,c=t.reject,h=t.domain;try{a?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===a?n=o:(h&&h.enter(),n=a(o),h&&(h.exit(),r=!0)),n===t.promise?c(new z("Promise-chain cycle")):(i=V(n))?f(i,n,l,c):l(n)):c(o)}catch(t){h&&!r&&h.exit(),c(t)}},X=function(t,e){t.notified||(t.notified=!0,S(function(){for(var n,i=t.reactions;n=i.get();)Y(n,t);t.notified=!1,e&&!t.rejection&&J(t)}))},Q=function(t,e,n){var i,r;$?((i=B.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:n},!I&&(r=h["on"+t])?r(i):t===G&&k("Unhandled promise rejection",n)},J=function(t){f(_,h,function(){var e,n=t.facade,i=t.value;if(K(t)&&(e=T(function(){c?U.emit("unhandledRejection",i,n):Q(G,n,i)}),t.rejection=c||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){f(_,h,function(){var e=t.facade;c?U.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,n){return function(i){t(e,i,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,X(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=V(e);i?S(function(){var n={done:!1};try{f(i,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}}):(t.value=e,t.state=1,X(t,!1))}catch(e){et({done:!1},e,t)}}};if(D&&(L=(H=function(t){w(this,L),v(t),f(i,this);var e=R(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(i=function(t){N(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=p(L,"then",function(t,e){var n=R(this),i=W(x(this,H));return n.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=c?U.domain:void 0,0===n.state?n.reactions.add(i):S(function(){Y(i,n)}),i.promise}),r=function(){var t=new i,e=R(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},P.f=W=function(t){return t===H||t===o?new r(t):q(t)},!l&&y(A)&&F!==Object.prototype)){s=F.then,M||p(F,"then",function(t,e){var n=this;return new H(function(t,e){f(s,n,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}d&&d(F,L)}a({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:H}),o=u.Promise,g(H,j,!1,!0),m(j)},9391:function(t,e,n){"use strict";var i=n(6518),r=n(6395),o=n(550),s=n(9039),a=n(7751),l=n(4901),c=n(2293),h=n(3438),u=n(6840),f=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){f.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,a("Promise")),n=l(t);return this.then(n?function(n){return h(e,t()).then(function(){return n})}:t,n?function(n){return h(e,t()).then(function(){throw n})}:t)}}),!r&&l(o)){var p=a("Promise").prototype.finally;f.finally!==p&&u(f,"finally",p,{unsafe:!0})}},3362:function(t,e,n){"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{race:function(t){var e=this,n=s.f(e),i=n.reject,c=a(function(){var s=o(e.resolve);l(t,function(t){r(s,e,t).then(n.resolve,i)})});return c.error&&i(c.value),n.promise}})},1481:function(t,e,n){"use strict";var i=n(6518),r=n(6043);i({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},280:function(t,e,n){"use strict";var i=n(6518),r=n(7751),o=n(6395),s=n(550),a=n(916).CONSTRUCTOR,l=n(3438),c=r("Promise"),h=o&&!a;i({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return l(h&&this===c?s:this,t)}})},7337:function(t,e,n){"use strict";var i=n(6518),r=n(9504),o=n(5610),s=RangeError,a=String.fromCharCode,l=String.fromCodePoint,c=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(o(e=+arguments[r],1114111)!==e)throw new s(e+" is not a valid code point");n[r++]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},7764:function(t,e,n){"use strict";var i=n(8183).charAt,r=n(655),o=n(1181),s=n(1088),a=n(2529),l="String Iterator",c=o.set,h=o.getterFor(l);s(String,"String",function(t){c(this,{type:l,string:r(t),index:0})},function(){var t,e=h(this),n=e.string,r=e.index;return r>=n.length?a(void 0,!0):(t=i(n,r),e.index+=t.length,a(t,!1))})},8406:function(t,e,n){"use strict";n(3792),n(7337);var i=n(6518),r=n(4576),o=n(3389),s=n(7751),a=n(9565),l=n(9504),c=n(3724),h=n(7416),u=n(6840),f=n(2106),p=n(6279),d=n(687),g=n(3994),m=n(1181),v=n(679),y=n(4901),b=n(9297),w=n(6080),x=n(6955),_=n(8551),S=n(34),k=n(655),T=n(2360),C=n(6980),O=n(81),A=n(851),E=n(2529),P=n(2812),j=n(8227),D=n(4488),I=j("iterator"),M="URLSearchParams",R=M+"Iterator",N=m.set,F=m.getterFor(M),H=m.getterFor(R),L=o("fetch"),z=o("Request"),B=o("Headers"),U=z&&z.prototype,W=B&&B.prototype,q=r.TypeError,$=r.encodeURIComponent,G=String.fromCharCode,V=s("String","fromCodePoint"),Y=parseInt,X=l("".charAt),Q=l([].join),J=l([].push),K=l("".replace),Z=l([].shift),tt=l([].splice),et=l("".split),nt=l("".slice),it=l(/./.exec),rt=/\+/g,ot=/^[0-9a-f]+$/i,st=function(t,e){var n=nt(t,e,e+2);return it(ot,n)?Y(n,16):NaN},at=function(t){for(var e=0,n=128;n>0&&0!==(t&n);n>>=1)e++;return e},lt=function(t){var e=null,n=t.length;switch(n){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return null===e||e>1114111||e>=55296&&e<=57343||e<(n>3?65536:n>2?2048:n>1?128:0)?null:e},ct=function(t){for(var e=(t=K(t,rt," ")).length,n="",i=0;i<e;){var r=X(t,i);if("%"===r){if("%"===X(t,i+1)||i+3>e){n+="%",i++;continue}var o=st(t,i+1);if(o!=o){n+=r,i++;continue}i+=2;var s=at(o);if(0===s)r=G(o);else{if(1===s||s>4){n+="�",i++;continue}for(var a=[o],l=1;l<s&&!(++i+3>e||"%"!==X(t,i));){var c=st(t,i+1);if(c!=c||c>191||c<128)break;if(1===l){if(224===o&&c<160)break;if(237===o&&c>159)break;if(240===o&&c<144)break;if(244===o&&c>143)break}J(a,c),i+=2,l++}if(a.length!==s){n+="�";continue}var h=lt(a);if(null===h){for(var u=0;u<s;u++)n+="�";i++;continue}r=V(h)}}n+=r,i++}return n},ht=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ft=function(t){return ut[t]},pt=function(t){return K($(t),ht,ft)},dt=g(function(t,e){N(this,{type:R,target:F(t).entries,index:0,kind:e})},M,function(){var t=H(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,E(void 0,!0);var i=e[n];switch(t.kind){case"keys":return E(i.key,!1);case"values":return E(i.value,!1)}return E([i.key,i.value],!1)},!0),gt=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?nt(t,1):t:k(t)))};gt.prototype={type:M,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,s,l,c=this.entries,h=A(t);if(h)for(n=(e=O(t,h)).next;!(i=a(n,e)).done;){if(o=(r=O(_(i.value))).next,(s=a(o,r)).done||(l=a(o,r)).done||!a(o,r).done)throw new q("Expected sequence with length 2");J(c,{key:k(s.value),value:k(l.value)})}else for(var u in t)b(t,u)&&J(c,{key:u,value:k(t[u])})},parseQuery:function(t){if(t)for(var e,n,i=this.entries,r=et(t,"&"),o=0;o<r.length;)(e=r[o++]).length&&(n=et(e,"="),J(i,{key:ct(Z(n)),value:ct(Q(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],J(n,pt(t.key)+"="+pt(t.value));return Q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){v(this,vt);var t=N(this,new gt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},vt=mt.prototype;if(p(vt,{append:function(t,e){var n=F(this);P(arguments.length,2),J(n.entries,{key:k(t),value:k(e)}),c||this.size++,n.updateURL()},delete:function(t){for(var e=F(this),n=P(arguments.length,1),i=e.entries,r=k(t),o=n<2?void 0:arguments[1],s=void 0===o?o:k(o),a=0;a<i.length;){var l=i[a];l.key!==r||void 0!==s&&l.value!==s?a++:tt(i,a,1)}c||(this.size=i.length),e.updateURL()},get:function(t){var e=F(this).entries;P(arguments.length,1);for(var n=k(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){var e=F(this).entries;P(arguments.length,1);for(var n=k(t),i=[],r=0;r<e.length;r++)e[r].key===n&&J(i,e[r].value);return i},has:function(t){for(var e=F(this).entries,n=P(arguments.length,1),i=k(t),r=n<2?void 0:arguments[1],o=void 0===r?r:k(r),s=0;s<e.length;){var a=e[s++];if(a.key===i&&(void 0===o||a.value===o))return!0}return!1},set:function(t,e){var n=F(this);P(arguments.length,2);for(var i,r=n.entries,o=!1,s=k(t),a=k(e),l=0;l<r.length;l++)(i=r[l]).key===s&&(o?tt(r,l--,1):(o=!0,i.value=a));o||J(r,{key:s,value:a}),c||(this.size=r.length),n.updateURL()},sort:function(){var t=F(this);D(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,n=F(this).entries,i=w(t,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((e=n[r++]).value,e.key,this)},keys:function(){return new dt(this,"keys")},values:function(){return new dt(this,"values")},entries:function(){return new dt(this,"entries")}},{enumerable:!0}),u(vt,I,vt.entries,{name:"entries"}),u(vt,"toString",function(){return F(this).serialize()},{enumerable:!0}),c&&f(vt,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),d(mt,M),i({global:!0,constructor:!0,forced:!h},{URLSearchParams:mt}),!h&&y(B)){var yt=l(W.has),bt=l(W.set),wt=function(t){if(S(t)){var e,n=t.body;if(x(n)===M)return e=t.headers?new B(t.headers):new B,yt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(t,{body:C(0,k(n)),headers:C(0,e)})}return t};if(y(L)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?wt(arguments[1]):{})}}),y(z)){var xt=function(t){return v(this,U),new z(t,arguments.length>1?wt(arguments[1]):{})};U.constructor=xt,xt.prototype=U,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:mt,getState:F}},8408:function(t,e,n){"use strict";n(8406)},5806:function(t,e,n){"use strict";n(7764);var i,r=n(6518),o=n(3724),s=n(7416),a=n(4576),l=n(6080),c=n(9504),h=n(6840),u=n(2106),f=n(679),p=n(9297),d=n(4213),g=n(7916),m=n(7680),v=n(8183).codeAt,y=n(6098),b=n(655),w=n(687),x=n(2812),_=n(8406),S=n(1181),k=S.set,T=S.getterFor("URL"),C=_.URLSearchParams,O=_.getState,A=a.URL,E=a.TypeError,P=a.encodeURIComponent,j=a.parseInt,D=Math.floor,I=Math.pow,M=c("".charAt),R=c(/./.exec),N=c([].join),F=c(1.1.toString),H=c([].pop),L=c([].push),z=c("".replace),B=c([].shift),U=c("".split),W=c("".slice),q=c("".toLowerCase),$=c([].unshift),G="Invalid scheme",V="Invalid host",Y="Invalid port",X=/[a-z]/i,Q=/[\d+\-.a-z]/i,J=/\d/,K=/^0x/i,Z=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,st=/[\t\n\r]/g,at=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)$(e,t%256),t=D(t/256);return N(e,".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n?i:e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},lt={},ct=d({},lt,{" ":1,'"':1,"#":1,"<":1,">":1}),ht=d({},ct,{"'":1}),ut=d({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),ft=d({},ut,{"#":1,"?":1,"{":1,"}":1,"^":1}),pt=d({},ft,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var n=v(t,0);return n>=32&&n<127&&!p(e,t)?t:"'"===t&&p(e,t)?"%27":P(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mt=function(t,e){var n;return 2===t.length&&R(X,M(t,0))&&(":"===(n=M(t,1))||!e&&"|"===n)},vt=function(t){var e;return t.length>1&&mt(W(t,0,2))&&(2===t.length||"/"===(e=M(t,2))||"\\"===e||"?"===e||"#"===e)},yt=function(t){return"."===t||"%2e"===q(t)},bt=function(t){return".."===(t=q(t))||"%2e."===t||".%2e"===t||"%2e%2e"===t},wt={},xt={},_t={},St={},kt={},Tt={},Ct={},Ot={},At={},Et={},Pt={},jt={},Dt={},It={},Mt={},Rt={},Nt={},Ft={},Ht={},Lt={},zt={},Bt=function(t,e,n){var i,r,o,s=b(t);if(e){if(r=this.parse(s))throw new E(r);this.searchParams=null}else{if(void 0!==n&&(i=new Bt(n,!0)),r=this.parse(s,null,i))throw new E(r);(o=O(new C)).bindURL(this),this.searchParams=o}};Bt.prototype={type:"URL",parse:function(t,e,n){var r,o,s,a,l=this,c=e||wt,h=0,u="",f=!1,d=!1,v=!1;for(t=b(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=z(t,rt,""),t=z(t,ot,"$1")),t=z(t,st,""),r=g(t);h<=r.length;){switch(o=r[h],c){case wt:if(!o||!R(X,o)){if(e)return G;c=_t;continue}u+=q(o),c=xt;break;case xt:if(o&&R(Q,o))u+=q(o);else{if(":"!==o){if(e)return G;u="",c=_t,h=0;continue}if(e&&(l.isSpecial()!==p(gt,u)||"file"===u&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&""===l.host))return;if(l.scheme=u,e)return void(l.isSpecial()&&gt[l.scheme]===l.port&&(l.port=null));u="","file"===l.scheme?c=It:l.isSpecial()&&n&&n.scheme===l.scheme?c=St:l.isSpecial()?c=Ot:"/"===r[h+1]?(c=kt,h++):(l.cannotBeABaseURL=!0,L(l.path,""),c=Ht)}break;case _t:if(!n||n.cannotBeABaseURL&&"#"!==o)return G;if(n.cannotBeABaseURL&&"#"===o){l.scheme=n.scheme,l.path=m(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=zt;break}c="file"===n.scheme?It:Tt;continue;case St:if("/"!==o||"/"!==r[h+1]){c=Tt;continue}c=At,h++;break;case kt:if("/"===o){c=Et;break}c=Ft;continue;case Tt:if(l.scheme=n.scheme,o===i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query;else if("/"===o||"\\"===o&&l.isSpecial())c=Ct;else if("?"===o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query="",c=Lt;else{if("#"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.path.length&&l.path.length--,c=Ft;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query,l.fragment="",c=zt}break;case Ct:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Ft;continue}c=Et}else c=At;break;case Ot:if(c=At,"/"!==o||"/"!==r[h+1])continue;h++;break;case At:if("/"!==o&&"\\"!==o){c=Et;continue}break;case Et:if("@"===o){f&&(u="%40"+u),f=!0,s=g(u);for(var y=0;y<s.length;y++){var w=s[y];if(":"!==w||v){var x=dt(w,pt);v?l.password+=x:l.username+=x}else v=!0}u=""}else if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(f&&""===u)return"Invalid authority";h-=g(u).length+1,u="",c=Pt}else u+=o;break;case Pt:case jt:if(e&&"file"===l.scheme){c=Rt;continue}if(":"!==o||d){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===u)return V;if(e&&""===u&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(u))return a;if(u="",c=Nt,e)return;continue}"["===o?d=!0:"]"===o&&(d=!1),u+=o}else{if(""===u)return V;if(e===jt)return;if(a=l.parseHost(u))return a;u="",c=Dt}break;case Dt:if(!R(J,o)){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||e){if(""!==u){var _=j(u,10);if(_>65535)return Y;l.port=l.isSpecial()&&_===gt[l.scheme]?null:_,u=""}if(e)return;c=Nt;continue}return Y}u+=o;break;case It:if(l.scheme="file",l.host="","/"===o||"\\"===o)c=Mt;else{if(!n||"file"!==n.scheme){c=Ft;continue}switch(o){case i:l.host=n.host,l.path=m(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=m(n.path),l.query="",c=Lt;break;case"#":l.host=n.host,l.path=m(n.path),l.query=n.query,l.fragment="",c=zt;break;default:l.host=n.host,vt(N(m(r,h),""))||(l.path=m(n.path),l.shortenPath()),c=Ft;continue}}break;case Mt:if("/"===o||"\\"===o){c=Rt;break}n&&"file"===n.scheme&&(l.host=n.host,!vt(N(m(r,h),""))&&mt(n.path[0],!0)&&L(l.path,n.path[0])),c=Ft;continue;case Rt:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&mt(u))c=Ft;else if(""===u){if(l.host="",e)return;c=Nt}else{if(a=l.parseHost(u))return a;if("localhost"===l.host&&(l.host=""),e)return;u="",c=Nt}continue}u+=o;break;case Nt:if(l.isSpecial()){if(c=Ft,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==i&&(c=Ft,"/"!==o))continue}else l.fragment="",c=zt;else l.query="",c=Lt;break;case Ft:if(o===i||"/"===o||"\\"===o&&l.isSpecial()||!e&&("?"===o||"#"===o)){if(bt(u)?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||L(l.path,"")):yt(u)?"/"===o||"\\"===o&&l.isSpecial()||L(l.path,""):("file"===l.scheme&&!l.path.length&&mt(u)&&(null!==l.host&&""!==l.host&&(l.host=""),u=M(u,0)+":"),L(l.path,u)),u="","file"===l.scheme&&(o===i||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)B(l.path);"?"===o?(l.query="",c=Lt):"#"===o&&(l.fragment="",c=zt)}else u+=dt(o,ft);break;case Ht:"?"===o?(l.query="",c=Lt):"#"===o?(l.fragment="",c=zt):o!==i&&(l.path[0]+=dt(o,lt));break;case Lt:e||"#"!==o?o!==i&&(l.query+=dt(o,l.isSpecial()?ht:ct)):(l.fragment="",c=zt);break;case zt:o!==i&&(l.fragment+=dt(o,ut))}h++}},parseHost:function(t){var e,n,i;if("["===M(t,0)){if("]"!==M(t,t.length-1))return V;if(e=function(t){var e,n,i,r,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,h=null,u=0,f=function(){return M(t,u)};if(":"===f()){if(":"!==M(t,1))return;u+=2,h=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=n=0;n<4&&R(et,f());)e=16*e+j(f(),16),u++,n++;if("."===f()){if(0===n)return;if(u-=n,c>6)return;for(i=0;f();){if(r=null,i>0){if(!("."===f()&&i<4))return;u++}if(!R(J,f()))return;for(;R(J,f());){if(o=j(f(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;u++}l[c]=256*l[c]+r,2!==++i&&4!==i||c++}if(4!==i)return;break}if(":"===f()){if(u++,!f())return}else if(f())return;l[c++]=e}else{if(null!==h)return;u++,h=++c}}if(null!==h)for(s=c-h,c=7;0!==c&&s>0;)a=l[c],l[c--]=l[h+s-1],l[h+--s]=a;else if(8!==c)return;return l}(W(t,1,-1)),!e)return V;this.host=e}else if(this.isSpecial()){if(t=y(t),R(nt,t))return V;if(function(t){var e,n,i=U(t,".");if(""===i[i.length-1]){if(1===i.length)return!1;i.length--}return e=i[i.length-1],!!R(tt,e)||!!R(K,e)&&(""===(n=W(e,2))||!!R(et,n))}(t)){if(e=function(t){var e,n,i,r,o,s,a,l=U(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return null;for(n=[],i=0;i<e;i++){if(""===(r=l[i]))return null;if(o=10,r.length>1&&"0"===M(r,0)&&(o=R(K,r)?16:8,r=W(r,8===o?1:2)),""===r)s=0;else{if(!R(10===o?tt:8===o?Z:et,r))return null;s=j(r,o)}L(n,s)}for(i=0;i<e;i++)if(s=n[i],i===e-1){if(s>=I(256,5-e))return null}else if(s>255)return null;for(a=H(n),i=0;i<n.length;i++)a+=n[i]*I(256,3-i);return a}(t),null===e)return V;this.host=e}else this.host=t}else{if(R(it,t))return V;for(e="",n=g(t),i=0;i<n.length;i++)e+=dt(n[i],lt);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(gt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&mt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,c=e+":";return null!==r?(c+="//",t.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=at(r),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),null===r&&!t.cannotBeABaseURL&&s.length>1&&""===s[0]&&(c+="/."),c+=t.cannotBeABaseURL?s[0]:s.length?"/"+N(s,"/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw new E(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ut(this.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",wt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=dt(e[n],pt)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=dt(e[n],pt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Pt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,jt)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Dt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+N(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Nt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===M(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Lt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===M(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,zt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ut=function(t){var e=f(this,Wt),n=x(arguments.length,1)>1?arguments[1]:void 0,i=k(e,new Bt(t,!1,n));o||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.getHash())},Wt=Ut.prototype,qt=function(t,e){return{get:function(){return T(this)[t]()},set:e&&function(t){return T(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(u(Wt,"href",qt("serialize","setHref")),u(Wt,"origin",qt("getOrigin")),u(Wt,"protocol",qt("getProtocol","setProtocol")),u(Wt,"username",qt("getUsername","setUsername")),u(Wt,"password",qt("getPassword","setPassword")),u(Wt,"host",qt("getHost","setHost")),u(Wt,"hostname",qt("getHostname","setHostname")),u(Wt,"port",qt("getPort","setPort")),u(Wt,"pathname",qt("getPathname","setPathname")),u(Wt,"search",qt("getSearch","setSearch")),u(Wt,"searchParams",qt("getSearchParams")),u(Wt,"hash",qt("getHash","setHash"))),h(Wt,"toJSON",function(){return T(this).serialize()},{enumerable:!0}),h(Wt,"toString",function(){return T(this).serialize()},{enumerable:!0}),A){var $t=A.createObjectURL,Gt=A.revokeObjectURL;$t&&h(Ut,"createObjectURL",l($t,A)),Gt&&h(Ut,"revokeObjectURL",l(Gt,A))}w(Ut,"URL"),r({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Ut})},3296:function(t,e,n){"use strict";n(5806)},7208:function(t,e,n){"use strict";var i=n(6518),r=n(9565);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},9418:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,{A:function(){return mt}});const o=Object.entries,s=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let h=Object.freeze,u=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,d=p.apply,g=p.construct;h||(h=function(t){return t}),u||(u=function(t){return t}),d||(d=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return t.apply(e,i)}),g||(g=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new t(...n)});const m=F(Array.prototype.forEach),v=F(Array.prototype.lastIndexOf),y=F(Array.prototype.pop),b=F(Array.prototype.push),w=F(Array.prototype.splice),x=Array.isArray,_=F(String.prototype.toLowerCase),S=F(String.prototype.toString),k=F(String.prototype.match),T=F(String.prototype.replace),C=F(String.prototype.indexOf),O=F(String.prototype.trim),A=F(Number.prototype.toString),E=F(Boolean.prototype.toString),P="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),j="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),D=F(Object.prototype.hasOwnProperty),I=F(Object.prototype.toString),M=F(RegExp.prototype.test),R=(N=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return g(N,e)});var N;function F(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return d(t,e,i)}}function H(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(s&&s(t,null),!x(e))return t;let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(a(e)||(e[i]=t),r=t)}t[r]=!0}return t}function L(t){for(let e=0;e<t.length;e++){D(t,e)||(t[e]=null)}return t}function z(t){const e=f(null);for(const i of o(t)){var n=r(i,2);const o=n[0],s=n[1];D(t,o)&&(x(s)?e[o]=L(s):s&&"object"==typeof s&&s.constructor===Object?e[o]=z(s):e[o]=s)}return e}function B(t,e){for(;null!==t;){const n=c(t,e);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}t=l(t)}return function(){return null}}const U=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$=h(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),G=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),V=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Y=h(["#text"]),X=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Q=h(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=h(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=u(/{{[\w\W]*|^[\w\W]*}}/g),tt=u(/<%[\w\W]*|^[\w\W]*%>/g),et=u(/\${[\w\W]*/g),nt=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),it=u(/^aria-[\-\w]+$/),rt=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=u(/^(?:\w+script|data):/i),st=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=u(/^html$/i),lt=u(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=1,ht=3,ut=7,ft=8,pt=9,dt=11,gt=function(){return"undefined"==typeof window?null:window};var mt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const n=e=>t(e);if(n.version="3.4.7",n.removed=[],!e||!e.document||e.document.nodeType!==pt||!e.Element)return n.isSupported=!1,n;let i=e.document;const r=i,s=r.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,p=e.NamedNodeMap;void 0===p&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,g=e.trustedTypes,N=c.prototype,F=B(N,"cloneNode"),L=B(N,"remove"),mt=B(N,"nextSibling"),vt=B(N,"childNodes"),yt=B(N,"parentNode"),bt=B(N,"shadowRoot"),wt=B(N,"attributes"),xt=l&&l.prototype?B(l.prototype,"nodeType"):null,_t=l&&l.prototype?B(l.prototype,"nodeName"):null;if("function"==typeof a){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let St,kt="";const Tt=i,Ct=Tt.implementation,Ot=Tt.createNodeIterator,At=Tt.createDocumentFragment,Et=Tt.getElementsByTagName,Pt=r.importNode;let jt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof o&&"function"==typeof yt&&Ct&&void 0!==Ct.createHTMLDocument;const Dt=Z,It=tt,Mt=et,Rt=nt,Nt=it,Ft=ot,Ht=st,Lt=lt;let zt=rt,Bt=null;const Ut=H({},[...U,...W,...q,...G,...Y]);let Wt=null;const qt=H({},[...X,...Q,...J,...K]);let $t=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Gt=null,Vt=null;const Yt=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Xt=!0,Qt=!0,Jt=!1,Kt=!0,Zt=!1,te=!0,ee=!1,ne=!1,ie=!1,re=!1,oe=!1,se=!1,ae=!0,le=!1;const ce="user-content-";let he=!0,ue=!1,fe={},pe=null;const de=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ge=null;const me=H({},["audio","video","img","source","image","track"]);let ve=null;const ye=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),be="http://www.w3.org/1998/Math/MathML",we="http://www.w3.org/2000/svg",xe="http://www.w3.org/1999/xhtml";let _e=xe,Se=!1,ke=null;const Te=H({},[be,we,xe],S);let Ce=H({},["mi","mo","mn","ms","mtext"]),Oe=H({},["annotation-xml"]);const Ae=H({},["title","style","font","a","script"]);let Ee=null;const Pe=["application/xhtml+xml","text/html"];let je=null,De=null;const Ie=i.createElement("form"),Me=function(t){return t instanceof RegExp||t instanceof Function},Re=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(De&&De===t)return;t&&"object"==typeof t||(t={}),t=z(t),Ee=-1===Pe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,je="application/xhtml+xml"===Ee?S:_,Bt=D(t,"ALLOWED_TAGS")&&x(t.ALLOWED_TAGS)?H({},t.ALLOWED_TAGS,je):Ut,Wt=D(t,"ALLOWED_ATTR")&&x(t.ALLOWED_ATTR)?H({},t.ALLOWED_ATTR,je):qt,ke=D(t,"ALLOWED_NAMESPACES")&&x(t.ALLOWED_NAMESPACES)?H({},t.ALLOWED_NAMESPACES,S):Te,ve=D(t,"ADD_URI_SAFE_ATTR")&&x(t.ADD_URI_SAFE_ATTR)?H(z(ye),t.ADD_URI_SAFE_ATTR,je):ye,ge=D(t,"ADD_DATA_URI_TAGS")&&x(t.ADD_DATA_URI_TAGS)?H(z(me),t.ADD_DATA_URI_TAGS,je):me,pe=D(t,"FORBID_CONTENTS")&&x(t.FORBID_CONTENTS)?H({},t.FORBID_CONTENTS,je):de,Gt=D(t,"FORBID_TAGS")&&x(t.FORBID_TAGS)?H({},t.FORBID_TAGS,je):z({}),Vt=D(t,"FORBID_ATTR")&&x(t.FORBID_ATTR)?H({},t.FORBID_ATTR,je):z({}),fe=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?z(t.USE_PROFILES):t.USE_PROFILES),Xt=!1!==t.ALLOW_ARIA_ATTR,Qt=!1!==t.ALLOW_DATA_ATTR,Jt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Kt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Zt=t.SAFE_FOR_TEMPLATES||!1,te=!1!==t.SAFE_FOR_XML,ee=t.WHOLE_DOCUMENT||!1,re=t.RETURN_DOM||!1,oe=t.RETURN_DOM_FRAGMENT||!1,se=t.RETURN_TRUSTED_TYPE||!1,ie=t.FORCE_BODY||!1,ae=!1!==t.SANITIZE_DOM,le=t.SANITIZE_NAMED_PROPS||!1,he=!1!==t.KEEP_CONTENT,ue=t.IN_PLACE||!1,zt=function(t){try{return M(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,_e="string"==typeof t.NAMESPACE?t.NAMESPACE:xe,Ce=D(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?z(t.MATHML_TEXT_INTEGRATION_POINTS):H({},["mi","mo","mn","ms","mtext"]),Oe=D(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?z(t.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const e=D(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?z(t.CUSTOM_ELEMENT_HANDLING):f(null);if($t=f(null),D(e,"tagNameCheck")&&Me(e.tagNameCheck)&&($t.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Me(e.attributeNameCheck)&&($t.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&($t.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),Zt&&(Qt=!1),oe&&(re=!0),fe&&(Bt=H({},Y),Wt=f(null),!0===fe.html&&(H(Bt,U),H(Wt,X)),!0===fe.svg&&(H(Bt,W),H(Wt,Q),H(Wt,K)),!0===fe.svgFilters&&(H(Bt,q),H(Wt,Q),H(Wt,K)),!0===fe.mathMl&&(H(Bt,G),H(Wt,J),H(Wt,K))),Yt.tagCheck=null,Yt.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?Yt.tagCheck=t.ADD_TAGS:x(t.ADD_TAGS)&&(Bt===Ut&&(Bt=z(Bt)),H(Bt,t.ADD_TAGS,je))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?Yt.attributeCheck=t.ADD_ATTR:x(t.ADD_ATTR)&&(Wt===qt&&(Wt=z(Wt)),H(Wt,t.ADD_ATTR,je))),D(t,"ADD_URI_SAFE_ATTR")&&x(t.ADD_URI_SAFE_ATTR)&&H(ve,t.ADD_URI_SAFE_ATTR,je),D(t,"FORBID_CONTENTS")&&x(t.FORBID_CONTENTS)&&(pe===de&&(pe=z(pe)),H(pe,t.FORBID_CONTENTS,je)),D(t,"ADD_FORBID_CONTENTS")&&x(t.ADD_FORBID_CONTENTS)&&(pe===de&&(pe=z(pe)),H(pe,t.ADD_FORBID_CONTENTS,je)),he&&(Bt["#text"]=!0),ee&&H(Bt,["html","head","body"]),Bt.table&&(H(Bt,["tbody"]),delete Gt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');St=t.TRUSTED_TYPES_POLICY,kt=St.createHTML("")}else void 0===St&&(St=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(g,s)),null!==St&&"string"==typeof kt&&(kt=St.createHTML(""));(jt.uponSanitizeElement.length>0||jt.uponSanitizeAttribute.length>0)&&Bt===Ut&&(Bt=z(Bt)),jt.uponSanitizeAttribute.length>0&&Wt===qt&&(Wt=z(Wt)),h&&h(t),De=t},Ne=H({},[...W,...q,...$]),Fe=H({},[...G,...V]),He=function(t){b(n.removed,{element:t});try{yt(t).removeChild(t)}catch(e){L(t)}},Le=function(t,e){try{b(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(re||oe)try{He(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ze=function(t){let e=null,n=null;if(ie)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ee&&_e===xe&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=St?St.createHTML(t):t;if(_e===xe)try{e=(new d).parseFromString(r,Ee)}catch(t){}if(!e||!e.documentElement){e=Ct.createDocument(_e,"template",null);try{e.documentElement.innerHTML=Se?kt:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),_e===xe?Et.call(e,ee?"html":"body")[0]:ee?e.documentElement:o},Be=function(t){return Ot.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(t){t.normalize();const e=Ot.call(t.ownerDocument||t,t,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let n=e.nextNode();for(;n;){let t=n.data;m([Dt,It,Mt],e=>{t=T(t,e," ")}),n.data=t,n=e.nextNode()}},We=function(t){const e=_t?_t(t):null;return"string"==typeof e&&("form"===je(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==wt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==xt(t)||t.childNodes!==vt(t)))},qe=function(t){if(!xt||"object"!=typeof t||null===t)return!1;try{return xt(t)===dt}catch(t){return!1}},$e=function(t){if(!xt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof xt(t)}catch(t){return!1}};function Ge(t,e,i){m(t,t=>{t.call(n,e,i,De)})}const Ve=function(t){let e=null;if(Ge(jt.beforeSanitizeElements,t,null),We(t))return He(t),!0;const i=je(t.nodeName);if(Ge(jt.uponSanitizeElement,t,{tagName:i,allowedTags:Bt}),te&&t.hasChildNodes()&&!$e(t.firstElementChild)&&M(/<[/\w!]/g,t.innerHTML)&&M(/<[/\w!]/g,t.textContent))return He(t),!0;if(te&&t.namespaceURI===xe&&"style"===i&&$e(t.firstElementChild))return He(t),!0;if(t.nodeType===ut)return He(t),!0;if(te&&t.nodeType===ft&&M(/<[/\w]/g,t.data))return He(t),!0;if(Gt[i]||!(Yt.tagCheck instanceof Function&&Yt.tagCheck(i))&&!Bt[i]){if(!Gt[i]&&Qe(i)){if($t.tagNameCheck instanceof RegExp&&M($t.tagNameCheck,i))return!1;if($t.tagNameCheck instanceof Function&&$t.tagNameCheck(i))return!1}if(he&&!pe[i]){const e=yt(t),n=vt(t);if(n&&e){for(let i=n.length-1;i>=0;--i){const r=F(n[i],!0);e.insertBefore(r,mt(t))}}}return He(t),!0}return((xt?xt(t):t.nodeType)!==ct||function(t){let e=yt(t);e&&e.tagName||(e={namespaceURI:_e,tagName:"template"});const n=_(t.tagName),i=_(e.tagName);return!!ke[t.namespaceURI]&&(t.namespaceURI===we?e.namespaceURI===xe?"svg"===n:e.namespaceURI===be?"svg"===n&&("annotation-xml"===i||Ce[i]):Boolean(Ne[n]):t.namespaceURI===be?e.namespaceURI===xe?"math"===n:e.namespaceURI===we?"math"===n&&Oe[i]:Boolean(Fe[n]):t.namespaceURI===xe?!(e.namespaceURI===we&&!Oe[i])&&!(e.namespaceURI===be&&!Ce[i])&&!Fe[n]&&(Ae[n]||!Ne[n]):!("application/xhtml+xml"!==Ee||!ke[t.namespaceURI]))}(t))&&("noscript"!==i&&"noembed"!==i&&"noframes"!==i||!M(/<\/no(script|embed|frames)/i,t.innerHTML))?(Zt&&t.nodeType===ht&&(e=t.textContent,m([Dt,It,Mt],t=>{e=T(e,t," ")}),t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ge(jt.afterSanitizeElements,t,null),!1):(He(t),!0)},Ye=function(t,e,n){if(Vt[e])return!1;if(ae&&("id"===e||"name"===e)&&(n in i||n in Ie))return!1;const r=Wt[e]||Yt.attributeCheck instanceof Function&&Yt.attributeCheck(e,t);if(Qt&&!Vt[e]&&M(Rt,e));else if(Xt&&M(Nt,e));else if(!r||Vt[e]){if(!(Qe(t)&&($t.tagNameCheck instanceof RegExp&&M($t.tagNameCheck,t)||$t.tagNameCheck instanceof Function&&$t.tagNameCheck(t))&&($t.attributeNameCheck instanceof RegExp&&M($t.attributeNameCheck,e)||$t.attributeNameCheck instanceof Function&&$t.attributeNameCheck(e,t))||"is"===e&&$t.allowCustomizedBuiltInElements&&($t.tagNameCheck instanceof RegExp&&M($t.tagNameCheck,n)||$t.tagNameCheck instanceof Function&&$t.tagNameCheck(n))))return!1}else if(ve[e]);else if(M(zt,T(n,Ht,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!ge[t]){if(Jt&&!M(Ft,T(n,Ht,"")));else if(n)return!1}else;return!0},Xe=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Qe=function(t){return!Xe[_(t)]&&M(Lt,t)},Je=function(t){Ge(jt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||We(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Wt,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],s=o.name,a=o.namespaceURI,l=o.value,c=je(s),h=l;let u="value"===s?h:O(h);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Ge(jt.uponSanitizeAttribute,t,i),u=i.attrValue,!le||"id"!==c&&"name"!==c||0===C(u,ce)||(Le(s,t),u=ce+u),te&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Le(s,t);continue}if("attributename"===c&&k(u,"href")){Le(s,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Le(s,t);continue}if(!Kt&&M(/\/>/i,u)){Le(s,t);continue}Zt&&m([Dt,It,Mt],t=>{u=T(u,t," ")});const f=je(t.nodeName);if(Ye(f,c,u)){if(St&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(a);else switch(g.getAttributeType(f,c)){case"TrustedHTML":u=St.createHTML(u);break;case"TrustedScriptURL":u=St.createScriptURL(u)}if(u!==h)try{a?t.setAttributeNS(a,s,u):t.setAttribute(s,u),We(t)?He(t):y(n.removed)}catch(e){Le(s,t)}}else Le(s,t)}Ge(jt.afterSanitizeAttributes,t,null)},Ke=function(t){let e=null;const n=Be(t);for(Ge(jt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();){Ge(jt.uponSanitizeShadowNode,e,null),Ve(e),Je(e),qe(e.content)&&Ke(e.content);if((xt?xt(e):e.nodeType)===ct){const t=bt?bt(e):e.shadowRoot;qe(t)&&(Ze(t),Ke(t))}}Ge(jt.afterSanitizeShadowDOM,t,null)},Ze=function(t){const e=xt?xt(t):t.nodeType;if(e===ct){const e=bt?bt(t):t.shadowRoot;qe(e)&&(Ze(e),Ke(e))}const n=vt?vt(t):t.childNodes;if(!n)return;const i=[];m(n,t=>{b(i,t)});for(const t of i)Ze(t);if(e===ct){const e=_t?_t(t):null;if("string"==typeof e&&"template"===je(e)){const e=t.content;qe(e)&&Ze(e)}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,a=null;if(Se=!t,Se&&(t="\x3c!--\x3e"),"string"!=typeof t&&!$e(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return E(t);case"bigint":return P?P(t):"0";case"symbol":return j?j(t):"Symbol()";case"undefined":default:return I(t);case"function":case"object":{if(null===t)return I(t);const e=t,n=B(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:I(t)}return I(t)}}}(t)))throw R("dirty is not a string, aborting");if(!n.isSupported)return t;if(ne||Re(e),n.removed=[],"string"==typeof t&&(ue=!1),ue){const e=_t?_t(t):t.nodeName;if("string"==typeof e){const t=je(e);if(!Bt[t]||Gt[t])throw R("root node is forbidden and cannot be sanitized in-place")}if(We(t))throw R("root node is clobbered and cannot be sanitized in-place");Ze(t)}else if($e(t))i=ze("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),o.nodeType===ct&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o),Ze(o);else{if(!re&&!Zt&&!ee&&-1===t.indexOf("<"))return St&&se?St.createHTML(t):t;if(i=ze(t),!i)return re?null:se?kt:""}i&&ie&&He(i.firstChild);const l=Be(ue?t:i);for(;s=l.nextNode();)Ve(s),Je(s),qe(s.content)&&Ke(s.content);if(ue)return Zt&&Ue(t),t;if(re){if(Zt&&Ue(i),oe)for(a=At.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(Wt.shadowroot||Wt.shadowrootmode)&&(a=Pt.call(r,a,!0)),a}let c=ee?i.outerHTML:i.innerHTML;return ee&&Bt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(at,i.ownerDocument.doctype.name)&&(c="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+c),Zt&&m([Dt,It,Mt],t=>{c=T(c,t," ")}),St&&se?St.createHTML(c):c},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ne=!0},n.clearConfig=function(){De=null,ne=!1},n.isValidAttribute=function(t,e,n){De||Re({});const i=je(t),r=je(e);return Ye(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&b(jt[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=v(jt[t],e);return-1===n?void 0:w(jt[t],n,1)[0]}return y(jt[t])},n.removeHooks=function(t){jt[t]=[]},n.removeAllHooks=function(){jt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return n[t].call(o.exports,o,o.exports,r),o.exports}r.m=n,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce(function(e,n){return r.f[n](t,e),e},[]))},r.u=function(t){return t+".genoverse.js"},r.miniCssF=function(t){return t+".css"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="genoverse:",r.l=function(n,i,o,s){if(t[n])t[n].push(i);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),h=0;h<c.length;h++){var u=c[h];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==e+o){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",e+o),a.src=n),t[n]=[i];var f=function(e,i){a.onerror=a.onload=null,clearTimeout(p);var r=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach(function(t){return t(i)}),e)return e(i)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.dn=function(t){(Object.getOwnPropertyDescriptor(t,"name")||{}).writable||Object.defineProperty(t,"name",{value:"default",configurable:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){if("undefined"!=typeof document){var t=function(t){return new Promise(function(e,n){var i=r.miniCssF(t),o=r.p+i;if(function(t,e){for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var r=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((r=(s=o[i]).getAttribute("data-href"))===t||r===e)return s}}(i,o))return e();!function(t,e,n,i,o){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",r.nc&&(s.nonce=r.nc),s.onerror=s.onload=function(n){if(s.onerror=s.onload=null,"load"===n.type)i();else{var r=n&&n.type,a=n&&n.target&&n.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+r+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=a,s.parentNode&&s.parentNode.removeChild(s),o(l)}},s.href=e,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)}(t,o,null,e,n)})},e={792:0};r.f.miniCss=function(n,i){e[n]?i.push(e[n]):0!==e[n]&&{47:1,52:1,347:1,407:1,423:1,512:1,758:1,895:1,943:1,966:1,984:1}[n]&&i.push(e[n]=t(n).then(function(){e[n]=0},function(t){throw delete e[n],t}))}}}(),function(){var t={792:0};r.f.j=function(e,n){var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else if(/^(407|758)$/.test(e))t[e]=0;else{var o=new Promise(function(n,r){i=t[e]=[n,r]});n.push(i[2]=o);var s=r.p+r.u(e),a=new Error;r.l(s,function(n){if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}},"chunk-"+e,e)}};var e=function(e,n){var i,o,s=n[0],a=n[1],l=n[2],c=0;if(s.some(function(e){return 0!==t[e]})){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)l(r)}for(e&&e(n);c<s.length;c++)o=s[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunkgenoverse=self.webpackChunkgenoverse||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),function(){"use strict";r(67),r(3771),r(113),r(6449),r(8350),r(4423),r(3792),r(3514),r(237),r(9085),r(5506),r(6099),r(6034),r(3362),r(6167),r(3518),r(9391),r(7764),r(3296),r(7208),r(8408)}(),function(){"use strict";var t=r(3006),e=r.n(t),n=r(9418),i=r(8156),o=r.n(i),s=r(6153),a=r(5034),l=r(6829),c=r(3560),h=r.n(c);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).exclude,i=void 0===n?[]:n,r=e.keys().reduce(function(t,n){var r=n.replace("./","").replace(".js","");if(i&&(i.includes(r)||i.includes(r.replace("library/","").replace(/\//g,"."))))return t;for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return Object.assign(t,f({},r,e.apply(void 0,[n].concat(s))))},{});Object.keys(r).sort().forEach(function(e){return Object.keys(r[e]).sort().forEach(function(n){return function(t,e,n,i){i&&h()("default"===n?t:t[n],e.replace("library/","").split("/"),i)}(t,e,n,r[e][n])})})};r.dn(p);var d=r(4692),g=r.n(d),m=(r(4224),r(1758),r(8604),r(5285),{$:r.g.$,jQuery:r.g.jQuery});r.g.$=r.g.jQuery=g();var v;try{(v=r(7859)).keys().forEach(v)}finally{r.g.$=m.$,r.g.jQuery=m.jQuery}var y=g(),b=r(5932);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach(function(e){S(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function S(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return O(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var A=e().extend({baseURL:void 0,urlParamTemplate:"r=__CHR__:__START__-__END__",width:1e3,longestLabel:30,defaultLength:5e3,defaultScrollDelta:100,tracks:[],highlights:[],plugins:[],dragAction:"scroll",wheelAction:"off",isStatic:!1,saveable:!1,saveKey:"",storageType:"sessionStorage",autoHideMessages:!0,trackAutoHeight:!1,hideEmptyTracks:!0,genome:void 0,useHash:void 0,chr:1,start:1,end:1e6,constructor:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=y;if(this.jQuery=i,!this.supported())return this.die("Your browser does not support this functionality");A.configure();var r=i(n.container);null!==(t=r)&&void 0!==t&&t.length||(r=i("<div>").appendTo("body")),r.addClass("genoverse").data("genoverse",this),Object.entries(n).forEach(function(t){var n=T(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),this.container=r,this.eventNamespace=".genoverse.".concat(++A.id),this.events={browser:{},tracks:{}},i.when(this.loadCSS(),this.loadGenome(),this.loadPlugins()).always(function(){(0,b.A)(e,"Genoverse"),e.init()})},loadCSS:function(){var t=this.jQuery;return t.when(A.importCSS?r.e(47).then(r.bind(r,4047)):t.Deferred().resolve(),A.importFontAwesome?Promise.all([r.e(758),r.e(895)]).then(r.bind(r,5895)):t.Deferred().resolve())},loadGenome:function(){var t=this;if("string"==typeof this.genome){var e=this.genome.toLowerCase();return r(9828)("./".concat(e)).then(function(n){t.genomeName=t.genome,t.genome=n.default,t.genome||t.die("Unable to load genome ".concat(e))})}},loadPlugins:function(t){var e=this;this.loadedPlugins=this.loadedPlugins||{};var n=(t||this.plugins).map(function(t){return Array.isArray(t)?{name:t[0],conf:t[1]}:{name:t,conf:void 0}}).reduce(function(t,e){return t[e.name]=e,t},{}),i=function(t){var r=t.exports.requires,o=t.exports[t.name]||t.exports.plugin;r&&Object.keys(r).forEach(function(t){"requires"!==t&&i({name:t,conf:(n[t]||{}).conf,exports:{plugin:r[t],requires:r.requires}})}),"function"==typeof o&&!0!==e.loadedPlugins[t.name]&&(o.call(e,t.conf||{}),e.container.addClass("gv-".concat(t.name.replace(/([A-Z])/g,"-$1").toLowerCase(),"-plugin")),e.loadedPlugins[t.name]=!0)},o=Object.keys(n).reduce(function(t,e){return t.then(function(){return r(9910)("./".concat(e)).then(function(t){return i({name:e,conf:n[e].conf,exports:t.default})})})},this.jQuery.Deferred().resolve());return this.jQuery.when(o)},init:function(){var t=this.width;this.addDomElements(t),this.addUserEventHandlers(),this.isStatic&&(this.dragAction=this.wheelAction="off",this.urlParamTemplate=!1),this.tracksById={},this.prev={},this.legends={},this.initialLocation={chr:this.chr,start:this.start,end:this.end},this.saveKey=this.saveKey?"genoverse-".concat(this.saveKey):"genoverse",this.urlParamTemplate=this.urlParamTemplate||"",this.useHash="boolean"==typeof this.useHash?this.useHash:"function"!=typeof window.history.pushState,this.textWidth=document.createElement("canvas").getContext("2d").measureText("W").width,this.labelWidth=this.labelContainer.outerWidth(!0)||0,this.width=Math.min(this.width-this.labelWidth,this.wrapper.width()||Infinity),this.paramRegex=this.urlParamTemplate?new RegExp("([?&;])".concat(this.urlParamTemplate.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/(\b(\w+=)?__CHR__(.)?)/,"$2([\\w\\.]+)$3").replace(/(\b(\w+=)?__START__(.)?)/,"$2(\\d+)$3").replace(/(\b(\w+=)?__END__(.)?)/,"$2(\\d+)$3"),"([;&])")):"";var e=this.getCoords();this.chr=e.chr,this.genome&&(this.chromosomeSize=this.genome[this.chr].size),this.canChangeChr=!!this.genome,this.saveable?this.loadConfig():this.addTracks(),this.width>0&&this.setRange(e.start,e.end),this.highlights.length&&this.addHighlights(this.highlights)},loadConfig:function(){var t,e=this;this.defaultTracks=this.jQuery.extend(!0,[],this.tracks);try{t=window[this.storageType].getItem(this.saveKey)}catch(t){}if(t){t=JSON.parse(t);var n=A.getAllTrackTypes(),i=[],r={},o={};this.tracks.forEach(function(t){var n=e.normaliseTrackDefinition(t);n.prototype.id&&(r[n.prototype.id]=n)}),t.forEach(function(t){var o=r[t.id];if(o)s(o,t),o._fromStorage=!0;else if(n[t.namespace]){var a=(o=n[t.namespace]).prototype.id;e.trackIds=e.trackIds||{},e.trackIds[a]=e.trackIds[a]||1,r[a]&&(o=r[a]),s(o,t),i.push(o)}}),this.tracks.forEach(function(t){var n,o=e.normaliseTrackDefinition(t);(!o.prototype.id||null!==(n=r[o.prototype.id])&&void 0!==n&&n._fromStorage)&&i.push(o)}),this.tracks=i,this.savedConfig=o,this.addTracks()}else this.addTracks();function s(t,e){Object.keys(e).forEach(function(n){if("config"===n)o[e.id]=e[n];else{if("height"===n&&(e[n]=parseInt(e[n],10),isNaN(e[n])))return;t.prototype[n]=e[n]}})}},saveConfig:function(){if(!this._constructing&&this.saveable){var t=[];this.tracks.forEach(function(e){if(e.id&&!(e instanceof l.default)&&!(e instanceof a.default)){var n={id:e.id,namespace:e.namespace,order:e.order,autoHeight:e.autoHeight,height:e.height-(e.initialHeight-e.defaultHeight)};e.config&&(n.config=Object.assign(n.config||{},e.config)),t.push(n)}});try{window[this.storageType].setItem(this.saveKey,JSON.stringify(t))}catch(t){}}},resetConfig:function(){var t=[];this.tracksById.highlights&&(this.tracksById.highlights.removeHighlights(),t=Object.values(this.tracksById.highlights.prop("featuresById")));try{window[this.storageType].removeItem(this.saveKey)}catch(t){}this._constructing=!0,this.savedConfig={},this.removeTracks(k(this.tracks)),this.addTracks(this.jQuery.extend(!0,[],this.defaultTracks)),t.length&&this.addHighlights(t),this._constructing=!1},addDomElements:function(t){var e=this.jQuery;this.menus=e(),this.labelContainer=e('<ul class="gv-label-container">').appendTo(this.container).sortable({items:"li:not(.gv-unsortable)",handle:".gv-handle",axis:"y",helper:"clone",cursor:"move",update:this.updateTrackOrder.bind(this),start:function(t,e){e.placeholder.css({height:e.item.height(),visibility:"visible"}).html(e.item.html()),e.helper.hide()}}),this.wrapper=this.jQuery('<div class="gv-wrapper">').appendTo(this.container),this.selector=this.jQuery('<div class="gv-selector gv-crosshair">').appendTo(this.wrapper),this.selectorControls=this.zoomInHighlight=this.zoomOutHighlight=e(),this.container.addClass("gv-canvas-container").width(t),this.isStatic||(this.selectorControls=e('\n <div class="gv-selector-controls gv-panel">\n <div class="gv-button-set">\n <div class="gv-position">\n <div class="gv-chr"></div>\n <div class="gv-start-end">\n <div class="gv-start"></div>\n <div class="gv-end"></div>\n </div>\n </div>\n </div>\n <div class="gv-button-set">\n <button class="gv-zoom-here">Zoom here</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-center">Center</button>\n </div>\n <div class="gv-button-set">\n <button class="gv-highlight">Highlight</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-cancel">Cancel</button>\n </div>\n </div>\'\n ').appendTo(this.selector),this.zoomInHighlight=e('\n <div class="gv-canvas-zoom gv-i">\n <div class="gv-t gv-l gv-h"></div>\n <div class="gv-t gv-r gv-h"></div>\n <div class="gv-t gv-l gv-v"></div>\n <div class="gv-t gv-r gv-v"></div>\n <div class="gv-b gv-l gv-h"></div>\n <div class="gv-b gv-r gv-h"></div>\n <div class="gv-b gv-l gv-v"></div>\n <div class="gv-b gv-r gv-v"></div>\n </div>\n ').appendTo("body"),this.zoomOutHighlight=this.zoomInHighlight.clone().toggleClass("gv-i gv-o").appendTo("body"))},addUserEventHandlers:function(){var t=this,e=this.jQuery,n=this.eventNamespace,i={},r={};r["mousedown".concat(n)]=function(e){return t.hideMessages(),e.which&&1!==e.which||e.currentTarget===t.selector[0]&&e.target!==e.currentTarget||t.mousedown(e),!1},r["mousewheel".concat(n)]=function(e,n,i,r){return!!t.noWheelZoom||(t.hideMessages(),"zoom"===t.wheelAction?t.mousewheelZoom(e,n):0===r&&0!==i?(t.startDragScroll(e),t.move(10*-i),t.stopDragScroll(!1),!1):void 0)},r["dblclick".concat(n)]=function(e){if(t.isStatic)return!0;t.hideMessages(),t.mousewheelZoom(e,1)},this.container.on(r,".gv-image-container, .gv-selector"),this.selectorControls.on("click",function(e){var n=t.getSelectorPosition();switch(e.target.className){case"gv-zoom-here":t.setRange(n.start,n.end,!0);break;case"gv-center":t.moveTo(t.chr,n.start,n.end,!0,!0),t.cancelSelect();break;case"gv-highlight":t.addHighlight({chr:t.chr,start:n.start,end:n.end});case"gv-cancel":t.cancelSelect()}}),i["mouseup".concat(this.eventNamespace)]=this.mouseup.bind(this),i["mousemove".concat(this.eventNamespace)]=this.mousemove.bind(this),i["keydown".concat(this.eventNamespace)]=this.keydown.bind(this),i["keyup".concat(this.eventNamespace)]=this.keyup.bind(this),i["mousewheel".concat(this.eventNamespace)]=function(e){"zoom"===t.wheelAction&&(t.wheelTimeout&&clearTimeout(t.wheelTimeout),t.noWheelZoom=t.noWheelZoom||e.target!==t.container[0],t.wheelTimeout=setTimeout(function(){t.noWheelZoom=!1},300))},e(document).on(i),e(window).on("".concat(this.useHash?"hashchange":"popstate").concat(this.eventNamespace),this.popState.bind(this))},onTracks:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.tracks.forEach(function(e){if(!e.disabled&&e._interface){var i,r=e._interface[t];if(r)(i=e[r])[t].apply(i,n);else e[t]&&e[t].apply(e,n)}})},reset:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.onTracks.apply(this,["reset"].concat(e)),this.prev={},this.scale=9e99,this.setRange(this.start,this.end)},setWidth:function(t){var e=this;this.width=t,this.width-=this.labelWidth,this.controlPanel&&(this.width-=this.controlPanel.outerWidth(!0)),this.superContainer?(this.superContainer.width(t),this.container.width(this.width)):this.container.width(t),setTimeout(function(){e.onTracks("setWidth",Math.min(e.width,e.container.width())),e.reset("resizing")},1)},mousewheelZoom:function(t,e){var n=this,i=this.jQuery;return clearTimeout(this.zoomDeltaTimeout),clearTimeout(this.zoomTimeout),this.zoomDeltaTimeout=setTimeout(function(){e>0?n.zoomInHighlight.css({left:t.pageX-20,top:t.pageY-20,display:"block"}).animate({width:80,height:80,top:"-=20",left:"-=20"},{complete:function(){i(this).css({width:40,height:40,display:"none"})}}):n.zoomOutHighlight.css({left:t.pageX-40,top:t.pageY-40,display:"block"}).animate({width:40,height:40,top:"+=20",left:"+=20"},{complete:function(){i(this).css({width:80,height:80,display:"none"})}})},100),this.zoomTimeout=setTimeout(function(){n[e>0?"zoomIn":"zoomOut"](t.pageX-n.container.offset().left-n.labelWidth),"select"===n.dragAction&&n.moveSelector(t)},300),!1},startDragScroll:function(t){this.dragging="scroll",this.scrolling=!t,this.dragOffset=t?t.pageX-this.left:0,this.dragStart=this.start,this.scrollDelta=Math.max(this.scale,this.defaultScrollDelta)},stopDragScroll:function(t){this.dragging=!1,this.scrolling=!1,!1!==t&&(this.start!==this.dragStart&&this.updateURL(),this.checkTrackHeights())},startDragSelect:function(t){if(!t)return!1;var e=Math.max(0,t.pageX-this.wrapper.offset().left-2);this.dragging="select",this.selectorStalled=!1,this.selectorStart=e,this.selector.css({left:e,width:0}).removeClass("gv-crosshair"),this.selectorControls.hide()},stopDragSelect:function(t){if(!t)return!1;if(this.dragging=!1,this.selectorStalled=!0,this.selector.outerWidth(!0)<2)return this.cancelSelect();var e=Math.min(t.pageY-this.wrapper.offset().top,this.wrapper.outerHeight(!0)-1.2*this.selectorControls.outerHeight(!0)),n=this.getSelectorPosition();this.selectorControls.find(".gv-chr").html(this.chr),this.selectorControls.find(".gv-start").html(n.start),this.selectorControls.find(".gv-end").html(n.end),this.selectorControls.find(".gv-selector-location").html("".concat(this.chr,":").concat(n.start,"-").concat(n.end)).end().css({top:e,left:this.selector.outerWidth(!0)/2-this.selectorControls.outerWidth(!0)/2}).show()},cancelSelect:function(t){t||(this.dragging=!1),this.selectorStalled=!1,this.selector.addClass("gv-crosshair").width(0),this.selectorControls.hide(),"scroll"===this.dragAction&&this.selector.hide()},dragSelect:function(t){var e=t.pageX-this.wrapper.offset().left;e>this.selectorStart?this.selector.css({left:this.selectorStart,width:Math.min(e-this.selectorStart,this.width-this.selectorStart-1)}):this.selector.css({left:Math.max(e,1),width:Math.min(this.selectorStart-e,this.selectorStart-1)})},setDragAction:function(t,e){this.dragAction=t,"select"===this.dragAction?this.selector.addClass("gv-crosshair").width(0).show():e&&!this.selector.hasClass("gv-crosshair")?this.selectorStalled=!1:(this.cancelSelect(),this.selector.hide())},toggleSelect:function(t){t?(this.prev.dragAction="scroll",this.setDragAction("select")):(this.setDragAction(this.prev.dragAction,!0),delete this.prev.dragAction)},setWheelAction:function(t){this.wheelAction=t},keydown:function(t){16!==t.which||this.prev.dragAction||"scroll"!==this.dragAction?27===t.which&&(this.cancelSelect(),this.closeMenus()):this.toggleSelect(!0)},keyup:function(t){16===t.which&&this.prev.dragAction&&this.toggleSelect()},mousedown:function(t){switch(t.shiftKey?"scroll"===this.dragAction&&this.toggleSelect(!0):this.prev.dragAction&&this.toggleSelect(),this.dragAction){case"select":this.startDragSelect(t);break;case"scroll":this.startDragScroll(t)}},mouseup:function(t){switch(this.dragging){case"select":this.stopDragSelect(t);break;case"scroll":this.stopDragScroll()}},mousemove:function(t){if(this.dragging&&!this.scrolling)switch(this.dragAction){case"scroll":this.move(t.pageX-this.dragOffset-this.left);break;case"select":this.dragSelect(t)}else"select"===this.dragAction&&this.moveSelector(t)},moveSelector:function(t){this.selectorStalled||this.selector.css("left",t.pageX-this.wrapper.offset().left-2)},move:function(t){var e=this.scale;e>1&&(t=Math.round(t/e)*e);var n=this.left+t;n<=this.minLeft?(n=this.minLeft,t=this.minLeft-this.left):n>=this.maxLeft&&(n=this.maxLeft,t=this.maxLeft-this.left);var i=Math.max(Math.round(this.start-t/e),1),r=i+this.length-1;r>this.chromosomeSize&&(i=(r=this.chromosomeSize)-this.length+1),this.left=n,i!==this.dragStart&&(this.closeMenus(),this.cancelSelect(!0)),this.onTracks("move",t),this.setRange(i,r)},moveTo:function(t,e,n,i,r){void 0!==t&&String(t)!==String(this.chr)&&(this.canChangeChr?(this.genome&&this.genome[t]?(this.chr=t,this.chromosomeSize=this.genome[t].size,this.start=this.end=this.scale=-1):this.die("Chromosome cannot be found in genome"),this.onTracks("changeChr")):this.die("Chromosome changing is not allowed")),this.setRange(e,n,i,r),this.prev.scale===this.scale&&(this.left=Math.max(Math.min(this.left+Math.round((this.prev.start-this.start)*this.scale),this.maxLeft),this.minLeft),this.onTracks("moveTo",this.chr,this.start,this.end,(this.prev.start-this.start)*this.scale))},setRange:function(t,e,n,i){if(this.prev.start=this.start,this.prev.end=this.end,this.start=Math.min(Math.max("number"==typeof t?Math.floor(t):parseInt(t,10),1),this.chromosomeSize),this.end=Math.max(Math.min("number"==typeof e?Math.floor(e):parseInt(e,10),this.chromosomeSize),1),this.end<this.start&&(this.end=Math.min(this.start+this.defaultLength-1,this.chromosomeSize)),i&&this.end-this.start+1!==this.length)if(this.end===this.chromosomeSize)this.start=this.end-this.length+1;else{var r=(this.start+this.end)/2;this.start=Math.max(Math.floor(r-this.length/2),1),this.end=this.start+this.length-1,this.end>this.chromosomeSize&&(this.end=this.chromosomeSize,this.start=this.end-this.length+1)}else this.length=this.end-this.start+1;this.setScale(),!0!==n||this.prev.start===this.start&&this.prev.end===this.end||this.updateURL()},setScale:function(){this.prev.scale=this.scale,this.scale=this.width/this.length,this.scaledStart=this.start*this.scale,this.prev.scale!==this.scale&&(this.left=0,this.minLeft=Math.round((this.end-this.chromosomeSize)*this.scale),this.maxLeft=Math.round((this.start-1)*this.scale),this.labelBuffer=Math.ceil(this.textWidth/this.scale)*this.longestLabel,this.prev.scale&&(this.cancelSelect(),this.closeMenus()),this.onTracks("setScale"),this.onTracks("makeFirstImage"))},checkTrackHeights:function(){this.dragging||this.onTracks("checkHeight")},resetTrackHeights:function(){this.onTracks("resetHeight")},zoomIn:function(t){t||(t=this.width/2);var e=Math.round(this.start+t/(2*this.scale)),n=2===this.length?e:Math.round(e+(this.length-1)/2);this.setRange(e,n,!0)},zoomOut:function(t){t||(t=this.width/2);var e=Math.round(this.start-t/this.scale),n=1===this.length?e+1:Math.round(e+2*(this.length-1));this.setRange(e,n,!0)},normaliseTrackDefinition:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Track",i=o()(A,n),r=n.split("."),s=function(t){var e=t.split(".").filter(function(t){return"Genoverse"!==t&&!r.includes(t)}).join(".");return e===n?i:o()(i,e)},a=function(t){return _(_(_(_({},t),t.controller?{controller:e.normaliseTrackDefinition(t.controller,"Track.Controller")}:{}),t.model?{model:e.normaliseTrackDefinition(t.model,"Track.Model")}:{}),t.view?{view:e.normaliseTrackDefinition(t.view,"Track.View")}:{})};if("string"==typeof t)return s(t);if(Array.isArray(t)&&"string"==typeof t[0]){var l=s(t[0]);return"object"===w(t[1])&&Object.keys(t[1]).length?l.extend(a(t[1])):l}return"object"===w(t)&&Object.keys(t).length?i.extend(a(t)):t},addTrack:function(t,e){return this.addTracks([t],e)[0]},addTracks:function(t,e){var n,i=this.jQuery,r={browser:this,width:Math.min(this.width,this.container.width())},o=Boolean(t);if(o&&!this.tracks.filter(function(t){return"function"==typeof t}).length){var s=T((e?this.tracks.filter(function(t){return t.order<e}):this.tracks).sort(function(t,e){return e.order-t.order}),1)[0];s&&(n=s.order+.1)}t=t||k(this.tracks);for(var a=0;a<t.length;a++){var l=this.normaliseTrackDefinition(t[a]);t[a]=new l(_(_({},r),{},{namespace:A.getTrackNamespace(l),order:"number"==typeof n?n:a,config:this.savedConfig?i.extend(!0,{},this.savedConfig[l.prototype.id]):void 0})),t[a].id&&(this.tracksById[t[a].id]=t[a]),o?this.tracks.push(t[a]):this.tracks[a]=t[a]}return this.sortTracks(),this.saveConfig(),t},removeTrack:function(t){t&&this.removeTracks((t.prop("childTracks")||[]).concat(t))},removeTracks:function(t){for(var e=t.length;e--;){for(var n=t[e],i=this.tracks.length;i--;)if(n===this.tracks[i]){this.tracks.splice(i,1);break}n.id&&delete this.tracksById[n.id],n.destructor()}this.saveConfig()},sortTracks:function(){var t=this.jQuery;if(!this.tracks.some(function(t){return"object"!==w(t)})){var e=this.tracks.slice().sort(function(t,e){return t.order-e.order}),n=t(),i=t();e.forEach(function(t,e){if(!t.prop("parentTrack")){t.prop("fixedOrder")||t.prop("order",e);var r=t.prop("superContainer")||t.prop("container");t.prop("menus").length&&t.prop("top",r.position().top),n.push(t.prop("label")[0]),i.push(r[0])}}),this.labelContainer.append(n),this.wrapper.append(i),this.tracks=e,n.map(function(){return t(this).data("track")}).each(function(){if(this.prop("menus").length){var t=(this.prop("superContainer")||this.prop("container")).position().top-this.prop("top");this.prop("menus").css("top",function(e,n){return parseInt(n,10)+t}),this.prop("top",null)}})}},updateTrackOrder:function(t,e){var n=e.item.data("track");if(!n.prop("unsortable")&&!n.prop("fixedOrder")){var i=e.item.prev().data("track"),r=e.item.next().data("track"),o=i?i.prop("order"):0,s=r?r.prop("order"):0,a=o||s,l=i&&r&&Math.floor(s)===Math.floor(o)?o+(s-o)/2:a+(o?1:-1)*Math.abs(Math.round(a)-a||1)/2;n.prop("order",l),this.sortTracks(),this.saveConfig()}},updateURL:function(){this.urlParamTemplate&&(this.useHash?window.location.hash=this.getQueryString():window.history.pushState({},"",this.getQueryString()))},popState:function(){if(!this.baseURL||window.location.href.match(this.baseURL)){var t=this.getCoords(),e=parseInt(t.start,10),n=parseInt(t.end,10);(t.chr&&String(t.chr)!==String(this.chr)||t.start&&(e!==this.start||n!==this.end))&&(this.moveTo(t.chr,e,n),this.closeMenus(),this.hideMessages())}},getCoords:function(){var t={},e="".concat(decodeURIComponent(this.useHash&&window.location.hash.replace(/^#/,"?")||window.location.search),"&").match(this.paramRegex),n=0;return e?(e=e.slice(2,-1),this.urlParamTemplate.split("__").forEach(function(i){var r=i.match(/^(CHR|START|END)$/);r&&(t[r[1].toLowerCase()]="CHR"===r[1]?e[n++]:parseInt(e[n++],10))}),t.chr&&t.start&&t.end&&(!this.genome||this.genome[t.chr])?t:this.initialLocation):this.initialLocation},getQueryString:function(){var t=this.urlParamTemplate.replace("__CHR__",this.chr).replace("__START__",this.start).replace("__END__",this.end),e="".concat(decodeURIComponent(this.useHash?window.location.hash.replace(/^#/,"?"):window.location.search),"&"),n=e.match(this.paramRegex)?e.replace(this.paramRegex,"$1".concat(t,"$5")).slice(0,-1):"".concat(e).concat(t);return this.useHash?n=n.replace(/^[&?]/,""):0!==n.indexOf("?")&&(n="?".concat(n.replace(/^&/,""))),n},getChromosomeSize:function(t){return t&&this.genome&&this.genome[t]?this.genome[t].size:this.chromosomeSize},supported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},die:function(t,e){if(!e||!e.length)throw t;e.html(t),this.failed=!0},createMenuEl:function(){var t=this.jQuery;return this.menuTemplate=this.menuTemplate||t('\n <div class="gv-menu">\n <div class="gv-close gv-menu-button fas fa-times-circle"></div>\n <div class="gv-menu-loading">Loading...</div>\n <div class="gv-menu-error">An error has occurred</div>\n <div class="gv-menu-content">\n <div class="gv-title"></div>\n <table class="gv-focus-highlight">\n <tr>\n <td><a class="gv-focus" href="#">Focus here</a></td>\n <td><a class="gv-highlight" href="#">Highlight this feature</a></td>\n </tr>\n </table>\n <table></table>\n </div>\n </div>\n ').on("click",function(e){var n=t(this);t(e.target).hasClass("gv-close")&&n.fadeOut("fast",function(){var t=n.data();t.track&&t.track.prop("menus",t.track.prop("menus").not(this)),t.browser.menus=t.browser.menus.not(this)})}),this.menuTemplate.clone(!0).data({browser:this})},makeMenu:function(t,e,i){var r=this,o=this.jQuery;if(!t)return!1;if(0===(t=[].concat(t)).length)return!1;if(1===t.length)return this.makeFeatureMenu(t[0],e,i);var s=this.createMenuEl(),a=o(".gv-menu-content",s).addClass("gv-menu-content-first"),l=o("table:not(.gv-focus-highlight)",a);return o(".gv-focus-highlight, .gv-menu-loading",s).remove(),o(".gv-title",s).html("".concat(t.length," features")),(i?i.model.sortFeatures(t):t.sort(function(t,e){return t.start-e.start})).forEach(function(t){var e="".concat(t.chr,":").concat(t.start).concat(t.end===t.start?"":"-".concat(t.end)),s=n.A.sanitize(t.menuLabel||t.name||(Array.isArray(t.label)?t.label.join(" "):t.label)||String(t.id));o('<a href="#">').html(s.match(e)?s:"".concat(e," ").concat(s)).on("click",function(e){return r.makeFeatureMenu(t,e,i),!1}).appendTo(o("<td>").appendTo(o("<tr>").appendTo(l)))}),o('<div class="gv-menu-scroll-wrapper">').append(l).appendTo(a),s.appendTo(this.superContainer||this.container).show(),e&&s.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),this.menus=this.menus.add(s),i&&i.prop("menus",i.prop("menus").add(s)),s},insertPropertiesIntoMenu:function(t,e,i,r,o){var s=this,a=this.jQuery,l=function(t){var e=t.currentTarget,n=a(e).data(),i=n.end-n.start+1,r=Math.max(Math.round(i/4),25);return s.moveTo(n.chr,n.start-r,n.end+r,!0),!1},c=function(t){var e=t.currentTarget;return s.addHighlight(a(e).data()),!1};[].concat(t).forEach(function(t,h){var u=i.clone().addClass(h?"":"gv-menu-content-first").appendTo(e),f=void 0!==t.chr?t.chr:r.chr,p=parseInt(void 0!==t.start?t.start:r.start,10),d=parseInt(void 0!==t.end?t.end:r.end,10),g=Math.max.apply(Math,k(Object.values(t).map(function(t){return Array.isArray(t)?t.length:1}))),m=n.A.sanitize(t.title),v="";if(a(".gv-title",u)[t.title?"html":"remove"](m),o&&p&&d&&!s.isStatic){var y={chr:f,start:p,end:Math.max(d,p),label:r.label||m||"",color:r.color};a(".gv-focus",u).data(y).on("click",l),a(".gv-highlight",u).data(y).on("click",c)}else a(".gv-focus-highlight",u).remove();Object.entries(t).forEach(function(t){var e=T(t,2),n=e[0],i=e[1];if((!/^start|end$/.test(n)||!1!==i)&&"title"!==n){var r=""===i?' colspan="'.concat(g+1,'"'):"";v+="<tr><td".concat(r,">").concat(n,"</td>"),r||(Array.isArray(i)?i.forEach(function(t){v+="<td>".concat(t,"</td>")}):v+=1===g?"<td>".concat(i,"</td>"):'<td colspan="'.concat(g,'">').concat(i,"</td>")),v+="</tr>"}}),a("table:not(.gv-focus-highlight)",u)[v?"html":"remove"](n.A.sanitize(v))})},makeFeatureMenu:function(t,e,n){var i=this,r=this.jQuery,o=this.superContainer||this.container;if(t.menuEl&&!0!==t.menuEl.data("hasErrored"))t.menuEl.appendTo(o);else{var s,a=this.createMenuEl().data({feature:t}),l=r(".gv-menu-content",a).remove(),c=r(".gv-menu-loading",a);try{s=n?n.controller.populateMenu(t):t}catch(t){s=r.Deferred().reject(t),a.data("hasErrored",!0)}var h="object"===w(s)&&"function"==typeof s.promise;h||c.hide(),r.when(s).done(function(e){((null==n?void 0:n.controller)||i).insertPropertiesIntoMenu(e,a,l,t,n),h&&c.hide()}).fail(function(t){c.hide(),a.data("hasErrored",!0),r(".gv-menu-error",a).css("display","block"),console.error(t)}),n&&a.addClass(n.id).data("track",n),t.menuEl=a.appendTo(o)}return this.menus=this.menus.add(t.menuEl),n&&n.prop("menus",n.prop("menus").add(t.menuEl)),t.menuEl.show(),e&&t.menuEl.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),t.menuEl},closeMenus:function(t){(t=t||this).menus.filter(":visible").children(".gv-close").trigger("click"),t.menus=this.jQuery()},hideMessages:function(){this.autoHideMessages&&this.wrapper.find(".gv-message-container").addClass("gv-collapsed")},getSelectorPosition:function(){var t=this.selector.position().left,e=this.selector.outerWidth(!0),n=Math.round(t/this.scale)+this.start,i=Math.round((t+e)/this.scale)+this.start-1;return{start:n,end:i=i<=n?n:i,left:t,width:e}},addHighlight:function(t){this.addHighlights([t])},addHighlights:function(t){this.tracksById.highlights||this.addTrack(a.default),this.tracksById.highlights.addHighlights(t)},on:function(t,e,n,i){var r=this,o={};function a(t,e){t.split(" ").forEach(function(t){o[t]=(o[t]||[]).concat(e)})}"object"===w(t)?(Object.entries(t).forEach(function(t){var e=T(t,2);return a(e[0],e[1])}),e=e||this):(void 0===n&&(n=e,e=this),a(t,n));var l=e instanceof s.Ay||"tracks"===e?"tracks":"browser";Object.entries(o).forEach(function(t){var e,n=T(t,2),o=n[0],s=n[1],a="".concat(o).concat(i?".once":""),c=s.map(function(t){return t.toString()});(r.events[l][a]=r.events[l][a]||[],r.events[l][a].some(function(t){var e=t.toString();return c.some(function(t){return t===e})}))||(e=r.events[l][a]).push.apply(e,k(s))})},once:function(t,e,n){this.on(t,e,n,!0)},destroy:function(){var t=this;this.destroying=!0,this.onTracks("destructor"),(this.superContainer||this.container).empty(),this.zoomInHighlight&&this.zoomInHighlight.add(this.zoomOutHighlight).remove(),this.container.off(this.eventNamespace),this.jQuery(window).add(document).off(this.eventNamespace),Object.keys(this).forEach(function(e){delete t[e]})}},{id:0,Track:s.Ay,jQuery:y,configure:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tracks,n=void 0===e?{}:e,i=t.plugins,o=void 0===i?{}:i,a=t.genomes,l=void 0===a?{}:a,c=t.css,h=void 0===c||c,u=t.fontawesome,f=void 0===u||u,d=t.force;if(void 0!==d&&d||!A.configured){p(s.Ay,r(2872),{exclude:n.exclude}),n.include&&p(s.Ay,n.include);var g=function(t){return t.keys().forEach(t)};o.include&&g(o.include),l.include&&g(l.include),A.importCSS=h,A.importFontAwesome=f}A.configured=!0},getAllTrackTypes:function(t,n){if(t=t||s.Ay,n&&(t=t[n]),!t)return[];var i={};return Object.entries(t).forEach(function(n){var r=T(n,2),o=r[0],s=r[1];"function"!=typeof s||e()[o]||/^(Controller|Model|View)$/.test(o)||(Object.entries(A.getAllTrackTypes(t,o)).forEach(function(t){var e=T(t,2),n=e[0],r=e[1];"function"==typeof r&&(i["".concat(o,".").concat(n)]=r)}),i[o]=s)}),i},getTrackNamespace:function(t){for(var e=A.getAllTrackTypes(),n=Object.entries(e).map(function(e){var n=T(e,2),i=n[0],r=n[1];return(t===r||t.prototype instanceof r)&&i}).filter(Boolean),i=n.length;n.length>1;){for(var r=0;r<n.length-1;r++){if(e[n[r]].prototype instanceof e[n[r+1]]){n.splice(r+1,1);break}if(e[n[r+1]].prototype instanceof e[n[r]]){n.splice(r,1);break}}if(i--<0)break}return n[0]}});r.g.Genoverse=A}()}();
1
+ !function(){var t,e,n={6153:function(t,e,n){"use strict";n.d(e,{Kx:function(){return a.default},Ss:function(){return c.default},xI:function(){return o.default}});var i=n(3006),r=n.n(i),o=n(1572),s=n(4770),a=n(6767),l=n(6815),c=n(3257),h=n(5932);function u(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){g(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=f(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return y(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var b=r().extend({height:12,margin:2,resizable:!0,border:!0,unsortable:!1,fixedOrder:!1,invert:!1,legend:!1,children:void 0,name:void 0,autoHeight:void 0,hideEmpty:void 0,constructor:function(t){(this.stranded||t.stranded)&&(this.controller=this.controller||s.default,this.model=this.model||l.default),this.models={},this.views={},this.setInterface(),this.extend(t),this.setDefaults(),this.setEvents(),(0,h.A)(this,"Track"),this.setLengthMap(),this.setMVC(),this.browser.scale>0&&(this.controller.setScale(),this.controller.makeFirstImage()),this.children&&this.addChildTracks(),this.legend&&this.addLegend()},setEvents:function(){},setDefaults:function(){this.config=this.config||{},this.configSettings=this.configSettings||{},this.defaultConfig=this.defaultConfig||{},this.controls=this.controls||[],this.defaultName=this.name,this.configName=[],this.defaultHeight=this.height,this.defaultAutoHeight=this.autoHeight,this.autoHeight=void 0!==this.autoHeight?this.autoHeight:this.browser.trackAutoHeight,this.hideEmpty=void 0!==this.hideEmpty?this.hideEmpty:this.browser.hideEmptyTracks,this.height+=this.margin,this.initialHeight=this.height,"auto"===this.resizable&&(this.autoHeight=!0),this.setDefaultConfig()},setDefaultConfig:function(){var t=this;Object.entries(this.defaultConfig).forEach(function(e){var n=m(e,2),i=n[0],r=n[1];void 0===t.config[i]&&(t.config[i]=r)}),this._setCurrentConfig()},setInterface:function(){var t=this;this._interface={},["Controller","Model","View"].forEach(function(e){Object.keys(b[e].prototype).forEach(function(n){/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(n)||(t._interface[n]=e.toLowerCase())})})},setMVC:function(){var t=this;this.model&&"function"==typeof this.model.abort&&this.model.abort(),this._defaults=this._defaults||{};var e=this.browser.jQuery.extend(!0,{},this.constructor.prototype,this.getSettingsForLength()[1]),n={prop:{},func:{}},i={};if(e.controller=e.controller||this.controller||o.default,Object.entries(e).forEach(function(e){var r=m(e,2),o=r[0],s=r[1];!/^(constructor|init|reset|setDefaults|base|extend|lengthMap)$/.test(o)&&isNaN(o)&&("controller"===t._interface[o]?n["function"==typeof s?"func":"prop"][o]=s:b.prototype.hasOwnProperty(o)||/^(controller|models|views|config|disabled)$/.test(o)||(void 0===t._defaults[o]&&(t._defaults[o]=t[o]),i[o]=s))}),Object.entries(this._defaults).forEach(function(t){var e=m(t,2),n=e[0],r=e[1];void 0===i[n]&&(i[n]=r)}),!this.browser.jQuery.isEmptyObject(this._currentConfig)){var r={};Object.entries(this._currentConfig.prop).forEach(function(e){var o=m(e,2),s=o[0],a=o[1],l=t._interface[s];/model|view/.test(l)?i[l][s]!==a&&(i[l][s]=a,r[l]=!0):"controller"===l?n.prop[s]=a:i[s]=a}),Object.keys(r).forEach(function(t){i[t].setDefaults(!0)})}this.extend(i),this.model.setChrProps(),this.controller&&"function"!=typeof this.controller?(n.prop.threshold=n.prop.threshold||this.controller.constructor.prototype.threshold,Object.assign(this.controller,n.prop,{model:this.model,view:this.view})):this.controller=this.newMVC(e.controller,n.func,d(d({},n.prop),{},{model:this.model,view:this.view}))},newMVC:function(t,e,n){return new(t.extend(this.browser.jQuery.extend(!0,{},d(d(d({},t.prototype),e),{},{prop:this.prop.bind(this)}))))(d(d({},n),{},{browser:this.browser,width:this.width,track:this}))},setLengthMap:function(){var t=this,e={},n={},i=this.browser.jQuery,r=function(t,e){var n={browser:!0,width:!0,track:!0};for(var o in t)if(!n[o]){if(n[o]=!0,f(t[o])!==f(e[o]))return!1;if("function"==typeof t[o]&&"function"==typeof e[o]){if(t[o].toString()!==e[o].toString())return!1}else{if(!("object"!==f(t[o])||t[o]instanceof i||r(t[o],e[o])))return!1;if(t[o]!==e[o])return!1}}return Object.keys(e).every(function(t){return n[t]})},o=[[-1,{view:this.view||c.default,model:this.model||a.default}]];for(var s in this)if(!isNaN(s)){var l=this[s];o.push([Number(s),!1===l?{threshold:Number(s),resizable:"auto",featureHeight:0,model:a.default,view:c.default}:i.extend(!0,{},l)])}o.sort(function(t,e){return e[0]-t[0]}).forEach(function(e,n){var r=m(e,2),s=r[0],l=r[1];if(!l.model||!l.view)for(var h=-1===s?{}:{model:Object.keys(l).some(function(e){return"model"===t._interface[e]}),view:Object.keys(l).some(function(e){return"view"===t._interface[e]})},u=n+1;u<o.length&&(!l.model&&o[u][1].model&&(l.model=h.model?a.default.extend(i.extend(!0,{},o[u][1].model.prototype)):o[u][1].model),!l.view&&o[u][1].view&&(l.view=h.view?c.default.extend(i.extend(!0,{},o[u][1].view.prototype)):o[u][1].view),!l.model||!l.view);u++);}),o.forEach(function(s,a){var l=m(s,2),c=l[0],h=l[1],u=o[a-1]?o[a-1][1]:{},f=i.extend(!0,{},t.constructor.prototype,h),p={model:{prop:{},func:{}},view:{prop:{},func:{}}};Object.entries(f).forEach(function(e){var n=m(e,2),i=n[0],r=n[1];"constructor"!==i&&p[t._interface[i]]&&(p[t._interface[i]]["function"==typeof r?"func":"prop"][i]=r)}),["model","view"].forEach(function(e){if("function"==typeof f[e]){var n=t["".concat(e,"s")];u[e]instanceof f[e]?f[e]=u[e]:(f[e]=t.newMVC(f[e],p[e].func,p[e].prop),n[c]&&r(n[c].constructor.prototype,d(d({},f[e].constructor.prototype),p[e].prop))&&(f[e]=n[c]))}}),e[c]=h.model=f.model,n[c]=h.view=f.view}),this.lengthMap=o,this.models=e,this.views=n},getSettingsForLength:function(){var t=this.browser.length||this.browser.end-this.browser.start+1;return this.lengthMap.find(function(e){var n=m(e,1)[0];return t>n||1===t&&1===n||t<0&&n<0})||[]},prop:function(t,e){var n=this,i=this._interface[t]?this[this._interface[t]]:this[["controller","model","view"].find(function(e){return n[e]&&void 0!==n[e][t]})]||this;return void 0!==e&&(null===e?delete i[t]:i[t]=e),i?i[t]:void 0},setHeight:function(t,e){return t=this.disabled||!0!==e&&t<this.prop("featureHeight")||this.prop("threshold")&&!this.prop("thresholdMessage")&&this.browser.length>this.prop("threshold")?0:Math.max(t,this.prop("minLabelHeight")),this.height=t,t},resetHeight:function(){if(!0===this.resizable){var t=this.prop("resizer");this.autoHeight=!![this.defaultAutoHeight,this.browser.trackAutoHeight].sort(function(t,e){return(null!=t?0:1)-(null!=e?0:1)})[0],this.controller.resize(this.autoHeight?this.prop("fullVisibleHeight"):this.defaultHeight+this.margin+(t?t.height():0)),this.initialHeight=this.height}},setConfig:function(t,e){var n=this;if("string"==typeof t&&void 0!==e){var i={};i[t]=e,t=i}var r=!1;if(Object.entries(t).forEach(function(t){var e=m(t,2),i=e[0],o=e[1];void 0!==n.configSettings[i]&&void 0!==n.configSettings[i][o]&&n.config[i]!==o&&(n.config[i]=o,r=!0)}),r){var o=this.prop("featuresById");Object.values(o).forEach(function(t){delete t.menuEl}),this._setCurrentConfig(),this.disabled||this.reset.apply(this,u(r?["config",t]:[])),(this.prop("childTracks")||[]).forEach(function(e){e.setConfig(t)}),this.browser.saveConfig()}},_setCurrentConfig:function(){var t,e=this,n=(Array.isArray(this.controls)?this.controls:[]).reduce(function(t,e){return t.add(e)},this.browser.jQuery()),i=[],r=[],o=[];(this._currentConfig={prop:{},func:{}},Object.keys(this.configSettings).forEach(function(t){var s=e.getConfig(t);s&&(r.push(s),s.featureFilter&&i.push(s.featureFilter),o.push(s.hasOwnProperty("name")?"function"==typeof s.name?s.name.call(e):s.name:!1!==s.featureFilter&&n.filter('[data-control="'.concat(t,'"]')).find('[value="'.concat(e.config[t],'"]')).html()))}),r.length)&&(o=o.filter(Boolean),delete(r=(t=this.browser.jQuery).extend.apply(t,[!0,{}].concat(u(r),[{featureFilters:i,name:"".concat(this.defaultName).concat(o.length?" - ".concat(o.join(", ")):""),configName:[this.defaultName].concat(o)}]))).featureFilter);Object.entries(r).forEach(function(t){var n=m(t,2),i=n[0],r=n[1];e._currentConfig["function"!=typeof r||/^(before|after)/.test(i)?"prop":"func"][i]=r}),r.name&&this.updateName(r.name,r.configName)},getConfig:function(t){return this.configSettings[t][this.config[t]]},addChildTracks:function(){if(this.children){var t=this,e=this.browser,n=[].concat(this.children).filter(function(t){return t.prototype instanceof b}),i={parentTrack:this,controls:"off",threshold:this.prop("threshold")};setTimeout(function(){t.childTracks=n.map(function(n){return n.prototype.isLegend||n.isLegend?(t.addLegend(n.extend(i),!0),t.legendTrack):e.addTrack(n.extend(i))}),t.controller.setLabelHeight()},1)}},addLegend:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.legend,e=arguments.length>1?arguments[1]:void 0;if(null!=t&&t.prototype.isLegend){var n=this,i=!0===t.prototype.shared?Genoverse.getTrackNamespace(t):t.prototype.shared||this.id,r={id:"".concat(i,"Legend"),name:t.prototype.name||"".concat(this.defaultName," Legend"),type:i};this.legendType=i,!0===e?o():setTimeout(o,1)}function o(){return n.legendTrack=n.browser.legends[r.id]||n.browser.addTrack(t.extend(r)),n.legendTrack}},changeChr:function(){Object.values(this.models).forEach(function(t){return t.setChrProps()})},updateName:function(t,e){this.controller&&"function"!=typeof this.controller?this.controller.setName(t,e):(this.name=t,this.configName=e||[])},enable:function(){!0===this.disabled&&(this.disabled=!1,this.controller.resize(this.initialHeight),this.reset())},disable:function(){this.disabled||(this.disabled=!0,this.controller.resize(0))},reset:function(){var t;"resizing"!==(arguments.length<=0?void 0:arguments[0])&&this.setLengthMap(),Object.values(this.models).filter(function(t){return!1!==t.url}).forEach(function(t){return t.init(!0)}),Object.values(this.views).forEach(function(t){return t.init(!0)}),(t=this.controller).reset.apply(t,arguments)},remove:function(){this.browser.removeTrack(this)},destructor:function(){var t=this;["controller","model","view","models","views","lengthMap"].forEach(function(e){var n;"function"==typeof(null==t||null===(n=t[e])||void 0===n?void 0:n.destroy)&&t[e].destroy(),delete t[e]})}});b.Controller=o.default,b.Model=a.default,b.View=c.default,e.Ay=b},1572:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(5932);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({scrollBuffer:1.2,threshold:Infinity,clickTolerance:0,messages:void 0,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=h(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,o.A)(this,"Controller"),this.init()},init:function(){this.setDefaults(),this.addDomElements(),this.addUserEventHandlers(),this.deferreds=[]},setDefaults:function(){this.imgRange={},this.scrollRange={},this.messages=this.messages||{error:"ERROR: ",threshold:"Data for this track is not displayed in regions greater than ",resize:'Some features are currently hidden, <a class="gv-resize">resize to see all</a>'}},reset:function(t){this.abort(),this.setDefaults(),this.resetImages(),this.browser.closeMenus(this),"resizing"!==t&&(this.setScale(),this.makeFirstImage())},resetImages:function(){this.scrollContainer.empty(),this.resetImageRanges()},resetImageRanges:function(){var t=this.browser;this.left=0,this.scrollStart=["ss",t.chr,t.start,t.end].join("-"),this.imgRange[this.scrollStart]=this.imgRange[this.scrollStart]||{left:-2*this.width,right:2*this.width},this.scrollRange[this.scrollStart]=this.scrollRange[this.scrollStart]||{start:Math.max(t.start-t.length,1),end:Math.min(t.end+t.length,t.chromosomeSize)}},setName:function(t,e){this.track.name=t,this.labelName=this.labelName||this.browser.jQuery('<span class="gv-name">').appendTo(this.label),this.labelName.attr("title",t).html(e&&e.length?e.map(function(t){return'<span class="gv-name-part">'.concat(t,"</span>")}):t),this.minLabelHeight=this.label.parents("body").length?Math.max(this.labelName.outerHeight(!0),this.labelName.outerHeight()):0,this.setLabelHeight(!0),t&&!this.track._constructing&&this.track.height<this.minLabelHeight&&this.resize(this.minLabelHeight)},addDomElements:function(){var t=this.track.name||"",e=this.browser.jQuery;this.menus=e(),this.container=e('<div class="gv-track-container">').appendTo(this.browser.wrapper),this.scrollContainer=e('<div class="gv-scroll-container">').appendTo(this.container),this.imgContainer=e('<div class="gv-image-container">').width(this.width).addClass(this.prop("invert")?"gv-invert":""),this.label=e("<li>").appendTo(this.browser.labelContainer).height(this.prop("height")).data("track",this.track),this.context=e("<canvas>")[0].getContext("2d"),this.messageContainer=e('\n <div class="gv-message-container">\n <div class="gv-messages"></div>\n <i class="gv-control gv-collapse fas fa-angle-double-left"></i>\n <i class="gv-control gv-expand fas fa-angle-double-right"></i>\n </div>\n ').appendTo(this.container),this.prop("border")&&e('<div class="gv-track-border">').appendTo(this.container),this.prop("unsortable")?this.label.addClass("gv-unsortable"):e('<div class="gv-handle">').appendTo(this.label),this.prop("children")?(this.superContainer=e('<div class="gv-track-container gv-track-super-container">').insertAfter(this.container),this.container.appendTo(this.superContainer)):this.prop("parentTrack")&&(this.superContainer=this.prop("parentTrack").prop("superContainer"),this.container.appendTo(this.superContainer),this.label.remove(),this.label=this.prop("parentTrack").prop("label")),this.setName(t,this.track.configName),this.container.height(this.prop("disabled")?0:Math.max(this.prop("height"),this.minLabelHeight))},addUserEventHandlers:function(){var t=this,e=this.browser;this.container.on("mouseup",".gv-image-container",function(n){n.which&&1!==n.which||"number"==typeof e.dragStart&&e.start!==e.dragStart||"select"===e.dragAction&&e.selector.outerWidth(!0)>2||t.click(n)}),this.messageContainer.children().on("click",function(){var e=t.messageContainer.children(".gv-messages").is(":visible")?" gv-collapsed":"",n=t.messageContainer.find(".gv-msg").data("code");t.messageContainer.attr("class","gv-message-container".concat(e)),t.checkHeight(),"error"!==n&&(document.cookie="gv_msg_".concat(n,"_").concat(t.prop("id"),"=1; expires=").concat(e?"Tue, 19 Jan 2038":"Thu, 01 Jan 1970"," 00:00:00 GMT; path=/"))})},click:function(t){var e=this.browser.jQuery(t.target),n=t.pageX-this.container.parent().offset().left+this.browser.scaledStart,i=t.pageY-e.offset().top;return this.imgContainer.hasClass("gv-invert")&&(i=e.height()-i),this.browser.makeMenu(this.getClickedFeatures(n,i,e),t,this.track)},getClickedFeatures:function(t,e,n){var i={x:t,y:e,w:1,h:1},r=this.scale,o=r<1?this.clickTolerance:0;o&&(i.x-=o/2,i.w+=o);var s=this[n&&n.hasClass("gv-labels")?"labelPositions":"featurePositions"].search(i);return o?s.filter(function(e){var n=e.position[r].bounds,i=n.x+n.w/2,s=Math.min(n.x,i-o/2),a=Math.max(n.x+n.w,i+o/2);return t>=s&&t<=a}).sort(function(e,n){return Math.abs(e.position[r].start-t)-Math.abs(n.position[r].start-t)}):this.model.sortFeatures(s)},showMessage:function(t,e){var n=this.messageContainer.children(".gv-messages");if(!n.children(".gv-".concat(t)).show().length){var i=this.browser.jQuery('<div class="gv-msg gv-'.concat(t,'">').concat(this.messages[t]).concat(e||"","</div>")).data("code",t).prependTo(n);if("resize"===t){var r=this;i.children("a.gv-resize").on("click",function(){r.resize(r.fullVisibleHeight)})}this.messageContainer[document.cookie.match("".concat(["gv_msg",t,this.prop("id")].join("_"),"=1"))?"addClass":"removeClass"]("gv-collapsed")}var o=this.messageContainer.show().outerHeight(!0);o>this.prop("height")&&this.resize(o,void 0,!1),n=null},hideMessage:function(t){var e=this.messageContainer.find(".gv-msg");t?(e=e.filter(".gv-".concat(t)).hide()).length&&!e.siblings().filter(function(){return"none"!==this.style.display}).length&&this.messageContainer.hide():(e.hide(),this.messageContainer.hide()),e=null},showError:function(t){this.showMessage("error",t)},checkHeight:function(){var t;(this.browser.length>this.threshold?this.thresholdMessage?(this.showMessage("threshold",this.thresholdMessage),this.fullVisibleHeight=Math.max(this.messageContainer.outerHeight(!0),this.minLabelHeight)):this.fullVisibleHeight=0:this.thresholdMessage&&this.hideMessage("threshold"),this.prop("resizable"))&&(this.browser.length>this.threshold?(t=this.prop("autoHeight"),this.prop("autoHeight",!0)):this.fullVisibleHeight=this.visibleFeatureHeight()||(this.messageContainer.is(":visible")?this.messageContainer.outerHeight(!0):this.prop("hideEmpty")?0:this.minLabelHeight),this.autoResize(),void 0!==t&&this.prop("autoHeight",t))},visibleFeatureHeight:function(){var t={x:this.browser.scaledStart,w:this.width,y:0,h:9e99},e=this.scale,n=this.featurePositions.search(t),i=this.prop("hideEmpty")?0:this.minLabelHeight,r=Math.max.apply(Math,c(n.map(function(t){return t.position[e].bottom}).concat(i)));return"separate"===this.prop("labels")&&(this.labelTop=r,r+=Math.max.apply(Math,c(this.labelPositions.search(t).concat(this.prop("repeatLabels")?n:[]).map(function(t){return t.position[e].label.bottom}).concat(i)))),r},autoResize:function(){var t=this.prop("autoHeight");t||"separate"===this.prop("labels")?this.resize(t?this.fullVisibleHeight:this.prop("height"),this.labelTop,!1):this.toggleExpander(!1)},resize:function(t,e,n){t=this.track.setHeight(t,e),"number"==typeof e&&this.imgContainers.children(".gv-labels").css("top",e),this.container.height(t)[t?"show":"hide"](),this.setLabelHeight(),this.toggleExpander(),!1!==n&&this.browser.saveConfig()},toggleExpander:function(t){if(!0===this.prop("resizable")){var e=this.prop("featureMargin"),n=this.prop("height");if(this.fullVisibleHeight-e.top-e.bottom>n&&!this.prop("disabled")){this.showMessage("resize");var i=this,r=this.messageContainer.outerHeight(!0);r>n&&this.resize(r,void 0,t),this.expander=(this.expander||this.browser.jQuery('<div class="gv-expander gv-static">').width(this.width).appendTo(this.container).on("click",function(){i.resize(i.fullVisibleHeight)}))[0===this.prop("height")?"hide":"show"]()}else this.expander&&(this.hideMessage("resize"),this.expander.hide())}},setLabelHeight:function(t){var e=this.prop("parentTrack");if(e)e.controller.setLabelHeight();else{var n=[this].concat(this.prop("childTracks")||[]),i=n.reduce(function(t,e){return t+(e.prop("disabled")?0:e.prop("height"))},0);if(this.label.height(this.prop("disabled")?0:t&&this.minLabelHeight?Math.max(i,this.minLabelHeight):i),n.length>1){var r=n[0].prop("height");n.slice(1).forEach(function(t){var e=t.prop("height");t.prop("labelName").css("top",r)[e?"removeClass":"addClass"]("gv-hide"),r+=e})}}},setWidth:function(t){var e=this.track;[this,e,e.model,e.view].forEach(function(e){e.width=t}),this.imgContainer.add(this.expander).width(t)},setScale:function(){var t=this;this.scale=this.browser.scale,this.track.setMVC(),this.resetImageRanges();var e=this.prop("labels");e&&"overlay"!==e&&this.model.setLabelBuffer(this.browser.labelBuffer),Infinity!==this.threshold&&"auto"!==this.prop("resizable")&&(this.thresholdMessage=this.view.formatLabel(this.threshold)),Object.entries(this.view.setScaleSettings(this.scale)).forEach(function(e){var n=h(e,2),i=n[0],r=n[1];t[i]=r}),this.hideMessage()},move:function(t){this.left+=t,this.scrollContainer.css("left",this.left);var e=this.scrollStart;if(this.imgRange[e]&&this.imgRange[e].left+this.left>-this.scrollBuffer*this.width){var n=this.scrollRange[e].start-1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:n-this.browser.length+1,end:n,left:this.imgRange[e].left,cls:e}),(this.imgRange[e]||{}).left-=this.width,(this.scrollRange[e]||{}).start-=this.browser.length}if(this.imgRange[e]&&this.imgRange[e].right+this.left<this.scrollBuffer*this.width){var i=this.scrollRange[e].end+1;this.makeImage({scale:this.scale,chr:this.browser.chr,start:i,end:i+this.browser.length-1,left:this.imgRange[e].right,cls:e}),(this.imgRange[e]||{}).right+=this.width,(this.scrollRange[e]||{}).end+=this.browser.length}},moveTo:function(t,e,n,i){var r=this.scrollRange[this.scrollStart],o=["ss",t,e,n].join("-");this.scrollRange[o]||e>r.end||n<r.start?(this.resetImageRanges(),this.makeFirstImage(o)):(this.move("number"==typeof i?i:(e-this.browser.start)*this.scale),this.checkHeight())},makeImage:function(t){t.scaledStart=t.scaledStart||t.start*t.scale,t.width=t.width||this.width,t.height=t.height||this.prop("height"),t.featureHeight=t.featureHeight||0,t.labelHeight=t.labelHeight||0;var e,n=this,i=this.browser.jQuery,r=this.browser.length>this.threshold,o=this.imgContainer.clone().addClass("".concat(t.cls," gv-loading").replace(".","_")).css({left:t.left,display:t.cls===this.scrollStart?"block":"none"}),s=!!t.background&&i('<img class="gv-bg">').hide().addClass(t.background).data(t).prependTo(o),a=this.browser.jQuery('<img class="gv-data">').hide().data(t).appendTo(o).on("load",function(){i(this).fadeIn("fast").parent().removeClass("gv-loading"),i(this).siblings(".gv-bg").show()});if(t.container=o,this.imgContainers.push(o[0]),this.scrollContainer.append(this.imgContainers),!r&&!this.model.checkDataRange(t.chr,t.start,t.end)){var l=this.prop("dataBuffer");t.start-=l.start,t.end+=l.end,e=this.model.getData(t.chr,t.start,t.end)}return e||(e=i.Deferred(),setTimeout(e.resolve,1)),this.deferreds.push(e),e.done(function(){var e=r?[]:n.model.findFeatures(t.chr,t.start,t.end);n.render(e,a),s&&n.renderBackground(e,s)}).fail(function(t){n.showError(t)})},makeFirstImage:function(t){var e=this.browser.jQuery,n=e.Deferred();if(this.scrollContainer.children().hide().filter(".".concat(t||this.scrollStart)).show().length)return this.scrollContainer.css("left",0),this.checkHeight(),n.resolve();var i=this,r=this.browser.chr,o=this.browser.start,s=this.browser.end,a=this.browser.length,l=this.scale,h=this.scrollStart,u=[{chr:r,start:o,end:s,scale:l,cls:h,left:0}],f=0,p=this.width;this.browser.isStatic||(o>1&&(u.push({chr:r,start:o-a,end:o-1,scale:l,cls:h,left:-this.width}),f=-this.width,p+=this.width),s<this.browser.getChromosomeSize(r)&&(u.push({chr:r,start:s+1,end:s+a,scale:l,cls:h,left:this.width}),p+=this.width));var d=this.imgContainer.clone().addClass("gv-loading").css({left:f,width:p}).prependTo(this.scrollContainer.css("left",0));function g(){e.when.apply(e,c(u.map(function(t){return i.makeImage(t)}))).done(n.resolve),d.remove()}if(a>this.threshold||this.model.checkDataRange(r,o,s))g();else{var m=this.prop("dataBuffer");this.model.getData(r,o-m.start-a,s+m.end+a).done(g).fail(function(t){i.showError(t)})}return n},render:function(t,e){var n=e.data();t=this.view.positionFeatures(this.view.scaleFeatures(t,n.scale),n);var i=this.browser.jQuery("<canvas>").attr({width:n.width,height:n.featureHeight||1}),r="separate"===this.prop("labels")&&n.labelHeight?i.clone().attr("height",n.labelHeight):i,o=i[0].getContext("2d"),s=r[0].getContext("2d");switch(o.font=s.font=this.prop("font"),this.prop("labels")){case!1:break;case"overlay":s.textAlign="center",s.textBaseline="middle";break;default:s.textAlign="left",s.textBaseline="top"}this.view.draw(t,o,s,n.scale),e.attr("src",i[0].toDataURL()),s!==o&&e.clone(!0).attr({class:"gv-labels",src:r[0].toDataURL()}).insertAfter(e),this.checkHeight()},renderBackground:function(t,e,n){var i=this.browser.jQuery("<canvas>").attr({width:this.width,height:n||1})[0];this.view.drawBackground(t,i.getContext("2d"),e.data()),e.attr("src",i.toDataURL())},populateMenu:function(t){var e=t.label?t.label[0]:t.id;return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({title:e,Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)},Object.entries(t).reduce(function(t,n){var i=h(n,2),r=i[0],o=i[1];return"object"===s(o)||o===e||["chr","start","end","sort"].includes(r)?t:Object.assign(t,l({},r,o))},{}))},insertPropertiesIntoMenu:function(t,e,n,i){return this.browser.insertPropertiesIntoMenu(t,e,n,i,this.track)},abort:function(){this.deferreds.forEach(function(t){"pending"===t.state()&&t.reject()}),this.deferreds=[]},destroy:function(){this.abort(),this.container.add(this.label).add(this.menus).remove()}})},4798:function(t,e,n){"use strict";n.r(e);var i=n(1572);e.default=i.default.extend({getClickedFeatures:function(t,e){var n=this.base(t,e)[0];return!!n&&this.makeSeqFeatureMenu(n,Math.floor(t/this.scale))},makeSeqFeatureMenu:function(t,e){return t.featureMenus=t.featureMenus||{},t.featureMenus[e]=t.featureMenus[e]||{title:t.sequence.charAt(e-t.start),Location:"".concat(t.chr,":").concat(e)},t.featureMenus[e].title?t.featureMenus[e]:void 0}})},4770:function(t,e,n){"use strict";n.r(e);var i=n(1572);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({constructor:function(t){if(this.base(t),"function"!=typeof this._makeImage){var e=this.prop("strand"),n=this.prop("featureStrand");if(-1===e)this._makeImage=this.track.makeReverseImage?this.track.makeReverseImage.bind(this):this.makeImage,this.makeImage=function(){};else{e=this.prop("strand",1),this._makeImage=this.makeImage,this.makeImage=this.makeForwardImage;var i=this.track;setTimeout(function(){i.reverseTrack=i.browser.addTrack(i.constructor.extend({id:i.id?"".concat(i.id,"Reverse"):void 0,strand:-1,url:!1,order:"number"==typeof i.orderReverse?i.orderReverse:i.order,forwardTrack:i})),i.controller._deferredReverseTrackImages.forEach(function(t){var e;return(e=i.controller)._makeReverseTrackImage.apply(e,r(t))}),delete i.controller._deferredReverseTrackImages},1)}n||this.prop("featureStrand",e)}},makeForwardImage:function(t){this._makeReverseTrackImage(t,this._makeImage(t))},_makeReverseTrackImage:function(t,e){var n=this.prop("reverseTrack");n?e&&"function"==typeof e.done?e.done(function(){n.controller._makeImage(t,e)}):n.controller._makeImage(t,e):this._deferredReverseTrackImages=(this._deferredReverseTrackImages||[]).concat([[t,e]])},destroy:function(){this.destroying||(this.destroying=!0,this.browser.removeTrack(this.prop("forwardTrack")||this.prop("reverseTrack")),this.base())}})},6767:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(3301),s=n.n(o),a=n(5932);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({dataType:"json",allData:!1,dataBuffer:void 0,xhrFields:void 0,url:void 0,urlParams:void 0,urlParamsGenerator:function(){return{}},data:void 0,dataRequestLimit:void 0,showServerErrors:!1,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=p(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,a.A)(this,"Model"),this.init()},init:function(t){this.setDefaults(t),t&&Object.values(this.featuresById).forEach(function(t){delete t.position}),t&&!this.data||(delete this.dataRangesByChr,delete this.featuresByChr,this.featuresById={},this.setChrProps()),this.dataLoading=[]},setDefaults:function(t){this.dataBuffer=this.dataBuffer||{start:0,end:0},this.urlParams=this.urlParams||this.urlParamsGenerator(),this.xhrFields=this.xhrFields||{},this.dataBufferStart=this.dataBuffer.start,this._url||(this._url=this.url),t&&!this.url&&this._url&&(this.url=this._url)},setChrProps:function(){var t=this.browser.chr;this.dataRangesByChr=this.dataRangesByChr||{},this.featuresByChr=this.featuresByChr||{},this.dataRangesByChr[t]=this.dataRangesByChr[t]||new(s()),this.featuresByChr[t]=this.featuresByChr[t]||new(s())},features:function(t){return this.featuresByChr[t]},dataRanges:function(t){return this.dataRangesByChr[t]},parseURL:function(t,e,n,i){return this.allData&&(e=1,n=this.browser.getChromosomeSize(t)),(i||this.url).replace(/__ASSEMBLY__/,this.browser.assembly).replace(/__CHR__/,t).replace(/__START__/,e).replace(/__END__/,n)},setLabelBuffer:function(t){this.dataBuffer.start=Math.max(this.dataBufferStart,t)},getData:function(t,e,n,i){var r=this,o=this.browser.jQuery;e=Math.max(1,e),n=Math.min(this.browser.getChromosomeSize(t),n);var s=o.Deferred();if(void 0!==this.data)return this.receiveData("function"==typeof this.data.sort?this.data.sort(function(t,e){return t.start-e.start}):this.data,t,e,n),s.resolve();var a=[],l=n-e+1;if(!this.url)return s.resolve();if(this.dataRequestLimit&&l>this.dataRequestLimit)for(var c=Math.ceil(l/this.dataRequestLimit);c--;)a.push([e,c?e+=this.dataRequestLimit-1:n]),e++;else a.push([e,n]);return o.when.apply(o,f(a.map(function(e){var n=o.ajax({url:r.parseURL(t,e[0],e[1]),data:r.urlParams,dataType:r.dataType,xhrFields:r.xhrFields}).done(function(n){r.receiveData(n,t,e[0],e[1])}).fail(function(t,e){var n;if(null!==(n=r.track)&&void 0!==n&&null!==(n=n.controller)&&void 0!==n&&n.showError){for(var i,o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];r.track.controller.showError(r.showServerErrors&&null!==(i=t.responseJSON)&&void 0!==i&&i.message?t.responseJSON.message:"".concat(e," while getting the data, see console for more details"),[t,e].concat(s))}}).always(function(){r.dataLoading=r.dataLoading.filter(function(t){return n!==t})});return n.coords=[t,e[0],e[1]],"function"==typeof i&&n.done(i),r.dataLoading.push(n),n}))).done(s.resolve),s},receiveData:function(t,e,n,i){n=Math.max(n,1),i=Math.min(i,this.browser.getChromosomeSize(e)),this.setDataRange(e,n,i),this.parseData(t,e,n,i),this.allData&&(this.url=!1)},parseData:function(t,e,n){var i=this;t.forEach(function(t,r){t.chr=t.chr||e,t.sort=n+r,i.insertFeature(t)})},updateData:function(t){this.data=t,this.track.reset()},setDataRange:function(t,e,n){this.allData&&(e=1,n=this.browser.getChromosomeSize(t)),this.dataRanges(t).insert({x:e,w:n-e+1,y:0,h:1},[e,n])},checkDataRange:function(t,e,n){e=Math.max(1,e),n=Math.min(this.browser.getChromosomeSize(t),n);var i=this.dataRanges(t).search({x:e,w:n-e+1,y:0,h:1}).sort(function(t,e){return t[0]-e[0]});if(!i.length)return!1;for(var r=1===i.length?i[0][0]:9e99,o=1===i.length?i[0][1]:-9e99,s=0;s<i.length-1;s++){var a=p(i[s],2),l=a[0],c=a[1],h=p(i[s+1],2),u=h[0],f=h[1];if(!(l<=c&&(u>=f||u+1>=c)))return!1;r=Math.min(r,l),o=Math.max(o,u,f)}return e>=r&&n<=o},insertFeature:function(t){if(t.chr){t.id||(t.id=t.ID||this.hashCode(JSON.stringify(h(h({},t),{},{sort:""}))));var e=this.features(t.chr);e&&!this.featuresById[t.id]&&(t.subFeatures&&(t.subFeatures.sort(function(t,e){return t.start-e.start}).forEach(function(e){e.start=Math.min(Math.max(e.start,t.start),t.end),e.end=Math.max(Math.min(e.end,t.end),t.start)}),t.subFeatures.unshift({start:t.start,end:t.start,fake:!0}),t.subFeatures.push({start:t.end,end:t.end,fake:!0})),e.insert({x:t.start,y:0,w:t.end-t.start+1,h:1},t),this.featuresById[t.id]=t)}},findFeatures:function(t,e,n){var i=this,r=this.features(t).search({x:e-this.dataBuffer.start,y:0,w:n-e+this.dataBuffer.start+this.dataBuffer.end+1,h:1});return(this.prop("featureFilters")||[]).forEach(function(t){r=r.filter(function(e){return t.call(i,e)})}),this.sortFeatures(r)},sortFeatures:function(t){return t.sort(function(t,e){return t.sort-e.sort})},hashCode:function(t){var e=0;if(t.length)for(var n=0;n<t.length;n++){e=(e<<5)-e+t.charCodeAt(n),e&=e}return String(e)},abort:function(){this.dataLoading.forEach(function(t){return t.abort()}),this.dataLoading=[]},destroy:function(){this.abort(),delete this.data,delete this.dataRangesByChr,delete this.featuresByChr,delete this.featuresById}})},6200:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({dataType:"text",init:function(){this.isLocal&&(this.url=!1),this.largeFile||this.indexFile||(this.allData=!0),this.base.apply(this,arguments)},getData:function(t){var e=this;if(this.isLocal&&this.dataFile){var n=new FileReader,i=this.browser.jQuery.Deferred();return n.onload=function(n){i.done(function(){e.receiveData(n.target.result,t,1,e.browser.getChromosomeSize(t))}).resolve()},n.readAsText(this.dataFile),i}for(var r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return this.base.apply(this,[t].concat(o))}})},439:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return m}});var i=n(3541),r=n(8186);function o(t,e){this.block=t,this.offset=e}function s(t,e,n){var i=4294967296*(255&t[e+6])+16777216*(255&t[e+5])+65536*(255&t[e+4])+256*(255&t[e+3])+(255&t[e+2]),r=t[e+1]<<8|t[e];return 0!=i||0!=r||n?new o(i,r):null}function a(t,e){e=Math.min(e||1,t.byteLength-50);for(var n=[],i=[0],o=0;i[0]<e;){var s=new Uint8Array(t,i[0],12),a=s[11]<<8|s[10],l=(0,r.A)(t,12+a+i[0],Math.min(65536,t.byteLength-12-a-i[0]),i);i[0]+=8,o+=l.byteLength,n.push(l)}if(1==n.length)return n[0];for(var c=new Uint8Array(o),h=0,u=0;u<n.length;++u){var f=new Uint8Array(n[u]);arrayCopy(f,0,c,h,f.length),h+=f.length}return c.buffer}function l(t,e){this.minv=t,this.maxv=e}o.prototype.toString=function(){return this.block+":"+this.offset};function c(){}function h(t,e){var n=e,r=(0,i.Uk)(t,n);n+=4;for(var o=0;o<r;++o){(0,i.Uk)(t,n);n+=8+16*(0,i.Uk)(t,n+4)}for(var a=(0,i.Uk)(t,n),l=1e9,c=n+=4,h=0;h<a;++h){var u=s(t,c);if(c+=8,u){var f=u.block;u.offset>0&&(f+=65536),f<l&&(l=f);break}}return{minBlockIndex:l,nbin:r,length:(n+=8*a)-e}}function u(t,e,n,r,o){var s=new c;s.data=t,s.bai=e,s.indexChunks=n;var l=s.indexChunks?s.indexChunks.minBlockIndex:1e9;function f(t){if(!t)return r(null,"Couldn't access BAM");var e=a(t,t.byteLength),n=new Uint8Array(e),o=(0,i.Uk)(n,0);if(21840194!=o)return r(null,"Not a BAM file, magic=0x"+o.toString(16));for(var l=(0,i.Uk)(n,4),c=0;c<l;++c)String.fromCharCode(n[c+8]);var h=(0,i.Uk)(n,l+8),u=l+12;s.chrToIndex={},s.indexToChr=[];for(c=0;c<h;++c){for(var f=(0,i.Uk)(n,u),p="",d=0;d<f-1;++d)p+=String.fromCharCode(n[u+4+d]);(0,i.Uk)(n,u+f+4);s.chrToIndex[p]=c,0==p.indexOf("chr")?s.chrToIndex[p.substring(3)]=c:s.chrToIndex["chr"+p]=c,s.indexToChr.push(p),u=u+8+f}return s.indices?r(s):void 0}if(s.indexChunks){var p=s.indexChunks.chunks;s.indices=[];for(var d=0;d<p.length;d++)s.indices[d]=null;s.data.slice(0,l).fetch(f)}else s.bai.fetch(function(e){var a=function(t){if(!t)return"Couldn't access BAI";var e=new Uint8Array(t),n=(0,i.Uk)(e,0);if(21578050!=n)return r(null,"Not a BAI file, magic=0x"+n.toString(16));var o=(0,i.Uk)(e,4);s.indices=[];for(var a=8,c=0;c<o;++c){var u=a,f=h(e,u);a+=f.length,l=Math.min(f.minBlockIndex,l),f.nbin>0&&(s.indices[c]=new Uint8Array(t,u,a-u))}return!0}(e);!0!==a?s.bai.url&&void 0===o?(s.bai.url=s.data.url.replace(new RegExp(".bam$"),".bai"),u(t,s.bai,n,r,!0)):r(null,a):s.data.slice(0,l).fetch(f)})}c.prototype.blocksForRange=function(t,e,n){var r=this.indices[t];if(!r)return[];for(var o=function(t,e){var n,i=[];for(--e,i.push(0),n=1+(t>>26);n<=1+(e>>26);++n)i.push(n);for(n=9+(t>>23);n<=9+(e>>23);++n)i.push(n);for(n=73+(t>>20);n<=73+(e>>20);++n)i.push(n);for(n=585+(t>>17);n<=585+(e>>17);++n)i.push(n);for(n=4681+(t>>14);n<=4681+(e>>14);++n)i.push(n);return i}(e,n),a=[],c=0;c<o.length;++c)a[o[c]]=!0;for(var h=[],u=[],f=(0,i.Uk)(r,0),p=4,d=0;d<f;++d){var g=(0,i.Uk)(r,p),m=(0,i.Uk)(r,p+4);if(p+=8,a[g])for(var v=0;v<m;++v){var y=s(r,p),b=s(r,p+8);(g<4681?u:h).push(new l(y,b)),p+=16}else p+=16*m}var w=(0,i.Uk)(r,p),x=null,_=Math.min(e>>14,w-1),S=Math.min(n>>14,w-1);for(c=_;c<=S;++c){var k=s(r,p+4+8*c);k&&((!x||k.block<x.block||k.block==x.block&&k.offset<x.offset)&&(x=k))}var T=[];if(null!=x)for(c=0;c<u.length;++c){var C=u[c];(C.maxv.block>x.block||C.maxv.block==x.block&&C.maxv.offset>=x.offset)&&T.push(C)}u=T;var O=[];for(c=0;c<u.length;++c)O.push(u[c]);for(c=0;c<h.length;++c)O.push(h[c]);O.sort(function(t,e){var n=t.minv.block-e.minv.block;return 0!=n?n:t.minv.offset-e.minv.offset});var A=[];if(O.length>0){var E=O[0];for(c=1;c<O.length;++c){var P=O[c];P.minv.block==E.maxv.block?E=new l(E.minv,P.maxv):(A.push(E),E=P)}A.push(E)}return A},c.prototype.fetch=function(t,e,n,i,r){var o=this;r=r||{};var s,l=this.chrToIndex[t];if(void 0===l)s=[];else{if(null===this.indices[l]&&this.indexChunks.chunks[l]){var c=this.indexChunks.chunks[l];return this.bai.slice(c[0],c[1]).fetch(function(o){var s=new Uint8Array(o);return this.indices[l]=s,this.fetch(t,e,n,i,r)}.bind(this))}(s=this.blocksForRange(l,e,n))||i(null,"Error in index fetch")}var h,u=[],f=0;!function t(){if(f>=s.length)return i(u);if(h){var c=new Uint8Array(h),p=o.readBamRecords(c,s[f].minv.offset,u,e,n,l,r);return h=null,++f,p?i(u):t()}var d=s[f],g=d.minv.block,m=d.maxv.block+65536;o.data.slice(g,m-g).fetch(function(e){return h=a(e,d.maxv.block-d.minv.block+1),t()})}()};var f=["=","A","C","x","G","x","x","x","T","x","x","x","x","x","x","N"],p=["M","I","D","N","S","H","P","=","X","?","?","?","?","?","?","?"];function d(){}c.prototype.readBamRecords=function(t,e,n,r,o,s,a){for(;;){var l=e+(0,i.Uk)(t,e)+4;if(l>t.length)return!1;var c=new d,h=(0,i.Uk)(t,e+4),u=(0,i.Uk)(t,e+8),g=(0,i.Uk)(t,e+12),m=(65280&g)>>8,v=255&g,y=(0,i.Uk)(t,e+16),b=(4294901760&y)>>16,w=65535&y,x=(0,i.Uk)(t,e+20),_=(0,i.Uk)(t,e+24),S=(0,i.Uk)(t,e+28);(0,i.Uk)(t,e+32);if(c.segment=this.indexToChr[h],c.flag=b,c.pos=u,c.mq=m,a.light&&(c.seqLength=x),!a.light||a.includeName){for(var k="",T=0;T<v-1;++T)k+=String.fromCharCode(t[e+36+T]);c.readName=k}if(!a.light){_>=0&&(c.nextSegment=this.indexToChr[_],c.nextPos=S);for(var C=e+36+v,O="",A=0;A<w;++A){var E=(0,i.Uk)(t,C);O=O+(E>>4)+p[15&E],C+=4}c.cigar=O;var P="",j=x+1>>1;for(T=0;T<j;++T){var D=t[C+T];(P+=f[(240&D)>>4]).length<x&&(P+=f[15&D])}C+=j,c.seq=P;var I="";for(T=0;T<x;++T)I+=String.fromCharCode(t[C+T]+33);for(C+=x,c.quals=I;C<l;){var M,R=String.fromCharCode(t[C],t[C+1]),N=String.fromCharCode(t[C+2]);if("A"==N)M=String.fromCharCode(t[C+3]),C+=4;else if("i"==N||"I"==N)M=(0,i.Uk)(t,C+3),C+=7;else if("c"==N||"C"==N)M=t[C+3],C+=4;else if("s"==N||"S"==N)M=(0,i.Dt)(t,C+3),C+=5;else if("f"==N)M=(0,i.zH)(t,C+3),C+=7;else if("Z"==N||"H"==N)for(C+=3,M="";;){var F=t[C++];if(0==F)break;M+=String.fromCharCode(F)}else{if("B"!=N)throw"Unknown type "+N;var H,L,z=String.fromCharCode(t[C+3]),B=(0,i.Uk)(t,C+4);if("i"==z||"I"==z||"f"==z)H=4,L="f"==z?i.zH:i.Uk;else if("s"==z||"S"==z)H=2,L=i.Dt;else{if("c"!=z&&"C"!=z)throw"Unknown array type "+z;H=1,L=i.HA}C+=8,M=[];for(var U=0;U<B;++U)M.push(L(t,C)),C+=H}c[R]=M}}if((!r||c.pos<=o&&c.pos+x>=r)&&(void 0!==s&&h!=s||n.push(c)),c.pos>o)return!0;e=l}};var g=function(t,e,n,i,r){t.slice(0,10).fetch(function(o){return o?u(t,e,n,i,r):i(null,"Couldn't access BAM.")},{timeout:5e3})},m=n(6200).default.extend({getData:function(t,e,n){var r=this,o=this.browser.jQuery.Deferred();if(!this.bamFile)if(this.url)this.bamFile=new i.SX(this.url),this.baiFile=new i.SX(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("BAM files must be accompanied by a .bai index file"));this.bamFile=new i.cU(this.dataFile),this.baiFile=new i.cU(this.indexFile)}return g(this.bamFile,this.baiFile,null,function(i,s){s?console.error(s):i.fetch(t,e,n,function(i,s){s?console.error(s):(r.receiveData(i,t,e,n),o.resolve())})}),o},insertFeature:function(t){return t.id="".concat(t.chr,":").concat(t.readName,":").concat(t.pos),t.start=t.pos+1,t.end=t.start+t.seq.length,t.sequence=t.seq,this.base(t)}})},4976:function(t,e,n){"use strict";n.r(e);var i=n(6200);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({parseData:function(t,e){var n=this,i="string"==typeof t?t.split("\n"):t,r=this.prop("thinHeight"),o=this.prop("thickHeight");function a(t){return!isNaN(t)}i.forEach(function(t){var i=t.split("\t").filter(function(t){return t});if(!(i.length<3||"track"===i[0]||"browser"===i[0])){var l=i.length;if(i[0]===String(e)||i[0].toLowerCase()==="chr".concat(e)||i[0].match("[^1-9]".concat(e,"$"))){var c={chr:e,start:parseInt(i[1],10)+1,end:parseInt(i[2],10),name:i[3],color:"#000000",originalFeature:i};if(l>3&&(c.score=parseFloat(i[4],10)),l>5&&(c.strand=i[5]),l>7&&(c.thickStart=parseInt(i[6],10)+1,c.thickEnd=parseInt(i[7],10),c.drawThick=i[6]!==i[7]),i[8]?c.color="rgb(".concat(i[8],")"):c.color=n.scoreColor(isNaN(c.score)?1e3:c.score),12===l){c.blockCount=parseInt(i[9],10);var h=[],u=i[10].split(",").filter(a),f=i[11].split(",").filter(a);u.forEach(function(t,e){var n={start:c.start+parseInt(f[e],10),height:r};if(n.end=n.start+parseInt(t,10)-1,c.drawThick&&n.start<=c.thickEnd&&n.end>=c.thickStart)if(n.start>=c.thickStart&&n.end<=c.thickEnd)n.height=o,h.push(n);else if(n.start<c.thickStart&&n.end<=c.thickEnd){var i=s(s({},n),{},{end:c.thickStart}),a=s(s({},n),{},{start:c.thickStart,height:o});h.push.apply(h,[i,a])}else if(n.start>=c.thickStart&&n.end>c.thickEnd){var l=s(s({},n),{},{start:c.thickEnd}),u=s(s({},n),{},{end:c.thickEnd,height:o});h.push.apply(h,[u,l])}else{var p=s(s({},n),{},{end:c.thickStart}),d=s(s({},n),{},{start:c.thickEnd}),g={start:c.thickStart,end:c.thickEnd,height:o};h.push.apply(h,[p,g,d])}else h.push(n)}),h.length&&(c.subFeatures=h)}n.insertFeature(c)}}})},scoreColor:function(t){return t<=166?"rgb(219,219,219)":t<=277?"rgb(186,186,186)":t<=388?"rgb(154,154,154)":t<=499?"rgb(122,122,122)":t<=611?"rgb(94,94,94)":t<=722?"rgb(67,67,67)":t<=833?"rgb(42,42,42)":t<=944?"rgb(21,21,21)":"#000000"}})},1290:function(t,e,n){"use strict";n.r(e);var i=n(6200);e.default=i.default.extend({parseData:function(t,e){var n=this;t.split("\n").forEach(function(t){if(t.length&&0!==t.indexOf("#")){var i=t.split("\t");if(!(i.length<5)){var r=i[0].toLowerCase();(r===String(e)||r==="chr".concat(e)||r.match("[^1-9]".concat(e,"$"))||r.match("^".concat(e,"\\b")))&&n.insertFeature({id:i.slice(0,5).join("|"),chr:e,start:parseInt(i[3],10),end:parseInt(i[4],10),source:i[1],type:i[2],score:i[5],strand:"-"===i[6]?-1:1,label:"".concat(i[1]," ").concat(i[2]," ").concat(i[3],"-").concat(i[4])})}}})}})},2715:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return f}});var i=n(6454),r=n.n(i),o=n(8186);r().prototype.structure.uint64=function(){return parseInt(this.view.getUint64(),10)};var s={string0:function(t){return this.parse(["string",t]).replace(/\0+$/,"")},header:{magic:["string",4],n_ref:"int32",format:"int32",col_seq:"int32",col_beg:"int32",col_end:"int32",meta:"int32",skip:"int32",l_nm:"int32",names:["string0",function(){return this.current.l_nm}]},chunk:{cnk_beg:"uint64",cnk_end:"uint64"},bin:{bin:"uint32",n_chunk:"int32",chunkseq:["array","chunk",function(){return this.current.n_chunk}]},index:{n_bin:"int32",binseq:["array","bin",function(){return this.current.n_bin}],n_intv:"int32",intervseq:["array","uint64",function(){return this.current.n_intv}]},tabix:{head:"header",indexseq:["array","index",function(){return this.current.head.n_ref}]}},a={header:{id1:"uint8",id2:"uint8",cm:"uint8",flg:"uint8",mtime:"uint32",xfl:"uint8",os:"uint8",xlen:"uint16"},subheader:{si1:"uint8",si2:"uint8",slen:"uint16",bsize:"uint16"},bgzfHd:{head:"header",subhead:"subheader"}},l=65536,c=function(t,e){this.vcf_data=t,this.tbi_data=e};c.prototype.readTabix=function(t){var e=function(t){var e={},n=0;for(var i in t)e[t[i].bin]=n,n++;return e};this.inflateRegion(this.tbi_data,0,1e8,function(n){var i=new(r())(n,s).parse("tabix");i.head.names=i.head.names.split("\0"),i.bhash={};for(var o=0;o<i.head.n_ref;o++)i.bhash[o]=e(i.indexseq[o].binseq);t(i)})},c.prototype.getRecords=function(t,e,n,i){var r=this,o=[],s=this.getChunks(t,e,n);if(-1===s)return i([]);var a=function(t){t<s.length?r.inflateRegion(r.vcf_data,s[t].start,s[t].end,function(i,l){var c=i.byteLength-l+s[t].inner_end;(i=r.buffer2String(i).slice(s[t].inner_start,c)).length>0&&(i=i.split("\n").filter(function(t){if(t.length>0){var i=parseInt(t.split("\t")[1],10);return e<=i&&i<=n}return!1}).join("\n"),o.push(i)),a(++t)}):i(o.join("\n"))};a(0)},c.prototype.getChunks=function(t,e,n){var i=this,r=this.tabix;if(-1===(t=r.head.names.indexOf(t.toString())))return-1;var o=this.reg2bins(e,n+1).filter(function(e){return void 0!==r.bhash[t][e]}).map(function(e){return i.bin2Ranges(r,t,e)}).reduce(function(t,e){return e.forEach(function(e){t.push(e)}),t},[]);return o=this.remove_duplicates(o)},c.prototype.inflateRegion=function(t,e,n,i){var r=this,o=[],s=function(e,a){o.push(e),-1===a?i(r.appendBuffers(o),o[o.length-1].byteLength):a<=n?r.inflateBlock(t,a,s):i(r.appendBuffers(o),o[o.length-1].byteLength)};this.inflateBlock(t,e,s)},c.prototype.inflateBlock=function(t,e,n){this.getBGZFHD(t,e,function(i){t.slice(e,i.subhead.bsize+1).fetch(function(t){var r=(0,o.A)(t,18,t.byteLength-18),s=e+i.subhead.bsize+1;27===i.subhead.bsize&&(s=-1),n(r,s)})})},c.prototype.getBGZFHD=function(t,e,n){t.slice(e,19).fetch(function(t){var e=new(r())(t,a).parse("bgzfHd");n(e)})},c.prototype.appendBuffers=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n].byteLength;for(var i=new Uint8Array(e),r=0,o=0;o<t.length;o++)i.set(new Uint8Array(t[o]),r),r+=t[o].byteLength;return i.buffer},c.prototype.buffer2String=function(t){for(var e="",n=new Uint8Array(t),i=0;i<n.length;++i)e+=String.fromCharCode(n[i]);return e},c.prototype.remove_duplicates=function(t){for(var e={},n=t.length-1;n>=0;n--){var i=JSON.stringify(t[n]);e[i]?t.splice(n,1):e[i]=!0}return t},c.prototype.bin2Ranges=function(t,e,n){for(var i,r=[],o=t.indexseq[e].binseq[t.bhash[e][n]].chunkseq,s=0;s<o.length;s++)i=o[s],r.push({start:Math.floor(i.cnk_beg/l),inner_start:i.cnk_beg%l,end:Math.floor(i.cnk_end/l),inner_end:i.cnk_end%l});return r},c.prototype.reg2bins=function(t,e){var n,i=[];for(--e,i.push(0),n=1+(t>>26);n<=1+(e>>26);++n)i.push(n);for(n=9+(t>>23);n<=9+(e>>23);++n)i.push(n);for(n=73+(t>>20);n<=73+(e>>20);++n)i.push(n);for(n=585+(t>>17);n<=585+(e>>17);++n)i.push(n);for(n=4681+(t>>14);n<=4681+(e>>14);++n)i.push(n);return i};var h=c,u=n(3541),f=n(6200).default.extend({getData:function(t,e,n,i){var r=this;if(!this.prop("gz"))return this.base(t,e,n,i);var o=this.browser.jQuery.Deferred();if(!this.vcfFile)if(this.url)this.vcfFile=new u.SX(this.url),this.tbiFile=new u.SX(this.url+this.prop("indexExt"));else{if(!this.dataFile||!this.indexFile)return o.reject(new Error("GZipped VCF files must be accompanied by a .tbi index file"));this.vcfFile=new u.cU(this.dataFile),this.tbiFile=new u.cU(this.indexFile)}return this.makeVCF(this.vcfFile,this.tbiFile).then(function(i){r.cachedVCF=i,i.getRecords(t,e,n,function(i){r.receiveData(i,t,e,n),o.resolve()})}),o},makeVCF:function(t,e){var n=this.browser.jQuery.Deferred();if(this.cachedVCF)n.resolve(this.cachedVCF);else{var i=new h(t,e);i.readTabix(function(t){i.tabix=t,n.resolve(i)})}return n},parseData:function(t,e){var n=this,i=t.split("\n"),r=!!this.allData&&(this.prop("maxQual")||0);i.forEach(function(t){if(t.length&&0!==t.indexOf("#")){var i=t.split("\t");if(!(i.length<5||i[0]!==String(e)&&i[0]!=="chr".concat(e))){var o=i.slice(0,3).join("|"),s=parseInt(i[1],10),a=i[4].split(",");a.unshift(i[3]),a.forEach(function(t,r){var a=s+t.length-1;n.insertFeature({id:"".concat(o,"|").concat(t),sort:r,chr:e,start:s,end:a,width:a-s,allele:0===r?"REF":"ALT",sequence:t,label:t,labelColor:"#FFFFFF",originalFeature:i})}),!1!==r&&(r=Math.max(r,i[5]))}}}),r&&this.prop("maxQual",r)}})},4734:function(t,e,n){"use strict";n.r(e);var i=n(1216),r=n(6200);e.default=i.Model.extend({dataType:"text",getData:function(){var t;return this.url?this.base.apply(this,arguments):(this.isLocal=!0,this.dataFile=this.track.dataFile,(t=r.default.prototype).getData.apply(t,arguments))},parseData:function(t,e,n,i){for(var r,o=t.split("\n"),s=[];o.length&&(r=o.shift())&&(-1!==r.indexOf("#")||-1!==r.indexOf("browser")||-1!==r.indexOf("track")););if(r){var a=r.split(/\s+/),l=parseInt(a[1].split("=")[1].replace("chr",""),10);if("fixedStep"===a[0]){var c=parseInt(a[3].split("=")[1],10),h=a[4]?parseInt(a[4].split("=")[1],10):1,u=parseInt(a[2].split("=")[1],10);o.forEach(function(t){s.push({chr:l,start:u,end:u+h,height:parseFloat(t)}),u+=c})}else if("variableStep"===a[0]){var f=a[2]?parseInt(a[2].split("=")[1],10):1;o.forEach(function(t){var e=t.split(/\s+/),n={chr:l,start:parseInt(e[0],10),height:parseFloat(e[1])};n.end=n.start+f,s.push(n)})}}return this.base.call(this,s,e,n,i)}})},407:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({})},6448:function(t,e,n){"use strict";n.r(e);var i=n(407);e.default=i.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=gene;content-type=application/json",dataRequestLimit:5e6,parseData:function(t,e){var n=this;t.forEach(function(t){"gene"!==t.feature_type||n.featuresById[t.id]||(t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.transcripts=[],n.insertFeature(t))})}})},932:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({threshold:1e5,chunkSize:1e3,buffer:0,dataType:"text",setChrProps:function(){var t=this.browser.chr;this.base(),this.chunksByChr=this.chunksByChr||{},this.chunksByChr[t]=this.chunksByChr[t]||{}},getData:function(t,e,n){return e=e-e%this.chunkSize+1,n=n+this.chunkSize-n%this.chunkSize,this.base(t,e,n)},parseData:function(t,e,n){t=t.replace(/\n/g,""),this.prop("lowerCase")&&(t=t.toLowerCase());for(var i=0;i<t.length;i+=this.chunkSize)if(!this.chunksByChr[e][n+i]){var r={id:"".concat(e,":").concat(n,":").concat(i),chr:e,start:n+i,end:n+i+this.chunkSize-1,sequence:t.substr(i,this.chunkSize),sort:n+i};this.chunksByChr[e][r.start]=r,this.insertFeature(r)}}})},1104:function(t,e,n){"use strict";n.r(e);var i=n(932);e.default=i.default.extend({url:"//rest.ensembl.org/sequence/region/human/__CHR__:__START__-__END__?content-type=text/plain",dataRequestLimit:1e7})},2581:function(t,e,n){"use strict";n.r(e);var i=n(932);e.default=i.default.extend({url:"https://github.com/DECIPHER-genomics/Genoverse/data/Homo_sapiens.GRCh37.72.dna.chromosome.1.fa",startByte:void 0,lineLength:void 0,getData:function(t,e,n){var i=this,r=this.browser.jQuery,o=r.Deferred();return r.when(this.getStartByte()).done(function(){e=e-e%i.chunkSize+1,n=n+i.chunkSize-n%i.chunkSize;var s=e-1+Math.floor((e-1)/i.lineLength)+i.startByte,a=n-1+Math.floor((n-1)/i.lineLength)+i.startByte;r.ajax({url:i.parseURL(),dataType:i.dataType,headers:{Range:"bytes=".concat(s,"-").concat(a)},xhrFields:i.xhrFields,success:function(r){i.receiveData(r,t,e,n)},error:i.track.controller.showError}).done(function(){o.resolve()}).fail(function(){o.reject()})}).fail(function(){o.reject()}),o},getStartByte:function(){var t=this;return this.startByteRequest?this.startByteRequest:void 0===this.startByte||void 0===this.lineLength?(this.startByteRequest=this.browser.jQuery.ajax({url:this.parseURL(),dataType:"text",headers:{Range:"bytes=0-300"},xhrFields:this.xhrFields,success:function(e){0===e.indexOf(">")?t.startByte=e.indexOf("\n")+1:t.startByte=0,t.lineLength=e.indexOf("\n",t.startByte)-t.startByte}}),this.startByteRequest):void 0}})},8054:function(t,e,n){"use strict";n.r(e);var i=n(6767),r=n(1104);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({seqModel:r.default,getSeqModel:function(){var t=this.prop("models");return t.seq=t.seq||this.track.newMVC(this.seqModel),t.seq},getData:function(t,e,n){var i=this,r=this.browser.jQuery.Deferred(),o=this.getSeqModel().checkDataRange(t,e,n);return this.base(t,e,n).done(function(){o?r.resolve():i.getSeqModel().getData(t,e,n).done(r.resolve)}),r},insertFeature:function(t){return this.base(a(a({},t),{},{end:t.start+t.alt_allele.length-1,length:t.alt_allele.length,sequence:t.alt_allele}))},checkDataRange:function(t,e,n){return this.base(t,e,n)&&this.getSeqModel().checkDataRange(t,e,n)},findFeatures:function(t,e,n){return this.getSeqModel().findFeatures(t,e,n).concat(this.base(t,e,n))}})},6815:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({init:function(t){if(this.base(t),!t){var e=this.prop("forwardTrack");e&&(this.featuresByChr=e.prop("featuresByChr"),this.features=e.prop("features"),this.featuresById=e.prop("featuresById"))}},parseURL:function(){return this.urlParams.strand||(this.urlParams.strand=this.prop("featureStrand")),this.base.apply(this,arguments)},findFeatures:function(){var t=this.track.featureStrand;return this.base.apply(this,arguments).filter(function(e){return e.strand===t})}})},9024:function(t,e,n){"use strict";n.r(e);var i=n(6767);e.default=i.default.extend({})},1331:function(t,e,n){"use strict";n.r(e);var i=n(9024);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach(function(e){a(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.default.extend({url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=transcript;feature=exon;feature=cds;content-type=application/json",dataRequestLimit:5e6,setDefaults:function(){this.geneIds={},this.seenGenes=0,this.base.apply(this,arguments)},parseData:function(t,e){var n=this,i=this.featuresById,r=[];t.filter(function(t){return"transcript"===t.feature_type}).forEach(function(t,o){i[t.id]||(n.geneIds[t.Parent]=n.geneIds[t.Parent]||++n.seenGenes,t.chr=t.chr||e,t.label=1===parseInt(t.strand,10)?"".concat(t.external_name||t.id," >"):"< ".concat(t.external_name||t.id),t.sort=1e10*n.geneIds[t.Parent]+(0===t.logic_name.indexOf("ensembl_havana")?0:2e9)+("protein_coding"===t.biotype?0:1e9)+t.start+o,t.cdsStart=Infinity,t.cdsEnd=-Infinity,t.exons={},t.subFeatures=[],n.insertFeature(t)),r.push(t.id)}),t.filter(function(t){return"cds"===t.feature_type&&i[t.Parent]}).forEach(function(t){i[t.Parent].cdsStart=Math.min(i[t.Parent].cdsStart,t.start),i[t.Parent].cdsEnd=Math.max(i[t.Parent].cdsEnd,t.end)}),t.filter(function(t){return"exon"===t.feature_type&&i[t.Parent]&&!i[t.Parent].exons[t.id]}).forEach(function(t){t.end<i[t.Parent].cdsStart||t.start>i[t.Parent].cdsEnd?i[t.Parent].subFeatures.push(s({utr:!0},t)):(t.start<i[t.Parent].cdsStart&&i[t.Parent].subFeatures.push(s(s({utr:!0},t),{},{end:i[t.Parent].cdsStart})),i[t.Parent].subFeatures.push(s(s({},t),{},{start:Math.max(t.start,i[t.Parent].cdsStart),end:Math.min(t.end,i[t.Parent].cdsEnd),strand:i[t.Parent].strand})),t.end>i[t.Parent].cdsEnd&&i[t.Parent].subFeatures.push(s(s({utr:!0},t),{},{start:i[t.Parent].cdsEnd})))}),r.forEach(function(t){return i[t].subFeatures.sort(function(t,e){return t.start-e.start})})}})},3257:function(t,e,n){"use strict";n.r(e);var i=n(3006),r=n.n(i),o=n(3301),s=n.n(o),a=n(5932);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=l(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return g(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=r().extend({fontHeight:10,fontFamily:"sans-serif",fontWeight:"normal",fontColor:void 0,color:"#000000",minScaledWidth:.5,precisionFactor:0,widthCorrection:1,labels:!0,repeatLabels:!1,bump:!1,alwaysReposition:!1,depth:void 0,featureHeight:void 0,featureMargin:void 0,subFeatureJoinStyle:!1,subFeatureJoinLineWidth:.5,constructor:function(t){var e=this;Object.entries(t).forEach(function(t){var n=p(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),(0,a.A)(this,"View"),this.init()},init:function(){this.setDefaults(),this.scaleSettings={}},setDefaults:function(){var t=this;this.featureMargin=this.featureMargin||{top:3,right:1,bottom:1,left:0},["top","right","bottom","left"].forEach(function(e){"number"!=typeof t.featureMargin[e]&&(t.featureMargin[e]=0)}),this.context=this.browser.jQuery("<canvas>")[0].getContext("2d"),this.featureHeight=void 0!==this.featureHeight?this.featureHeight:this.prop("defaultHeight"),this.font="".concat(this.fontWeight," ").concat(this.fontHeight,"px ").concat(this.fontFamily),this.labelUnits=["bp","kb","Mb","Gb","Tb"],this.context.font=this.font,this.labels&&"overlay"!==this.labels&&(this.depth||"labels"===this.bump)&&(this.labels="separate")},setScaleSettings:function(t){var e=this.browser.chr;if(this.scaleSettings[e]||(this.scaleSettings[e]={}),!this.scaleSettings[e][t]){var n=new(s());this.scaleSettings[e][t]={imgContainers:this.browser.jQuery(),featurePositions:n,labelPositions:"separate"===this.labels?new(s()):n}}return this.scaleSettings[e][t]},roundPixelValue:function(t){return this.precisionFactor?Math.round(t*this.precisionFactor)/this.precisionFactor:t},scaleFeatures:function(t,e){var n=this,i=this.roundPixelValue(Math.max(e,this.widthCorrection));return t.forEach(function(t){t.position||(t.position={}),t.position[e]||(t.position[e]={start:n.roundPixelValue(t.start*e),width:Math.max(n.roundPixelValue((t.end-t.start)*e+i),n.minScaledWidth),height:t.height||n.featureHeight}),t.subFeatures&&(t.subFeatures.forEach(function(n){void 0===n.height&&(n.height=t.position[e].height)}),n.scaleFeatures(t.subFeatures,e))}),t},positionFeatures:function(t,e){var n=this;return e.margin=this.prop("margin"),t.forEach(function(t){return n.positionFeature(t,e)}),e.width=Math.ceil(e.width),e.height=Math.ceil(e.height),e.featureHeight=Math.max(Math.ceil(e.featureHeight),this.prop("resizable")?Math.max(this.prop("height"),this.prop("minLabelHeight")):0),e.labelHeight=Math.ceil(e.labelHeight),t},positionFeature:function(t,e){var n=this,i=e.scale,r=this.scaleSettings[t.chr][i];if(r){var o=t.subFeatures||[];if(t.position[i].X=t.position[i].start-e.scaledStart,o.forEach(function(t){t.position[i].x=t.position[i].start-e.scaledStart,n.subFeatureJoinStyle&&(t.position[i].join=t.position[i].join||{},t.position[i].join.x=t.position[i].start+t.position[i].width-e.scaledStart)}),this.alwaysReposition||!t.position[i].positioned){if(t.position[i].H=t.position[i].height+this.featureMargin.bottom,t.position[i].W=t.position[i].width+(t.marginRight||this.featureMargin.right),t.position[i].Y=("number"==typeof t.position[i].y?t.position[i].y:"number"==typeof t.y?t.y*t.position[i].H:0)+(t.marginTop||this.featureMargin.top),t.label){"string"==typeof t.label&&(t.label=t.label.split("\n"));var s=this.context;t.labelHeight=t.labelHeight||(this.fontHeight+2)*t.label.length,t.labelWidth=t.labelWidth||Math.max.apply(Math,f(t.label.map(function(t){return Math.ceil(s.measureText(t).width)})))+1,!0===this.labels?(t.position[i].H+=t.labelHeight,t.position[i].W=Math.max(t.labelWidth,t.position[i].W)):"separate"!==this.labels||t.position[i].label||(t.position[i].label={x:t.position[i].start,y:t.position[i].Y,w:t.labelWidth,h:t.labelHeight})}var a={x:t.position[i].start,y:t.position[i].Y,w:t.position[i].W,h:t.position[i].H+(t.marginTop||this.featureMargin.top)};t.position[i].bounds=a,!0===this.bump&&this.bumpFeature(a,t,i,r.featurePositions),r.featurePositions.insert(a,t),t.position[i].bottom=t.position[i].Y+a.h+e.margin,t.position[i].positioned=!0}var l=!(!this.subFeatureJoinStyle||!o.length)&&{height:Math.max.apply(Math,f(o.map(function(t){return t.fake?0:t.position[i].height})))/2*(t.strand>0?-1:1),y:t.position[i].Y+t.position[i].height/2};o.forEach(function(e,n){e.position[i].y=t.position[i].Y+(t.position[i].height-e.position[i].height)/2,l&&o[n+1]&&Object.assign(e.position[i].join,h({width:o[n+1].position[i].x-e.position[i].join.x},l))}),"separate"===this.labels&&t.position[i].label&&(!this.alwaysReposition&&t.position[i].label.positioned||(this.bumpFeature(t.position[i].label,t,i,r.labelPositions),t.position[i].label.bottom=t.position[i].label.y+t.position[i].label.h+e.margin,t.position[i].label.positioned=!0,r.labelPositions.insert(t.position[i].label,t)),e.labelHeight=Math.max(e.labelHeight,t.position[i].label.bottom)),e.featureHeight=Math.max(e.featureHeight,t.position[i].bottom),e.height=Math.max(e.height,e.featureHeight+e.labelHeight)}},bumpFeature:function(t,e,n,i){for(var r=this.scaleSettings[e.chr][n],o=i===r.labelPositions&&i!==r.featurePositions,s=!0,a=0;s;){if(this.depth&&++a>=this.depth){if(!o)for(var l=r.featurePositions.search(t),c=l.length;c--;)if(!1!==l[c].position[n].visible){e.position[n].visible=!1;break}break}var h=i.search(t)[0];h&&h.id!==e.id?t.y=h.position[n][o?"label":"bounds"].y+h.position[n][o?"label":"bounds"].h:s=!1}o||(e.position[n].Y=t.y)},draw:function(t,e,n,i){var r=this;t.forEach(function(t){if(!1!==t.position[i].visible){var o=h(h({},t),{},{x:t.position[i].X,y:t.position[i].Y,width:t.position[i].width,height:t.position[i].height,labelPosition:t.position[i].label});r.drawFeature(o,e,n,i),o.legend!==t.legend&&(t.legend=o.legend,t.legendColor=o.color)}})},drawFeature:function(t,e,n,i){!1===t.color||t.color||this.setFeatureColor(t),t.subFeatures?this.drawSubFeatures(t,e,n,i):((t.x<0||t.x+t.width>this.width)&&this.truncateForDrawing(t),!1!==t.color&&(e.fillStyle=t.color,e.fillRect(t.x,t.y,t.width,t.height)),!0===t.clear&&e.clearRect(t.x,t.y,t.width,t.height),t.borderColor&&(e.strokeStyle=t.borderColor,e.strokeRect(t.x,Math.floor(t.y)+.5,t.width,t.height))),this.labels&&t.label&&this.drawLabel(t,n,i),t.decorations&&this.decorateFeature(t,e,i)},drawSubFeatures:function(t,e,n,i){var r=this,o=this.browser.jQuery.extend(!0,{},t,{subFeatures:!1,label:!1}),s=this.browser.jQuery.extend(!0,[],t.subFeatures),a=t.joinColor||t.color;s.forEach(function(t){t.fake||r.drawFeature(h(h(h({},o),t.position[i]),t),e,n,i),t.position[i].join&&t.position[i].join.width>0&&r.drawSubFeatureJoin(h({color:a},t.position[i].join),e)})},drawLabel:function(t,e,n){var i=this,r=t.untruncated,o=(r||t).width;if(!("overlay"===this.labels&&t.labelWidth>=Math.floor(o))){t.labelPosition&&(e.labelPositions=e.labelPositions||new(s())),"string"==typeof t.label&&(t.label=[t.label]);var a,l,c,h=(r||t).x,u=this.repeatLabels&&Math.ceil((o-Math.max(n,1)-("overlay"===this.labels?t.labelWidth:0))/this.width)||1,f=o/u;this.repeatLabels&&(n>1||"overlay"!==this.labels)&&(f=this.browser.length*n,u=Math.ceil(o/f)),t.labelColor||this.setLabelColor(t),e.fillStyle=t.labelColor,"overlay"===this.labels?(a=[t.label.join(" ")],l=t.y+(t.height+1)/2,c=0):(a=t.label,l=t.labelPosition?t.labelPosition.y:t.y+t.height+this.featureMargin.bottom,c=this.fontHeight+2);var p="center"===e.textAlign?.5:0,d=t.labelWidth*p;u>1&&(p+=Math.max(Math.floor(-(t.labelWidth+h)/f),0));for(var g=function(){var r=h+p*f;if(r+t.labelWidth>=0){if(r-d>i.width||p>=1&&r+t.labelWidth>t.position[n].X+t.position[n].width)return 1;a.forEach(function(i,o){var s=l+o*c;e.labelPositions&&e.labelPositions.search({x:r,y:s,w:t.labelWidth,h:c}).length?t.position[n].label.visible=!1:(e.fillText(i,r,s),e.labelPositions&&e.labelPositions.insert({x:r,y:s,w:t.labelWidth,h:c},i))})}};p<u&&!g();p++);}},setFeatureColor:function(t){t.color=this.color},setLabelColor:function(t){t.labelColor=this.fontColor||t.color||this.color},shadeColor:function(t,e){var n=parseInt(t.slice(1),16),i=n>>16,r=n>>8&255,o=255&n;return"#".concat((16777216+65536*(Math.round((255-i)*e)+i)+256*(Math.round((255-r)*e)+r)+(Math.round((255-o)*e)+o)).toString(16).slice(1))},truncateForDrawing:function(t){var e=Math.min(Math.max(t.x,-1),this.width+1),n=t.x-e+t.width;n+e>this.width&&(n=this.width-e+1),t.untruncated={x:t.x,width:t.width},t.x=e,t.width=Math.max(n,0)},drawSubFeatureJoin:function(t,e){var n=this.truncateSubFeatureJoinForDrawing(t);if(n){var i=e.lineWidth;switch(e.strokeStyle=t.color,e.lineWidth=this.subFeatureJoinLineWidth,e.beginPath(),e.moveTo(n.x1,n.y1),this.subFeatureJoinStyle){case"line":e.lineTo(n.x3,n.y1);break;case"peak":e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3);break;case"curve":e.quadraticCurveTo(n.x2,n.y2,n.x3,n.y3)}e.stroke(),e.lineWidth=i}},truncateSubFeatureJoinForDrawing:function(t){var e=t.y,n=e;"line"===this.subFeatureJoinStyle&&(this.truncateForDrawing(t),e+=.5);var i,r,o=t.x,s=t.x+t.width;if(s<0||o>this.width)return!1;if("peak"===this.subFeatureJoinStyle){var a=(o+s)/2;i=a;var l=((r=t.y+t.height)-e)/(a-o);a<0?(r=t.y+l*s,i=0):a>this.width&&(r=t.y+l*(this.width-t.x),i=this.width),o<0&&(e=a<0?r:t.y-l*t.x,o=0),s>this.width&&(n=a>this.width?r:r-l*(this.width-i),s=this.width)}else"curve"===this.subFeatureJoinStyle&&(i=t.x+t.width/2,r=t.y+t.height);return{x1:o,y1:e,x2:i,y2:r,x3:s,y3:n}},formatLabel:function(t){var e=Math.floor((t.toString().length-1)/3),n=this.labelUnits[e];return t/=Math.pow(10,3*e),"".concat(Math.floor(t)).concat("bp"===n?"":".".concat((t.toString().split(".")[1]||"").concat("00").substring(0,2))," ").concat(n)},drawBackground:function(){},decorateFeature:function(){},destroy:function(){delete this.scaleSettings}})},2425:function(t,e,n){"use strict";n.r(e);var i=n(3257);e.default=i.default.extend({featureHeight:5,labels:!0,repeatLabels:!0,bump:!0})},9954:function(t,e,n){"use strict";n.r(e);var i=n(2425);e.default=i.default.extend({setFeatureColor:function(t){t.color="#000000";var e=t.logic_name||"",n=(t.biotype||"").toLowerCase();0===e.indexOf("ensembl_havana")?(t.color="#CD9B1D",t.labelColor="#B78000",t.legend="Merged Ensembl/Havana"):!{sense_intronic:1,sense_overlapping:1,processed_transcript:1,nonsense_mediated_decay:1,non_stop_decay:1,antisense:1,retained_intron:1,tec:1,non_coding:1,ambiguous_orf:1,disrupted_domain:1,"3prime_overlapping_ncrna":1,protein_coding_CDS_not_defined:1}[n]?t.biotype.indexOf("protein_coding")>-1?(t.color="#A00000",t.legend="Protein coding"):"artifact"===t.biotype||n.indexOf("pseudogene")>-1?(t.color="#666666",t.legend="Pseudogene"):/rna/.test(n)||"ribozyme"===n?(t.color="#8B668B",t.legend="RNA gene"):/^tr(?:_.+)?_gene$/.test(n)?(t.color="#CD6600",t.legend="TR gene"):/^ig_.+_gene$/.test(n)?(t.color="#8B4500",t.legend="IG gene"):"lrg_gene"===n&&(t.color="#8080FF",t.legend="LRG gene"):(t.color="#0000FF",t.legend="Processed transcript"),t.labelColor=t.labelColor||t.color}})},1661:function(t,e,n){"use strict";n.r(e);var i=n(3257);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({featureMargin:{top:0,right:0,bottom:0,left:0},colors:{default:"#CCCCCC",A:"#73E973",T:"#DE4C61",G:"#FFFF77",C:"#688EC0"},labelColors:{default:"#000000",T:"#FFFFFF",C:"#FFFFFF"},labels:"overlay",setDefaults:function(){this.base.apply(this,arguments);var t=this.prop("lowerCase");this.labelYOffset="number"==typeof this.labelYOffset?this.labelYOffset:(this.featureHeight+1)/2,this.widestLabel="string"==typeof this.widestLabel?this.widestLabel:t?"g":"G",this.labelWidth={},this.labelWidth[this.widestLabel]=Math.ceil(this.context.measureText(this.widestLabel).width)+1,t&&[this.colors,this.labelColors].forEach(function(t){return Object.entries(t).forEach(function(e){var n=r(e,2),i=n[0],o=n[1];t[i.toLowerCase()]=o})})},draw:function(t,e,n,i){var r=this;e.textBaseline="middle",e.textAlign="center";var o=Math.max(i,this.minScaledWidth);t.forEach(function(t){return r.drawSequence(t,e,i,o)})},drawSequence:function(t,e,n,i){for(var r=this.labelWidth[this.widestLabel]<i-1,o=0;o<t.sequence.length;o++){var s=t.position[n].X+o*n;if(!(s<-n||s>e.canvas.width)){var a=t.sequence.charAt(o);e.fillStyle=this.colors[a]||this.colors.default,e.fillRect(s,t.position[n].Y,i,this.featureHeight),r&&(e.fillStyle=this.labelColors[a]||this.labelColors.default,e.fillText(a,s+i/2,t.position[n].Y+this.labelYOffset))}}}})},472:function(t,e,n){"use strict";n.r(e);var i=n(1661);e.default=i.default.extend({featureHeight:15,featureMargin:{top:0,right:0,bottom:4,left:0},bump:!0,showLegend:!1,positionFeature:function(t,e){var n=t.position[e.scale];t.alt_allele&&(n.positioned||(n.reference={end:n.start+t.ref_allele.length*e.scale}),n.reference.x=n.reference.end-e.scaledStart),this.base(t,e)},bumpFeature:function(t,e){if(e.alt_allele){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];this.base.apply(this,[t,e].concat(i))}},draw:function(t,e,n,i){var r={seq:[],snv:[]};t.forEach(function(t){r[t.alt_allele?"snv":"seq"].push(t)}),this.base(r.seq,e,n,i),this.highlightSNVs(r.snv,e,i),this.base(r.snv,e,n,i),this.outlineSNVs(r.snv,e,i)},highlightSNVs:function(t,e,n){var i=this;t.forEach(function(t){var r=t.position[n],o=[r.X,r.reference.x,r.X+r.width];if(!(o[2]<0||o[0]>i.width)){(o[0]<0||o[2]>i.width)&&i.truncateForDrawing(o);var s=[0,r.Y-i.featureMargin.bottom/2,r.Y,r.Y+i.featureHeight];t.highlightColor||i.setHighlightColor(t),e.strokeStyle=e.fillStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[0],s[0]),e.lineTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[2],s[2]),e.lineTo(o[2],s[3]),e.lineTo(o[0],s[3]),e.closePath(),e.stroke(),e.lineWidth=1,e.globalAlpha=.5,e.fill(),e.globalAlpha=1}})},outlineSNVs:function(t,e,n){var i=this;t.forEach(function(t){var r=t.position[n],o=[r.X,r.X+r.width],s=[r.Y,r.Y+i.featureHeight];e.strokeStyle=t.highlightColor,e.lineWidth=2,e.beginPath(),e.moveTo(o[1],s[0]),e.lineTo(o[1],s[1]),e.lineTo(o[0],s[1]),e.lineTo(o[0],s[0]),e.stroke(),e.lineWidth=1})},truncateForDrawing:function(t){for(var e=0;e<t.length;e++)t[e]=Math.min(Math.max(t[e],-1),this.width+1)},setHighlightColor:function(t){t.highlightColor="-"===t.alt_allele||t.alt_allele.length<t.ref_allele.length?"#D31D00":"#1DD300"}})},7550:function(t,e,n){"use strict";n.r(e);var i=n(3257);function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.default.extend({featureHeight:12,utrHeight:7,labels:!0,repeatLabels:!0,bump:!0,subFeatureJoinStyle:"curve",scaleFeatures:function(t,e){var n=this;return t.forEach(function(t){var e=t.subFeatures||[];e.length&&(e.forEach(function(t){t.utr&&(t.height=n.utrHeight)}),t.height=Math.max.apply(Math,r(e.map(function(t){return t.fake?0:t.height||0}).concat(n.featureHeight))))}),this.base(t,e)}})},6305:function(t,e,n){"use strict";n.r(e);var i=n(9954),r=n(7550);e.default=r.default.extend({setFeatureColor:function(t){i.default.prototype.setFeatureColor(t),(t.subFeatures||[]).forEach(function(e){e.utr&&(e.color=!1,e.borderColor=t.color)})}})},2624:function(t,e,n){"use strict";n.r(e);var i=n(6153);e.default=i.Ay.extend({id:"chromosome",margin:1,featureMargin:{top:0,right:0,bottom:0,left:0},labels:"overlay",url:!1,allData:!0,colors:{acen:"#708090",gneg:"#FFFFFF",gpos:"#000000",gpos100:"#000000",gpos25:"#D9D9D9",gpos33:"#BFBFBF",gpos50:"#999999",gpos66:"#7F7F7F",gpos75:"#666666",gvar:"#E0E0E0",stalk:"#708090"},labelColors:{gneg:"#000000",gvar:"#000000",gpos25:"#000000",gpos33:"#000000"},getData:function(t,e,n){var i=this.browser.jQuery;return this.receiveData(i.extend(!0,[],this.browser.genome[t].bands),t,e,n),i.Deferred().resolveWith(this)},insertFeature:function(t){t.label="acen"!==t.type&&"stalk"!==t.type&&t.id,t.menuTitle=t.id?t.chr+t.id:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.color=this.prop("colors")[t.type]||"#FFFFFF",t.labelColor=this.prop("labelColors")[t.type]||"#FFFFFF",t.id&&(t.id=t.chr+t.id),this.base(t)},drawFeature:function(t,e,n,i){if(e.fillStyle=t.color,e.strokeStyle="#000000","acen"===t.type)e.beginPath(),this.drawnAcen?(e.moveTo(t.x+t.width,.5),e.lineTo(t.x,(t.height+.5)/2),e.lineTo(t.x+t.width,t.height+.5)):(e.moveTo(t.x,.5),e.lineTo(t.x+t.width,(t.height+.5)/2),e.lineTo(t.x,t.height+.5),this.drawnAcen=!0),e.fill(),e.stroke();else if("stalk"===t.type)for(var r=0;r<2;r++)e.beginPath(),e.moveTo(t.x,.5),e.lineTo(t.x+.25*t.width,.25*t.height+.5),e.lineTo(t.x+.75*t.width,.25*t.height+.5),e.lineTo(t.x+t.width,.5),e[r?"moveTo":"lineTo"](t.x+t.width,t.height+.5),e.lineTo(t.x+.75*t.width,.75*t.height-.5),e.lineTo(t.x+.25*t.width,.75*t.height-.5),e.lineTo(t.x,t.height+.5),e[r?"stroke":"fill"]();else{this.base(t,e,n,i),e.beginPath();var o=this.browser.getChromosomeSize(t.chr);if(1===t.start||t.end===o){if(1===t.start){var s=t.x+t.width-(t.end===o?5:0);e.clearRect(0,0,5,t.height+.5),e.fillStyle=t.color,e.moveTo(5,.5),e.lineTo(s,.5),e.moveTo(5,t.height+.5),e.lineTo(s,t.height+.5),e.moveTo(5,.5),e.bezierCurveTo(-1,.5,-1,t.height+.5,5,t.height+.5),e.fill()}t.end===o&&(e.clearRect(t.x+t.width-5,0,5,t.height+.5),1!==t.start&&(e.fillStyle=t.color,e.moveTo(t.x,.5),e.lineTo(t.x+t.width-5,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width-5,t.height+.5)),e.moveTo(t.x+t.width-5,.5),e.bezierCurveTo(this.width+1,.5,this.width+1,t.height+.5,t.x+t.width-5,t.height+.5),e.fill())}else e.moveTo(t.x,.5),e.lineTo(t.x+t.width,.5),e.moveTo(t.x,t.height+.5),e.lineTo(t.x+t.width,t.height+.5);e.stroke()}},drawLabel:function(t){if(1!==t.start&&t.end!==this.browser.getChromosomeSize(t.chr)||!(t.labelWidth>=Math.floor(t.width-5))){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.base.apply(this,[t].concat(n))}},populateMenu:function(t){return{title:t.menuTitle,Position:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)}}})},2254:function(t,e,n){"use strict";n.r(e);var i=n(6153);e.default=i.Ay.extend({setInterface:function(){this.base(),this._interface.isLocal="model",this._interface.dataFile="model",this._interface.indexFile="model",this._interface.largeFile="model"}})},3593:function(t,e,n){"use strict";n.r(e);var i=n(439),r=n(1661),o=n(2254);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=o.default.extend({name:"BAM",indexExt:".bai",threshold:1e5,largeFile:!0,model:i.default,view:r.default.extend({bump:!0,autoHeight:!0}),click:function(){var t=this.base.apply(this,arguments);return t&&t.addClass("gv-wrap-values"),t},populateMenu:function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({title:t.readName},t);return delete e.sequence,delete e.id,this.base(e)}})},3350:function(t,e,n){"use strict";n.r(e);var i=n(4976),r=n(2254);e.default=r.default.extend({name:"BED",model:i.default,bump:!0,featureHeight:10,thickHeight:10,thinHeight:7,subFeatureJoinStyle:"curve",populateMenu:function(t){var e=[!1,!1,!1,"name","score","strand","thickStart","thickEnd","itemRgb","blockCount","blockSizes","blockStarts"];return t.originalFeature.reduce(function(t,n,i){return e[i]&&(t[e[i]]=n),t},{title:'<a target="_blank" href="https://genome.ucsc.edu/FAQ/FAQformat.html#format1">BED feature details</a>',Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end)})}})},148:function(t,e,n){"use strict";n.r(e);var i=n(9292),r=n(3541),o=n(4976),s=n(3350);e.default=s.default.extend({name:"bigbed",model:o.default.extend({getData:function(t,e,n){var o=this,s=this.browser.jQuery,a=s.Deferred();this.bigbedFile||(this.bigbedFile=this.bigbedFile||(this.url?new r.SX(this.url):new r.cU(this.track.dataFile)));var l=s.Deferred().done(function(){o.bwReader.getValues(t,e,n,function(i,r){r||(i.sort(function(t,e){return t.start-e.start}),i.length?o.receiveData(i,t,i[0].start,i[i.length-1].end):o.receiveData(i,t,e,n)),a.resolve()})});return this.bwReader?l.resolve():new i.A(this.bigbedFile,function(i){if(!i)return o.receiveData([],t,e,n),a.resolve();o.bwReader=i,l.resolve()}),a}})})},5330:function(t,e,n){"use strict";n.r(e);var i=n(9292),r=n(3541),o=n(1216);e.default=o.default.extend({name:"bigwig",height:100,setDefaults:function(){this.bwReader=null,this.base.apply(this,arguments)},getData:function(t,e,n){var o=this,s=this.browser.jQuery.Deferred();this.bigwigFile||(this.bigwigFile=this.bigwigFile||(this.url?new r.SX(this.url):new r.cU(this.track.dataFile)));var a=this.browser.jQuery.Deferred().done(function(){o.prop("bwReader").getValues(t,e,n,function(i,r){r||(i.sort(function(t,e){return t.start-e.start}),i.length?o.receiveData(i,t,i[0].start,i[i.length-1].end):o.receiveData(i,t,e,n)),s.resolve()})});return this.prop("bwReader")?a.resolve():new i.A(this.bigwigFile,function(i){if(!i)return o.receiveData([],t,e,n),s.resolve();o.prop("bwReader",i),a.resolve()}),s}})},1200:function(t,e,n){"use strict";n.r(e);var i=n(1290),r=n(2254);e.default=r.default.extend({name:"GFF",model:i.default,bump:!0,height:100,featureHeight:5})},8598:function(t,e,n){"use strict";n.r(e);var i=n(2715),r=n(3257),o=n(1661),s=n(2254);e.default=s.default.extend({name:"VCF",indexExt:".tbi",model:i.default,autoHeight:!1,maxQual:void 0,afterSetMVC:function(){this.prop("gz")&&this.prop("threshold",1e5)},populateMenu:function(t){return{title:'<a target="_blank" href="https://www.internationalgenome.org/wiki/Analysis/vcf4.0">VCF feature details</a>',CHROM:t.originalFeature[0],POS:t.originalFeature[1],ID:t.originalFeature[2],REF:t.originalFeature[3],ALT:t.originalFeature[4],QUAL:t.originalFeature[5],FILTER:t.originalFeature[6],INFO:t.originalFeature[7].split(";").join("<br />")}},1:{view:o.default.extend({bump:!0,labels:!1,featureMargin:{top:0,right:0,bottom:0,left:0},draw:function(t,e,n,i){this.base(t,e,n,i),this.highlightRef(t,e,i)},highlightRef:function(t,e,n){e.strokeStyle="black",t.forEach(function(t){"REF"===t.allele&&e.strokeRect(t.position[n].X,t.position[n].Y,t.position[n].width,t.position[n].height)})}})},1e3:{view:r.default.extend({bump:!1,labels:!1,drawFeature:function(t){var e=this.prop("maxQual");if(e&&!t.color){var n=Math.min(255,Math.floor(255*(t.originalFeature[5]||0)/e))-127,i=n>0?255:127+n,r=n<0?255:127-n;t.color="rgb(".concat(i,",").concat(r,",0)")}for(var o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];this.base.apply(this,[t].concat(s))}})}})},728:function(t,e,n){"use strict";n.r(e);var i=n(4734),r=n(1216);e.default=r.default.extend({model:i.default,name:"wig",height:100})},4529:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(6448),o=n(1331),s=n(9954),a=n(6305),l=n(6829);e.default=i.Ay.extend({id:"genes",name:"Genes",height:200,legend:l.default,populateMenu:function(t){var e="https://www.ensembl.org/Homo_sapiens/".concat("transcript"===t.feature_type?"Transcript":"Gene","/Summary?").concat("transcript"===t.feature_type?"t":"g","=").concat(t.id),n={title:'<a target="_blank" href="'.concat(e,'">').concat(t.external_name?"".concat(t.external_name," (").concat(t.id,")"):t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Source:t.source,Biotype:t.biotype};return"transcript"===t.feature_type&&(n.Gene='<a target="_blank" href="https://www.ensembl.org/Homo_sapiens/Gene/Summary?g='.concat(t.Parent,'">').concat(t.Parent,"</a>")),n},2e6:{labels:!1},1e5:{labels:!0,model:r.default,view:s.default},1:{labels:!0,model:o.default,view:a.default}})},3330:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return c},Model:function(){return h},View:function(){return u}});var i=n(6153),r=n(6829);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var c=i.xI.extend({setYRange:function(t,e){this.browser.dragging||(this.prop("showZeroY")?this.prop("range",[Math.min(t,0),Math.max(e,0)]):this.prop("range",[t,e]),this.track.reset())},yMinMaxFromFeatures:function(t){var e=Infinity,n=-Infinity;return"Line"===this.prop("type")?t.forEach(function(t){return t.coords.forEach(function(t){var i=a(t,2)[1];isNaN(i)||(e=Math.min(e,i),n=Math.max(n,i))})}):t.forEach(function(t){var i=t.height;isNaN(i)||(e=Math.min(e,i),n=Math.max(n,i))}),{min:e=Infinity===e?0:e,max:n=-Infinity===n?0:n}},afterSetName:function(){this.minLabelHeight=Math.max(this.minLabelHeight,2*this.prop("fontHeight")+this.prop("margin")+this.prop("marginTop"))},visibleFeatureHeight:function(){if("auto"===this.prop("rescaleable")){var t=this.track.getYScale(),e=this.yMinMaxFromFeatures(this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end));return Math.ceil(Math.max(t*(e.max-e.min),this.prop("hideEmpty")?0:this.minLabelHeight))}return this.prop("height")},resize:function(){var t,e,n=this.prop("height"),i=this.base.apply(this,arguments),r=this.prop("height");if(n!==r)if(!0===this.prop("rescaleable")){var o=this.prop("range"),s=Math.max.apply(null,o.map(function(t){return(t.toString().split(".")[1]||"").length})),a=o[1]-o[0],l=Math.ceil((a*(r/n)-a)/2);this.setYRange(parseFloat((o[0]-l).toFixed(s),10),parseFloat((o[1]+l).toFixed(s),10))}else this.track.reset();return null===(t=this.prop("expander"))||void 0===t||t.hide(),null===(e=this.prop("resizer"))||void 0===e||e.removeClass("gv-resizer-expander"),i},autoResize:function(){if("auto"===this.prop("rescaleable")){var t=this.model.findFeatures(this.browser.chr,this.browser.start,this.browser.end);if(t.length){var e=this.prop("range"),n=this.yMinMaxFromFeatures(t);if(n.min||n.max){var i=Math.max.apply(null,e.map(function(t){return(t.toString().split(".")[1]||"").length})),r=Math.pow(10,i),o=parseFloat((Math.floor(n.min*r)/r).toFixed(i),10),s=parseFloat((Math.ceil(n.max*r)/r).toFixed(i),10);this.prop("showZeroY")&&(o=Math.min(o,0),s=Math.max(s,0)),o===s&&s++,o===e[0]&&s===e[1]||this.setYRange(o,s)}}}else this.base.apply(this,arguments)},makeFirstImage:function(){var t=this;return this.base.apply(this,arguments).done(function(){t.prop("yAxisPlaceholder").hide(),t.prop("offsetContainer").prepend(t.prop("guidelinesCanvas")).before(t.prop("yAxisCanvas").removeClass("gv-loading"))})},typeWrapper:function(t){for(var e,n=c[this.prop("type")]||c.prototype,i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];return(e=n[t]||c.prototype[t]).call.apply(e,[this].concat(r))},click:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["click"].concat(e))},getClickedFeatures:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["getClickedFeatures"].concat(e))},populateMenu:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.typeWrapper.apply(this,["populateMenu"].concat(e))}}),h=i.Kx.extend({dataBuffer:{start:1,end:1},setLabelBuffer:function(){},sortFeatures:function(t){return t.sort(function(t,e){return t.start-e.start})}}),u=i.Ss.extend({featureMargin:{},featureDataSets:function(t){var e=this.prop("datasets").concat({name:"_default"}),n=e.reduce(function(t,e){var n=e.name;return Object.assign(t,s({},n,!0))},{});return{list:e,features:t.reduce(function(t,e){var i=n[e.dataset]?e.dataset:"_default";return t[i]=t[i]||[],t[i].push(e),t},{})}}});e.default=i.Ay.extend({controller:c,margin:10,invert:!0,yAxisLabels:void 0,yRange:void 0,showZeroY:!0,globalAlpha:1,axesSettings:{axisColor:"black",axisLabelColor:"black",scaleLineColor:"#E5E5E5"},datasets:[],legend:r.default,labels:!1,resizable:!0,rescaleableY:"auto",setDefaults:function(){this.range=this.yRange||[0,this.height],this.rescaleable=this.rescaleableY,this.browser.jQuery.isPlainObject(this.margin)&&(this.invert?(this.marginTop=this.margin.bottom,this.margin=this.margin.top):(this.marginTop=this.margin.top,this.margin=this.margin.bottom)),this.marginTop="number"==typeof this.marginTop?this.marginTop:this.margin,!1===this.resizable?this.resizable=this.rescaleable:"auto"===this.resizable&&(this.rescaleable="auto"),this.base.apply(this,arguments),this.legend&&!this.datasets.length&&(this.legend=!1),this.height+=this.marginTop,this.initialHeight+=this.marginTop},setHeight:function(t){return this.base(t,!0)},setMVC:function(){var t=this.browser.jQuery,e=this.controller instanceof i.xI,n=this.base.apply(this,arguments);if(!e){var r=this.prop("scrollContainer");this.yAxisPlaceholder=t('<div class="gv-image-container gv-loading">'),this.yAxisCanvas=t('<canvas class="gv-image-container gv-barchart-axis">').attr("width",this.width),this.guidelinesCanvas=t('<canvas class="gv-image-container gv-barchart-guide">').attr("width",this.width),this.disabled&&this.yAxisCanvas.add(this.guidelinesCanvas).attr("height",0),this.offsetContainer=this.browser.jQuery('<div class="gv-scroll-container-offset">').width(this.width).insertAfter(r).append(r).before(this.yAxisPlaceholder),this.drawAxes()}return n},afterSetMVC:function(){var t,e;null===(t=this.prop("heightToggler"))||void 0===t||t.addClass("gv-hidden"),null===(e=this.prop("resizer"))||void 0===e||e.off("click")},reset:function(){return this.drawAxes(),this.base.apply(this,arguments)},enable:function(){var t=this.disabled,e=this.base.apply(this,arguments);return t&&this.drawAxes(),e},getYScale:function(){var t=this.prop("range");return(this.prop("height")-this.prop("margin")-this.prop("marginTop"))/(t[1]-t[0])},drawAxes:function(){if(!this.prop("disabled")){var t,e=this.width,n=this.prop("height"),i=this.prop("invert"),r=this.prop("margin"),o=this.prop("marginTop"),s=this.prop("fontHeight"),a=this.prop("range"),l=this.prop("axesSettings"),c=this.getYScale(),h=this.prop("yAxisCanvas").attr("height",n)[0].getContext("2d"),u=this.prop("guidelinesCanvas").attr("height",n)[0].getContext("2d"),f=this.prop("yAxisLabels");if(!f){var p=Math.floor((n-r-o)/(2*s)),d=(a[1]-a[0])/p;f=[],d!==Math.round(d)&&(t=Math.max.apply(null,a.map(function(t){return(t.toString().split(".")[1]||"").length}))+1);for(var g=0;g<=p;g++)f.push((a[0]+d*g)[t?"toFixed":"toString"](t))}var m=Math.max.apply(null,f.map(function(t){return h.measureText(t).width}))+10;this.prop("offsetContainer").css("marginLeft",m).width(e-m),this.prop("scrollContainer").css("marginLeft",-m),this.prop("yAxisPlaceholder").width(m).show(),h.fillStyle=l.axisColor,h.fillRect(m-1,i?r:o,1,n-r-o),u.fillStyle=l.scaleLineColor,h.fillStyle=l.axisLabelColor,h.textBaseline="middle",h.textAlign="right",f.forEach(function(t){var r=o+(parseFloat(t,10)-a[0])*c;r=i?n-r:r,u.fillRect(0,r,e,1),h.fillRect(m-4,r,4,1),h.fillText(t,m-6,r)});var v=-a[0]*c+o;u.fillStyle=l.axisColor,u.fillRect(0,i?n-v:v,e,1)}}})},1216:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return u},Model:function(){return f},View:function(){return p}});var i=n(3006),r=n.n(i),o=n(3330),s=n(3511);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={getClickedFeatures:function(t,e){var n=this.prop("marginTop")-this.prop("range")[0]*this.track.getYScale(),i=this.scale,r=i>1?0:1,o=this.prop("featuresByChr")[this.browser.chr].search({x:(t-r/2)/i,y:0,w:(1+r)/i,h:1});return o.length&&(e<n&&0===o.filter(function(t){return t.position[i].bounds.y+t.position[i].bounds.h<=e&&t.position[i].bounds.y>=e}).length||e>=n&&0===this.featurePositions.search({x:t,y:e,w:1,h:1}).length)&&(o=[]),o.length?[this.model.sortFeatures(o)]:[]},populateMenu:function(t){if(!t.length)return[];var e=t[0].start,n=t[t.length-1].end,i=t[0].start!==t[t.length-1].start,r={title:"".concat(t[0].chr,":").concat(e===n?e:"".concat(e,"-").concat(n))};function o(t){var e=t.map(function(t){return t.height}).sort(function(t,e){return t-e});return{avg:e.reduce(function(t,e){return t+e},0)/e.length,min:e[0],max:e[e.length-1]}}if(i)if(1===t.length){var s=o(t);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else{r=[r];var a,l=this.prop("datasets");l.length?(a=l.reduce(function(t,e){return Object.assign(t,h({},e.name,[]))},{}),t.forEach(function(t){a[t.dataset].push(t)})):(l=[{name:""}],a={"":t}),l.forEach(function(t){var e=o(a[t.name]);r.push(c({Average:e.avg,Min:e.min,Max:e.max},t.name?{title:t.name}:{}))})}else 1===t.length?r.Value=t[0].height:t.forEach(function(t){r[t.dataset]=t.height});return r}},f=o.Model.extend({insertFeature:function(t){var e=this.prop("datasets");e.length&&(t.legend=t.dataset,t.color=(e.filter(function(e){return e.name===t.dataset})[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.base.apply(this,[t].concat(i))}}),p=o.View.extend({scaleFeatures:function(t,e){var n=this.track.getYScale(),i=this.prop("marginTop")-this.prop("range")[0]*n;return(t=this.base(t,e)).forEach(function(t){t.position[e].height=t.height*n,t.position[e].y=i}),t},draw:function(t,e,n,i){var r=this,o=this.browser.jQuery,s=this.featureDataSets(t),a=this.prop("margin"),l=i<1?Math.ceil(1/i):0,h={color:this.color,globalAlpha:this.prop("globalAlpha")};s.list.forEach(function(t){var a=c(c({},h),t),u=t.name,f=o.extend(!0,[],s.features[u]||[]);if(f.length){if(l){for(var p=[],d=0,g=function(){for(var t=f[d].start,e=[];f[d]&&f[d].start-t<l;)e.push(f[d++]);var n=o.extend(!0,{},e[0],{height:e.reduce(function(t,e){return t+e.height},0)/e.length,end:e[e.length-1].end});["H","W","height","width"].forEach(function(t){n.position[i][t]=e.reduce(function(e,n){return e+n.position[i][t]},0)/e.length}),p.push(n)};d<f.length;)g();f=p}f.forEach(function(t){t.color=a.color}),e.globalAlpha=a.globalAlpha,r.base(f,e,n,i)}}),e.clearRect(0,0,this.width,this.prop("marginTop")-1),e.clearRect(0,this.prop("height")-a,this.width,a)}});e.default=o.default.extend({type:"Bar",model:f,view:p,threshold:5e5,1e4:c(c({},Object.keys(s.default.prototype).reduce(function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t},{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,n,i){var r=[];return t.forEach(function(t){for(var e=t.start;e<t.end;e++)r.push([e,t.height])}),this.base([{chr:e,start:n,end:i,coords:r}],e,n,i)}})}),5e4:c(c({},Object.keys(s.default.prototype).reduce(function(t,e){return s.default.prototype.hasOwnProperty(e)&&!r().prototype[e]&&(t[e]=s.default.prototype[e]),t},{})),{},{fill:!0,model:s.Model.extend({parseData:function(t,e,n,i){return this.base([{chr:e,start:n,end:i,coords:t.map(function(t){return[t.start,t.height]})}],e,n,i)}})})})},3511:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return u},Model:function(){return f},View:function(){return p}});var i=n(1572),r=n(3330);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach(function(e){h(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function h(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u={click:function(){if(this.prop("showPopups")){var t;this.prop("menus").hide(),this.browser.closeMenus(this);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.default.prototype.click).call.apply(t,[this].concat(n))}},getClickedFeatures:function(t){var e=this,n={x:t,y:0,w:1,h:9e99},i=this.scale>1?0:1/this.scale,r=n.x/this.scale,o=i?[Math.floor(r-i),Math.ceil(r+i)]:[Math.floor(r),Math.floor(r)],s={};return this.featurePositions.search(n).forEach(function(t){s[t.dataset]||(s[t.dataset]=t)}),[this.model.sortFeatures(Object.keys(s).map(function(t){return e.browser.jQuery.extend(!0,{},s[t],{clickedCoords:s[t].coords.filter(function(t){return t[0]>=o[0]&&t[0]<=o[1]})})}))]},populateMenu:function(t){if(!t.length||!t[0].clickedCoords.length)return[];var e=t[0].clickedCoords[0][0],n=t[0].clickedCoords[t[0].clickedCoords.length-1][0],i=e!==n,r={title:"".concat(t[0].chr,":").concat(e===n?e:"".concat(e,"-").concat(n))};function o(t){var e=t.map(function(t){return t[1]}).sort(function(t,e){return t-e});return{avg:e.reduce(function(t,e){return t+e},0)/e.length,min:e[0],max:e[e.length-1]}}if(i)if(1===t.length){var s=o(t[0].clickedCoords);r["Average value"]=s.avg,r["Min value"]=s.min,r["Max value"]=s.max}else r=[r],t.forEach(function(e){var n=o(t.clickedCoords);r.push({title:e.dataset,Average:n.avg,Min:n.min,Max:n.max})});else 1===t.length?r.Value=t[0].clickedCoords[0][1]:t.forEach(function(t){r[t.dataset]=t.clickedCoords[0][1]});return r}},f=r.Model.extend({parseData:function(t,e,n,i){var r,o=[];return t.sort(function(t,e){return t.start-e.start||t.x-e.x}).forEach(function(t){if(void 0===t.y||t.coords)r&&(o.push(r),r=void 0),o.push(t);else{var e=function(t){return void 0!==t.x?t.x:t.start+(t.start===t.end?0:(t.end-t.start+1)/2)}(t);r&&r.coords[r.coords.length-1][0]===e-1?(r.coords.push([e,t.y]),r.end=e):(r&&o.push(r),r=c({coords:[[e,t.y]],start:e,end:e},t))}}),r&&o.push(r),this.base(o,e,n,i)},insertFeature:function(t){var e=this.prop("datasets");t.coords?t.coords=t.coords.map(function(e,n){return e.length>1?e:[t.start+n,e]}).filter(function(e){return e[0]>=t.start&&e[0]<=t.end}):t.y?t.coords=[[t.start+(t.start===t.end?0:(t.end-t.start+1)/2),t.y]]:t.coords=[],e.length&&(t.legend=t.dataset,t.color=(e.filter(function(e){return e.name===t.dataset})[0]||{color:this.color}).color),t.id=t.id||[t.chr,t.start,t.end,t.dataset||""].join(":");for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return this.base.apply(this,[t].concat(i))}}),p=r.View.extend({featureHeight:1,positionFeatures:function(t,e){var n=e.scale,i=this.track.getYScale(),r=this.prop("marginTop")-this.prop("range")[0]*i,o=(n>1?n/2:0)-e.scaledStart;function s(t){return[t[0]*n+o,t[1]*i+r]}return t.forEach(function(t){t.coordPositions=t.coords.map(s)}),e.featureHeight=this.prop("height"),this.base(t,e)},draw:function(t,e,n,i){if(t.length){var r=this.featureDataSets(t),o=this.prop("height"),a=this.prop("marginTop"),l=this.prop("margin"),h=Math.min(Math.max(a,a-this.prop("range")[0]*this.track.getYScale()),o-a),u=i<1?Math.floor(1/i):0,f={color:this.color,fill:this.prop("fill"),lineWidth:this.prop("lineWidth"),globalAlpha:this.prop("globalAlpha")};r.list.forEach(function(t){var n,i,o=c(c({},f),t),a=t.name;(r.features[a]||[]).forEach(function(t,l){var c=t.coordPositions;if(c.length){if(u){for(var f=[],p=0,d=0;d<c.length;){for(var g=t.coords[d][0],m=[];c[d]&&t.coords[d][0]-g<u;)m.push(c[d++]);var v=m.length;(m=m.reduce(function(t,e){return t[0]+=e[0],t[1]+=e[1],t},[0,0]))[0]=Math.round(m[0]/v),f.length&&m[0]===f[f.length-1][0]?f[f.length-1][1]=(f[f.length-1][1]*p+m[1])/(p+v):f.push([m[0],m[1]/v]),p=v}c=f,t.binnedCoords=c}e.fillStyle=e.strokeStyle=o.color,e.lineWidth=o.lineWidth,o.fill&&(e.globalAlpha=o.globalAlpha),e.beginPath(),o.fill?(e.moveTo(c[0][0],h),e.lineTo.apply(e,s(c[0]))):e.moveTo.apply(e,s(c[0])),c.forEach(function(t){return e.lineTo.apply(e,s(t))}),e.stroke(),o.fill&&(e.lineTo(c[c.length-1][0],h),e.closePath(),e.fill()),(n=l?r.features[a][l-l]:void 0)&&n.end===t.start-1&&(e.beginPath(),i=(u?n.binnedCoords:n.coordPositions).slice(-1),e.moveTo.apply(e,s(i[0])),e.lineTo.apply(e,s(c[0])),e.stroke(),o.fill&&(e.lineTo(c[0][0],h),e.lineTo(i[0][0],h),e.closePath(),e.fill())),o.fill&&(e.globalAlpha=1)}})}),e.clearRect(0,0,this.width,a-1),e.clearRect(0,o-l,this.width,l)}}});e.default=r.default.extend({type:"Line",showPopups:!0,fill:!1,lineWidth:1,model:f,view:p})},5034:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(4770),o=n(6815);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=i.Ay.extend({id:"highlights",unsortable:!0,fixedOrder:!0,repeatLabels:!0,resizable:!1,border:!1,alwaysReposition:!0,height:15,featureHeight:2,order:-1,orderReverse:9e99,controls:"off",colors:["#777777","#F08080","#3CB371","#6495ED","#FFA500","#9370DB"],labels:"separate",depth:1,featureMargin:{top:13,right:0,bottom:0,left:0},margin:0,constructor:function(){return this.colorIndex=0,this.base.apply(this,arguments)},addHighlights:function(t){var e=this;t.forEach(function(t){return e.model.insertFeature(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){l(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({label:"".concat(t.start,"-").concat(t.end)},t))}),this.reset()},removeHighlights:function(t){var e=this.prop("featuresByChr"),n=this.prop("featuresById");(t=t||Object.values(n)).forEach(function(t){if(!1!==t.removable){var i=e[t.chr],r={x:t.start,y:0,w:t.end-t.start+1,h:1},o=i.search(r).filter(function(e){return e.id===t.id});o.length&&i.remove(r,o[0]),delete n[t.id]}}),1===this.prop("strand")&&this.prop("reverseTrack").removeHighlights(t),this.reset()},controller:r.default.extend({setDefaults:function(){-1===this.prop("strand")&&(this.prop("labels",!1),this.prop("border",!1),this.prop("height",2),this.prop("featureMargin").top=0),this.base()},setName:function(t){-1===this.prop("strand")?(this.base(""),this.minLabelHeight=0,this.label.height(0)):this.base(t)},makeImage:function(t){1===this.prop("strand")&&(t.background="gv-full-height");var e=this.base(t);return t.container.addClass(t.background),e},render:function(t,e){this.base(t,e),e.siblings(".gv-labels").css("top",this.prop("featureHeight")-this.prop("featureMargin").top)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},populateMenu:function(t){var e=[];return t.length>1&&e.push({title:"Highlights"}),t.forEach(function(t){var n="".concat(t.start,"-").concat(t.end),i={title:t.label?t.label[0]:n,start:!1};i[i.title===n?"title":"Location"]="".concat(t.chr,":").concat(n),i['<a class="gv-focus-highlight" href="#" data-chr="'.concat(t.chr,'" data-start="').concat(t.start,'" data-end="').concat(t.end,'">Focus here</a>')]="",!1!==t.removable&&(i['<a class="gv-remove-highlight" href="#" data-id="'.concat(t.id,'">Remove this highlight</a>')]="",i['<a class="gv-remove-highlights" href="#">Remove all highlights</a>']=""),e.push(i)}),e},click:function(){var t=this.browser.jQuery;if(1===this.prop("strand")){var e=this.base.apply(this,arguments);if(e&&!e.data("highlightEvents")){var n=this.track;e.find(".gv-remove-highlight").on("click",function(){var i=t(this).data("id");return n.removeHighlights(e.data("feature").filter(function(t){return t.id===i})),!1}),e.find(".gv-remove-highlights").on("click",function(){return n.removeHighlights(),!1}),e.find(".gv-focus-highlight").on("click",function(){var e=t(this).data(),i=e.end-e.start+1,r=Math.max(Math.round(i/4),25);return n.browser.moveTo(e.chr,e.start-r,e.end+r,!0),!1}),e.data("highlightEvents",!0)}}},getClickedFeatures:function(t,e){var n={},i=this.scale,r=this.featurePositions.search({x:t,y:e,w:1,h:1}).concat(this.labelPositions.search({x:t,y:e,w:1,h:1}).filter(function(t){return!1!==t.position[i].label.visible})).filter(function(t){var e=!n[t.id];return n[t.id]=!0,e});return!!r.length&&[this.model.sortFeatures(r)]}}),model:o.default.extend({url:!1,insertFeature:function(t){if(t.id="".concat(t.chr,":").concat(t.start,"-").concat(t.end),t.sort=t.start,!t.color){var e=this.prop("colors"),n=this.prop("colorIndex");t.color=e[n++],this.prop("colorIndex",e[n]?n:0)}this.featuresById[t.id]||this.base(t)},findFeatures:function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.Kx.prototype.findFeatures).call.apply(t,[this].concat(n))}}),view:i.Ss.extend({positionFeatures:function(t,e){var n=this.base(t,e);return e.featureHeight=Math.max(e.featureHeight-this.featureMargin.top,0),n},draw:function(t,e,n,i){1===this.prop("strand")&&(e.fillStyle="#FFF",e.fillRect(0,0,e.canvas.width,e.canvas.height)),this.base(t,e,n,i)},drawBackground:function(t,e,n){var i=this,r=this.browser.jQuery;-1!==this.prop("strand")&&t.forEach(function(t){e.fillStyle=t.color,i.drawFeature(r.extend(!0,{},t,{x:t.position[n.scale].X,y:0,width:t.position[n.scale].width,height:e.canvas.height,color:i.shadeColor(e.fillStyle,.8),border:t.color,label:!1,decorations:!0}),e,!1,n.scale)})},decorateFeature:function(t,e){var n=t.x+.5,i=n+t.width,r=!1;e.strokeStyle=t.border,e.lineWidth=2,e.beginPath(),n>=0&&n<=this.width&&(e.moveTo(n,t.y),e.lineTo(n,t.y+t.height),r=!0),i>=0&&i<=this.width&&(e.moveTo(i,t.y),e.lineTo(i,t.y+t.height),r=!0),r&&e.stroke(),e.lineWidth=1}})})},6829:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return h},Model:function(){return u},View:function(){return f}});var i=n(6170);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function c(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=i.Controller.extend({init:function(){this.base(),this.container.addClass("gv-track-container-legend"),this.browser.legends[this.track.id]=this.track,this.track.setTracks()},destroy:function(){delete this.browser.legends[this.prop("id")],this.base()}}),u=i.Model.extend({findFeatures:function(){var t={x:this.browser.scaledStart,y:0,w:this.width},e=this.track.tracks.flatMap(function(e){var n=e.prop("featurePositions"),i=l(l({},t),{},{h:e.prop("height")});return n?n.search(i).concat(e.prop("labelPositions").search(i)):[]}).reduce(function(t,e){return Array.isArray(e.legend)?e.legend.forEach(function(e){t[e.label]=e.color}):e.legend&&(t[e.legend]=e.legendColor||e.color),t},{});return this.sortFeatures(Object.entries(e).map(function(t){var e=o(t,2);return[e[0],e[1]]}))},sortFeatures:function(t){return t.sort(function(t,e){return t[0].localeCompare(e[0])})}}),f=i.View.extend({textColor:"#000000",labels:"overlay",featureHeight:12,positionFeatures:function(t,e){var n=this;if(e.positioned)return t;var i=0,r=0,s=this.width/2,a=this.fontHeight+5,l=e.xOffset||0,c=[];return t.forEach(function(t){var e=o(t,2),h=e[0],u=e[1],f=i*s+5,p=r*a+5,d=n.context.measureText(h).width;c.push({x:f+l,y:p,width:20,height:n.featureHeight,color:u},{x:f+l+5+20,y:p,width:d+1,height:n.featureHeight,color:!1,labelColor:n.textColor,labelWidth:d,label:h}),2===++i&&(i=0,r++)}),e.height=this.prop("height",t.length?(r+(i?1:0))*a+5:0),e.width=this.width,e.positioned=!0,this.base(c,e)}});e.default=i.default.extend({isLegend:!0,unsortable:!0,lockToTrack:!0,removable:!1,controller:h,model:u,view:f,setDefaults:function(){this.order=void 0!==this.order?this.order:9e99,this.id=this.id||"legend",this.type=this.type||"legend",this.base()},setEvents:function(){this.browser.on({"afterAddTracks afterRemoveTracks":function(){this.destroying||(Object.values(this.legends).forEach(function(t){return t.setTracks()}),this.sortTracks())},afterRemoveTracks:function(t){this.destroying||(t.forEach(function(t){t.legendTrack&&0===t.legendTrack.tracks.length&&t.legendTrack.remove()}),Object.values(this.legends).forEach(function(t){return t.controller.makeImage({})}))},afterUpdateTrackOrder:function(t,e){var n=e.item.data("track"),i=this.legends[n.id]||n.legendTrack;i&&i.lockToTrack&&!1===i.unsortable&&(i.lockToTrack=!1),Object.values(this.legends).forEach(function(t){return t.updateOrder()}),this.sortTracks()}}),this.browser.on({afterPositionFeatures:function(t,e){var n=this.prop("legendTrack");n&&setTimeout(function(){n.controller.makeImage(e)},1)},afterResize:function(t,e){var n=this.prop("legendTrack");n&&!0===e&&n.controller.makeImage({})},afterCheckHeight:function(){var t=this.prop("legendTrack");t&&t.controller.makeImage({})},afterSetMVC:function(){var t=this.prop("legendTrack");t&&t.tracks.length&&(t.disable(),!1!==this.legend&&t.enable())}},this)},setTracks:function(){var t=this,e=this.type;this.tracks=this.browser.tracks.filter(function(n){return n.legendType===e&&(n.legendTrack=n.legendTrack||t,!0)}).flatMap(function(e){return[e].concat(e.prop("childTracks"),e.prop("parentTrack")).filter(function(e){return e&&e!==t&&!e.prop("disabled")})}),this.updateOrder(),"object"===r(this.controller)?this[this.tracks.length?"enable":"disable"]():this.disabled=!this.tracks.length},updateOrder:function(){if(this.lockToTrack){var t=this.tracks.filter(function(t){return!t.prop("parentTrack")});t.length&&(this.order=t[t.length-1].order+.1)}},enable:function(){this.base(),this.controller.makeImage({})},disable:function(){delete this.controller.stringified,this.base()}})},9897:function(t,e,n){"use strict";n.r(e);var i=n(3301),r=n.n(i),o=n(6153);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){u(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=o.Ay.extend({unsortable:!0,fixedOrder:!0,order:0,orderReverse:1e5,featureStrand:1,controls:"off",height:20,featureHeight:3,featureMargin:{top:0,right:0,bottom:2,left:0},margin:0,minPixPerMajor:100,color:"#000000",autoHeight:!1,labels:!0,bump:!1,resizable:!1,click:function(){},colors:{majorGuideLine:"#CCCCCC",minorGuideLine:"#E5E5E5"},setEvents:function(){var t=this.browser;function e(){t.jQuery(".gv-bg.gv-full-height",t.container).height(function(){return t.wrapper.outerHeight(!0)-t.jQuery(this).parents(".gv-track-container").position().top})}t.on("afterAddTracks",e),t.on("afterResize",this,e)},setScale:function(){for(var t,e=this.prop("width")/this.prop("minPixPerMajor"),n=5,i=-1,o="".concat(this.browser.start).split(""),s="".concat(this.browser.end).split(""),a={},l=o.length;l<s.length;l++)o.unshift("0");for(var c=s.length;c<o.length;c++)s.unshift("0");for(var h=0;h<o.length;h++)if((t=Number(s.slice(0,o.length-h).join(""))-Number(o.slice(0,o.length-h).join("")))&&t<=e){i=Number("1".concat(Array(h).fill("0").join("")));break}-1===i?(i=1===this.browser.length?1:Number("1".concat(Array(o.length).fill("0").join(""))),n=1):5*t<=e?(i/=5,n=2):4*t<=e?(i/=4,n=1):2*t<=e&&(i/=2),i=Math.max(i,1),a[this.browser.chr]=new(r()),this.prop("minorUnit",Math.max(i/n,1)),this.prop("majorUnit",i),this.prop("featuresByChr",a),this.prop("featuresById",{}),this.prop("seen",{}),this.base()},setFeatures:function(t,e,n){for(var i,r,o,s=this.prop("minorUnit"),a=this.prop("majorUnit"),l=this.prop("seen"),c=(e=Math.max(e-e%s-a,0))/s%2?1:-1,h=e;h<n+s;h+=s)c*=-1,l[h]||(l[h]=1,i={id:"".concat(t,":").concat(h),chr:t,strand:1,sort:h},r=h&&h%a===0,1===c&&(i.start=h,i.end=h+s-1),r&&((o=this.view.formatLabel(h))!==this.lastLabel&&(i.label=o,i.end||(i.start=h,i.end=h-1)),this.lastLabel=o),i.end&&this.model.insertFeature(i))},makeFirstImage:function(t){return this.base(-1===this.prop("strand")?this.track.forwardTrack.prop("scrollStart"):t)},makeImage:function(t){t.background="gv-guidelines gv-full-height",t.featureHeight=this.prop("height"),this.track.setFeatures(t.chr,t.start,t.end);var e=this.base(t);return t.container.addClass("gv-full-height"),e},makeReverseImage:function(t){this.imgContainers.push(t.container.clone().html(t.container.children(".gv-data").clone(!0).css({opacity:1,background:this.browser.wrapper.css("backgroundColor")}))[0]),this.scrollContainer.append(this.imgContainers)},renderBackground:function(t,e){this.base(t,e),e.height(this.browser.wrapper.outerHeight(!0))},draw:function(t,e,n,i){var r,o,s,a=this.prop("minorUnit"),l=Math.ceil(a*i),c=t.length;for(e.textBaseline="top",e.fillStyle=this.color,this.guideLines={major:{}};c--;)r=t[c],s=(o=Math.round(r.position[i].X))+l-1,this.drawFeature(h(h({},r),{},{x:o,y:0,width:Math.ceil(r.position[i].width),height:this.featureHeight}),e,n,i),r.label&&(o>-1&&e.fillRect(o,this.featureHeight,1,this.featureHeight),this.guideLines.major[r.start]=!0),r.end<r.start&&(o--,s++),this.guideLines[r.start]=o,this.guideLines[r.start+a]=s;e.fillRect(0,0,e.canvas.width,1),e.fillRect(0,this.featureHeight,e.canvas.width,1)},drawBackground:function(t,e){var n=this;Object.entries(this.guideLines).forEach(function(t){var i=a(t,2),r=i[0],o=i[1];o>=0&&o<=n.width&&(e.fillStyle=n.track.colors[n.guideLines.major[r]?"majorGuideLine":"minorGuideLine"],e.fillRect(o,0,1,e.canvas.height))})},formatLabel:function(t){return this.prop("minorUnit")<1e3?t.toString().replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):this.base(t)}})},7826:function(t,e,n){"use strict";n.r(e);var i=n(6170);e.default=i.default.extend({strand:1,color:"#000000",height:12,labels:"overlay",unsortable:!0,fixedOrder:!0,arrowWidth:7,resize:function(){},makeFirstImage:function(){this.prop("scaleline",!1),this.base.apply(this,arguments)},render:function(t,e){this.base(t,e),this.prop("drawnScale",e.data("scale"))},positionFeatures:function(t,e){var n=this.prop("scaleline");if(e.scale===this.drawnScale)return!1;if(n)return n;var i=this.prop("strand"),r=this.prop("height"),o=this.formatLabel(this.browser.length),s=this.context.measureText(o).width,a=10,l=r/2,c=(this.width-s-a)/2;if(i){var h=1===i?"Forward strand":"Reverse strand",u=this.context.measureText(h).width,f=1===i?this.width-this.prop("arrowWidth")-u-15:this.prop("arrowWidth")+5;n=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:c,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o},{x:f,y:0,width:u+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:u,label:h}]}else n=[{x:0,y:l,width:this.width,height:1,decorations:!0},{x:c,y:0,width:s+a,height:r,clear:!0,color:!1,labelColor:this.color,labelWidth:s,label:o}];return this.base(this.prop("scaleline",n),e)},decorateFeature:function(t,e){var n=this.prop("strand"),i=this.prop("height"),r=this.prop("arrowWidth"),o=this.width;e.strokeStyle=this.color,[-1,1].filter(function(t){return!n||t===n}).forEach(function(t){var n=1===t?o-r:r,s=n+t*r;e.beginPath(),e.moveTo(n,.25*i),e.lineTo(s,.5*i),e.lineTo(n,.75*i),e.closePath(),e.stroke(),e.fill()})}})},6170:function(t,e,n){"use strict";n.r(e),n.d(e,{Controller:function(){return r},Model:function(){return o},View:function(){return s}});var i=n(6153),r=i.xI.extend({addDomElements:function(){this.base(),this.image=this.browser.jQuery("<img>").appendTo(this.imgContainer),this.container.toggleClass("gv-track-container gv-track-container-static").prepend(this.imgContainer),this.scrollContainer.add(this.messageContainer).remove()},reset:function(){delete this.stringified,this.base.apply(this,arguments)},setWidth:function(t){this.base(t),this.image.width=this.width},makeFirstImage:function(){this.base.apply(this,arguments),this.container.css("left",0),this.imgContainer.show()},makeImage:function(t){if(this.prop("disabled"))return this.browser.jQuery.Deferred().resolve();var e=this.view.positionFeatures(this.model.findFeatures(t.chr,t.start,t.end),t);if(e){var n=JSON.stringify(e);if(this.stringified!==n){var i=this.prop("height");t.width=this.width,t.featureHeight=i,this.render(e,this.image.data(t)),this.imgContainer.children(":last").show(),this.resize(i,void 0,!1),this.stringified=n}}return this.browser.jQuery.Deferred().resolve()}}),o=i.Kx.extend({url:!1,checkDataRange:function(){return!0}}),s=i.Ss.extend({featureMargin:{top:0,right:1,bottom:0,left:1},positionFeature:function(){},scaleFeatures:function(t){return t},draw:function(t,e,n,i){var r=this;t.forEach(function(t){return r.drawFeature(t,e,n,i)})}});e.default=i.Ay.extend({controls:"off",resizable:!1,controller:r,model:o,view:s})},3875:function(t,e,n){"use strict";n.r(e);var i=n(6153),r=n(6829);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=o(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||c(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||c(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){if(t){if("string"==typeof t)return h(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}e.default=i.Ay.extend({id:"dbSNP",name:"dbSNP",info:"All sequence variants from the database of Single Nucleotide Polymorphisms (dbSNP)",url:"//rest.ensembl.org/overlap/region/human/__CHR__:__START__-__END__?feature=variation;content-type=application/json",dataRequestLimit:5e6,threshold:1e5,labels:!1,legend:r.default,autoHeight:!0,colorMap:{transcript_ablation:"#ff0000",splice_acceptor_variant:"#FF581A",splice_donor_variant:"#FF581A",stop_gained:"#ff0000",frameshift_variant:"#9400D3",stop_lost:"#ff0000",start_lost:"#ffd700",transcript_amplification:"#ff69b4",inframe_insertion:"#ff69b4",inframe_deletion:"#ff69b4",missense_variant:"#ffd700",protein_altering_variant:"#FF0080",splice_region_variant:"#ff7f50",incomplete_terminal_codon_variant:"#ff00ff",stop_retained_variant:"#76ee00",synonymous_variant:"#76ee00",coding_sequence_variant:"#458b00",mature_miRNA_variant:"#458b00","5_prime_UTR_variant":"#7ac5cd","3_prime_UTR_variant":"#7ac5cd",non_coding_transcript_exon_variant:"#32cd32",intron_variant:"#02599c",NMD_transcript_variant:"#ff4500",non_coding_transcript_variant:"#32cd32",upstream_gene_variant:"#a2b5cd",downstream_gene_variant:"#a2b5cd",TFBS_ablation:"#a52a2a",TFBS_amplification:"#a52a2a",TF_binding_site_variant:"#a52a2a",regulatory_region_ablation:"#a52a2a",regulatory_region_amplification:"#a52a2a",feature_elongation:"#7f7f7f",regulatory_region_variant:"#a52a2a",feature_truncation:"#7f7f7f",intergenic_variant:"#636363"},insertFeature:function(t){t.color=this.prop("colorMap")[t.consequence_type],t.legend=t.consequence_type,t.start>t.end&&(t.decorations=!0),this.base(t)},decorateFeature:function(t,e,n){e.fillStyle=t.color,e.beginPath(),e.moveTo(t.position[n].X-3,t.position[n].Y+this.featureHeight),e.lineTo(t.position[n].X,t.position[n].Y+this.featureHeight-4),e.lineTo(t.position[n].X+3,t.position[n].Y+this.featureHeight),e.fill(),n>1&&e.fillRect(t.position[n].X-.5,t.position[n].Y,1.5,t.position[n].height)},populateMenu:function(t){var e=this.browser.jQuery.Deferred(),n=[{title:'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Summary?v='.concat(t.id,'" target="_blank">').concat(t.id,"</a>"),Location:"".concat(t.chr,":").concat(t.start,"-").concat(t.end),Consequence:t.consequence_type,Alleles:t.alleles.join(", ")}];return this.browser.jQuery.ajax({url:"//rest.ensembl.org/variation/human/".concat(t.id,"?population_genotypes=1;content-type=application/json"),dataType:"json",success:function(i){var r=i.population_genotypes.filter(function(t){return/1000GENOMES.+ALL/.test(t.population)}),o={};r.length&&(r.forEach(function(t){t.frequency=parseFloat(t.frequency,10),t.count=parseInt(t.count,10),o[t.population]=o[t.population]||[],o[t.population].push(t)}),n.push.apply(n,l(Object.entries(o).map(function(t){var e=a(t,2),n=e[0];return e[1].sort(function(t,e){return t.count<e.count}).reduce(function(t,e){return Object.assign(t,s({},e.genotype,["".concat((100*e.frequency).toFixed(2),"%"),e.count]))},{title:"".concat(n," population genotypes"),Genotype:["Frequency","Count"],start:!1,end:!1})})).concat([s({start:!1,end:!1},'<a href="https://www.ensembl.org/Homo_sapiens/Variation/Population?v='.concat(t.id,'" target="_blank">See all population genotypes</a>'),"")]))),e.resolve(n)}}),e},5e3:{bump:!1},1:{bump:!0}})},9292:function(t,e,n){"use strict";n.d(e,{A:function(){return s}}),n.dn(s);var i=n(3301),r=n.n(i),o=n(8186);function s(t,e){var n={fetchedData:new(r())},i=function(t,e){return t[e]+256*t[e+1]+65536*t[e+2]+16777216*t[e+3]+4294967296*t[e+4]},s=function(t,e){var i,r,o,s,a=[],l=new Uint8Array(t),c=new Int16Array(t),h=new Int32Array(t),u=new Float32Array(t),f=h[0],p=parseInt(n.chroms[f].replace("chr",""),10),d=h[1]+1,g=h[3],m=h[4],v=l[20],y=c[11];if(3===v)for(i=0;i<y;i++)o=(r=d+i*g)+m-1,s=u[i+6],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(2===v)for(i=0;i<y;i++)o=(r=h[2*i+6]+1)+m-1,s=u[2*i+7],f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});else if(1===v)for(i=0;i<y;i++)r=h[3*i+6]+1,o=h[3*i+7],s=u[3*i+8],r>o&&(r=o),f==e.chrom&&a.push({chr:p,start:r,end:o,height:s});return a},a=function(t,e){for(var i,r,o,s=[],a=new Uint8Array(t),l=new Int32Array(t),c=0;c<l.length;){for(i={chromid:l[c],chr:n.chroms[l[c]],start:l[c+1],end:l[c+2]},c+=12;0!==(r=a[c++]);)o+=String.fromCharCode(r);i.chromid===e.chrom&&s.push([i.chr,i.start,i.end,o].join("\t"))}return s},l=function(e,i,r){var o=e+i,s=n.fetchedData.search({x:e,w:i,y:0,h:1}).filter(function(t){return t[0]<=e&&t[1]>=o});1===s.length?r(s[0][2].slice(e-s[0][0],e+i)):t.slice(e,i).fetch(function(t){n.fetchedData.insert({x:e,w:i,y:0,h:1},[e,e+i,t]),r(t)})},c=function(t,e,r,c){var h=[],u=n.chroms.indexOf(t);if(-1===u&&-1===(u=n.chroms.indexOf("chr".concat(t))))return c([],"chrom not found");var f,p,d,g,m,v={chrom:u,start:e,end:r};f=0,p=function(){var t="bigwig"===n.type?s:"bigbed"===n.type&&a,e=[];if(t&&h.length)for(var i=0;i<h.length;i++)e=e.concat(t(h[i].data,v));c(e)},d=function(){if(h.sort(function(t,e){return(0|t.offset)-(0|e.offset)}),0===h.length)return p();for(var t=0,e=h[0].offset,i=0;i<h.length;i++)t+=h[i].size;l(e,t,function(e){for(var i,r,s=0,a=0;s<t;)i=h[a],r=n.uncompressBufSize>0?(0,o.A)(e,s+2,i.size-2):e.slice(s,s+i.size),h[a].data=r,s+=i.size,a++;p()})},g=function(t,e,n,r){var o,s=function(t,e){var n,r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t),l=s[e/2+1],c={isLeaf:o[e],children:l,chrIdxStart:new Array(l),baseStart:new Array(l),chrIdxEnd:new Array(l),baseEnd:new Array(l),dataOffset:new Array(l),x:{}};if(c.isLeaf)c.x.size=new Array(l);else for(c.x.child=new Array(l),r=0;r<l;r++)c.x.child[r]=-1;for(e+=4,r=0;r<l;r++)n=e/4,c.chrIdxStart[r]=a[n],c.baseStart[r]=a[n+1],c.chrIdxEnd[r]=a[n+2],c.baseEnd[r]=a[n+3],c.dataOffset[r]=i(o,e+16),e+=24,c.isLeaf&&(c.x.size[r]=i(o,e),e+=8);return c}(t,e),a=function(t){for(var e=t.children,n=[],i=0;i<e;i++){var r=t.chrIdxStart[i],o=t.baseStart[i],s=t.chrIdxEnd[i],a=t.baseEnd[i];(r<v.chrom||r==v.chrom&&o<=v.end)&&(s>v.chrom||s==v.chrom&&a>=v.start)&&n.push(i)}return n}(s);if(s.isLeaf){for(o=0;o<a.length;o++)h.push({offset:s.dataOffset[a[o]],size:s.x.size[a[o]]});return[]}r(a.map(function(t){return s.dataOffset[t]}),n+1)},(m=function(t,e){f+=t.length;var i=t[0],r=4+32*n.Rheader.blockSize,o=t[t.length-1]+r;l(i,o-i,function(n){for(var r=0;r<t.length;r++)g(n,t[r]-i,e,m),0===--f&&d()})})([n.rootOffset],1)},h=function(){var t=n.unzoomedDataOffset-n.chromTreeOffset;l(n.chromTreeOffset,t+4-t%4,function(t){var r,o=new Uint8Array(t),s=new Uint16Array(t),a=new Uint32Array(t);2026540177===a[0]?(n.bpTree={itemsPerBlock:a[1],keySize:a[2],valueSize:a[3],itemCount:i(o,16)},n.chroms=new Array(n.bpTree.itemCount),n.lengths=new Array(n.bpTree.itemCount)):r="chromosome id B+ tree not found!",r?e(null,r):function(t){for(var e,i,r,a,l,c=s[t/2+1],h=t+4;c>0;){for(c--,e="",i=0;i<n.bpTree.keySize;i++)0!==(r=o[h+i])&&(e+=String.fromCharCode(r));h+=n.bpTree.keySize,a=o[h+3]<<24|o[h+2]<<16|o[h+1]<<8|o[h+0],l=o[h+7]<<24|o[h+6]<<16|o[h+5]<<8|o[h+4],h+=8,n.chroms[a]=e,n.lengths[a]=l}}(32),l(n.unzoomedIndexOffset,48,function(t){var r=new Uint8Array(t),o=new Uint32Array(t);610839776===o[0]?(n.Rheader={blockSize:o[1],nItems:i(r,8),chrIdxStart:o[4],baseStart:o[5],chrIdxEnd:o[6],baseEnd:o[7],endFileOffset:i(r,32),nItemsPerSlot:o[10]},n.rootOffset=n.unzoomedIndexOffset+48,n.getValues=c,e(n)):e(null,"R-tree not found!")})})};l(0,512,function(t){var r,o,s,a,c,u=new Uint8Array(t),f=new Uint16Array(t),p=new Uint32Array(t),d=p[0];2291137574===d?n.type="bigwig":2273964779===d?n.type="bigbed":r=654086024===d||3958540679===d?"big-endian files not supported yet!":"unsupported file format",r&&e(null,r),n.version=f[2],n.numZoomLevels=f[3],n.chromTreeOffset=i(u,8),n.unzoomedDataOffset=i(u,16),n.unzoomedIndexOffset=i(u,24),n.fieldCount=f[16],n.definedFieldCount=f[17],n.asOffset=i(u,36),n.totalSummaryOffset=i(u,44),n.uncompressBufSize=p[13],n.extHeaderOffset=i(u,56),n.compressed=n.uncompressBufSize>0,n.summary=n.totalSummaryOffset>0,n.extHeader=n.extHeaderOffset>0,n.zoomHeaders=[];for(var g=0;g<n.numZoomLevels;g++)o=p[16+6*g],s=i(u,72+24*g),a=i(u,80+24*g),n.zoomHeaders.push({reductionLevel:o,dataOffset:s,indexOffset:a});c=h,0===n.asOffset?c():l(n.asOffset,2048,function(t){for(var e=new Uint8Array(t),i="",r=0;r<e.length&&0!==e[r];r++)i+=String.fromCharCode(e[r]);var o=/([\w[]]+)\s+(\w+)\s*;\s*("([^"]+)")?\s*/g,s=/(\w+)\s+(\w+)\s+("([^"]+)")?\s*\(\s*/.exec(i);if(s){var a={declType:s[1],name:s[2],comment:s[4],fields:[]};i=i.substring(s[0]);for(var l=o.exec(i);null!==l;l=o.exec(i))a.fields.push({type:l[1],name:l[2],comment:l[4]});n.schema=a}c()})})}},3541:function(t,e,n){"use strict";n.d(e,{cU:function(){return y},SX:function(){return b},HA:function(){return E},zH:function(){return C},Uk:function(){return O},Dt:function(){return A}});function i(t){return a(l(s(t),8*t.length))}function r(t){for(var e="",n=t.length,i=0;i<n;i+=3)for(var r=t.charCodeAt(i)<<16|(i+1<n?t.charCodeAt(i+1)<<8:0)|(i+2<n?t.charCodeAt(i+2):0),o=0;o<4;o++)8*i+6*o>8*t.length?e+="":e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-o)&63);return e}function o(t){for(var e,n,i="",r=-1;++r<t.length;)e=t.charCodeAt(r),n=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&e<=56319&&56320<=n&&n<=57343&&(e=65536+((1023&e)<<10)+(1023&n),r++),e<=127?i+=String.fromCharCode(e):e<=2047?i+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?i+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(i+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return i}function s(t){for(var e=Array(t.length>>2),n=0;n<e.length;n++)e[n]=0;for(n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function a(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),i=1732584193,r=-271733879,o=-1732584194,s=271733878,a=-1009589776,l=0;l<t.length;l+=16){for(var p=i,d=r,g=o,m=s,v=a,y=0;y<80;y++){n[y]=y<16?t[l+y]:f(n[y-3]^n[y-8]^n[y-14]^n[y-16],1);var b=u(u(f(i,5),c(y,r,o,s)),u(u(a,n[y]),h(y)));a=s,s=o,o=f(r,30),r=i,i=b}i=u(i,p),r=u(r,d),o=u(o,g),s=u(s,m),a=u(a,v)}return Array(i,r,o,s,a)}function c(t,e,n,i){return t<20?e&n|~e&i:t<40?e^n^i:t<60?e&n|e&i|n&i:e^n^i}function h(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function u(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function f(t,e){return t<<e|t>>>32-e}var p=function(t){return r(i(o(t)))};function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){m(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function m(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==v(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function y(t){this.blob=t}function b(t,e,n,i){i||("object"===v(e)?(i=e,e=void 0):i={}),this.url=t,this.start=e||0,n&&(this.end=n),this.opts=i}y.prototype.slice=function(t,e){return new y(this.blob.slice?e?this.blob.slice(t,t+e):this.blob.slice(t):e?this.blob.webkitSlice(t,t+e):this.blob.webkitSlice(t))},y.prototype.salted=function(){return this},"undefined"!=typeof FileReader?y.prototype.fetch=function(t){var e=new FileReader;e.onloadend=function(n){t(_(e.result))},e.readAsBinaryString(this.blob)}:y.prototype.fetch=function(t){var e=new FileReaderSync;try{t(e.readAsArrayBuffer(this.blob))}catch(e){t(null,e)}},b.prototype.slice=function(t,e){if(t<0)throw"Bad slice "+t;var n=this.start,i=this.end;return n&&t?n+=t:n=t||n,i=e&&n?n+e-1:i||e-1,new b(this.url,n,i,this.opts)};var w=0,x="undefined"!=typeof navigator&&navigator.userAgent.indexOf("Safari")>=0&&navigator.userAgent.indexOf("Chrome")<0;function _(t){if(!t)return null;for(var e=new Uint8Array(t.length),n=0;n<e.length;++n)e[n]=t.charCodeAt(n);return e.buffer}b.prototype.fetchAsText=function(t){var e=this;this.getURL().then(function(n){try{var i=new XMLHttpRequest;if((x||e.opts.salt)&&n.indexOf("?")<0&&(n=n+"?salt="+p(Date.now()+","+ ++w)),i.open("GET",n,!0),e.end){if(e.end-e.start>1e8)throw"Monster fetch!";i.setRequestHeader("Range","bytes="+e.start+"-"+e.end),e.end-e.start+1}i.onreadystatechange=function(){if(4==i.readyState)return 200==i.status||206==i.status?t(i.responseText):t(null)},e.opts.credentials&&(i.withCredentials=!0),i.send()}catch(e){return t(null)}}).catch(function(e){return console.log(e),t(null,e)})},b.prototype.salted=function(){return new b(this.url,this.start,this.end,g(g({},this.opts),{},{salt:!0}))},b.prototype.getURL=function(){return this.opts.resolver?this.opts.resolver(this.url).then(function(t){return"string"==typeof t?t:t.url}):Promise.resolve(this.url)},b.prototype.fetch=function(t,e){var n=this,i=(e=e||{}).attempt||1,r=e.truncatedLength;if(i>3)return t(null);this.getURL().then(function(o){try{var s;e.timeout&&!n.opts.credentials&&(s=setTimeout(function(){return console.log("timing out "+o),l.abort(),t(null,"Timeout")},e.timeout));var a,l=new XMLHttpRequest;if((x||n.opts.salt)&&o.indexOf("?")<0&&(o=o+"?salt="+p(Date.now()+","+ ++w)),l.open("GET",o,!0),l.overrideMimeType("text/plain; charset=x-user-defined"),n.end){if(n.end-n.start>1e8)throw"Monster fetch!";l.setRequestHeader("Range","bytes="+n.start+"-"+n.end),a=n.end-n.start+1}l.responseType="arraybuffer",l.onreadystatechange=function(){if(4==l.readyState){if(s&&clearTimeout(s),200==l.status||206==l.status){if(l.response){var e=l.response.byteLength;return!a||a==e||r&&e==r?t(l.response):n.fetch(t,{attempt:i+1,truncatedLength:e})}if(l.mozResponseArrayBuffer)return t(l.mozResponseArrayBuffer);var o=l.responseText;return!a||a==o.length||r&&o.length==r?t(_(l.responseText)):n.fetch(t,{attempt:i+1,truncatedLength:o.length})}return n.fetch(t,{attempt:i+1})}},n.opts.credentials&&(l.withCredentials=!0),l.send()}catch(e){return t(null)}}).catch(function(e){return console.log(e),t(null,e)})};var S=new ArrayBuffer(8),k=new Uint8Array(S),T=new Float32Array(S);function C(t,e){return k[0]=t[e],k[1]=t[e+1],k[2]=t[e+2],k[3]=t[e+3],T[0]}function O(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function A(t,e){return t[e+1]<<8|t[e]}function E(t,e){return t[e]}},8186:function(t,e){"use strict";var n=15,i=-2,r=-3,o=-5,s=13,a=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],l=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],c=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],h=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],p=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function d(){}function g(){this.was=[0]}d.prototype.inflateInit=function(t,e){return t||(t=15),e&&(e=!1),this.istate=new g,this.istate.inflateInit(this,e?-t:t)},d.prototype.inflate=function(t){return null==this.istate?i:this.istate.inflate(this,t)},d.prototype.inflateEnd=function(){if(null==this.istate)return i;var t=istate.inflateEnd(this);return this.istate=null,t},d.prototype.inflateSync=function(){return istate.inflateSync(this)},d.prototype.inflateSetDictionary=function(t,e){return istate.inflateSetDictionary(this,t,e)},g.prototype.inflateReset=function(t){return null==t||null==t.istate?i:(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=0!=t.istate.nowrap?7:0,t.istate.blocks.reset(t,null),0)},g.prototype.inflateEnd=function(t){return null!=this.blocks&&this.blocks.free(t),this.blocks=null,0},g.prototype.inflateInit=function(t,e){return t.msg=null,this.blocks=null,nowrap=0,e<0&&(e=-e,nowrap=1),e<8||e>15?(this.inflateEnd(t),i):(this.wbits=e,t.istate.blocks=new y(t,0!=t.istate.nowrap?null:this,1<<e),this.inflateReset(t),0)},g.prototype.inflate=function(t,e){var n,a;if(null==t||null==t.istate||null==t.next_in)return i;for(e=4==e?o:0,n=o;;)switch(t.istate.mode){case 0:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.next_in[t.next_in_index++]))){t.istate.mode=s,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=s,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,a=255&t.next_in[t.next_in_index++],((t.istate.method<<8)+a)%31!=0){t.istate.mode=s,t.msg="incorrect header check",t.istate.marker=5;break}if(!(32&a)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=3;case 3:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=4;case 4:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=5;case 5:return 0==t.avail_in?n:(n=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.adler=t.istate.need,t.istate.mode=6,2);case 6:return t.istate.mode=s,t.msg="need dictionary",t.istate.marker=0,i;case 7:if((n=t.istate.blocks.proc(t,n))==r){t.istate.mode=s,t.istate.marker=0;break}if(0==n&&(n=e),1!=n)return n;if(n=e,t.istate.blocks.reset(t,t.istate.was),0!=t.istate.nowrap){t.istate.mode=12;break}t.istate.mode=8;case 8:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.next_in[t.next_in_index++])<<24&4278190080,t.istate.mode=9;case 9:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<16&16711680,t.istate.mode=10;case 10:if(0==t.avail_in)return n;n=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.next_in[t.next_in_index++])<<8&65280,t.istate.mode=11;case 11:if(0==t.avail_in)return n;if(n=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.next_in[t.next_in_index++],t.istate.was[0]!=t.istate.need){t.istate.mode=s,t.msg="incorrect data check",t.istate.marker=5;break}t.istate.mode=12;case 12:return 1;case s:return r;default:return i}},g.prototype.inflateSetDictionary=function(t,e,n){var o=0,s=n;return null==t||null==t.istate||6!=t.istate.mode?i:t._adler.adler32(1,e,0,n)!=t.adler?r:(t.adler=t._adler.adler32(0,null,0,0),s>=1<<t.istate.wbits&&(o=n-(s=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,o,s),t.istate.mode=7,0)};var m=[0,0,255,255];g.prototype.inflateSync=function(t){var e,n,a,l,c;if(null==t||null==t.istate)return i;if(t.istate.mode!=s&&(t.istate.mode=s,t.istate.marker=0),0==(e=t.avail_in))return o;for(n=t.next_in_index,a=t.istate.marker;0!=e&&a<4;)t.next_in[n]==m[a]?a++:a=0!=t.next_in[n]?0:4-a,n++,e--;return t.total_in+=n-t.next_in_index,t.next_in_index=n,t.avail_in=e,t.istate.marker=a,4!=a?r:(l=t.total_in,c=t.total_out,this.inflateReset(t),t.total_in=l,t.total_out=c,t.istate.mode=7,0)},g.prototype.inflateSyncPoint=function(t){return null==t||null==t.istate||null==t.istate.blocks?i:t.istate.blocks.sync_point()};var v=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function y(t,e,n){this.hufts=new Int32Array(4320),this.window=new Uint8Array(n),this.end=n,this.checkfn=e,this.mode=0,this.reset(t,null),this.left=0,this.table=0,this.index=0,this.blens=null,this.bb=new Int32Array(1),this.tb=new Int32Array(1),this.codes=new b,this.last=0,this.bitk=0,this.bitb=0,this.read=0,this.write=0,this.check=0,this.inftree=new w}y.prototype.reset=function(t,e){e&&(e[0]=this.check),6==this.mode&&this.codes.free(t),this.mode=0,this.bitk=0,this.bitb=0,this.read=this.write=0,this.checkfn&&(t.adler=this.check=t._adler.adler32(0,null,0,0))},y.prototype.proc=function(t,e){var n,o,l,c,h,u,f;for(c=t.next_in_index,h=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u;;)switch(this.mode){case 0:for(;l<3;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}switch(n=7&o,this.last=1&n,n>>>1){case 0:o>>>=3,o>>>=n=7&(l-=3),l-=n,this.mode=1;break;case 1:x(m=new Int32Array(1),y=new Int32Array(1),b=[],w=[],t),this.codes.init(m[0],y[0],b[0],0,w[0],0,t),o>>>=3,l-=3,this.mode=6;break;case 2:o>>>=3,l-=3,this.mode=3;break;case 3:return o>>>=3,l-=3,this.mode=s,t.msg="invalid block type",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e)}break;case 1:for(;l<32;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if((~o>>>16&65535)!=(65535&o))return this.mode=s,t.msg="invalid stored block lengths",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);this.left=65535&o,o=l=0,this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,write=u,this.inflate_flush(t,e);if(0==f&&(u==end&&0!=read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f&&(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,u==this.end&&0!=this.read&&(f=(u=0)<this.read?this.read-u-1:this.end-u),0==f)))return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);if(e=0,(n=this.left)>h&&(n=h),n>f&&(n=f),S(t.next_in,c,this.window,u,n),c+=n,h-=n,u+=n,f-=n,0!=(this.left-=n))break;this.mode=0!=this.last?7:0;break;case 3:for(;l<14;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(this.table=n=16383&o,(31&n)>29||(n>>5&31)>29)return this.mode=9,t.msg="too many length or distance symbols",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);if(n=258+(31&n)+(n>>5&31),null==this.blens||this.blens.length<n)this.blens=new Int32Array(n);else for(var p=0;p<n;p++)this.blens[p]=0;o>>>=14,l-=14,this.index=0,mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;l<3;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}this.blens[v[this.index++]]=7&o,o>>>=3,l-=3}for(;this.index<19;)this.blens[v[this.index++]]=0;if(this.bb[0]=7,0!=(n=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,t)))return(e=n)==r&&(this.blens=null,this.mode=9),this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,write=u,this.inflate_flush(t,e);this.index=0,this.mode=5;case 5:for(;n=this.table,this.index<258+(31&n)+(n>>5&31);){var d,g;for(n=this.bb[0];l<n;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(n=this.hufts[3*(this.tb[0]+(o&a[n]))+1],(g=this.hufts[3*(this.tb[0]+(o&a[n]))+2])<16)o>>>=n,l-=n,this.blens[this.index++]=g;else{for(p=18==g?7:g-14,d=18==g?11:3;l<n+p;){if(0==h)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);e=0,h--,o|=(255&t.next_in[c++])<<l,l+=8}if(l-=n,d+=(o>>>=n)&a[p],o>>>=p,l-=p,(p=this.index)+d>258+(31&(n=this.table))+(n>>5&31)||16==g&&p<1)return this.blens=null,this.mode=9,t.msg="invalid bit length repeat",e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);g=16==g?this.blens[p-1]:0;do{this.blens[p++]=g}while(0!=--d);this.index=p}}this.tb[0]=-1;var m=new Int32Array(1),y=new Int32Array(1),b=new Int32Array(1),w=new Int32Array(1);if(m[0]=9,y[0]=6,n=this.table,0!=(n=this.inftree.inflate_trees_dynamic(257+(31&n),1+(n>>5&31),this.blens,m,y,b,w,this.hufts,t)))return n==r&&(this.blens=null,this.mode=s),e=n,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);this.codes.init(m[0],y[0],this.hufts,b[0],this.hufts,w[0],t),this.mode=6;case 6:if(this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,1!=(e=this.codes.proc(this,t,e)))return this.inflate_flush(t,e);if(e=0,this.codes.free(t),c=t.next_in_index,h=t.avail_in,o=this.bitb,l=this.bitk,f=(u=this.write)<this.read?this.read-u-1:this.end-u,0==this.last){this.mode=0;break}this.mode=7;case 7:if(this.write=u,e=this.inflate_flush(t,e),f=(u=this.write)<this.read?this.read-u-1:this.end-u,this.read!=this.write)return this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);mode=12;case 8:return e=1,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);case 9:return e=r,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e);default:return e=i,this.bitb=o,this.bitk=l,t.avail_in=h,t.total_in+=c-t.next_in_index,t.next_in_index=c,this.write=u,this.inflate_flush(t,e)}},y.prototype.free=function(t){this.reset(t,null),this.window=null,this.hufts=null},y.prototype.set_dictionary=function(t,e,n){S(t,e,window,0,n),this.read=this.write=n},y.prototype.sync_point=function(){return 1==this.mode},y.prototype.inflate_flush=function(t,e){var n,i,r;return i=t.next_out_index,(n=((r=this.read)<=this.write?this.write:this.end)-r)>t.avail_out&&(n=t.avail_out),0!=n&&e==o&&(e=0),t.avail_out-=n,t.total_out+=n,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,n)),S(this.window,r,t.next_out,i,n),i+=n,(r+=n)==this.end&&(r=0,this.write==this.end&&(this.write=0),(n=this.write-r)>t.avail_out&&(n=t.avail_out),0!=n&&e==o&&(e=0),t.avail_out-=n,t.total_out+=n,null!=this.checkfn&&(t.adler=this.check=t._adler.adler32(this.check,this.window,r,n)),S(this.window,r,t.next_out,i,n),i+=n,r+=n),t.next_out_index=i,this.read=r,e};function b(){}function w(){}function x(t,e,n,i,r){return t[0]=9,e[0]=5,n[0]=l,i[0]=c,0}b.prototype.init=function(t,e,n,i,r,o,s){this.mode=0,this.lbits=t,this.dbits=e,this.ltree=n,this.ltree_index=i,this.dtree=r,this.dtree_index=o,this.tree=null},b.prototype.proc=function(t,e,n){var o,s,l,c,h,u,f,p=0,d=0,g=0;for(g=e.next_in_index,c=e.avail_in,p=t.bitb,d=t.bitk,u=(h=t.write)<t.read?t.read-h-1:t.end-h;;)switch(this.mode){case 0:if(u>=258&&c>=10&&(t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,n=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,t,e),g=e.next_in_index,c=e.avail_in,p=t.bitb,d=t.bitk,u=(h=t.write)<t.read?t.read-h-1:t.end-h,0!=n)){this.mode=1==n?7:9;break}this.need=this.lbits,this.tree=this.ltree,this.tree_index=this.ltree_index,this.mode=1;case 1:for(o=this.need;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>>=this.tree[s+1],d-=this.tree[s+1],0==(l=this.tree[s])){this.lit=this.tree[s+2],this.mode=6;break}if(16&l){this.get=15&l,this.len=this.tree[s+2],this.mode=2;break}if(!(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}if(32&l){this.mode=7;break}return this.mode=9,e.msg="invalid literal/length code",n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 2:for(o=this.get;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}this.len+=p&a[o],p>>=o,d-=o,this.need=this.dbits,this.tree=this.dtree,this.tree_index=this.dtree_index,this.mode=3;case 3:for(o=this.need;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}if(s=3*(this.tree_index+(p&a[o])),p>>=this.tree[s+1],d-=this.tree[s+1],16&(l=this.tree[s])){this.get=15&l,this.dist=this.tree[s+2],this.mode=4;break}if(!(64&l)){this.need=l,this.tree_index=s/3+this.tree[s+2];break}return this.mode=9,e.msg="invalid distance code",n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 4:for(o=this.get;d<o;){if(0==c)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,c--,p|=(255&e.next_in[g++])<<d,d+=8}this.dist+=p&a[o],p>>=o,d-=o,this.mode=5;case 5:for(f=h-this.dist;f<0;)f+=t.end;for(;0!=this.len;){if(0==u&&(h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u&&(t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);t.window[h++]=t.window[f++],u--,f==t.end&&(f=0),this.len--}this.mode=0;break;case 6:if(0==u&&(h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u&&(t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,h==t.end&&0!=t.read&&(u=(h=0)<t.read?t.read-h-1:t.end-h),0==u)))return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);n=0,t.window[h++]=this.lit,u--,this.mode=0;break;case 7:if(d>7&&(d-=8,c++,g--),t.write=h,n=t.inflate_flush(e,n),u=(h=t.write)<t.read?t.read-h-1:t.end-h,t.read!=t.write)return t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);this.mode=8;case 8:return n=1,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);case 9:return n=r,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n);default:return n=i,t.bitb=p,t.bitk=d,e.avail_in=c,e.total_in+=g-e.next_in_index,e.next_in_index=g,t.write=h,t.inflate_flush(e,n)}},b.prototype.free=function(t){},b.prototype.inflate_fast=function(t,e,n,i,o,s,l,c){var h,u,f,p,d,g,m,v,y,b,w,x,_,k,T,C;m=c.next_in_index,v=c.avail_in,d=l.bitb,g=l.bitk,b=(y=l.write)<l.read?l.read-y-1:l.end-y,w=a[t],x=a[e];do{for(;g<20;)v--,d|=(255&c.next_in[m++])<<g,g+=8;if(0!=(p=(u=n)[C=3*((f=i)+(h=d&w))]))for(;;){if(d>>=u[C+1],g-=u[C+1],16&p){for(p&=15,_=u[C+2]+(d&a[p]),d>>=p,g-=p;g<15;)v--,d|=(255&c.next_in[m++])<<g,g+=8;for(p=(u=o)[C=3*((f=s)+(h=d&x))];;){if(d>>=u[C+1],g-=u[C+1],16&p){for(p&=15;g<p;)v--,d|=(255&c.next_in[m++])<<g,g+=8;if(k=u[C+2]+(d&a[p]),d>>=p,g-=p,b-=_,y>=k)T=y-k,l.window[y++]=l.window[T++],l.window[y++]=l.window[T++],_-=2;else{T=y-k;do{T+=l.end}while(T<0);if(_>(p=l.end-T)){if(_-=p,y-T>0&&p>y-T)do{l.window[y++]=l.window[T++]}while(0!=--p);else S(l.window,T,l.window,y,p),y+=p,T+=p,p=0;T=0}}do{l.window[y++]=l.window[T++]}while(0!=--_);break}if(64&p)return c.msg="invalid distance code",v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,r;h+=u[C+2],p=u[C=3*(f+(h+=d&a[p]))]}break}if(64&p)return 32&p?(v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,1):(c.msg="invalid literal/length code",v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,r);if(h+=u[C+2],0==(p=u[C=3*(f+(h+=d&a[p]))])){d>>=u[C+1],g-=u[C+1],l.window[y++]=u[C+2],b--;break}}else d>>=u[C+1],g-=u[C+1],l.window[y++]=u[C+2],b--}while(b>=258&&v>=10);return v+=_=g>>3<(_=c.avail_in-v)?g>>3:_,m-=_,g-=_<<3,l.bitb=d,l.bitk=g,c.avail_in=v,c.total_in+=m-c.next_in_index,c.next_in_index=m,l.write=y,0},w.prototype.huft_build=function(t,e,i,s,a,l,c,h,u,f,p){var d,g,m,v,y,b,w,x,_,k,T,C,O,A,E;k=0,y=i;do{this.c[t[e+k]]++,k++,y--}while(0!=y);if(this.c[0]==i)return c[0]=-1,h[0]=0,0;for(x=h[0],b=1;b<=n&&0==this.c[b];b++);for(w=b,x<b&&(x=b),y=n;0!=y&&0==this.c[y];y--);for(m=y,x>y&&(x=y),h[0]=x,A=1<<b;b<y;b++,A<<=1)if((A-=this.c[b])<0)return r;if((A-=this.c[y])<0)return r;for(this.c[y]+=A,this.x[1]=b=0,k=1,O=2;0!=--y;)this.x[O]=b+=this.c[k],O++,k++;y=0,k=0;do{0!=(b=t[e+k])&&(this.v[this.x[b]++]=y),k++}while(++y<i);for(i=this.x[m],this.x[0]=y=0,k=0,v=-1,C=-x,this.u[0]=0,T=0,E=0;w<=m;w++)for(d=this.c[w];0!=d--;){for(;w>C+x;){if(v++,E=(E=m-(C+=x))>x?x:E,(g=1<<(b=w-C))>d+1&&(g-=d+1,O=w,b<E))for(;++b<E&&!((g<<=1)<=this.c[++O]);)g-=this.c[O];if(E=1<<b,this.hn[0]+E>1440)return r;this.u[v]=T=this.hn[0],this.hn[0]+=E,0!=v?(this.x[v]=y,this.r[0]=b,this.r[1]=x,b=y>>>C-x,this.r[2]=T-this.u[v-1]-b,S(this.r,0,u,3*(this.u[v-1]+b),3)):c[0]=T}for(this.r[1]=w-C,k>=i?this.r[0]=192:p[k]<s?(this.r[0]=this.v[k]<256?0:96,this.r[2]=this.v[k++]):(this.r[0]=l[this.v[k]-s]+16+64,this.r[2]=a[this.v[k++]-s]),g=1<<w-C,b=y>>>C;b<E;b+=g)S(this.r,0,u,3*(T+b),3);for(b=1<<w-1;0!=(y&b);b>>>=1)y^=b;for(y^=b,_=(1<<C)-1;(y&_)!=this.x[v];)v--,_=(1<<(C-=x))-1}return 0!=A&&1!=m?o:0},w.prototype.inflate_trees_bits=function(t,e,n,i,s){var a;return this.initWorkArea(19),this.hn[0]=0,(a=this.huft_build(t,0,19,19,null,null,n,e,i,this.hn,this.v))==r?s.msg="oversubscribed dynamic bit lengths tree":a!=o&&0!=e[0]||(s.msg="incomplete dynamic bit lengths tree",a=r),a},w.prototype.inflate_trees_dynamic=function(t,e,n,i,s,a,l,c,d){var g;return this.initWorkArea(288),this.hn[0]=0,0!=(g=this.huft_build(n,0,t,257,h,u,a,i,c,this.hn,this.v))||0==i[0]?(g==r?d.msg="oversubscribed literal/length tree":-4!=g&&(d.msg="incomplete literal/length tree",g=r),g):(this.initWorkArea(288),0!=(g=this.huft_build(n,t,e,0,f,p,l,s,c,this.hn,this.v))||0==s[0]&&t>257?(g==r?d.msg="oversubscribed distance tree":g==o?(d.msg="incomplete distance tree",g=r):-4!=g&&(d.msg="empty distance tree with lengths",g=r),g):0)},w.prototype.initWorkArea=function(t){null==this.hn&&(this.hn=new Int32Array(1),this.v=new Int32Array(t),this.c=new Int32Array(16),this.r=new Int32Array(3),this.u=new Int32Array(n),this.x=new Int32Array(16)),this.v.length<t&&(this.v=new Int32Array(t));for(var e=0;e<t;e++)this.v[e]=0;for(e=0;e<16;e++)this.c[e]=0;for(e=0;e<3;e++)this.r[e]=0;S(this.c,0,this.u,0,n),S(this.c,0,this.x,0,16)};var _="function"==typeof new Uint8Array(1).subarray;function S(t,e,n,i,r){if(0!=r){if(!t)throw"Undef src";if(!n)throw"Undef dest";0==e&&r==t.length?k(t,n,i):_?k(t.subarray(e,e+r),n,i):1==t.BYTES_PER_ELEMENT&&r>100?k(new Uint8Array(t.buffer,t.byteOffset+e,r),n,i):function(t,e,n,i,r){for(var o=0;o<r;++o)n[i+o]=t[e+o]}(t,e,n,i,r)}}function k(t,e,n){e.set(t,n)}e.A=function(t,e,n,i){t=e?n?new Uint8Array(t,e,n):new Uint8Array(t,e,t.byteLength-e):new Uint8Array(t);var r=new d;r.inflateInit(15,!0),r.next_in=t,r.next_in_index=0,r.avail_in=t.length;for(var s=[],a=0;;){var l=new Uint8Array(32e3);r.next_out=l,r.next_out_index=0,r.avail_out=l.length;var c=r.inflate(0);if(0!=c&&1!=c&&c!=o)throw r.msg;if(0!=r.avail_out){var h=new Uint8Array(l.length-r.avail_out);S(l,0,h,0,l.length-r.avail_out),l=h}if(s.push(l),a+=l.length,1==c||c==o)break}if(i&&(i[0]=(e||0)+r.next_in_index),1==s.length)return s[0].buffer;for(var u=new Uint8Array(a),f=0,p=0;p<s.length;++p){var g=s[p];S(g,0,u,f,g.length),f+=g.length}return u.buffer}},5932:function(t,e){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}var i=function(t,e,n,i,r,o){var s="".concat(e).concat(n),a=r["".concat(s,".once")]||[],l=(r[s]||[]).concat(a,"function"==typeof i[s]?i[s]:[]);a.length&&delete r["".concat(s,".once")],l.forEach(function(e){return e.apply(t,o)})},r=function(t,e,r,o,s){if(!e.functions[t]&&!/^(before|after)/.test(t)){var a="".concat(t.substring(0,1).toUpperCase()).concat(t.substring(1)),l=s.for,c=!!l&&"".concat(s.label,".").concat(t),h="time"===l||"object"===n(l)&&l[t];e.functions[t]=e[t].bind(e),e[t]=function(){var n,s,u,f,p=(null===(n=e._currentConfig||(null===(s=e.track)||void 0===s?void 0:s._currentConfig))||void 0===n?void 0:n.func)||{};!0===l?console.log(c):h&&console.time("time: ".concat(c));for(var d=arguments.length,g=new Array(d),m=0;m<d;m++)g[m]=arguments[m];(i(e,"before",a,r,o,g),p[t])?(e.base=e.functions[t]||function(){},u=p[t].apply(e,g)):u=(f=e.functions)[t].apply(f,g);return i(e,"after",a,r,o,g),h&&console.timeEnd("time: ".concat(c)),u}}};e.A=function(t,e){t.functions=t.functions||{};var n="Genoverse"===e,i=n||"Track"===e?t:t.track,o=n?t.events.browser:t.browser.events.tracks,s={for:i.debug,label:!!i.debug&&[n?"Genoverse":i.id||i.name||"Track",t!==i&&e].filter(Boolean).join(".")};for(var a in t)"function"!=typeof t[a]||"function"==typeof t[a].ancestor||a.match(/^(base|extend|constructor|controller|model|view|on|once|prop|loadPlugins|loadGenome|jQuery)$/)||r(a,t,i,o,s)}},3006:function(t){var e;t.exports=((e=function(){}).extend=function(t,n){var i=e.prototype.extend;e._prototyping=!0;var r=new this;i.call(r,t),r.base=function(){},delete e._prototyping;var o=r.constructor,s=r.constructor=function(){if(!e._prototyping)if(this._constructing||this.constructor===s)this._constructing=!0,o.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||i).call(arguments[0],r)};return s.ancestor=this,s.extend=this.extend,s.forEach=this.forEach,s.implement=this.implement,s.prototype=r,s.toString=this.toString,s.valueOf=function(t){return"object"===t?s:o.valueOf()},i.call(s,n),"function"==typeof s.init&&s.init(),s},e.prototype={extend:function(t,n){if(arguments.length>1){var i=this[t];if(i&&"function"==typeof n&&(!i.valueOf||i.valueOf()!==n.valueOf())&&/\bbase\b/.test(n)){var r=n.valueOf();n=function(){var t=this.base||e.prototype.base;this.base=i;var n=r.apply(this,arguments);return this.base=t,n},n.valueOf=function(t){return"object"===t?n:r},n.toString=e.toString}this[t]=n}else if(t){var o=e.prototype.extend;e._prototyping||"function"==typeof this||(o=this.extend||o);for(var s={toSource:null},a=["constructor","toString","valueOf"],l=e._prototyping?0:1;l<a.length;l++){var c=a[l];t[c]!==s[c]&&o.call(this,c,t[c])}for(var h in t)s[h]||o.call(this,h,t[h])}return this}},e=e.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(t,e,n){for(var i in t)void 0===this.prototype[i]&&e.call(n,t[i],i,t)},implement:function(){for(var t=0;t<arguments.length;t++)"function"==typeof arguments[t]?arguments[t](this.prototype):this.prototype.extend(arguments[t]);return this},toString:function(){return String(this.valueOf())}}),e)},3569:function(t){!function(){t.exports=function(t){"use strict";function e(t,e){return"object"==typeof t&&null!==t&&(t.constructor===e||Object.prototype.toString.call(t)==="[object "+e.name+"]")}function n(t,n){return!n&&e(t,Array)?t:Array.prototype.slice.call(t)}function i(t,e){return void 0!==t?t:e}function r(t,n,o,s){if(r.is(t)){var a=t.slice(n,n+o);return a._littleEndian=i(s,a._littleEndian),a}if(!r.is(this))return new r(t,n,o,s);if(this.buffer=t=r.wrapBuffer(t),this._isArrayBuffer=c.ArrayBuffer&&e(t,ArrayBuffer),this._isPixelData=!1,this._isDataView=c.DataView&&this._isArrayBuffer,this._isNodeBuffer=c.NodeBuffer&&e(t,Buffer),!this._isNodeBuffer&&!this._isArrayBuffer&&!e(t,Array))throw new TypeError("jDataView buffer has an incompatible type");this._littleEndian=!!s;var l="byteLength"in t?t.byteLength:t.length;this.byteOffset=n=i(n,0),this.byteLength=o=i(o,l-n),this._offset=this._bitOffset=0,this._isDataView?this._view=new DataView(t,n,o):this._checkBounds(n,o,l),this._engineAction=this._isDataView?this._dataViewAction:this._isNodeBuffer?this._nodeBufferAction:this._isArrayBuffer?this._arrayBufferAction:this._arrayAction}function o(t){if(c.NodeBuffer)return new Buffer(t,"binary");for(var e=new(c.ArrayBuffer?Uint8Array:Array)(t.length),n=0,i=t.length;i>n;n++)e[n]=255&t.charCodeAt(n);return e}function s(t){return t>=0&&31>t?1<<t:s[t]||(s[t]=Math.pow(2,t))}function a(t,e){this.lo=t,this.hi=e}function l(){a.apply(this,arguments)}var c={NodeBuffer:"Buffer"in t,DataView:"DataView"in t,ArrayBuffer:"ArrayBuffer"in t,PixelData:!1},h=t.TextEncoder,u=t.TextDecoder;c.NodeBuffer&&function(t){try{t.writeFloatLE(1/0,0)}catch(t){c.NodeBuffer=!1}}(new Buffer(4));var f={Int8:1,Int16:2,Int32:4,Uint8:1,Uint16:2,Uint32:4,Float32:4,Float64:8};r.wrapBuffer=function(t){switch(typeof t){case"number":if(c.NodeBuffer)(t=new Buffer(t)).fill(0);else if(c.ArrayBuffer)t=new Uint8Array(t).buffer;else{t=new Array(t);for(var i=0;i<t.length;i++)t[i]=0}return t;case"string":t=o(t);default:return"length"in t&&!(c.NodeBuffer&&e(t,Buffer)||c.ArrayBuffer&&e(t,ArrayBuffer))&&(c.NodeBuffer?t=new Buffer(t):c.ArrayBuffer?e(t,ArrayBuffer)||(e(t=new Uint8Array(t).buffer,ArrayBuffer)||(t=new Uint8Array(n(t,!0)).buffer)):t=n(t)),t}},r.is=function(t){return t&&t.jDataView},r.from=function(){return new r(arguments)},r.Uint64=a,a.prototype={valueOf:function(){return this.lo+s(32)*this.hi},toString:function(){return Number.prototype.toString.apply(this.valueOf(),arguments)}},a.fromNumber=function(t){var e=Math.floor(t/s(32));return new a(t-e*s(32),e)},r.Int64=l,l.prototype="create"in Object?Object.create(a.prototype):new a,l.prototype.valueOf=function(){return this.hi<s(31)?a.prototype.valueOf.apply(this,arguments):-(s(32)-this.lo+s(32)*(s(32)-1-this.hi))},l.fromNumber=function(t){var e,n;if(t>=0){var i=a.fromNumber(t);e=i.lo,n=i.hi}else e=t-(n=Math.floor(t/s(32)))*s(32),n+=s(32);return new l(e,n)};var p=r.prototype={compatibility:c,jDataView:!0,_checkBounds:function(t,e,n){if("number"!=typeof t)throw new TypeError("Offset is not a number.");if("number"!=typeof e)throw new TypeError("Size is not a number.");if(0>e)throw new RangeError("Length is negative.");if(0>t||t+e>i(n,this.byteLength))throw new RangeError("Offsets are out of bounds.")},_action:function(t,e,n,r,o){return this._engineAction(t,e,i(n,this._offset),i(r,this._littleEndian),o)},_dataViewAction:function(t,e,n,i,r){return this._offset=n+f[t],e?this._view["get"+t](n,i):this._view["set"+t](n,r,i)},_arrayBufferAction:function(e,n,r,o,s){var a,l=f[e],c=t[e+"Array"];if(o=i(o,this._littleEndian),1===l||(this.byteOffset+r)%l===0&&o)return a=new c(this.buffer,this.byteOffset+r,1),this._offset=r+l,n?a[0]:a[0]=s;var h=new Uint8Array(n?this.getBytes(l,r,o,!0):l);return a=new c(h.buffer,0,1),n?a[0]:(a[0]=s,void this._setBytes(r,h,o))},_arrayAction:function(t,e,n,i,r){return e?this["_get"+t](n,i):this["_set"+t](n,r,i)},_getBytes:function(t,e,r){r=i(r,this._littleEndian),e=i(e,this._offset),t=i(t,this.byteLength-e),this._checkBounds(e,t),e+=this.byteOffset,this._offset=e-this.byteOffset+t;var o=this._isArrayBuffer?new Uint8Array(this.buffer,e,t):(this.buffer.slice||Array.prototype.slice).call(this.buffer,e,e+t);return r||1>=t?o:n(o).reverse()},getBytes:function(t,e,r,o){var s=this._getBytes(t,e,i(r,!0));return o?n(s):s},_setBytes:function(t,e,r){var o=e.length;if(0!==o){if(r=i(r,this._littleEndian),t=i(t,this._offset),this._checkBounds(t,o),!r&&o>1&&(e=n(e,!0).reverse()),t+=this.byteOffset,this._isArrayBuffer)new Uint8Array(this.buffer,t,o).set(e);else if(this._isNodeBuffer)new Buffer(e).copy(this.buffer,t);else for(var s=0;o>s;s++)this.buffer[t+s]=e[s];this._offset=t-this.byteOffset+o}},setBytes:function(t,e,n){this._setBytes(t,e,i(n,!0))},getString:function(t,e,n){if(this._isNodeBuffer)return e=i(e,this._offset),t=i(t,this.byteLength-e),this._checkBounds(e,t),this._offset=e+t,this.buffer.toString(n||"binary",this.byteOffset+e,this.byteOffset+this._offset);var r=this._getBytes(t,e,!0);if(n="utf8"===n?"utf-8":n||"binary",u&&"binary"!==n)return new u(n).decode(this._isArrayBuffer?r:new Uint8Array(r));var o="";t=r.length;for(var s=0;t>s;s++)o+=String.fromCharCode(r[s]);return"utf-8"===n&&(o=decodeURIComponent(escape(o))),o},setString:function(t,e,n){if(this._isNodeBuffer)return t=i(t,this._offset),this._checkBounds(t,e.length),void(this._offset=t+this.buffer.write(e,this.byteOffset+t,n||"binary"));var r;n="utf8"===n?"utf-8":n||"binary",h&&"binary"!==n?r=new h(n).encode(e):("utf-8"===n&&(e=unescape(encodeURIComponent(e))),r=o(e)),this._setBytes(t,r,!0)},getChar:function(t){return this.getString(1,t)},setChar:function(t,e){this.setString(t,e)},tell:function(){return this._offset},seek:function(t){return this._checkBounds(t,0),this._offset=t},skip:function(t){return this.seek(this._offset+t)},slice:function(t,e,n){function o(t,e){return 0>t?t+e:t}return t=o(t,this.byteLength),e=o(i(e,this.byteLength),this.byteLength),n?new r(this.getBytes(e-t,t,!0,!0),void 0,void 0,this._littleEndian):new r(this.buffer,this.byteOffset+t,e-t,this._littleEndian)},alignBy:function(t){return this._bitOffset=0,1!==i(t,1)?this.skip(t-(this._offset%t||t)):this._offset},_getFloat64:function(t,e){var n=this._getBytes(8,t,e),i=1-2*(n[7]>>7),r=((n[7]<<1&255)<<3|n[6]>>4)-1023,o=(15&n[6])*s(48)+n[5]*s(40)+n[4]*s(32)+n[3]*s(24)+n[2]*s(16)+n[1]*s(8)+n[0];return 1024===r?0!==o?NaN:1/0*i:-1023===r?i*o*s(-1074):i*(1+o*s(-52))*s(r)},_getFloat32:function(t,e){var n=this._getBytes(4,t,e),i=1-2*(n[3]>>7),r=(n[3]<<1&255|n[2]>>7)-127,o=(127&n[2])<<16|n[1]<<8|n[0];return 128===r?0!==o?NaN:1/0*i:-127===r?i*o*s(-149):i*(1+o*s(-23))*s(r)},_get64:function(t,e,n){n=i(n,this._littleEndian),e=i(e,this._offset);for(var r=n?[0,4]:[4,0],o=0;2>o;o++)r[o]=this.getUint32(e+r[o],n);return this._offset=e+8,new t(r[0],r[1])},getInt64:function(t,e){return this._get64(l,t,e)},getUint64:function(t,e){return this._get64(a,t,e)},_getInt32:function(t,e){var n=this._getBytes(4,t,e);return n[3]<<24|n[2]<<16|n[1]<<8|n[0]},_getUint32:function(t,e){return this._getInt32(t,e)>>>0},_getInt16:function(t,e){return this._getUint16(t,e)<<16>>16},_getUint16:function(t,e){var n=this._getBytes(2,t,e);return n[1]<<8|n[0]},_getInt8:function(t){return this._getUint8(t)<<24>>24},_getUint8:function(t){return this._getBytes(1,t)[0]},_getBitRangeData:function(t,e){var n=(i(e,this._offset)<<3)+this._bitOffset,r=n+t,o=n>>>3,s=r+7>>>3,a=this._getBytes(s-o,o,!0),l=0;(this._bitOffset=7&r)&&(this._bitOffset-=8);for(var c=0,h=a.length;h>c;c++)l=l<<8|a[c];return{start:o,bytes:a,wideValue:l}},getSigned:function(t,e){var n=32-t;return this.getUnsigned(t,e)<<n>>n},getUnsigned:function(t,e){var n=this._getBitRangeData(t,e).wideValue>>>-this._bitOffset;return 32>t?n&~(-1<<t):n},_setBinaryFloat:function(t,e,n,i,r){var o,a,l=0>e?1:0,c=~(-1<<i-1),h=1-c;0>e&&(e=-e),0===e?(o=0,a=0):isNaN(e)?(o=2*c+1,a=1):1/0===e?(o=2*c+1,a=0):(o=Math.floor(Math.log(e)/Math.LN2))>=h&&c>=o?(a=Math.floor((e*s(-o)-1)*s(n)),o+=c):(a=Math.floor(e/s(h-n)),o=0);for(var u=[];n>=8;)u.push(a%256),a=Math.floor(a/256),n-=8;for(o=o<<n|a,i+=n;i>=8;)u.push(255&o),o>>>=8,i-=8;u.push(l<<i|o),this._setBytes(t,u,r)},_setFloat32:function(t,e,n){this._setBinaryFloat(t,e,23,8,n)},_setFloat64:function(t,e,n){this._setBinaryFloat(t,e,52,11,n)},_set64:function(t,e,n,r){"object"!=typeof n&&(n=t.fromNumber(n)),r=i(r,this._littleEndian),e=i(e,this._offset);var o=r?{lo:0,hi:4}:{lo:4,hi:0};for(var s in o)this.setUint32(e+o[s],n[s],r);this._offset=e+8},setInt64:function(t,e,n){this._set64(l,t,e,n)},setUint64:function(t,e,n){this._set64(a,t,e,n)},_setUint32:function(t,e,n){this._setBytes(t,[255&e,e>>>8&255,e>>>16&255,e>>>24],n)},_setUint16:function(t,e,n){this._setBytes(t,[255&e,e>>>8&255],n)},_setUint8:function(t,e){this._setBytes(t,[255&e])},setUnsigned:function(t,e,n){var i=this._getBitRangeData(n,t),r=i.wideValue,o=i.bytes;r&=~(~(-1<<n)<<-this._bitOffset),r|=(32>n?e&~(-1<<n):e)<<-this._bitOffset;for(var s=o.length-1;s>=0;s--)o[s]=255&r,r>>>=8;this._setBytes(i.start,o,!0)}},d={Int8:"Int8",Int16:"Int16",Int32:"Int32",Uint8:"UInt8",Uint16:"UInt16",Uint32:"UInt32",Float32:"Float",Float64:"Double"};for(var g in p._nodeBufferAction=function(t,e,n,i,r){this._offset=n+f[t];var o=d[t]+("Int8"===t||"Uint8"===t?"":i?"LE":"BE");return n+=this.byteOffset,e?this.buffer["read"+o](n):this.buffer["write"+o](r,n)},f)!function(t){p["get"+t]=function(e,n){return this._action(t,!0,e,n)},p["set"+t]=function(e,n,i){this._action(t,!1,e,i,n)}}(g);for(var m in p._setInt32=p._setUint32,p._setInt16=p._setUint16,p._setInt8=p._setUint8,p.setSigned=p.setUnsigned,p)"set"===m.slice(0,3)&&function(t){p["write"+t]=function(){Array.prototype.unshift.call(arguments,void 0),this["set"+t].apply(this,arguments)}}(m.slice(3));return r}(this)}()},6454:function(t,e,n){!function(){"undefined"==typeof jDataView&&(jDataView=n(3569));var e;function i(t,e){if(!(this instanceof arguments.callee))throw new Error("Constructor may not be called as a function");t instanceof jDataView||(t=new jDataView(t,void 0,void 0,!0)),this.view=t,this.view.seek(0),this.structure=function(t){for(var e=1;e<arguments.length;++e){var n=arguments[e];for(var i in n)void 0!==n[i]&&(t[i]=n[i])}return t}({},i.prototype.structure,e)}function r(t){return"function"==typeof t&&(t=t.call(this)),t}i.prototype.structure={uint8:function(){return this.view.getUint8()},uint16:function(){return this.view.getUint16()},uint32:function(){return this.view.getUint32()},int8:function(){return this.view.getInt8()},int16:function(){return this.view.getInt16()},int32:function(){return this.view.getInt32()},float32:function(){return this.view.getFloat32()},float64:function(){return this.view.getFloat64()},char:function(){return this.view.getChar()},string:function(t){return this.view.getString(r.call(this,t))},array:function(t,e){e=r.call(this,e);for(var n=[],i=0;i<e;++i)n.push(this.parse(t));return n},seek:function(t,e){if(t=r.call(this,t),e instanceof Function){var n=this.view.tell();this.view.seek(t);var i=e.call(this);return this.view.seek(n),i}return this.view.seek(t)},tell:function(){return this.view.tell()},skip:function(t){return t=r.call(this,t),this.view.seek(this.view.tell()+t),t}},i.prototype.seek=i.prototype.structure.seek,i.prototype.tell=i.prototype.structure.tell,i.prototype.skip=i.prototype.structure.skip,i.prototype.parse=function(t){if(t instanceof Function)return t.apply(this,Array.prototype.slice.call(arguments,1));if("string"==typeof t&&(t=[t]),t instanceof Array){if(!((n=t[0])in this.structure))throw new Error("Missing structure for `"+n+"`");return this.parse.apply(this,[this.structure[n]].concat(t.slice(1)))}if("object"==typeof t){var e={};for(var n in t)this.current=e,e[n]=this.parse(t[n]);return e}throw new Error("Unknown structure type `"+t+"`")},"undefined"!=typeof self?e=self:"undefined"!=typeof window?e=window:void 0!==n.g&&(e=n.g),e.jParser=i,t.exports=i}()},9983:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo(function(e){return function(n){return!!t.data(n,e)}})})})?i.apply(e,r):i)||(t.exports=o)}()},724:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.fn.extend({disableSelection:(e="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(e+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var e})?i.apply(e,r):i)||(t.exports=o)}()},2336:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){return t.ui.plugin={add:function(e,n,i){var r,o=t.ui[e].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(t,e,n,i){var r,o=t.plugins[e];if(o&&(i||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)t.options[o[r][0]]&&o[r][1].apply(t.element,n)}}},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},4224:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){return function(){var e,n=Math.max,i=Math.abs,r=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=t.fn.position;function h(t,e,n){return[parseFloat(t[0])*(l.test(t[0])?e/100:1),parseFloat(t[1])*(l.test(t[1])?n/100:1)]}function u(e,n){return parseInt(t.css(e,n),10)||0}function f(t){return null!=t&&t===t.window}function p(t){var e=t[0];return 9===e.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:f(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var n,i,r=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=r.children()[0];return t("body").append(r),n=o.offsetWidth,r.css("overflow","scroll"),n===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),e=n-i},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),r="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:r?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),i=f(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:!i&&!r?t(e).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return c.apply(this,arguments);var l,f,d,g,m,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),w=t.position.getScrollInfo(b),x=(e.collision||"flip").split(" "),_={};return v=p(y),y[0].preventDefault&&(e.at="left top"),f=v.width,d=v.height,g=v.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,n,i=(e[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",t=s.exec(i[0]),n=s.exec(i[1]),_[this]=[t?t[0]:0,n?n[0]:0],e[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===x.length&&(x[1]=x[0]),"right"===e.at[0]?m.left+=f:"center"===e.at[0]&&(m.left+=f/2),"bottom"===e.at[1]?m.top+=d:"center"===e.at[1]&&(m.top+=d/2),l=h(_.at,f,d),m.left+=l[0],m.top+=l[1],this.each(function(){var r,o,s=t(this),a=s.outerWidth(),c=s.outerHeight(),p=u(this,"marginLeft"),v=u(this,"marginTop"),S=a+p+u(this,"marginRight")+w.width,k=c+v+u(this,"marginBottom")+w.height,T=t.extend({},m),C=h(_.my,s.outerWidth(),s.outerHeight());"right"===e.my[0]?T.left-=a:"center"===e.my[0]&&(T.left-=a/2),"bottom"===e.my[1]?T.top-=c:"center"===e.my[1]&&(T.top-=c/2),T.left+=C[0],T.top+=C[1],r={marginLeft:p,marginTop:v},t.each(["left","top"],function(n,i){t.ui.position[x[n]]&&t.ui.position[x[n]][i](T,{targetWidth:f,targetHeight:d,elemWidth:a,elemHeight:c,collisionPosition:r,collisionWidth:S,collisionHeight:k,offset:[l[0]+C[0],l[1]+C[1]],my:e.my,at:e.at,within:b,elem:s})}),e.using&&(o=function(t){var r=g.left-T.left,o=r+f-a,l=g.top-T.top,h=l+d-c,u={target:{element:y,left:g.left,top:g.top,width:f,height:d},element:{element:s,left:T.left,top:T.top,width:a,height:c},horizontal:o<0?"left":r>0?"right":"center",vertical:h<0?"top":l>0?"bottom":"middle"};f<a&&i(r+o)<f&&(u.horizontal="center"),d<c&&i(l+h)<d&&(u.vertical="middle"),n(i(r),i(o))>n(i(l),i(h))?u.important="horizontal":u.important="vertical",e.using.call(this,t,u)}),s.offset(t.extend(T,{using:o}))})},t.ui.position={fit:{left:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&c<=0?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&l<=0?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=n(t.left-a,t.left)},top:function(t,e){var i,r=e.within,o=r.isWindow?r.scrollTop:r.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&c<=0?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&l<=0?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=n(t.top-a,t.top)}},flip:{left:function(t,e){var n,r,o=e.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-a-l,f="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,d=-2*e.offset[0];h<0?((n=t.left+f+p+d+e.collisionWidth-a-s)<0||n<i(h))&&(t.left+=f+p+d):u>0&&((r=t.left-e.collisionPosition.marginLeft+f+p+d-l)>0||i(r)<u)&&(t.left+=f+p+d)},top:function(t,e){var n,r,o=e.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-a-l,f="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,d=-2*e.offset[1];h<0?((r=t.top+f+p+d+e.collisionHeight-a-s)<0||r<i(h))&&(t.top+=f+p+d):u>0&&((n=t.top-e.collisionPosition.marginTop+f+p+d-l)>0||i(n)<u)&&(t.top+=f+p+d)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},2299:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],void 0===(o="function"==typeof(i=function(t){return t.fn.scrollParent=function(e){var n=this.css("position"),i="absolute"===n,r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return(!i||"static"!==e.css("position"))&&r.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)}})?i.apply(e,r):i)||(t.exports=o)}()},6883:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692)],void 0===(o="function"==typeof(i=function(t){return t.ui=t.ui||{},t.ui.version="1.14.2"})?i.apply(e,r):i)||(t.exports=o)}()},9139:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883)],i=function(t){var e=0,n=Array.prototype.hasOwnProperty,i=Array.prototype.slice;return t.cleanData=function(e){return function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)(i=t._data(r,"events"))&&i.remove&&t(r).triggerHandler("remove");e(n)}}(t.cleanData),t.widget=function(e,n,i){var r,o,s,a={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var c=l+"-"+e;return i||(i=n,n=t.Widget),Array.isArray(i)&&(i=t.extend.apply(null,[{}].concat(i))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},r=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,r,{version:i.version,_proto:t.extend({},i),_childConstructors:[]}),(s=new n).options=t.widget.extend({},s.options),t.each(i,function(t,e){a[t]="function"==typeof e?function(){function i(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,t=e.apply(this,arguments),this._super=n,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),r?(t.each(r._childConstructors,function(e,n){var i=n.prototype;t.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete r._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var r,o,s=i.call(arguments,1),a=0,l=s.length;a<l;a++)for(r in s[a])o=s[a][r],n.call(s[a],r)&&void 0!==o&&(t.isPlainObject(o)?e[r]=t.isPlainObject(e[r])?t.widget.extend({},e[r],o):t.widget.extend({},o):e[r]=o);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each(function(){var n,i=t.data(this,r);return"instance"===o?(l=i,!1):i?"function"!=typeof i[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(n=i[o].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each(function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(n,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),n),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,n){e._removeClass(n,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var i,r,o,s=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(s={},i=e.split("."),e=i.shift(),i.length){for(r=s[e]=t.widget.extend({},this.options[e]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(e=i.pop(),1===arguments.length)return void 0===r[e]?null:r[e];r[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];s[e]=n}return this._setOptions(s),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,i,r;for(n in e)r=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&r&&r.length&&(i=t(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],i=this;function r(){var n=[];e.element.each(function(e,r){t.map(i.classesElementLookup,function(t){return t}).some(function(t){return t.is(r)})||n.push(r)}),i._on(t(n),{remove:"_untrackClassesElement"})}function o(o,s){var a,l;for(l=0;l<o.length;l++)a=i.classesElementLookup[o[l]]||t(),e.add?(r(),a=t(t.uniqueSort(a.get().concat(e.element.get())))):a=t(a.not(e.element).get()),i.classesElementLookup[o[l]]=a,n.push(o[l]),s&&e.classes[o[l]]&&n.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,function(i,r){-1!==t.inArray(e.target,r)&&(n.classesElementLookup[i]=t(r.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof t||null===t,o={extra:r?e:n,keys:r?t:e,element:r?this.element:t,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(e,n,i){var r,o=this;"boolean"!=typeof e&&(i=n,n=e,e=!1),i?(n=r=t(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),t.each(i,function(i,s){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||t.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,h=l[2];h?r.on(c,h,a):n.on(c,a)})},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"==typeof t?i[t]:t).apply(i,arguments)}var i=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,i){var r,o,s=this.options[e];if(i=i||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof s&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,n){t.Widget.prototype["_"+e]=function(i,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?n:r.effect||n:e;"number"==typeof(r=r||{})?r={duration:r}:!0===r&&(r={}),s=!t.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&t.effects&&t.effects.effect[a]?i[e](r):a!==e&&i[a]?i[a](r.duration,r.easing,o):i.queue(function(n){t(this)[e](),o&&o.call(i[0]),n()})}}),t.widget},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},1758:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(9983),n(2336),n(2299),n(6883),n(9139)],void 0===(o="function"==typeof(i=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=this.document[0].activeElement;t(e.target).closest(n).length||t(n).trigger("blur")},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",e)&&n._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper,r=i?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(i=(n=t(r.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=r.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,i,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(c=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(c=n[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[n,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,i){var r=t.extend({},n,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each(function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,r))})},stop:function(e,n,i){var r=t.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,r))})},drag:function(e,n,i){t.each(i.sortables,function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,t.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(r=!1),r})),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",e),i.dropped=o.element,t.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(e),n.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,i){var r=t("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(e,n,i){var r=i.options;r._cursor&&t("body").css("cursor",r._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(e,n,i){var r=i.options;r._opacity&&t(n.helper).css("opacity",r._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,i){var r=i.options,o=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+s.offsetHeight-e.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:e.pageY-i.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+s.offsetWidth-e.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:e.pageX-i.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(e.pageY-t(a).scrollTop()<r.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<r.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(e.pageX-t(a).scrollLeft()<r.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<r.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,i){var r=i.options;i.snapElements=[],t(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var e=t(this),n=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})})},drag:function(e,n,i){var r,o,s,a,l,c,h,u,f,p,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)c=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,u=(h=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>c+g||b<h-g||y>u+g||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(h-b)<=g,o=Math.abs(u-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c}).left)),p=r||o||s||a,"outer"!==d.snapMode&&(r=Math.abs(h-y)<=g,o=Math.abs(u-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:c-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(r||o||s||a||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=r||o||s||a||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,i){var r,o=i.options,s=t.makeArray(t(o.stack)).sort(function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)});s.length&&(r=parseInt(t(s[0]).css("zIndex"),10)||0,t(s).each(function(e){t(this).css("zIndex",r+e)}),this.css("zIndex",r+s.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,i){var r=t(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(e,n,i){var r=i.options;r._zIndex&&t(n.helper).css("zIndex",r._zIndex)}}),t.ui.draggable})?i.apply(e,r):i)||(t.exports=o)}()},3662:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(6883),n(9139)],void 0===(o="function"==typeof(i=function(t){var e=!1;return t(document).on("mouseup",function(){e=!1}),t.widget("ui.mouse",{version:"1.14.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o="string"==typeof this.options.cancel&&t(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),!0):(!0===t.data(n.target,this.widgetName+".preventClickEvent")&&t.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),e=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved&&!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t);return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&t.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,n.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?i.apply(e,r):i)||(t.exports=o)}()},8604:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(724),n(2336),n(6883),n(9139)],i=function(t){return t.widget("ui.resizable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){var i,r=!1,o=t(e).css("overflow");if("hidden"===o)return!1;if("scroll"===o)return!0;if(e[i=n&&"left"===n?"scrollLeft":"scrollTop"]>0)return!0;try{e[i]=1,r=e[i]>0,e[i]=0}catch(t){}return r},_create:function(){var e,n=this.options,i=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,n,i,r,o,s=this.options,a=this;if(this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)r="ui-resizable-"+(e=String.prototype.trim.call(i[n])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var n,i,r,o;for(n in e=e||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=t(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")}),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var n,i,r=!1;for(n in this.handles)((i=t(this.handles[n])[0])===e.target||t.contains(i,e.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(e){var n,i,r,o,s=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(n+=t(s.containment).scrollLeft()||0,i+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this._helper||(o=this._calculateAdjustedElementDimensions(a)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width,height:o.height},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:o.width,height:o.height},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,i,r=this.originalMousePosition,o=this.axis,s=e.pageX-r.left||0,a=e.pageY-r.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[e,s,a]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,i,r,o,s,a,l,c=this.options,h=this;return this._helper&&(r=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:h.sizeDiff.height,o=i?0:h.sizeDiff.width,s={width:h.helper.width()-o,height:h.helper.height()-r},a=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(s,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,n,i,r,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:Infinity,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:Infinity},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),i>o.minHeight&&(o.minHeight=i),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,i=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===i&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===i&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,i=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,r=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,s=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(n),h=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),s&&(t.height=e.minHeight),i&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),o&&c&&(t.left=a-e.minWidth),i&&c&&(t.left=a-e.maxWidth),s&&h&&(t.top=l-e.minHeight),r&&h&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],i=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],r=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(i[e])||0,n[e]+=parseFloat(r[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_calculateAdjustedElementDimensions:function(t){var e,n,i,r=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(r)&&!this._hasScroll(r,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(r.style.width),n=parseFloat(r.style.height),i=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,i,"width"):e,{height:n=isNaN(n)?this._getElementTheoreticalSize(t,i,"height"):n,width:e})},_getElementTheoreticalSize:function(t,e,n){return Math.max(0,Math.ceil(t.get(0)["offset"+n[0].toUpperCase()+n.slice(1)]-e[n]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},sw:function(e,n,i){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,i]))},ne:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,i]))},nw:function(e,n,i){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,i]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,l={width:n.size.width-a,height:n.size.height-s},c=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,h=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&t(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,i,r,o,s,a,l=t(this).resizable("instance"),c=l.options,h=l.element,u=c.containment,f=u instanceof t?u.get(0):/parent/.test(u)?h.parent().get(0):u;f&&(l.containerElement=t(f),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(f),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,i){n[t]=l._num(e.css("padding"+i))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},i=l.containerOffset,r=l.containerSize.height,o=l.containerSize.width,s=l._hasScroll(f,"left")?f.scrollWidth:o,a=l._hasScroll(f)?f.scrollHeight:r,l.parentData={element:f,left:i.left,top:i.top,width:s,height:a}))},resize:function(e){var n,i,r,o,s=t(this).resizable("instance"),a=s.options,l=s.containerOffset,c=s.position,h=s._aspectRatio||e.shiftKey,u={top:0,left:0},f=s.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(u=l),c.left<(s._helper?l.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-l.left:s.position.left-u.left),h&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=a.helper?l.left:0),c.top<(s._helper?l.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-l.top:s.position.top),h&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?l.top:0),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),r&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),n=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-u.left:s.offset.left-l.left)),i=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-u.top:s.offset.top-l.top)),n+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-n,h&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,h&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,i=e.containerOffset,r=e.containerPosition,o=e.containerElement,s=t(e.helper),a=s.offset(),l=s.outerWidth()-e.sizeDiff.width,c=s.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:a.left-r.left-i.left,width:l,height:c}),e._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:a.left-r.left-i.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),n=e.options;t(n.alsoResize).each(function(){var n=t(this),i=e._calculateAdjustedElementDimensions(n);n.data("ui-resizable-alsoresize",{width:i.width,height:i.height,left:parseFloat(n.css("left")),top:parseFloat(n.css("top"))})})},resize:function(e,n){var i=t(this).resizable("instance"),r=i.options,o=i.originalSize,s=i.originalPosition,a={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0};t(r.alsoResize).each(function(){var e=t(this),i=t(this).data("ui-resizable-alsoresize"),r={},o=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var n=(i[e]||0)+(a[e]||0);n&&n>=0&&(r[e]=n||null)}),e.css(r)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!0===t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,s=n.originalPosition,a=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,c=l[0]||1,h=l[1]||1,u=Math.round((r.width-o.width)/c)*c,f=Math.round((r.height-o.height)/h)*h,p=o.width+u,d=o.height+f,g=i.maxWidth&&i.maxWidth<p,m=i.maxHeight&&i.maxHeight<d,v=i.minWidth&&i.minWidth>p,y=i.minHeight&&i.minHeight>d;i.grid=l,v&&(p+=c),y&&(d+=h),g&&(p-=c),m&&(d-=h),/^(se|s|e)$/.test(a)?(n.size.width=p,n.size.height=d):/^(ne)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.top=s.top-f):/^(sw)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.left=s.left-u):((d-h<=0||p-c<=0)&&(e=n._getPaddingPlusBorderDimensions(this)),d-h>0?(n.size.height=d,n.position.top=s.top-f):(d=h-e.height,n.size.height=d,n.position.top=s.top+o.height-d),p-c>0?(n.size.width=p,n.position.left=s.left-u):(p=c-e.width,n.size.width=p,n.position.left=s.left+o.width-p))}}),t.ui.resizable},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},5285:function(t,e,n){var i,r,o;!function(){"use strict";r=[n(4692),n(3662),n(9983),n(2299),n(6883),n(9139)],i=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.14.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var i=null,r=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return i=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(i=t(e.target)),!!i&&(!(this.options.handle&&!n&&(t(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(r=!0)}),!r))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,n,i){var r,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this._storedStylesheet=t("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),n},_mouseDrag:function(e){var n,i,r,o,s=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),s.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(r=(i=this.items[n]).item[0],(o=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var i=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t(n).each(function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&i.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},n.each(function(){i.push(t(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=t.left,s=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||i+c>a&&i+c<l,f="y"===this.options.axis||e+h>o&&e+h<s,p=u&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!i||!r)&&(e=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n,i,r,o,s=[],a=[],l=this._connectWith();if(l&&e)for(n=l.length-1;n>=0;n--)for(i=(r=t(l[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){s.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=a.length-1;n>=0;n--)a[n][0].each(c);return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var n,i,r,o,s,a,l,c,h=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(n=f.length-1;n>=0;n--)for(i=(r=t(f[n],this.document[0])).length-1;i>=0;i--)(o=t.data(r[i],this.widgetFullName))&&o!==this&&!o.options.disabled&&(u.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=u.length-1;n>=0;n--)for(s=u[n][1],i=0,c=(a=u[n][0]).length;i<c;i++)(l=t(a[i])).data(this.widgetName+"-item",s),h.push({item:l,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var n,i,r,o;for(n=this.items.length-1;n>=0;n--)i=this.items[n],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=r.outerWidth(),i.height=r.outerHeight()),o=r.offset(),i.left=o.left,i.top=o.top)},refreshPositions:function(t){var e,n;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)n=this.containers[e].element.offset(),this.containers[e].containerCache.left=n.left,this.containers[e].containerCache.top=n.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var n,i,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,i=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+i+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===i?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===i?e._createTrPlaceholder(e.currentItem,r):"img"===i&&r.attr("src",e.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(t,o){n&&!r.forcePlaceholderSize||(o.height()&&(!r.forcePlaceholderSize||"tbody"!==i&&"tr"!==i)||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var i=this;e.children().each(function(){t("<td>&#160;</td>",i.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(e){var n,i,r,o,s,a,l,c,h,u,f=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&t.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,o=null,s=(h=f.floating||this._isFloating(this.currentItem))?"left":"top",a=h?"width":"height",u=h?"pageX":"pageY",i=this.items.length-1;i>=0;i--)t.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[s],c=!1,e[u]-l>this.items[i][a]/2&&(c=!0),Math.abs(e[u]-l)<r&&(r=Math.abs(e[u]-l),o=this.items[i],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var n=this.options,i="function"==typeof n.helper?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],n=t(r.containment).offset(),i="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var i="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*i}},_generatePosition:function(e){var n,i,r=this.options,o=e.pageX,s=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,n,i){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(t,e){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,n){return function(i){n._trigger(t,i,e._uiHash(e))}}for(this.fromOutside&&!e&&i.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||i.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(i.push(function(t){this._trigger("remove",t,this._uiHash())}),i.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||i.push(r("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(r("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<i.length;n++)i[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}})},void 0===(o="function"==typeof i?i.apply(e,r):i)||(t.exports=o)}()},4692:function(t,e){var n;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(i,r){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},c=o.push,h=o.indexOf,u={},f=u.toString,p=u.hasOwnProperty,d=p.toString,g=d.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},y=function(t){return null!=t&&t===t.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(t,e,n){var i,r,o=(n=n||b).createElement("script");if(o.text=t,e)for(i in w)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function _(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[f.call(t)]||"object":typeof t}var S="3.7.1",k=/HTML$/i,T=function(t,e){return new T.fn.init(t,e)};function C(t){var e=!!t&&"length"in t&&t.length,n=_(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function O(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}T.fn=T.prototype={jquery:S,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(T.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&s!==i&&(c&&i&&(T.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,s[e]=T.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},T.extend({expando:"jQuery"+(S+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=s(t))||"function"==typeof(n=p.call(e,"constructor")&&e.constructor)&&d.call(n)===g)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){x(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(C(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},text:function(t){var e,n="",i=0,r=t.nodeType;if(!r)for(;e=t[i++];)n+=T.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:n},makeArray:function(t,e){var n=e||[];return null!=t&&(C(Object(t))?T.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:h.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,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!==s&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,s=[];if(C(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&s.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&s.push(r);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()});var A=o.pop,E=o.sort,P=o.splice,j="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g");T.contains=function(t,e){var n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(t.contains?t.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))};var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}T.escapeSelector=function(t){return(t+"").replace(I,M)};var R=b,N=c;!function(){var t,e,n,r,s,l,c,u,f,d,g=N,v=T.expando,y=0,b=0,w=tt(),x=tt(),_=tt(),S=tt(),k=function(t,e){return t===e&&(s=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="(?:\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+j+"*("+I+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+j+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",H=new RegExp(j+"+","g"),L=new RegExp("^"+j+"*,"+j+"*"),z=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),B=new RegExp(j+"|>"),U=new RegExp(F),W=new RegExp("^"+I+"$"),q={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+j+"?|\\\\([^\\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))},J=function(){lt()},K=ft(function(t){return!0===t.disabled&&O(t,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(R.childNodes),R.childNodes),o[R.childNodes.length].nodeType}catch(t){g={apply:function(t,e){N.apply(t,a.call(e))},call:function(t){N.apply(t,a.call(arguments,1))}}}function Z(t,e,n,i){var r,o,s,a,c,h,p,d=e&&e.ownerDocument,y=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==y&&9!==y&&11!==y)return n;if(!i&&(lt(e),e=e||l,u)){if(11!==y&&(c=G.exec(t)))if(r=c[1]){if(9===y){if(!(s=e.getElementById(r)))return n;if(s.id===r)return g.call(n,s),n}else if(d&&(s=d.getElementById(r))&&Z.contains(e,s)&&s.id===r)return g.call(n,s),n}else{if(c[2])return g.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return g.apply(n,e.getElementsByClassName(r)),n}if(!(S[t+" "]||f&&f.test(t))){if(p=t,d=e,1===y&&(B.test(t)||z.test(t))){for((d=V.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=T.escapeSelector(a):e.setAttribute("id",a=v)),o=(h=ht(t)).length;o--;)h[o]=(a?"#"+a:":scope")+" "+ut(h[o]);p=h.join(",")}try{return g.apply(n,d.querySelectorAll(p)),n}catch(e){S(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(D,"$1"),e,n,i)}function tt(){var t=[];return function n(i,r){return t.push(i+" ")>e.cacheLength&&delete n[t.shift()],n[i+" "]=r}}function et(t){return t[v]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function it(t){return function(e){return O(e,"input")&&e.type===t}}function rt(t){return function(e){return(O(e,"input")||O(e,"button"))&&e.type===t}}function ot(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&&K(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function st(t){return et(function(e){return e=+e,et(function(n,i){for(var r,o=t([],n.length,e),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var n,i=t?t.ownerDocument||t:R;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,u=!T.isXMLDoc(l),d=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",J),m.getById=nt(function(t){return c.appendChild(t).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length}),m.disconnectedMatch=nt(function(t){return d.call(t,"*")}),m.scope=nt(function(){return l.querySelectorAll(":scope")}),m.cssHas=nt(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}}),m.getById?(e.filter.ID=function(t){var e=t.replace(X,Q);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,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&&u){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}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&&u)return e.getElementsByClassName(t)},f=[],nt(function(t){var e;c.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||f.push("\\["+j+"*(?:value|"+C+")"),t.querySelectorAll("[id~="+v+"-]").length||f.push("~="),t.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),t.querySelectorAll(":checked").length||f.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||f.push("\\["+j+"*name"+j+"*="+j+"*(?:''|\"\")")}),m.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),k=function(t,e){if(t===e)return s=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==R&&Z.contains(R,t)?-1:e===l||e.ownerDocument==R&&Z.contains(R,e)?1:r?h.call(r,t)-h.call(r,e):0:4&n?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),u&&!S[e+" "]&&(!f||!f.test(e)))try{var n=d.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){S(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),T.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=l&&lt(t);var i=e.attrHandle[n.toLowerCase()],r=i&&p.call(e.attrHandle,n.toLowerCase())?i(t,n,!u):void 0;return void 0!==r?r:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},T.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),E.call(t,k),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)P.call(t,n[i],1)}return r=null,t},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},e=T.expr={cacheLength:50,createPseudo:et,match:q,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(X,Q),t[3]=(t[3]||t[4]||t[5]||"").replace(X,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]||Z.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]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return q.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&U.test(n)&&(e=ht(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(X,Q).toLowerCase();return"*"===t?function(){return!0}:function(t){return O(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+j+")"+t+"("+j+"|$)"))&&w(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=Z.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(H," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,h,u,f,p,d=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;d;){for(u=e;u=u[d];)if(a?O(u,m):1===u.nodeType)return!1;p=d="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(w=(f=(c=(h=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],u=f&&g.childNodes[f];u=++f&&u&&u[d]||(w=f=0)||p.pop();)if(1===u.nodeType&&++w&&u===e){h[t]=[y,f,w];break}}else if(b&&(w=f=(c=(h=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(u=++f&&u&&u[d]||(w=f=0)||p.pop())&&(!(a?O(u,m):1===u.nodeType)||!++w||(b&&((h=u[v]||(u[v]={}))[t]=[y,w]),u!==e)););return(w-=r)===i||w%i===0&&w/i>=0}}},PSEUDO:function(t,n){var i,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return r[v]?r(n):r.length>1?(i=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)t[i=h.call(t,o[s])]=!(e[i]=o[s])}):function(t){return r(t,0,i)}):r}},pseudos:{not:et(function(t){var e=[],n=[],i=vt(t.replace(D,"$1"));return i[v]?et(function(t,e,n,r){for(var o,s=i(t,null,r,[]),a=t.length;a--;)(o=s[a])&&(t[a]=!(e[a]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:et(function(t){return function(e){return Z(t,e).length>0}}),contains:et(function(t){return t=t.replace(X,Q),function(e){return(e.textContent||T.text(e)).indexOf(t)>-1}}),lang:et(function(t){return W.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(X,Q).toLowerCase(),function(e){var n;do{if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:ot(!1),disabled:ot(!0),checked:function(t){return O(t,"input")&&!!t.checked||O(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 Y.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){return O(t,"input")&&"button"===t.type||O(t,"button")},text:function(t){var e;return O(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:st(function(){return[0]}),last:st(function(t,e){return[e-1]}),eq:st(function(t,e,n){return[n<0?n+e:n]}),even:st(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:st(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:st(function(t,e,n){var i;for(i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:st(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=it(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ct(){}function ht(t,n){var i,r,o,s,a,l,c,h=x[t+" "];if(h)return n?0:h.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(r=L.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=z.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(D," ")}),a=a.slice(i.length)),e.filter)!(r=q[s].exec(a))||c[s]&&!(r=c[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?Z.error(t):x(t,l).slice(0)}function ut(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ft(t,e,n){var i=e.dir,r=e.next,o=r||i,s=n&&"parentNode"===o,a=b++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,r);return!1}:function(e,n,l){var c,h,u=[y,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(h=e[v]||(e[v]={}),r&&O(e,r))e=e[i]||e;else{if((c=h[o])&&c[0]===y&&c[1]===a)return u[2]=c[2];if(h[o]=u,u[2]=t(e,n,l))return!0}return!1}}function pt(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function dt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(n&&!n(o,i,r)||(s.push(o),c&&e.push(a)));return s}function gt(t,e,n,i,r,o){return i&&!i[v]&&(i=gt(i)),r&&!r[v]&&(r=gt(r,o)),et(function(o,s,a,l){var c,u,f,p,d=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)Z(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:dt(y,d,t,a,l);if(n?n(b,p=r||(o?t:v||i)?[]:s,a,l):p=b,i)for(c=dt(p,m),i(c,[],a,l),u=c.length;u--;)(f=c[u])&&(p[m[u]]=!(b[m[u]]=f));if(o){if(r||t){if(r){for(c=[],u=p.length;u--;)(f=p[u])&&c.push(b[u]=f);r(null,p=[],c,l)}for(u=p.length;u--;)(f=p[u])&&(c=r?h.call(o,f):d[u])>-1&&(o[c]=!(s[c]=f))}}else p=dt(p===s?p.splice(v,p.length):p),r?r(null,s,p,l):g.apply(s,p)})}function mt(t){for(var i,r,o,s=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],c=a?1:0,u=ft(function(t){return t===i},l,!0),f=ft(function(t){return h.call(i,t)>-1},l,!0),p=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?u(t,e,r):f(t,e,r));return i=null,o}];c<s;c++)if(r=e.relative[t[c].type])p=[ft(pt(p),r)];else{if((r=e.filter[t[c].type].apply(null,t[c].matches))[v]){for(o=++c;o<s&&!e.relative[t[o].type];o++);return gt(c>1&&pt(p),c>1&&ut(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(D,"$1"),r,c<o&&mt(t.slice(c,o)),o<s&&mt(t=t.slice(o)),o<s&&ut(t))}p.push(r)}return pt(p)}function vt(t,i){var r,o=[],s=[],a=_[t+" "];if(!a){for(i||(i=ht(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=_(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,c,h,f){var p,d,m,v=0,b="0",w=s&&[],x=[],_=n,S=s||o&&e.find.TAG("*",f),k=y+=null==_?1:Math.random()||.1,C=S.length;for(f&&(n=a==l||a||f);b!==C&&null!=(p=S[b]);b++){if(o&&p){for(d=0,a||p.ownerDocument==l||(lt(p),c=!u);m=t[d++];)if(m(p,a||l,c)){g.call(h,p);break}f&&(y=k)}r&&((p=!m&&p)&&v--,s&&w.push(p))}if(v+=b,r&&b!==v){for(d=0;m=i[d++];)m(w,x,a,c);if(s){if(v>0)for(;b--;)w[b]||x[b]||(x[b]=A.call(h));x=dt(x)}g.apply(h,x),f&&!s&&x.length>0&&v+i.length>1&&T.uniqueSort(h)}return f&&(y=k,n=_),w};return r?et(s):s}(s,o)),a.selector=t}return a}function yt(t,n,i,r){var o,s,a,l,c,h="function"==typeof t&&t,f=!r&&ht(t=h.selector||t);if(i=i||[],1===f.length){if((s=f[0]=f[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&u&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(X,Q),n)||[])[0]))return i;h&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=q.needsContext.test(t)?0:s.length;o--&&(a=s[o],!e.relative[l=a.type]);)if((c=e.find[l])&&(r=c(a.matches[0].replace(X,Q),V.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&ut(s)))return g.apply(i,r),i;break}}return(h||vt(t,f))(r,n,!u,i,!n||V.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(k).join("")===v,lt(),m.sortDetached=nt(function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))}),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=vt,Z.select=yt,Z.setDocument=lt,Z.tokenize=ht,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var F=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(n))break;i.push(t)}return i},H=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},L=T.expr.match.needsContext,z=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function B(t,e,n){return v(e)?T.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?T.grep(t,function(t){return t===e!==n}):"string"!=typeof e?T.grep(t,function(t){return h.call(e,t)>-1!==n}):T.filter(e,t,n)}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<i;e++)if(T.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)T.find(t,r[e],n);return i>1?T.uniqueSort(n):n},filter:function(t){return this.pushStack(B(this,t||[],!1))},not:function(t){return this.pushStack(B(this,t||[],!0))},is:function(t){return!!B(this,"string"==typeof t&&L.test(t)?T(t):t||[],!1).length}});var U,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||U,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),z.test(i[1])&&T.isPlainObject(e))for(i in e)v(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==n.ready?n.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,U=T(b);var q=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function Y(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&T(t);if(!L.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?h.call(T(t),this[0]):h.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return F(t,"parentNode")},parentsUntil:function(t,e,n){return F(t,"parentNode",n)},next:function(t){return Y(t,"nextSibling")},prev:function(t){return Y(t,"previousSibling")},nextAll:function(t){return F(t,"nextSibling")},prevAll:function(t){return F(t,"previousSibling")},nextUntil:function(t,e,n){return F(t,"nextSibling",n)},prevUntil:function(t,e,n){return F(t,"previousSibling",n)},siblings:function(t){return H((t.parentNode||{}).firstChild,t)},children:function(t){return H(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(O(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},function(t,e){T.fn[t]=function(n,i){var r=T.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=T.filter(i,r)),this.length>1&&($[t]||T.uniqueSort(r),q.test(t)&&r.reverse()),this.pushStack(r)}});var G=/[^\x20\t\r\n\f]+/g;function V(t){return t}function X(t){throw t}function Q(t,e,n,i){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(n):t&&v(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}T.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return T.each(t.match(G)||[],function(t,n){e[n]=!0}),e}(t):T.extend({},t);var e,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},c={add:function(){return o&&(n&&!e&&(a=o.length-1,s.push(n)),function e(n){T.each(n,function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==_(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return T.each(arguments,function(t,e){for(var n;(n=T.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(t){return t?T.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},T.extend({Deferred:function(t){var e=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return T.Deferred(function(n){T.each(e,function(e,i){var r=v(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(t,n,r){var o=0;function s(t,e,n,r){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(t<o)){if((i=n.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,s(o,e,V,r),s(o,e,X,r)):(o++,c.call(i,s(o,e,V,r),s(o,e,X,r),s(o,e,V,e.notifyWith))):(n!==V&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},h=r?c:function(){try{c()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,h.error),t+1>=o&&(n!==X&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?h():(T.Deferred.getErrorHook?h.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(h.error=T.Deferred.getStackHook()),i.setTimeout(h))}}return T.Deferred(function(i){e[0][3].add(s(0,i,v(r)?r:V,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:V)),e[2][3].add(s(0,i,v(n)?n:X))}).promise()},promise:function(t){return null!=t?T.extend(t,r):r}},o={};return T.each(e,function(t,i){var s=i[2],a=i[5];r[i[1]]=s.add,a&&s.add(function(){n=a},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),s.add(i[3].fire),o[i[0]]=function(){return o[i[0]+"With"](this===o?void 0:this,arguments),this},o[i[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),r=a.call(arguments),o=T.Deferred(),s=function(t){return function(n){i[t]=this,r[t]=arguments.length>1?a.call(arguments):n,--e||o.resolveWith(i,r)}};if(e<=1&&(Q(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)Q(r[n],s(n),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&J.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},T.readyException=function(t){i.setTimeout(function(){throw t})};var K=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),T.ready()}T.fn.ready=function(t){return K.then(t).catch(function(t){T.readyException(t)}),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==t&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===_(n))for(a in r=!0,n)tt(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(s?(e.call(t,i),e=null):(c=e,e=function(t,e,n){return c.call(T(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o},et=/^-ms-/,nt=/-([a-z])/g;function it(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(nt,it)}var ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function st(){this.expando=T.expando+st.uid++}st.uid=1,st.prototype={cache:function(t){var e=t[this.expando];return e||(e={},ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[rt(e)]=n;else for(i in e)r[rt(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in i?[e]:e.match(G)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||T.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ht=/[A-Z]/g;function ut(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ht,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,n){return lt.access(t,e,n)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,n){return at.access(t,e,n)},_removeData:function(t,e){at.remove(t,e)}}),T.fn.extend({data:function(t,e){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===t){if(this.length&&(r=lt.get(o),1===o.nodeType&&!at.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=rt(i.slice(5)),ut(o,i,r[i]));at.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){lt.set(this,t)}):tt(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=lt.get(o,t))||void 0!==(n=ut(o,t))?n:void 0;this.each(function(){lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){lt.remove(this,t)})}}),T.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=at.get(t,e),n&&(!i||Array.isArray(n)?i=at.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,r=n.shift(),o=T._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){T.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return at.get(t,n)||at.access(t,n,{empty:T.Callbacks("once memory").add(function(){at.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?T.queue(this[0],t):void 0===e?this:this.each(function(){var n=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&T.dequeue(this,t)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=T.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=at.get(o[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(e)}});var ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ft+")([a-z%]*)$","i"),dt=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return T.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var yt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===T.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=a(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),h=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&pt.exec(T.css(t,e));if(h&&h[3]!==c){for(l/=2,c=c||h[3],h=+l||1;s--;)T.style(t,e,h+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),h/=o;h*=2,T.style(t,e,h+c),n=n||[]}return n&&(h=+h||+l||0,r=n[1]?h+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=h,i.end=r)),r}var wt={};function xt(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=T.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function _t(t,e){for(var n,i,r=[],o=0,s=t.length;o<s;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=at.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&yt(i)&&(r[o]=xt(i))):"none"!==n&&(r[o]="none",at.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}T.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(){yt(this)?T(this).show():T(this).hide()})}});var St,kt,Tt=/^(?:checkbox|radio)$/i,Ct=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ot=/^$|^module$|\/(?:java|ecma)script/i;St=b.createDocumentFragment().appendChild(b.createElement("div")),(kt=b.createElement("input")).setAttribute("type","radio"),kt.setAttribute("checked","checked"),kt.setAttribute("name","t"),St.appendChild(kt),m.checkClone=St.cloneNode(!0).cloneNode(!0).lastChild.checked,St.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!St.cloneNode(!0).lastChild.defaultValue,St.innerHTML="<option></option>",m.option=!!St.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&&O(t,e)?T.merge([t],n):n}function Pt(t,e){for(var n=0,i=t.length;n<i;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,m.option||(At.optgroup=At.option=[1,"<select multiple='multiple'>","</select>"]);var jt=/<|&#?\w+;/;function Dt(t,e,n,i,r){for(var o,s,a,l,c,h,u=e.createDocumentFragment(),f=[],p=0,d=t.length;p<d;p++)if((o=t[p])||0===o)if("object"===_(o))T.merge(f,o.nodeType?[o]:o);else if(jt.test(o)){for(s=s||u.appendChild(e.createElement("div")),a=(Ct.exec(o)||["",""])[1].toLowerCase(),l=At[a]||At._default,s.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],h=l[0];h--;)s=s.lastChild;T.merge(f,s.childNodes),(s=u.firstChild).textContent=""}else f.push(e.createTextNode(o));for(u.textContent="",p=0;o=f[p++];)if(i&&T.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),s=Et(u.appendChild(o),"script"),c&&Pt(s),n)for(h=0;o=s[h++];)Ot.test(o.type||"")&&n.push(o);return u}var It=/^([^.]*)(?:\.(.+)|)/;function Mt(){return!0}function Rt(){return!1}function Nt(t,e,n,i,r,o){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)Nt(t,a,n,i,e[a],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Rt;else if(!r)return t;return 1===o&&(s=r,r=function(t){return T().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=T.guid++)),t.each(function(){T.event.add(this,e,r,i,n)})}function Ft(t,e,n){n?(at.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(i=a.call(arguments),at.set(this,e,i),this[e](),n=at.get(this,e),at.set(this,e,!1),i!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else i&&(at.set(this,e,T.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Mt)}})):void 0===at.get(t,e)&&T.event.add(t,e,Mt)}T.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,h,u,f,p,d,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(gt,r),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(G)||[""]).length;c--;)p=g=(a=It.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p&&(u=T.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=T.event.special[p]||{},h=T.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:d.join(".")},o),(f=l[p])||((f=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,i,d,s)||t.addEventListener&&t.addEventListener(p,s)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,h):f.push(h),T.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,h,u,f,p,d,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(G)||[""]).length;c--;)if(p=g=(a=It.exec(e[c])||[])[1],d=(a[2]||"").split(".").sort(),p){for(u=T.event.special[p]||{},f=l[p=(i?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)h=f[o],!r&&g!==h.origType||n&&n.guid!==h.guid||a&&!a.test(h.namespace)||i&&i!==h.selector&&("**"!==i||!h.selector)||(f.splice(o,1),h.selector&&f.delegateCount--,u.remove&&u.remove.call(t,h));s&&!f.length&&(u.teardown&&!1!==u.teardown.call(t,d,m.handle)||T.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,i,!0);T.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=T.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],h=T.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,c),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((T.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=e[n]).selector+" "]&&(s[r]=i.needsContext?T(r,this).index(c)>-1:T.find(r,this,null,[c]).length),s[r]&&o.push(i);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&O(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Tt.test(e.type)&&e.click&&O(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Tt.test(e.type)&&e.click&&O(e,"input")&&at.get(e,"click")||O(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Mt:Rt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Rt,isPropagationStopped:Rt,isImmediatePropagationStopped:Rt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Mt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Mt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Mt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=T.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else T.event.simulate(e,t.target,T.event.fix(t))}T.event.special[t]={setup:function(){var i;if(Ft(this,t,!0),!b.documentMode)return!1;(i=at.get(this,e))||this.addEventListener(e,n),at.set(this,e,(i||0)+1)},trigger:function(){return Ft(this,t),!0},teardown:function(){var t;if(!b.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,n),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},T.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e);o||(b.documentMode?this.addEventListener(e,n):i.addEventListener(t,n,!0)),at.set(r,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,o=at.get(r,e)-1;o?at.set(r,e,o):(b.documentMode?this.removeEventListener(e,n):i.removeEventListener(t,n,!0),at.remove(r,e))}}}),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||T.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),T.fn.extend({on:function(t,e,n,i){return Nt(this,t,e,n,i)},one:function(t,e,n,i){return Nt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Rt),this.each(function(){T.event.remove(this,t,n,e)})}});var Ht=/<script|<style|<link/i,Lt=/checked\s*(?:[^=]|=\s*.checked.)/i,zt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Bt(t,e){return O(t,"table")&&O(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function qt(t,e){var n,i,r,o,s,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(n=0,i=a[r].length;n<i;n++)T.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=T.extend({},o),lt.set(e,s))}}function $t(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Tt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function Yt(t,e,n,i){e=l(e);var r,o,s,a,c,h,u=0,f=t.length,p=f-1,d=e[0],g=v(d);if(g||f>1&&"string"==typeof d&&!m.checkClone&&Lt.test(d))return t.each(function(r){var o=t.eq(r);g&&(e[0]=d.call(this,r,o.html())),Yt(o,e,n,i)});if(f&&(o=(r=Dt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=T.map(Et(r,"script"),Ut)).length;u<f;u++)c=r,u!==p&&(c=T.clone(c,!0,!0),a&&T.merge(s,Et(c,"script"))),n.call(t[u],c,u);if(a)for(h=s[s.length-1].ownerDocument,T.map(s,Wt),u=0;u<a;u++)c=s[u],Ot.test(c.type||"")&&!at.access(c,"globalEval")&&T.contains(h,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},h):x(c.textContent.replace(zt,""),c,h))}return t}function Gt(t,e,n){for(var i,r=e?T.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(Et(i)),i.parentNode&&(n&&mt(i)&&Pt(Et(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,s,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=Et(a),i=0,r=(o=Et(t)).length;i<r;i++)$t(o[i],s[i]);if(e)if(n)for(o=o||Et(t),s=s||Et(a),i=0,r=o.length;i<r;i++)qt(o[i],s[i]);else qt(t,a);return(s=Et(a,"script")).length>0&&Pt(s,!l&&Et(t,"script")),a},cleanData:function(t){for(var e,n,i,r=T.event.special,o=0;void 0!==(n=t[o]);o++)if(ot(n)){if(e=n[at.expando]){if(e.events)for(i in e.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),T.fn.extend({detach:function(t){return Gt(this,t,!0)},remove:function(t){return Gt(this,t)},text:function(t){return tt(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Yt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Bt(this,t).appendChild(t)})},prepend:function(){return Yt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Bt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Yt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Yt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(Et(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return tt(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ht.test(t)&&!At[(Ct.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(Et(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return Yt(this,arguments,function(e){var n=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(Et(this)),n&&n.replaceChild(e,this))},t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){T.fn[t]=function(t){for(var n,i=[],r=T(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}});var Vt=new RegExp("^("+ft+")(?!px)[a-z%]+$","i"),Xt=/^--/,Qt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},Jt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Kt=new RegExp(dt.join("|"),"i");function Zt(t,e,n){var i,r,o,s,a=Xt.test(e),l=t.style;return(n=n||Qt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(D,"$1")||void 0),""!==s||mt(t)||(s=T.style(t,e)),!m.pixelBoxStyles()&&Vt.test(s)&&Kt.test(e)&&(i=l.width,r=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=o)),void 0!==s?s+"":s}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(h){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",h.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(h);var t=i.getComputedStyle(h);n="1%"!==t.top,l=12===e(t.marginLeft),h.style.right="60%",s=36===e(t.right),r=36===e(t.width),h.style.position="absolute",o=12===e(h.offsetWidth/3),gt.removeChild(c),h=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,c=b.createElement("div"),h=b.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===h.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,n,r;return null==a&&(t=b.createElement("table"),e=b.createElement("tr"),n=b.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",gt.appendChild(t).appendChild(e).appendChild(n),r=i.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ne=b.createElement("div").style,ie={};function re(t){var e=T.cssProps[t]||ie[t];return e||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var oe=/^(none|table(?!-c[ea]).+)/,se={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,n){var i=pt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ce(t,e,n,i,r,o){var s="width"===e?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=T.css(t,n+dt[s],!0,r)),i?("content"===n&&(l-=T.css(t,"padding"+dt[s],!0,r)),"margin"!==n&&(l-=T.css(t,"border"+dt[s]+"Width",!0,r))):(l+=T.css(t,"padding"+dt[s],!0,r),"padding"!==n?l+=T.css(t,"border"+dt[s]+"Width",!0,r):a+=T.css(t,"border"+dt[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))||0),l+c}function he(t,e,n){var i=Qt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===T.css(t,"boxSizing",!1,i),o=r,s=Zt(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Vt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&O(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,i),(o=a in t)&&(s=t[a])),(s=parseFloat(s)||0)+ce(t,e,n||(r?"border":"content"),o,i,s)+"px"}function ue(t,e,n,i,r){return new ue.prototype.init(t,e,n,i,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=rt(e),l=Xt.test(e),c=t.style;if(l||(e=re(a)),s=T.cssHooks[e]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:c[e];"string"===(o=typeof n)&&(r=pt.exec(n))&&r[1]&&(n=bt(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(T.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,i){var r,o,s,a=rt(e);return Xt.test(e)||(e=re(a)),(s=T.cssHooks[e]||T.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Zt(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),T.each(["height","width"],function(t,e){T.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?he(t,e,i):Jt(t,se,function(){return he(t,e,i)})},set:function(t,n,i){var r,o=Qt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===T.css(t,"boxSizing",!1,o),l=i?ce(t,e,i,a,o):0;return a&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ce(t,e,"border",!1,o)-.5)),l&&(r=pt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=T.css(t,e)),le(0,n,l)}}}),T.cssHooks.marginLeft=te(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.each({margin:"",padding:"",border:"Width"},function(t,e){T.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+dt[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(T.cssHooks[t+e].set=le)}),T.fn.extend({css:function(t,e){return tt(this,function(t,e,n){var i,r,o={},s=0;if(Array.isArray(e)){for(i=Qt(t),r=e.length;s<r;s++)o[e[s]]=T.css(t,e[s],!1,i);return o}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,arguments.length>1)}}),T.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,n=ue.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=ue.prototype.init,T.fx.step={};var fe,pe,de=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,T.fx.interval),T.fx.tick())}function ve(){return i.setTimeout(function(){fe=void 0}),fe=Date.now()}function ye(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=dt[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function be(t,e,n){for(var i,r=(we.tweeners[e]||[]).concat(we.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function we(t,e,n){var i,r,o=0,s=we.prefilters.length,a=T.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=fe||ve(),n=Math.max(0,c.startTime+c.duration-e),i=1-(n/c.duration||0),o=0,s=c.tweens.length;o<s;o++)c.tweens[o].run(i);return a.notifyWith(t,[c,i,n]),i<1&&s?n:(s||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:e,originalOptions:n,startTime:fe||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=T.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),h=c.props;for(!function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=rt(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=T.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(h,c.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(c,t,h,c.opts))return v(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(h,be,c),v(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(we,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return bt(n.elem,t,pt.exec(e),n),n}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(G);for(var n,i=0,r=t.length;i<r;i++)n=t[i],we.tweeners[n]=we.tweeners[n]||[],we.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,s,a,l,c,h,u="width"in e||"height"in e,f=this,p={},d=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()})})),e)if(r=e[i],de.test(r)){if(delete e[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[i])continue;g=!0}p[i]=m&&m[i]||T.style(t,i)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(p))for(i in u&&1===t.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(h=T.css(t,"display"))&&(c?h=c:(_t([t],!0),c=t.style.display||c,h=T.css(t,"display"),_t([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===T.css(t,"float")&&(l||(f.done(function(){d.display=c}),null==c&&(h=d.display,c="none"===h?"":h)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:c}),o&&(m.hidden=!g),g&&_t([t],!0),f.done(function(){for(i in g||_t([t]),at.remove(t,"fxshow"),p)T.style(t,i,p[i])})),l=be(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?we.prefilters.unshift(t):we.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(yt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=T.isEmptyObject(t),o=T.speed(e,n,i),s=function(){var e=we(this,T.extend({},t),o);(r||at.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=T.timers,s=at.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&ge.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||T.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=at.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=T.timers,s=i?i.length:0;for(n.finish=!0,T.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),T.each(["toggle","show","hide"],function(t,e){var n=T.fn[e];T.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}}),T.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){T.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(fe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),fe=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pe||(pe=!0,me())},T.fx.stop=function(){pe=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(t,e){return t=T.fx&&T.fx.speeds[t]||t,e=e||"fx",this.queue(e,function(e,n){var r=i.setTimeout(e,t);n.stop=function(){i.clearTimeout(r)}})},function(){var t=b.createElement("input"),e=b.createElement("select").appendChild(b.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=b.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var xe,_e=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return tt(this,T.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?xe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&O(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(G);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),xe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var n=_e[e]||T.find.attr;_e[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=_e[s],_e[s]=r,r=null!=n(t,e,i)?s:null,_e[s]=o),r}});var Se=/^(?:input|select|textarea|button)$/i,ke=/^(?:a|area)$/i;function Te(t){return(t.match(G)||[]).join(" ")}function Ce(t){return t.getAttribute&&t.getAttribute("class")||""}function Oe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(G)||[]}T.fn.extend({prop:function(t,e){return tt(this,T.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):Se.test(t.nodeName)||ke.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),T.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){T(this).addClass(t.call(this,e,Ce(this)))}):(e=Oe(t)).length?this.each(function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Te(n),i!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,n,i,r,o,s;return v(t)?this.each(function(e){T(this).removeClass(t.call(this,e,Ce(this)))}):arguments.length?(e=Oe(t)).length?this.each(function(){if(i=Ce(this),n=1===this.nodeType&&" "+Te(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Te(n),i!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,e){var n,i,r,o,s=typeof t,a="string"===s||Array.isArray(t);return v(t)?this.each(function(n){T(this).toggleClass(t.call(this,n,Ce(this),e),e)}):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=Oe(t),this.each(function(){if(a)for(o=T(this),r=0;r<n.length;r++)i=n[r],o.hasClass(i)?o.removeClass(i):o.addClass(i);else void 0!==t&&"boolean"!==s||((i=Ce(this))&&at.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===t?"":at.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+Te(Ce(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;T.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=v(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,T(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,function(t){return null==t?"":t+""})),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Ae,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:Te(T.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(e=T(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=T.makeArray(e),s=r.length;s--;)((i=r[s]).selected=T.inArray(T.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=T.inArray(T(t).val(),e)>-1}},m.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Ee=i.location,Pe={guid:Date.now()},je=/\?/;T.parseXML=function(t){var e,n;if(!t||"string"!=typeof t)return null;try{e=(new i.DOMParser).parseFromString(t,"text/xml")}catch(t){}return n=e&&e.getElementsByTagName("parsererror")[0],e&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,function(t){return t.textContent}).join("\n"):t)),e};var De=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(t,e,n,r){var o,s,a,l,c,h,u,f,d=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!De.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[T.expando]?t:new T.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),u=T.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(n,e))){if(!r&&!u.noBubble&&!y(n)){for(l=u.delegateType||g,De.test(l+g)||(s=s.parentNode);s;s=s.parentNode)d.push(s),a=s;a===(n.ownerDocument||b)&&d.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=d[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?l:u.bindType||g,(h=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&h.apply(s,e),(h=c&&s[c])&&h.apply&&ot(s)&&(t.result=h.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!ot(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),T.event.triggered=g,t.isPropagationStopped()&&f.addEventListener(g,Ie),n[g](),t.isPropagationStopped()&&f.removeEventListener(g,Ie),T.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(i,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}});var Me=/\[\]$/,Re=/\r?\n/g,Ne=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function He(t,e,n,i){var r;if(Array.isArray(e))T.each(e,function(e,r){n||Me.test(t)?i(t,r):He(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==_(e))i(t,e);else for(r in e)He(t+"["+r+"]",e[r],n,i)}T.param=function(t,e){var n,i=[],r=function(t,e){var n=v(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){r(this.name,this.value)});else for(n in t)He(n,t[n],e,r);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Fe.test(this.nodeName)&&!Ne.test(t)&&(this.checked||!Tt.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Re,"\r\n")}}):{name:e.name,value:n.replace(Re,"\r\n")}}).get()}});var Le=/%20/g,ze=/#.*$/,Be=/([?&])_=[^&]*/,Ue=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,qe=/^\/\//,$e={},Ye={},Ge="*/".concat("*"),Ve=b.createElement("a");function Xe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(G)||[];if(v(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Qe(t,e,n,i){var r={},o=t===Ye;function s(a){var l;return r[a]=!0,T.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||o||r[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)}),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function Je(t,e){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&T.extend(!0,t,i),t}Ve.href=Ee.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ge,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Je(Je(t,T.ajaxSettings),e):Je(T.ajaxSettings,t)},ajaxPrefilter:Xe($e),ajaxTransport:Xe(Ye),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,c,h,u,f,p=T.ajaxSetup({},e),d=p.context||p,g=p.context&&(d.nodeType||d.jquery)?T(d):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},w={},x={},_="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=Ue.exec(o);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||_;return n&&n.abort(e),k(0,e),this}};if(m.promise(S),p.url=((t||p.url||Ee.href)+"").replace(qe,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(G)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Ve.protocol+"//"+Ve.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Qe($e,p,e,S),c)return S;for(u in(h=T.event&&p.global)&&0===T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!We.test(p.type),r=p.url.replace(ze,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Le,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(je.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Be,"$1"),f=(je.test(r)?"&":"?")+"_="+Pe.guid+++f),p.url=r+f),p.ifModified&&(T.lastModified[r]&&S.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&S.setRequestHeader("If-None-Match",T.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ge+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(d,S,p)||c))return S.abort();if(_="abort",v.add(p.complete),S.done(p.success),S.fail(p.error),n=Qe(Ye,p,e,S)){if(S.readyState=1,h&&g.trigger("ajaxSend",[S,p]),c)return S;p.async&&p.timeout>0&&(a=i.setTimeout(function(){S.abort("timeout")},p.timeout));try{c=!1,n.send(w,k)}catch(t){if(c)throw t;k(-1,t)}}else k(-1,"No Transport");function k(t,e,s,l){var u,f,b,w,x,_=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",S.readyState=t>0?4:0,u=t>=200&&t<300||304===t,s&&(w=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,S,s)),!u&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,c={},h=t.dataTypes.slice();if(h[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=h.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=h.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],h.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,w,S,u),u?(p.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=x),(x=S.getResponseHeader("etag"))&&(T.etag[r]=x)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(b=w.error))):(b=_,!t&&_||(_="error",t<0&&(t=0))),S.status=t,S.statusText=(e||_)+"",u?m.resolveWith(d,[f,_,S]):m.rejectWith(d,[S,_,b]),S.statusCode(y),y=void 0,h&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,p,u?f:b]),v.fireWith(d,[S,_]),h&&(g.trigger("ajaxComplete",[S,p]),--T.active||T.event.trigger("ajaxStop")))}return S},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,e){T[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),T.ajax(T.extend({url:t,type:e,dataType:r,data:n,success:i},T.isPlainObject(t)&&t))}}),T.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),T._evalUrl=function(t,e,n){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,n)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return v(t)?this.each(function(e){T(this).wrapInner(t.call(this,e))}):this.each(function(){var e=T(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=v(t);return this.each(function(n){T(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){T(this).replaceWith(this.childNodes)}),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},Ze=T.ajaxSettings.xhr();m.cors=!!Ze&&"withCredentials"in Ze,m.ajax=Ze=!!Ze,T.ajaxTransport(function(t){var e,n;if(m.cors||Ze&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);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?o(0,"error"):o(a.status,a.statusText):o(Ke[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),T.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),b.head.appendChild(e[0])},abort:function(){n&&n()}}});var tn,en=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||T.expando+"_"+Pe.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var r,o,s,a=!1!==t.jsonp&&(nn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(nn,"$1"+r):!1!==t.jsonp&&(t.url+=(je.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||T.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=i[r],i[r]=function(){s=arguments},n.always(function(){void 0===o?T(i).removeProp(r):i[r]=o,t[r]&&(t.jsonpCallback=e.jsonpCallback,en.push(r)),s&&v(o)&&o(s[0]),s=o=void 0}),"script"}),m.createHTMLDocument=((tn=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===tn.childNodes.length),T.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(m.createHTMLDocument?((i=(e=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,e.head.appendChild(i)):e=b),o=!n&&[],(r=z.exec(t))?[e.createElement(r[1])]:(r=Dt([t],e,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Te(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=T.css(t,"position"),h=T(t),u={};"static"===c&&(t.style.position="relative"),a=h.offset(),o=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=h.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,T.extend({},a))),null!=e.top&&(u.top=e.top-a.top+s),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):h.css(u)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(i,"marginTop",!0),left:e.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||gt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;T.fn[t]=function(i){return tt(this,function(t,i,r){var o;if(y(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),T.each(["top","left"],function(t,e){T.cssHooks[e]=te(m.pixelPosition,function(t,n){if(n)return n=Zt(t,e),Vt.test(n)?T(t).position()[e]+"px":n})}),T.each({Height:"height",Width:"width"},function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){T.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return tt(this,function(e,n,r){var o;return y(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?T.css(e,n,a):T.style(e,n,r,a)},e,s?r:void 0,s)}})}),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){T.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var n,i,r;if("string"==typeof e&&(n=t[e],e=t,t=n),v(t))return i=a.call(arguments,2),r=function(){return t.apply(e||this,i.concat(a.call(arguments)))},r.guid=t.guid=t.guid||T.guid++,r},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=O,T.isFunction=v,T.isWindow=y,T.camelCase=rt,T.type=_,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return T.noConflict=function(t){return i.$===T&&(i.$=sn),t&&i.jQuery===T&&(i.jQuery=on),T},void 0===r&&(i.jQuery=i.$=T),T})},1549:function(t,e,n){var i=n(2032),r=n(3862),o=n(6721),s=n(2749),a=n(5749);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},79:function(t,e,n){var i=n(3702),r=n(80),o=n(4739),s=n(8655),a=n(1175);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},8223:function(t,e,n){var i=n(6110)(n(9325),"Map");t.exports=i},3661:function(t,e,n){var i=n(3040),r=n(7670),o=n(289),s=n(4509),a=n(2949);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,t.exports=l},1873:function(t,e,n){var i=n(9325).Symbol;t.exports=i},4932:function(t){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}},6547:function(t,e,n){var i=n(3360),r=n(5288),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&r(s,n)&&(void 0!==n||e in t)||i(t,e,n)}},6025:function(t,e,n){var i=n(5288);t.exports=function(t,e){for(var n=t.length;n--;)if(i(t[n][0],e))return n;return-1}},3360:function(t,e,n){var i=n(3243);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},7422:function(t,e,n){var i=n(1769),r=n(7797);t.exports=function(t,e){for(var n=0,o=(e=i(e,t)).length;null!=t&&n<o;)t=t[r(e[n++])];return n&&n==o?t:void 0}},2552:function(t,e,n){var i=n(1873),r=n(659),o=n(9350),s=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?r(t):o(t)}},5083:function(t,e,n){var i=n(1882),r=n(7296),o=n(3805),s=n(7473),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,h=l.toString,u=c.hasOwnProperty,f=RegExp("^"+h.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||r(t))&&(i(t)?f:a).test(s(t))}},3170:function(t,e,n){var i=n(6547),r=n(1769),o=n(361),s=n(3805),a=n(7797);t.exports=function(t,e,n,l){if(!s(t))return t;for(var c=-1,h=(e=r(e,t)).length,u=h-1,f=t;null!=f&&++c<h;){var p=a(e[c]),d=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=u){var g=f[p];void 0===(d=l?l(g,p,f):void 0)&&(d=s(g)?g:o(e[c+1])?[]:{})}i(f,p,d),f=f[p]}return t}},7556:function(t,e,n){var i=n(1873),r=n(4932),o=n(8830),s=n(4394),a=i?i.prototype:void 0,l=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return r(e,t)+"";if(s(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},1769:function(t,e,n){var i=n(8830),r=n(8586),o=n(1802),s=n(3222);t.exports=function(t,e){return i(t)?t:r(t,e)?[t]:o(s(t))}},5481:function(t,e,n){var i=n(9325)["__core-js_shared__"];t.exports=i},3243:function(t,e,n){var i=n(6110),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},4840:function(t,e,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},2651:function(t,e,n){var i=n(4218);t.exports=function(t,e){var n=t.__data__;return i(e)?n["string"==typeof e?"string":"hash"]:n.map}},6110:function(t,e,n){var i=n(5083),r=n(392);t.exports=function(t,e){var n=r(t,e);return i(n)?n:void 0}},659:function(t,e,n){var i=n(1873),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,a=i?i.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var i=!0}catch(t){}var r=s.call(t);return i&&(e?t[a]=n:delete t[a]),r}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},2032:function(t,e,n){var i=n(1042);t.exports=function(){this.__data__=i?i(null):{},this.size=0}},3862:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:function(t,e,n){var i=n(1042),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(i){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(e,t)?e[t]:void 0}},2749:function(t,e,n){var i=n(1042),r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return i?void 0!==e[t]:r.call(e,t)}},5749:function(t,e,n){var i=n(1042);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=i&&void 0===e?"__lodash_hash_undefined__":e,this}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var i=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}},8586:function(t,e,n){var i=n(8830),r=n(4394),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(s.test(t)||!o.test(t)||null!=e&&t in Object(e))}},4218:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:function(t,e,n){var i,r=n(5481),o=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!o&&o in t}},3702:function(t){t.exports=function(){this.__data__=[],this.size=0}},80:function(t,e,n){var i=n(6025),r=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():r.call(e,n,1),--this.size,!0)}},4739:function(t,e,n){var i=n(6025);t.exports=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]}},8655:function(t,e,n){var i=n(6025);t.exports=function(t){return i(this.__data__,t)>-1}},1175:function(t,e,n){var i=n(6025);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},3040:function(t,e,n){var i=n(1549),r=n(79),o=n(8223);t.exports=function(){this.size=0,this.__data__={hash:new i,map:new(o||r),string:new i}}},7670:function(t,e,n){var i=n(2651);t.exports=function(t){var e=i(this,t).delete(t);return this.size-=e?1:0,e}},289:function(t,e,n){var i=n(2651);t.exports=function(t){return i(this,t).get(t)}},4509:function(t,e,n){var i=n(2651);t.exports=function(t){return i(this,t).has(t)}},2949:function(t,e,n){var i=n(2651);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},2224:function(t,e,n){var i=n(104);t.exports=function(t){var e=i(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},1042:function(t,e,n){var i=n(6110)(Object,"create");t.exports=i},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:function(t,e,n){var i=n(4840),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();t.exports=o},1802:function(t,e,n){var i=n(2224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=i(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,function(t,n,i,r){e.push(i?r.replace(o,"$1"):n||t)}),e});t.exports=s},7797:function(t,e,n){var i=n(4394);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},8156:function(t,e,n){var i=n(7422);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},8830:function(t){var e=Array.isArray;t.exports=e},1882:function(t,e,n){var i=n(2552),r=n(3805);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},4394:function(t,e,n){var i=n(2552),r=n(346);t.exports=function(t){return"symbol"==typeof t||r(t)&&"[object Symbol]"==i(t)}},104:function(t,e,n){var i=n(3661);function r(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=t.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(r.Cache||i),n}r.Cache=i,t.exports=r},3560:function(t,e,n){var i=n(3170);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},3222:function(t,e,n){var i=n(7556);t.exports=function(t){return null==t?"":i(t)}},6926:function(t,e,n){"use strict";var i=n(1020),r=function(t,e){if(e&&e.bbox)return{leaf:e,x:e.bbox[0],y:e.bbox[1],w:e.bbox[2]-e.bbox[0],h:e.bbox[3]-e.bbox[1]};for(var n=t.length,i=0,r=new Array(n);i<n;)r[i]=[t[i][0],t[i][1]],i++;var o=r[0];n=r.length,i=1;for(var s={min:[].concat(o),max:[].concat(o)};i<n;)r[i][0]<s.min[0]?s.min[0]=r[i][0]:r[i][0]>s.max[0]&&(s.max[0]=r[i][0]),r[i][1]<s.min[1]?s.min[1]=r[i][1]:r[i][1]>s.max[1]&&(s.max[1]=r[i][1]),i++;var a={x:s.min[0],y:s.min[1],w:s.max[0]-s.min[0],h:s.max[1]-s.min[1]};return e&&(a.leaf=e),a},o={point:function(t,e){return e.insertSubtree({x:t.geometry.coordinates[0],y:t.geometry.coordinates[1],w:0,h:0,leaf:t},e.root)},multiPointLineString:function(t,e){return e.insertSubtree(r(t.geometry.coordinates,t),e.root)},multiLineStringPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],t.geometry.coordinates),t),e.root)},multiPolygon:function(t,e){return e.insertSubtree(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],t.geometry.coordinates)),t),e.root)},makeRec:function(t){return i(t.x,t.y,t.w,t.h)},geometryCollection:function(t,e){if(t.bbox)return e.insertSubtree({leaf:t,x:t.bbox[0],y:t.bbox[1],w:t.bbox[2]-t.bbox[0],h:t.bbox[3]-t.bbox[1]},e.root);for(var n,i=t.geometry.geometries,s=0,a=i.length,l=[];s<a;){switch((n=i[s]).type){case"Point":l.push(o.makeRec({x:n.coordinates[0],y:n.coordinates[1],w:0,h:0}));break;case"MultiPoint":case"LineString":l.push(o.makeRec(r(n.coordinates)));break;case"MultiLineString":case"Polygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],n.coordinates))));break;case"MultiPolygon":l.push(o.makeRec(r(Array.prototype.concat.apply([],Array.prototype.concat.apply([],n.coordinates)))));break;case"GeometryCollection":a=(i=i.concat(n.geometries)).length}s++}var c=l[0];for(s=1,a=l.length;s<a;)c.expand(l[s]),s++;return e.insertSubtree({leaf:t,x:c.x(),y:c.y(),h:c.h(),w:c.w()},e.root)}};e.geoJSON=function(t){var e,n,i=this;if(Array.isArray(t))e=t.slice();else if(t.features&&Array.isArray(t.features))e=t.features.slice();else{if(!(t instanceof Object))throw"this isn't what we're looking for";e=[t]}for(var r=e.length,s=0;s<r;){if("Feature"===(n=e[s]).type)switch(n.geometry.type){case"Point":o.point(n,i);break;case"MultiPoint":case"LineString":o.multiPointLineString(n,i);break;case"MultiLineString":case"Polygon":o.multiLineStringPolygon(n,i);break;case"MultiPolygon":o.multiPolygon(n,i);break;case"GeometryCollection":o.geometryCollection(n,i)}s++}},e.bbox=function(){var t,e,n,i;switch(arguments.length){case 1:t=arguments[0][0][0],e=arguments[0][0][1],n=arguments[0][1][0],i=arguments[0][1][1];break;case 2:t=arguments[0][0],e=arguments[0][1],n=arguments[1][0],i=arguments[1][1];break;case 4:t=arguments[0],e=arguments[1],n=arguments[2],i=arguments[3]}return this.search({x:t,y:e,w:n-t,h:i-e})}},3301:function(t,e,n){"use strict";var i=n(4651),r=n(6926);i.prototype.bbox=r.bbox,i.prototype.geoJSON=r.geoJSON,i.Rectangle=n(1020),t.exports=i},1020:function(t){"use strict";function e(t,n,i,r){if(!(this instanceof e))return new e(t,n,i,r);var o,s,a;t.x?(i=t.w,r=t.h,n=t.y,0!==t.w&&!t.w&&t.x2?(i=t.x2-t.x,r=t.y2-t.y):(i=t.w,r=t.h),t=t.x,o=t+i,s=n+r,a=!(r+i)):(o=t+i,s=n+r,a=!(r+i)),this.x1=this.x=function(){return t},this.y1=this.y=function(){return n},this.x2=function(){return o},this.y2=function(){return s},this.w=function(){return i},this.h=function(){return r},this.p=function(){return a},this.overlap=function(e){return a||e.p()?t<=e.x2()&&o>=e.x()&&n<=e.y2()&&s>=e.y():t<e.x2()&&o>e.x()&&n<e.y2()&&s>e.y()},this.expand=function(e){var a,l,c=e.x(),h=e.y(),u=e.x2(),f=e.y2();return a=t>c?c:t,l=n>h?h:n,i=o>u?o-a:u-a,r=s>f?s-l:f-l,t=a,n=l,this}}e.overlapRectangle=function(t,e){return 0===t.h&&0===t.w||0===e.h&&0===e.w?t.x<=e.x+e.w&&t.x+t.w>=e.x&&t.y<=e.y+e.h&&t.y+t.h>=e.y:t.x<e.x+e.w&&t.x+t.w>e.x&&t.y<e.y+e.h&&t.y+t.h>e.y},e.containsRectangle=function(t,e){return t.x+t.w<=e.x+e.w&&t.x>=e.x&&t.y+t.h<=e.y+e.h&&t.y>=e.y},e.expandRectangle=function(t,e){var n,i,r=t.x+t.w,o=e.x+e.w,s=t.y+t.h,a=e.y+e.h;return n=t.x>e.x?e.x:t.x,i=t.y>e.y?e.y:t.y,t.w=r>o?r-n:o-n,t.h=s>a?s-i:a-i,t.x=n,t.y=i,t},e.makeMBR=function(t,n){if(!t.length)return{x:0,y:0,w:0,h:0};(n=n||{}).x=t[0].x,n.y=t[0].y,n.w=t[0].w,n.h=t[0].h;for(var i=1,r=t.length;i<r;i++)e.expandRectangle(n,t[i]);return n},e.squarifiedRatio=function(t,e,n){var i=(t+e)/2,r=t*e;return r*n/(r/(i*i))},t.exports=e},4651:function(t,e,n){"use strict";var i=n(1020);function r(t){if(!(this instanceof r))return new r(t);var e=3,n=6;isNaN(t)||(e=Math.floor(t/2),n=t);var o={x:0,y:0,w:0,h:0,id:"root",nodes:[]};this.root=o;var s=function(t){for(var e,n=t.slice(),i=[];n.length;)(e=n.pop()).nodes?n=n.concat(e.nodes):e.leaf&&i.push(e);return i},a=function(t,n,r){var o,a,l,c=[],h=[],p=[];if(!t||!i.overlapRectangle(t,r))return p;var d={x:t.x,y:t.y,w:t.w,h:t.h,target:n};for(h.push(r.nodes.length),c.push(r);c.length>0;){if(o=c.pop(),a=h.pop()-1,"target"in d)for(;a>=0;){if(l=o.nodes[a],i.overlapRectangle(d,l)){if(d.target&&"leaf"in l&&l.leaf===d.target||!d.target&&("leaf"in l||i.containsRectangle(l,d))){p="nodes"in l?s(o.nodes.splice(a,1)):o.nodes.splice(a,1),i.makeMBR(o.nodes,o),delete d.target;break}"nodes"in l&&(h.push(a),c.push(o),o=l,a=l.nodes.length)}a--}else if("nodes"in d){o.nodes.splice(a+1,1),o.nodes.length>0&&i.makeMBR(o.nodes,o);for(var g=0;g<d.nodes.length;g++)f(d.nodes[g],o);d.nodes=[],0===c.length&&o.nodes.length<=1?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[],c.push(o),h.push(1)):c.length>0&&o.nodes.length<e?(d.nodes=u(o,!0,d.nodes,o),o.nodes=[]):delete d.nodes}else i.makeMBR(o.nodes,o);0}return p},l=function(t){for(var e=h(t);t.length>0;)c(t,e[0],e[1]);return e},c=function(t,n,r){for(var o,s,a,l=i.squarifiedRatio(n.w,n.h,n.nodes.length+1),c=i.squarifiedRatio(r.w,r.h,r.nodes.length+1),h=t.length-1;h>=0;h--){var u=t[h],f={};f.x=Math.min(n.x,u.x),f.y=Math.min(n.y,u.y),f.w=Math.max(n.x+n.w,u.x+u.w)-f.x,f.h=Math.max(n.y+n.h,u.y+u.h)-f.y;var p=Math.abs(i.squarifiedRatio(f.w,f.h,n.nodes.length+2)-l),d={};d.x=Math.min(r.x,u.x),d.y=Math.min(r.y,u.y),d.w=Math.max(r.x+r.w,u.x+u.w)-d.x,d.h=Math.max(r.y+r.h,u.y+u.h)-d.y;var g=Math.abs(i.squarifiedRatio(d.w,d.h,r.nodes.length+2)-c);(!s||!o||Math.abs(g-p)<o)&&(s=h,o=Math.abs(g-p),a=g<p?r:n)}var m=t.splice(s,1)[0];n.nodes.length+t.length+1<=e?(n.nodes.push(m),i.expandRectangle(n,m)):r.nodes.length+t.length+1<=e?(r.nodes.push(m),i.expandRectangle(r,m)):(a.nodes.push(m),i.expandRectangle(a,m))},h=function(t){for(var e,n,i=t.length-1,r=0,o=t.length-1,s=0,a=t.length-2;a>=0;a--){var l=t[a];l.x>t[r].x?r=a:l.x+l.w<t[i].x+t[i].w&&(i=a),l.y>t[s].y?s=a:l.y+l.h<t[o].y+t[o].h&&(o=a)}return Math.abs(t[i].x+t[i].w-t[r].x)>Math.abs(t[o].y+t[o].h-t[s].y)?i>r?(e=t.splice(i,1)[0],n=t.splice(r,1)[0]):(n=t.splice(r,1)[0],e=t.splice(i,1)[0]):o>s?(e=t.splice(o,1)[0],n=t.splice(s,1)[0]):(n=t.splice(s,1)[0],e=t.splice(o,1)[0]),[{x:e.x,y:e.y,w:e.w,h:e.h,nodes:[e]},{x:n.x,y:n.y,w:n.w,h:n.h,nodes:[n]}]},u=function(t,e,n,r){var o=[];if(!i.overlapRectangle(t,r))return n;for(o.push(r.nodes);o.length>0;)for(var s=o.pop(),a=s.length-1;a>=0;a--){var l=s[a];i.overlapRectangle(t,l)&&("nodes"in l?o.push(l.nodes):"leaf"in l&&(e?n.push(l):n.push(l.leaf)))}return n},f=function(t,e){var r;if(0===e.nodes.length)return e.x=t.x,e.y=t.y,e.w=t.w,e.h=t.h,void e.nodes.push(t);for(var o,s=function(t,e){var n,r=-1,o=[],s=!0;o.push(e);for(var a=e.nodes;s||-1!==r;){s?s=!1:(o.push(a[r]),a=a[r].nodes,r=-1);for(var l=a.length-1;l>=0;l--){var c=a[l];if("leaf"in c){r=-1;break}var h=i.squarifiedRatio(c.w,c.h,c.nodes.length+1),u=Math.max(c.x+c.w,t.x+t.w)-Math.min(c.x,t.x),f=Math.max(c.y+c.h,t.y+t.h)-Math.min(c.y,t.y),p=i.squarifiedRatio(u,f,c.nodes.length+2);(r<0||Math.abs(p-h)<n)&&(n=Math.abs(p-h),r=l)}}return o}(t,e),a=t;s.length>0;){if(r&&"nodes"in r&&0===r.nodes.length){o=r,r=s.pop();for(var c=0;c<r.nodes.length;c++)if(r.nodes[c]===o||0===r.nodes[c].nodes.length){r.nodes.splice(c,1);break}}else r=s.pop();if("leaf"in a||"nodes"in a||Array.isArray(a)){if(Array.isArray(a)){for(var h=0;h<a.length;h++)i.expandRectangle(r,a[h]);r.nodes=r.nodes.concat(a)}else i.expandRectangle(r,a),r.nodes.push(a);if(r.nodes.length<=n)a={x:r.x,y:r.y,w:r.w,h:r.h};else{var u=l(r.nodes);a=u,s.length<1&&(r.nodes.push(u[0]),s.push(r),a=u[1])}}else i.expandRectangle(r,a),a={x:r.x,y:r.y,w:r.w,h:r.h}}};this.insertSubtree=f,this.getTree=function(){return o},this.setTree=function(t,e){return e||(e=o),i=t,(n=e).nodes=i.nodes,n.x=i.x,n.y=i.y,n.w=i.w,n.h=i.h,n;var n,i},this.search=function(t,e,n){return u(t,e,n=n||[],o)};this.remove=function(t,e){return e&&"function"!=typeof e?function(t,e){return a(t,e,o)}(t,e):function(t){for(var e,n=1,i=[];n>0;)n=(e=a(t,!1,o)).length,i=i.concat(e);return i}(t)},this.insert=function(t,e){return f({x:t.x,y:t.y,w:t.w,h:t.h,leaf:e},o)}}r.prototype.toJSON=function(t){return JSON.stringify(this.root,!1,t)},r.fromJSON=function(t){var e=new r;return e.setTree(JSON.parse(t)),e},t.exports=r,"function"!=typeof Array.isArray&&(Array.isArray=function(t){return"object"==typeof t&&"[object Array]"==={}.toString.call(t)})},2872:function(t,e,n){var i={"./Controller.js":1572,"./Controller/Sequence.js":4798,"./Controller/Stranded.js":4770,"./Model.js":6767,"./Model/File.js":6200,"./Model/File/BAM.js":439,"./Model/File/BED.js":4976,"./Model/File/GFF.js":1290,"./Model/File/VCF.js":2715,"./Model/File/WIG.js":4734,"./Model/Gene.js":407,"./Model/Gene/Ensembl.js":6448,"./Model/Sequence.js":932,"./Model/Sequence/Ensembl.js":1104,"./Model/Sequence/Fasta.js":2581,"./Model/SequenceVariation.js":8054,"./Model/Stranded.js":6815,"./Model/Transcript.js":9024,"./Model/Transcript/Ensembl.js":1331,"./View.js":3257,"./View/Gene.js":2425,"./View/Gene/Ensembl.js":9954,"./View/Sequence.js":1661,"./View/SequenceVariation.js":472,"./View/Transcript.js":7550,"./View/Transcript/Ensembl.js":6305,"./library/Chromosome.js":2624,"./library/File.js":2254,"./library/File/BAM.js":3593,"./library/File/BED.js":3350,"./library/File/BIGBED.js":148,"./library/File/BIGWIG.js":5330,"./library/File/GFF.js":1200,"./library/File/VCF.js":8598,"./library/File/WIG.js":728,"./library/Gene.js":4529,"./library/Graph.js":3330,"./library/Graph/Bar.js":1216,"./library/Graph/Line.js":3511,"./library/HighlightRegion.js":5034,"./library/Legend.js":6829,"./library/Scalebar.js":9897,"./library/Scaleline.js":7826,"./library/Static.js":6170,"./library/dbSNP.js":3875};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=2872},9828:function(t,e,n){var i={"./grch37":[9171,[171]],"./grch37.js":[9171,[171]],"./grch38":[3298,[298]],"./grch38.js":[3298,[298]]};function r(t){try{if(!n.o(i,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=i[t],r=e[0];return n.e(e[1][0]).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=9828,t.exports=r},8768:function(){var t;(t=jQuery).fn.mousehold=function(e,n){if(e&&"function"==typeof e&&(n=e,e=100),n&&"function"==typeof n){var i=0,r=0;return this.each(function(){t(this).mousedown(function(){r=1;var t=0,o=this;i=setInterval(function(){t++,n.call(o,t),r=2},e)});var o=function(){clearInterval(i),1==r&&n.call(this,1),r=0};t(this).mouseout(o),t(this).mouseup(o)})}}},1106:function(){!function(t){var e=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=e.length;n;)t.event.fixHooks[e[--n]]=t.event.mouseHooks;function i(e){var n=e||window.event,i=[].slice.call(arguments,1),r=0,o=0,s=0;return(e=t.event.fix(n)).type="mousewheel",n.wheelDelta&&(r=n.wheelDelta/120),n.detail&&(r=-n.detail/3),s=r,void 0!==n.axis&&n.axis===n.HORIZONTAL_AXIS&&(s=0,o=-1*r),void 0!==n.wheelDeltaY&&(s=n.wheelDeltaY/120),void 0!==n.wheelDeltaX&&(o=-1*n.wheelDeltaX/120),i.unshift(e,r,o,s),(t.event.dispatch||t.event.handle).apply(this,i)}t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=e.length;t;)this.addEventListener(e[--t],i,!1);else this.onmousewheel=i},teardown:function(){if(this.removeEventListener)for(var t=e.length;t;)this.removeEventListener(e[--t],i,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery)},783:function(){!function(t){function e(t,e){return"function"==typeof t?t.call(e):t}function n(e,n){this.$element=t(e),this.options=n,this.enabled=!0,this.fixTitle()}n.prototype={show:function(){var n=this.getTitle();if(n&&this.enabled){var i=this.tip();i.find(".tipsy-inner")[this.options.html?"html":"text"](n),i[0].className="tipsy",i.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var r,o=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),s=i[0].offsetWidth,a=i[0].offsetHeight,l=e(this.options.gravity,this.$element[0]);switch(l.charAt(0)){case"n":r={top:o.top+o.height+this.options.offset,left:o.left+o.width/2-s/2};break;case"s":r={top:o.top-a-this.options.offset,left:o.left+o.width/2-s/2};break;case"e":r={top:o.top+o.height/2-a/2,left:o.left-s-this.options.offset};break;case"w":r={top:o.top+o.height/2-a/2,left:o.left+o.width+this.options.offset}}2==l.length&&("w"==l.charAt(1)?r.left=o.left+o.width/2-15:r.left=o.left+o.width/2-s+15),i.css(r).addClass("tipsy-"+l),i.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+l.charAt(0),this.options.className&&i.addClass(e(this.options.className,this.$element[0])),this.options.fade?i.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):i.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},getTitle:function(){var t,e=this.$element,n=this.options;return this.fixTitle(),"string"==typeof(n=this.options).title?t=e.attr("title"==n.title?"original-title":n.title):"function"==typeof n.title&&(t=n.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||n.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'),this.$tip.data("tipsy-pointee",this.$element[0])),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(e){if(!0===e)return this.data("tipsy");if("string"==typeof e){var i=this.data("tipsy");return i&&i[e](),this}function r(i){var r=t.data(i,"tipsy");return r||(r=new n(i,t.fn.tipsy.elementOptions(i,e)),t.data(i,"tipsy",r)),r}if((e=t.extend({},t.fn.tipsy.defaults,e)).live||this.each(function(){r(this)}),"manual"!=e.trigger){var o=e.live?"live":"bind",s="hover"==e.trigger?"mouseenter":"focus",a="hover"==e.trigger?"mouseleave":"blur";this[o](s,function(){var t=r(this);t.hoverState="in",0==e.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},e.delayIn))})[o](a,function(){var t=r(this);t.hoverState="out",0==e.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},e.delayOut)})}return this},t.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsy.revalidate=function(){t(".tipsy").each(function(){var e=t.data(this,"tipsy-pointee");e&&function(t){for(;t=t.parentNode;)if(t==document)return!0;return!1}(e)||t(this).remove()})},t.fn.tipsy.elementOptions=function(e,n){return t.metadata?t.extend({},n,t(e).metadata()):n},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(e,n){return function(){var i={ns:n[0],ew:n.length>1&&n[1]},r=t(document).scrollTop()+e,o=t(document).scrollLeft()+e,s=t(this);return s.offset().top<r&&(i.ns="n"),s.offset().left<o&&(i.ew="w"),t(window).width()+t(document).scrollLeft()-s.offset().left<e&&(i.ew="e"),t(window).height()+t(document).scrollTop()-s.offset().top<e&&(i.ns="s"),i.ns+(i.ew?i.ew:"")}}}(jQuery)},7859:function(t,e,n){var i={"./jquery.mousehold.js":8768,"./jquery.mousewheel.js":1106,"./jquery.tipsy.js":783};function r(t){var e=o(t);return n(e)}function o(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=7859},9910:function(t,e,n){var i={"./controlPanel":[2459,[840,407]],"./controlPanel.js":[2459,[840,407]],"./fileDrop":[8966,[966]],"./fileDrop.js":[8966,[966]],"./focusRegion":[2177,[840,423]],"./focusRegion.js":[2177,[840,423]],"./fullscreen":[5184,[840,512]],"./fullscreen.js":[5184,[840,512]],"./karyotype":[6347,[347]],"./karyotype.js":[6347,[347]],"./resizer":[6943,[943]],"./resizer.js":[6943,[943]],"./tooltips":[7557,[840,984]],"./tooltips.js":[7557,[840,984]],"./trackControls":[7052,[52]],"./trackControls.js":[7052,[52]]};function r(t){try{if(!n.o(i,t))return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}catch(t){return Promise.reject(t)}var e=i[t],r=e[0];return Promise.all(e[1].map(n.e)).then(function(){return n(r)})}r.keys=function(){return Object.keys(i)},r.id=9910,t.exports=r},9306:function(t,e,n){"use strict";var i=n(4901),r=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},5548:function(t,e,n){"use strict";var i=n(3517),r=n(6823),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a constructor")}},3506:function(t,e,n){"use strict";var i=n(3925),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},6469:function(t,e,n){"use strict";var i=n(8227),r=n(2360),o=n(4913).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:r(null)}),t.exports=function(t){a[s][t]=!0}},679:function(t,e,n){"use strict";var i=n(1625),r=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw new r("Incorrect invocation")}},8551:function(t,e,n){"use strict";var i=n(34),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},4373:function(t,e,n){"use strict";var i=n(8981),r=n(5610),o=n(6198);t.exports=function(t){for(var e=i(this),n=o(e),s=arguments.length,a=r(s>1?arguments[1]:void 0,n),l=s>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>a;)e[a++]=t;return e}},7916:function(t,e,n){"use strict";var i=n(6080),r=n(9565),o=n(8981),s=n(6319),a=n(4209),l=n(3517),c=n(6198),h=n(2278),u=n(4527),f=n(81),p=n(851),d=n(9539),g=Array;t.exports=function(t){var e=l(this),n=arguments.length,m=n>1?arguments[1]:void 0,v=void 0!==m;v&&(m=i(m,n>2?arguments[2]:void 0));var y,b,w,x,_,S,k=o(t),T=p(k),C=0;if(!T||this===g&&a(T))for(y=c(k),b=e?new this(y):g(y);y>C;C++)S=v?m(k[C],C):k[C],h(b,C,S);else for(b=e?new this:[],_=(x=f(k,T)).next;!(w=r(_,x)).done;C++){S=v?s(x,m,[w.value,C],!0):w.value;try{h(b,C,S)}catch(t){d(x,"throw",t)}}return u(b,C),b}},9617:function(t,e,n){"use strict";var i=n(5397),r=n(5610),o=n(6198),s=function(t){return function(e,n,s){var a=i(e),l=o(a);if(0===l)return!t&&-1;var c,h=r(s,l);if(t&&n!=n){for(;l>h;)if((c=a[h++])!=c)return!0}else for(;l>h;h++)if((t||h in a)&&a[h]===n)return t||h||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},9213:function(t,e,n){"use strict";var i=n(6080),r=n(7055),o=n(8981),s=n(6198),a=n(1469),l=n(2278),c=function(t){var e=1===t,n=2===t,c=3===t,h=4===t,u=6===t,f=7===t,p=5===t||u;return function(d,g,m){for(var v,y,b=o(d),w=r(b),x=s(w),_=i(g,m),S=0,k=0,T=e?a(d,x):n||f?a(d,0):void 0;x>S;S++)if((p||S in w)&&(y=_(v=w[S],S,b),t))if(e)l(T,S,y);else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return S;case 2:l(T,k++,v)}else switch(t){case 4:return!1;case 7:l(T,k++,v)}return u?-1:c||h?h:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},4527:function(t,e,n){"use strict";var i=n(3724),r=n(4376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7680:function(t,e,n){"use strict";var i=n(9504);t.exports=i([].slice)},4488:function(t,e,n){"use strict";var i=n(7680),r=Math.floor,o=function(t,e){var n=t.length;if(n<8)for(var s,a,l=1;l<n;){for(a=l,s=t[l];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==l++&&(t[a]=s)}else for(var c=r(n/2),h=o(i(t,0,c),e),u=o(i(t,c),e),f=h.length,p=u.length,d=0,g=0;d<f||g<p;)t[d+g]=d<f&&g<p?e(h[d],u[g])<=0?h[d++]:u[g++]:d<f?h[d++]:u[g++];return t};t.exports=o},7433:function(t,e,n){"use strict";var i=n(4376),r=n(3517),o=n(34),s=n(8227)("species"),a=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(r(e)&&(e===a||i(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},1469:function(t,e,n){"use strict";var i=n(7433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},6319:function(t,e,n){"use strict";var i=n(8551),r=n(9539);t.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){r(t,"throw",e)}}},4428:function(t,e,n){"use strict";var i=n(8227)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[i]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},2195:function(t,e,n){"use strict";var i=n(9504),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},6955:function(t,e,n){"use strict";var i=n(2140),r=n(4901),o=n(2195),s=n(8227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},7740:function(t,e,n){"use strict";var i=n(9297),r=n(5031),o=n(7347),s=n(4913);t.exports=function(t,e,n){for(var a=r(e),l=s.f,c=o.f,h=0;h<a.length;h++){var u=a[h];i(t,u)||n&&i(n,u)||l(t,u,c(e,u))}}},2211:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},6699:function(t,e,n){"use strict";var i=n(3724),r=n(4913),o=n(6980);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2278:function(t,e,n){"use strict";var i=n(3724),r=n(4913),o=n(6980);t.exports=function(t,e,n){i?r.f(t,e,o(0,n)):t[e]=n}},2106:function(t,e,n){"use strict";var i=n(283),r=n(4913);t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},6840:function(t,e,n){"use strict";var i=n(4901),r=n(4913),o=n(283),s=n(9433);t.exports=function(t,e,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:e;if(i(n)&&o(n,c,a),a.global)l?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6279:function(t,e,n){"use strict";var i=n(6840);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},9433:function(t,e,n){"use strict";var i=n(4576),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},3724:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){"use strict";var i=n(4576),r=n(34),o=i.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},6837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4265:function(t,e,n){"use strict";var i=n(2839);t.exports=/ipad|iphone|ipod/i.test(i)&&"undefined"!=typeof Pebble},9544:function(t,e,n){"use strict";var i=n(2839);t.exports=/ipad|iphone|ipod/i.test(i)&&/applewebkit/i.test(i)},8574:function(t,e,n){"use strict";var i=n(4215);t.exports="NODE"===i},7860:function(t,e,n){"use strict";var i=n(2839);t.exports=/web0s(?!.*chrome)/i.test(i)},2839:function(t,e,n){"use strict";var i=n(4576).navigator,r=i&&i.userAgent;t.exports=r?String(r):""},9519:function(t,e,n){"use strict";var i,r,o=n(4576),s=n(2839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,h=c&&c.v8;h&&(r=(i=h.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},4215:function(t,e,n){"use strict";var i=n(4576),r=n(2839),o=n(2195),s=function(t){return r.slice(0,t.length)===t};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":i.Bun&&"string"==typeof Bun.version?"BUN":i.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(i.process)?"NODE":i.window&&i.document?"BROWSER":"REST"},6193:function(t,e,n){"use strict";var i=n(9504),r=Error,o=i("".replace),s=String(new r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=o(t,a,"");return t}},747:function(t,e,n){"use strict";var i=n(6699),r=n(6193),o=n(4659),s=Error.captureStackTrace;t.exports=function(t,e,n,a){o&&(s?s(t,e):i(t,"stack",r(n,a)))}},4659:function(t,e,n){"use strict";var i=n(9039),r=n(6980);t.exports=!i(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)})},6518:function(t,e,n){"use strict";var i=n(4576),r=n(7347).f,o=n(6699),s=n(6840),a=n(9433),l=n(7740),c=n(2796);t.exports=function(t,e){var n,h,u,f,p,d=t.target,g=t.global,m=t.stat;if(n=g?i:m?i[d]||a(d,{}):i[d]&&i[d].prototype)for(h in e){if(f=e[h],u=t.dontCallGetSet?(p=r(n,h))&&p.value:n[h],!c(g?h:d+(m?".":"#")+h,t.forced)&&void 0!==u){if(typeof f==typeof u)continue;l(f,u)}(t.sham||u&&u.sham)&&o(f,"sham",!0),s(n,h,f,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},259:function(t,e,n){"use strict";var i=n(4376),r=n(6198),o=n(6837),s=n(6080),a=n(2278),l=function(t,e,n,c,h,u,f,p){for(var d,g,m=h,v=0,y=!!f&&s(f,p);v<c;)v in n&&(d=y?y(n[v],v,e):n[v],u>0&&i(d)?(g=r(d),m=l(t,e,d,g,m,u-1)-1):(o(m+1),a(t,m,d)),m++),v++;return m};t.exports=l},8745:function(t,e,n){"use strict";var i=n(616),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},6080:function(t,e,n){"use strict";var i=n(7476),r=n(9306),o=n(616),s=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){"use strict";var i=n(9039);t.exports=!i(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){"use strict";var i=n(616),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){"use strict";var i=n(3724),r=n(9297),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},6706:function(t,e,n){"use strict";var i=n(9504),r=n(9306);t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},7476:function(t,e,n){"use strict";var i=n(2195),r=n(9504);t.exports=function(t){if("Function"===i(t))return r(t)}},9504:function(t,e,n){"use strict";var i=n(616),r=Function.prototype,o=r.call,s=i&&r.bind.bind(o,o);t.exports=i?s:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){"use strict";var i=n(4576),r=n(4901);t.exports=function(t,e){return arguments.length<2?(n=i[t],r(n)?n:void 0):i[t]&&i[t][e];var n}},851:function(t,e,n){"use strict";var i=n(6955),r=n(5966),o=n(4117),s=n(6269),a=n(8227)("iterator");t.exports=function(t){if(!o(t))return r(t,a)||r(t,"@@iterator")||s[i(t)]}},81:function(t,e,n){"use strict";var i=n(9565),r=n(9306),o=n(8551),s=n(6823),a=n(851),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(r(n))return o(i(n,t));throw new l(s(t)+" is not iterable")}},5966:function(t,e,n){"use strict";var i=n(9306),r=n(4117);t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},4576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var i=n(9504),r=n(8981),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},421:function(t){"use strict";t.exports={}},3138:function(t){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},397:function(t,e,n){"use strict";var i=n(7751);t.exports=i("document","documentElement")},5917:function(t,e,n){"use strict";var i=n(3724),r=n(9039),o=n(4055);t.exports=!i&&!r(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(2195),s=Object,a=i("".split);t.exports=r(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},3706:function(t,e,n){"use strict";var i=n(9504),r=n(4901),o=n(7629),s=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},7584:function(t,e,n){"use strict";var i=n(34),r=n(6699);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},1181:function(t,e,n){"use strict";var i,r,o,s=n(8622),a=n(4576),l=n(34),c=n(6699),h=n(9297),u=n(7629),f=n(6119),p=n(421),d="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||u.state){var v=u.state||(u.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(t,e){if(v.has(t))throw new g(d);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},o=function(t){return v.has(t)}}else{var y=f("state");p[y]=!0,i=function(t,e){if(h(t,y))throw new g(d);return e.facade=t,c(t,y,e),e},r=function(t){return h(t,y)?t[y]:{}},o=function(t){return h(t,y)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return n}}}},4209:function(t,e,n){"use strict";var i=n(8227),r=n(6269),o=i("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},4376:function(t,e,n){"use strict";var i=n(2195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},4901:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(4901),s=n(6955),a=n(7751),l=n(3706),c=function(){},h=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,f=i(u.exec),p=!u.test(c),d=function(t){if(!o(t))return!1;try{return h(c,[],t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!h||r(function(){var t;return d(d.call)||!d(Object)||!d(function(){t=!0})||t})?g:d},2796:function(t,e,n){"use strict";var i=n(9039),r=n(4901),o=/#|\.prototype\./,s=function(t,e){var n=l[a(t)];return n===h||n!==c&&(r(e)?i(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",h=s.POLYFILL="P";t.exports=s},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,n){"use strict";var i=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},3925:function(t,e,n){"use strict";var i=n(34);t.exports=function(t){return i(t)||null===t}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,n){"use strict";var i=n(7751),r=n(4901),o=n(1625),s=n(7040),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,a(t))}},2652:function(t,e,n){"use strict";var i=n(6080),r=n(9565),o=n(8551),s=n(6823),a=n(4209),l=n(6198),c=n(1625),h=n(81),u=n(851),f=n(9539),p=TypeError,d=function(t,e){this.stopped=t,this.result=e},g=d.prototype;t.exports=function(t,e,n){var m,v,y,b,w,x,_,S=n&&n.that,k=!(!n||!n.AS_ENTRIES),T=!(!n||!n.IS_RECORD),C=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=i(e,S),E=function(t){var e=m;return m=void 0,e&&f(e,"normal"),new d(!0,t)},P=function(t){return k?(o(t),O?A(t[0],t[1],E):A(t[0],t[1])):O?A(t,E):A(t)};if(T)m=t.iterator;else if(C)m=t;else{if(!(v=u(t)))throw new p(s(t)+" is not iterable");if(a(v)){for(y=0,b=l(t);b>y;y++)if((w=P(t[y]))&&c(g,w))return w;return new d(!1)}m=h(t,v)}for(x=T?t.next:m.next;!(_=r(x,m)).done;){var j=_.value;try{w=P(j)}catch(t){if(!m)throw t;f(m,"throw",t)}if("object"==typeof w&&w&&c(g,w))return w}return new d(!1)}},9539:function(t,e,n){"use strict";var i=n(9565),r=n(8551),o=n(5966);t.exports=function(t,e,n){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw n;return n}s=i(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw n;if(a)throw s;return r(s),n}},3994:function(t,e,n){"use strict";var i=n(7657).IteratorPrototype,r=n(2360),o=n(6980),s=n(687),a=n(6269),l=function(){return this};t.exports=function(t,e,n,c){var h=e+" Iterator";return t.prototype=r(i,{next:o(+!c,n)}),s(t,h,!1,!0),a[h]=l,t}},1088:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(6395),s=n(350),a=n(4901),l=n(3994),c=n(2787),h=n(2967),u=n(687),f=n(6699),p=n(6840),d=n(8227),g=n(6269),m=n(7657),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=d("iterator"),_="keys",S="values",k="entries",T=function(){return this};t.exports=function(t,e,n,s,d,m,C){l(n,e,s);var O,A,E,P=function(t){if(t===d&&R)return R;if(!w&&t&&t in I)return I[t];switch(t){case _:case S:case k:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",D=!1,I=t.prototype,M=I[x]||I["@@iterator"]||d&&I[d],R=!w&&M||P(d),N="Array"===e&&I.entries||M;if(N&&(O=c(N.call(new t)))!==Object.prototype&&O.next&&(o||c(O)===b||(h?h(O,b):a(O[x])||p(O,x,T)),u(O,j,!0,!0),o&&(g[j]=T)),v&&d===S&&M&&M.name!==S&&(!o&&y?f(I,"name",S):(D=!0,R=function(){return r(M,this)})),d)if(A={values:P(S),keys:m?R:P(_),entries:P(k)},C)for(E in A)(w||D||!(E in I))&&p(I,E,A[E]);else i({target:e,proto:!0,forced:w||D},A);return o&&!C||I[x]===R||p(I,x,R,{name:d}),g[e]=R,A}},7657:function(t,e,n){"use strict";var i,r,o,s=n(9039),a=n(4901),l=n(34),c=n(2360),h=n(2787),u=n(6840),f=n(8227),p=n(6395),d=f("iterator"),g=!1;[].keys&&("next"in(o=[].keys())?(r=h(h(o)))!==Object.prototype&&(i=r):g=!0),!l(i)||s(function(){var t={};return i[d].call(t)!==t})?i={}:p&&(i=c(i)),a(i[d])||u(i,d,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},6269:function(t){"use strict";t.exports={}},6198:function(t,e,n){"use strict";var i=n(8014);t.exports=function(t){return i(t.length)}},283:function(t,e,n){"use strict";var i=n(9504),r=n(9039),o=n(4901),s=n(9297),a=n(3724),l=n(350).CONFIGURABLE,c=n(3706),h=n(1181),u=h.enforce,f=h.get,p=String,d=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=a&&!r(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===g(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||l&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),y&&n&&s(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=u(t);return s(i,"source")||(i.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w(function(){return o(this)&&f(this).source||c(this)},"toString")},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},1955:function(t,e,n){"use strict";var i,r,o,s,a,l=n(4576),c=n(3389),h=n(6080),u=n(9225).set,f=n(8265),p=n(9544),d=n(4265),g=n(7860),m=n(8574),v=l.MutationObserver||l.WebKitMutationObserver,y=l.document,b=l.process,w=l.Promise,x=c("queueMicrotask");if(!x){var _=new f,S=function(){var t,e;for(m&&(t=b.domain)&&t.exit();e=_.get();)try{e()}catch(t){throw _.head&&i(),t}t&&t.enter()};p||m||g||!v||!y?!d&&w&&w.resolve?((s=w.resolve(void 0)).constructor=w,a=h(s.then,s),i=function(){a(S)}):m?i=function(){b.nextTick(S)}:(u=h(u,l),i=function(){u(S)}):(r=!0,o=y.createTextNode(""),new v(S).observe(o,{characterData:!0}),i=function(){o.data=r=!r}),x=function(t){_.head||i(),_.add(t)}}t.exports=x},6043:function(t,e,n){"use strict";var i=n(9306),r=TypeError,o=function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw new r("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)};t.exports.f=function(t){return new o(t)}},2603:function(t,e,n){"use strict";var i=n(655);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},4213:function(t,e,n){"use strict";var i=n(3724),r=n(9504),o=n(9565),s=n(9039),a=n(1072),l=n(3717),c=n(8773),h=n(8981),u=n(7055),f=Object.assign,p=Object.defineProperty,d=r([].concat);t.exports=!f||s(function(){if(i&&1!==f({b:1},f(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!==f({},t)[n]||a(f({},e)).join("")!==r})?function(t,e){for(var n=h(t),r=arguments.length,s=1,f=l.f,p=c.f;r>s;)for(var g,m=u(arguments[s++]),v=f?d(a(m),f(m)):a(m),y=v.length,b=0;y>b;)g=v[b++],i&&!o(p,m,g)||(n[g]=m[g]);return n}:f},2360:function(t,e,n){"use strict";var i,r=n(8551),o=n(6801),s=n(8727),a=n(421),l=n(397),c=n(4055),h=n(6119),u="prototype",f="script",p=h("IE_PROTO"),d=function(){},g=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;v="undefined"!=typeof document?document.domain&&i?m(i):(e=c("iframe"),n="java"+f+":",e.style.display="none",l.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F):m(i);for(var r=s.length;r--;)delete v[u][s[r]];return v()};a[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d[u]=r(t),n=new d,d[u]=null,n[p]=t):n=v(),void 0===e?n:o.f(n,e)}},6801:function(t,e,n){"use strict";var i=n(3724),r=n(8686),o=n(4913),s=n(8551),a=n(5397),l=n(1072);e.f=i&&!r?Object.defineProperties:function(t,e){s(t);for(var n,i=a(e),r=l(e),c=r.length,h=0;c>h;)o.f(t,n=r[h++],i[n]);return t}},4913:function(t,e,n){"use strict";var i=n(3724),r=n(5917),o=n(8686),s=n(8551),a=n(6969),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",f="configurable",p="writable";e.f=i?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=h(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:u in n?n[u]:i[u],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(s(t),e=a(e),s(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var i=n(3724),r=n(9565),o=n(8773),s=n(6980),a=n(5397),l=n(6969),c=n(9297),h=n(5917),u=Object.getOwnPropertyDescriptor;e.f=i?u:function(t,e){if(t=a(t),e=l(e),h)try{return u(t,e)}catch(t){}if(c(t,e))return s(!r(o.f,t,e),t[e])}},8480:function(t,e,n){"use strict";var i=n(1828),r=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},2787:function(t,e,n){"use strict";var i=n(9297),r=n(4901),o=n(8981),s=n(6119),a=n(2211),l=s("IE_PROTO"),c=Object,h=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=o(t);if(i(e,l))return e[l];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof c?h:null}},1625:function(t,e,n){"use strict";var i=n(9504);t.exports=i({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var i=n(9504),r=n(9297),o=n(5397),s=n(9617).indexOf,a=n(421),l=i([].push);t.exports=function(t,e){var n,i=o(t),c=0,h=[];for(n in i)!r(a,n)&&r(i,n)&&l(h,n);for(;e.length>c;)r(i,n=e[c++])&&(~s(h,n)||l(h,n));return h}},1072:function(t,e,n){"use strict";var i=n(1828),r=n(8727);t.exports=Object.keys||function(t){return i(t,r)}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},2967:function(t,e,n){"use strict";var i=n(6706),r=n(34),o=n(7750),s=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),s(i),r(n)?(e?t(n,i):n.__proto__=i,n):n}}():void 0)},2357:function(t,e,n){"use strict";var i=n(3724),r=n(9039),o=n(9504),s=n(2787),a=n(1072),l=n(5397),c=o(n(8773).f),h=o([].push),u=i&&r(function(){var t=Object.create(null);return t[2]=2,!c(t,2)}),f=function(t){return function(e){for(var n,r=l(e),o=a(r),f=u&&null===s(r),p=o.length,d=0,g=[];p>d;)n=o[d++],i&&!(f?n in r:c(r,n))||h(g,t?[n,r[n]]:r[n]);return g}};t.exports={entries:f(!0),values:f(!1)}},3179:function(t,e,n){"use strict";var i=n(2140),r=n(6955);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},4270:function(t,e,n){"use strict";var i=n(9565),r=n(4901),o=n(34),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&r(n=t.toString)&&!o(a=i(n,t)))return a;if(r(n=t.valueOf)&&!o(a=i(n,t)))return a;if("string"!==e&&r(n=t.toString)&&!o(a=i(n,t)))return a;throw new s("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var i=n(7751),r=n(9504),o=n(8480),s=n(3717),a=n(8551),l=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?l(e,n(t)):e}},9167:function(t,e,n){"use strict";var i=n(4576);t.exports=i},1103:function(t){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},916:function(t,e,n){"use strict";var i=n(4576),r=n(550),o=n(4901),s=n(2796),a=n(3706),l=n(8227),c=n(4215),h=n(6395),u=n(9519),f=r&&r.prototype,p=l("species"),d=!1,g=o(i.PromiseRejectionEvent),m=s("Promise",function(){var t=a(r),e=t!==String(r);if(!e&&66===u)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!u||u<51||!/native code/.test(t)){var n=new r(function(t){t(1)}),i=function(t){t(function(){},function(){})};if((n.constructor={})[p]=i,!(d=n.then(function(){})instanceof i))return!0}return!(e||"BROWSER"!==c&&"DENO"!==c||g)});t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:d}},550:function(t,e,n){"use strict";var i=n(4576);t.exports=i.Promise},3438:function(t,e,n){"use strict";var i=n(8551),r=n(34),o=n(6043);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},537:function(t,e,n){"use strict";var i=n(550),r=n(4428),o=n(916).CONSTRUCTOR;t.exports=o||!r(function(t){i.all(t).then(void 0,function(){})})},8265:function(t){"use strict";var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null},n=this.tail;n?n.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=e},7750:function(t,e,n){"use strict";var i=n(4117),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},3389:function(t,e,n){"use strict";var i=n(4576),r=n(3724),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return i[t];var e=o(i,t);return e&&e.value}},7633:function(t,e,n){"use strict";var i=n(7751),r=n(2106),o=n(8227),s=n(3724),a=o("species");t.exports=function(t){var e=i(t);s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},687:function(t,e,n){"use strict";var i=n(4913).f,r=n(9297),o=n(8227)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},6119:function(t,e,n){"use strict";var i=n(5745),r=n(3392),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},7629:function(t,e,n){"use strict";var i=n(6395),r=n(4576),o=n(9433),s="__core-js_shared__",a=t.exports=r[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:i?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){"use strict";var i=n(7629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},2293:function(t,e,n){"use strict";var i=n(8551),r=n(5548),o=n(4117),s=n(8227)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||o(n=i(a)[s])?e:r(n)}},8183:function(t,e,n){"use strict";var i=n(9504),r=n(1291),o=n(655),s=n(7750),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),h=function(t){return function(e,n){var i,h,u=o(s(e)),f=r(n),p=u.length;return f<0||f>=p?t?"":void 0:(i=l(u,f))<55296||i>56319||f+1===p||(h=l(u,f+1))<56320||h>57343?t?a(u,f):i:t?c(u,f,f+2):h-56320+(i-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},6098:function(t,e,n){"use strict";var i=n(9504),r=2147483647,o=/[^\0-\u007E]/,s=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",l=RangeError,c=i(s.exec),h=Math.floor,u=String.fromCharCode,f=i("".charCodeAt),p=i([].join),d=i([].push),g=i("".replace),m=i("".split),v=i("".toLowerCase),y=function(t){return t+22+75*(t<26)},b=function(t,e,n){var i=0;for(t=n?h(t/700):t>>1,t+=h(t/e);t>455;)t=h(t/35),i+=36;return h(i+36*t/(t+38))},w=function(t){var e=[];t=function(t){for(var e=[],n=0,i=t.length;n<i;){var r=f(t,n++);if(r>=55296&&r<=56319&&n<i){var o=f(t,n++);56320==(64512&o)?d(e,((1023&r)<<10)+(1023&o)+65536):(d(e,r),n--)}else d(e,r)}return e}(t);var n,i,o=t.length,s=128,c=0,g=72;for(n=0;n<t.length;n++)(i=t[n])<128&&d(e,u(i));var m=e.length,v=m;for(m&&d(e,"-");v<o;){var w=r;for(n=0;n<t.length;n++)(i=t[n])>=s&&i<w&&(w=i);var x=v+1;if(w-s>h((r-c)/x))throw new l(a);for(c+=(w-s)*x,s=w,n=0;n<t.length;n++){if((i=t[n])<s&&++c>r)throw new l(a);if(i===s){for(var _=c,S=36;;){var k=S<=g?1:S>=g+26?26:S-g;if(_<k)break;var T=_-k,C=36-k;d(e,u(y(k+T%C))),_=h(T/C),S+=36}d(e,u(y(_))),g=b(c,x,v===m),c=0,v++}}c++,s++}return p(e,"")};t.exports=function(t){var e,n,i=[],r=m(g(v(t),s,"."),".");for(e=0;e<r.length;e++)n=r[e],d(i,c(o,n)?"xn--"+w(n):n);return p(i,".")}},4495:function(t,e,n){"use strict";var i=n(9519),r=n(9039),o=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41})},9225:function(t,e,n){"use strict";var i,r,o,s,a=n(4576),l=n(8745),c=n(6080),h=n(4901),u=n(9297),f=n(9039),p=n(397),d=n(7680),g=n(4055),m=n(2812),v=n(9544),y=n(8574),b=a.setImmediate,w=a.clearImmediate,x=a.process,_=a.Dispatch,S=a.Function,k=a.MessageChannel,T=a.String,C=0,O={},A="onreadystatechange";f(function(){i=a.location});var E=function(t){if(u(O,t)){var e=O[t];delete O[t],e()}},P=function(t){return function(){E(t)}},j=function(t){E(t.data)},D=function(t){a.postMessage(T(t),i.protocol+"//"+i.host)};b&&w||(b=function(t){m(arguments.length,1);var e=h(t)?t:S(t),n=d(arguments,1);return O[++C]=function(){l(e,void 0,n)},r(C),C},w=function(t){delete O[t]},y?r=function(t){x.nextTick(P(t))}:_&&_.now?r=function(t){_.now(P(t))}:k&&!v?(s=(o=new k).port2,o.port1.onmessage=j,r=c(s.postMessage,s)):a.addEventListener&&h(a.postMessage)&&!a.importScripts&&i&&"file:"!==i.protocol&&!f(D)?(r=D,a.addEventListener("message",j,!1)):r=A in g("script")?function(t){p.appendChild(g("script"))[A]=function(){p.removeChild(this),E(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:b,clear:w}},5610:function(t,e,n){"use strict";var i=n(1291),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},5397:function(t,e,n){"use strict";var i=n(7055),r=n(7750);t.exports=function(t){return i(r(t))}},1291:function(t,e,n){"use strict";var i=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},8014:function(t,e,n){"use strict";var i=n(1291),r=Math.min;t.exports=function(t){var e=i(t);return e>0?r(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var i=n(7750),r=Object;t.exports=function(t){return r(i(t))}},2777:function(t,e,n){"use strict";var i=n(9565),r=n(34),o=n(757),s=n(5966),a=n(4270),l=n(8227),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,l=s(t,h);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!r(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},6969:function(t,e,n){"use strict";var i=n(2777),r=n(757);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},2140:function(t,e,n){"use strict";var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},655:function(t,e,n){"use strict";var i=n(6955),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){"use strict";var i=n(9504),r=0,o=Math.random(),s=i(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},7416:function(t,e,n){"use strict";var i=n(9039),r=n(8227),o=n(3724),s=n(6395),a=r("iterator");t.exports=!i(function(){var t=new URL("b?a=1&b=2&c=3","https://a"),e=t.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),i="";return t.pathname="c%20d",e.forEach(function(t,n){e.delete("b"),i+=n+t}),n.delete("a",2),n.delete("b",void 0),s&&(!t.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!e.size&&(s||!o)||!e.sort||"https://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==i||"x"!==new URL("https://x",void 0).host})},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var i=n(3724),r=n(9039);t.exports=i&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},2812:function(t){"use strict";var e=TypeError;t.exports=function(t,n){if(t<n)throw new e("Not enough arguments");return t}},8622:function(t,e,n){"use strict";var i=n(4576),r=n(4901),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},8227:function(t,e,n){"use strict";var i=n(4576),r=n(5745),o=n(9297),s=n(3392),a=n(4495),l=n(7040),c=i.Symbol,h=r("wks"),u=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(t){return o(h,t)||(h[t]=a&&o(c,t)?c[t]:u("Symbol."+t)),h[t]}},7145:function(t,e,n){"use strict";var i=n(6518),r=n(1625),o=n(2787),s=n(2967),a=n(7740),l=n(2360),c=n(6699),h=n(6980),u=n(7584),f=n(747),p=n(2652),d=n(2603),g=n(8227)("toStringTag"),m=Error,v=[].push,y=function(t,e){var n,i=r(b,this);s?n=s(new m,i?o(this):b):(n=i?this:l(b),c(n,g,"Error")),void 0!==e&&c(n,"message",d(e)),f(n,y,n.stack,1),arguments.length>2&&u(n,arguments[2]);var a=[];return p(t,v,{that:a}),c(n,"errors",a),n};s?s(y,m):a(y,m,{name:!0});var b=y.prototype=l(m.prototype,{constructor:h(1,y),message:h(1,""),name:h(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:y})},67:function(t,e,n){"use strict";n(7145)},3771:function(t,e,n){"use strict";var i=n(6518),r=n(4373),o=n(6469);i({target:"Array",proto:!0},{fill:r}),o("fill")},113:function(t,e,n){"use strict";var i=n(6518),r=n(9213).find,o=n(6469),s="find",a=!0;s in[]&&Array(1)[s](function(){a=!1}),i({target:"Array",proto:!0,forced:a},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},8350:function(t,e,n){"use strict";var i=n(6518),r=n(259),o=n(9306),s=n(8981),a=n(6198),l=n(1469);i({target:"Array",proto:!0},{flatMap:function(t){var e,n=s(this),i=a(n);return o(t),e=l(n,0),r(e,n,n,i,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},6449:function(t,e,n){"use strict";var i=n(6518),r=n(259),o=n(8981),s=n(6198),a=n(1291),l=n(1469);i({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),n=s(e),i=void 0===t?1:a(t),c=l(e,0);return r(c,e,e,n,0,i),c}})},4423:function(t,e,n){"use strict";var i=n(6518),r=n(9617).includes,o=n(9039),s=n(6469),a=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});i({target:"Array",proto:!0,forced:a||l},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},3792:function(t,e,n){"use strict";var i=n(5397),r=n(6469),o=n(6269),s=n(1181),a=n(4913).f,l=n(1088),c=n(2529),h=n(6395),u=n(3724),f="Array Iterator",p=s.set,d=s.getterFor(f);t.exports=l(Array,"Array",function(t,e){p(this,{type:f,target:i(t),index:0,kind:e})},function(){var t=d(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)},"values");var g=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!h&&u&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(t){}},237:function(t,e,n){"use strict";n(6469)("flatMap")},3514:function(t,e,n){"use strict";n(6469)("flat")},9085:function(t,e,n){"use strict";var i=n(6518),r=n(4213);i({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},5506:function(t,e,n){"use strict";var i=n(6518),r=n(2357).entries;i({target:"Object",stat:!0},{entries:function(t){return r(t)}})},6099:function(t,e,n){"use strict";var i=n(2140),r=n(6840),o=n(3179);i||r(Object.prototype,"toString",o,{unsafe:!0})},6034:function(t,e,n){"use strict";var i=n(6518),r=n(2357).values;i({target:"Object",stat:!0},{values:function(t){return r(t)}})},6167:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{allSettled:function(t){var e=this,n=s.f(e),i=n.resolve,c=n.reject,h=a(function(){var n=o(e.resolve),s=[],a=0,c=1;l(t,function(t){var o=a++,l=!1;c++,r(n,e,t).then(function(t){l||(l=!0,s[o]={status:"fulfilled",value:t},--c||i(s))},function(t){l||(l=!0,s[o]={status:"rejected",reason:t},--c||i(s))})}),--c||i(s)});return h.error&&c(h.value),n.promise}})},6499:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{all:function(t){var e=this,n=s.f(e),i=n.resolve,c=n.reject,h=a(function(){var n=o(e.resolve),s=[],a=0,h=1;l(t,function(t){var o=a++,l=!1;h++,r(n,e,t).then(function(t){l||(l=!0,s[o]=t,--h||i(s))},c)}),--h||i(s)});return h.error&&c(h.value),n.promise}})},3518:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(7751),a=n(6043),l=n(1103),c=n(2652),h=n(537),u="No one promise resolved";i({target:"Promise",stat:!0,forced:h},{any:function(t){var e=this,n=s("AggregateError"),i=a.f(e),h=i.resolve,f=i.reject,p=l(function(){var i=o(e.resolve),s=[],a=0,l=1,p=!1;c(t,function(t){var o=a++,c=!1;l++,r(i,e,t).then(function(t){c||p||(p=!0,h(t))},function(t){c||p||(c=!0,s[o]=t,--l||f(new n(s,u)))})}),--l||f(new n(s,u))});return p.error&&f(p.value),i.promise}})},2003:function(t,e,n){"use strict";var i=n(6518),r=n(6395),o=n(916).CONSTRUCTOR,s=n(550),a=n(7751),l=n(4901),c=n(6840),h=s&&s.prototype;if(i({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(s)){var u=a("Promise").prototype.catch;h.catch!==u&&c(h,"catch",u,{unsafe:!0})}},436:function(t,e,n){"use strict";var i,r,o,s,a=n(6518),l=n(6395),c=n(8574),h=n(4576),u=n(9167),f=n(9565),p=n(6840),d=n(2967),g=n(687),m=n(7633),v=n(9306),y=n(4901),b=n(34),w=n(679),x=n(2293),_=n(9225).set,S=n(1955),k=n(3138),T=n(1103),C=n(8265),O=n(1181),A=n(550),E=n(916),P=n(6043),j="Promise",D=E.CONSTRUCTOR,I=E.REJECTION_EVENT,M=E.SUBCLASSING,R=O.getterFor(j),N=O.set,F=A&&A.prototype,H=A,L=F,z=h.TypeError,B=h.document,U=h.process,W=P.f,q=W,$=!!(B&&B.createEvent&&h.dispatchEvent),Y="unhandledrejection",G=function(t){var e;return!(!b(t)||!y(e=t.then))&&e},V=function(t,e){var n,i,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,c=t.reject,h=t.domain;try{a?(s||(2===e.rejection&&Z(e),e.rejection=1),!0===a?n=o:(h&&h.enter(),n=a(o),h&&(h.exit(),r=!0)),n===t.promise?c(new z("Promise-chain cycle")):(i=G(n))?f(i,n,l,c):l(n)):c(o)}catch(t){h&&!r&&h.exit(),c(t)}},X=function(t,e){t.notified||(t.notified=!0,S(function(){for(var n,i=t.reactions;n=i.get();)V(n,t);t.notified=!1,e&&!t.rejection&&J(t)}))},Q=function(t,e,n){var i,r;$?((i=B.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),h.dispatchEvent(i)):i={promise:e,reason:n},!I&&(r=h["on"+t])?r(i):t===Y&&k("Unhandled promise rejection",n)},J=function(t){f(_,h,function(){var e,n=t.facade,i=t.value;if(K(t)&&(e=T(function(){c?U.emit("unhandledRejection",i,n):Q(Y,n,i)}),t.rejection=c||K(t)?2:1,e.error))throw e.value})},K=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){f(_,h,function(){var e=t.facade;c?U.emit("rejectionHandled",e):Q("rejectionhandled",e,t.value)})},tt=function(t,e,n){return function(i){t(e,i,n)}},et=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,X(t,!0))},nt=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw new z("Promise can't be resolved itself");var i=G(e);i?S(function(){var n={done:!1};try{f(i,e,tt(nt,n,t),tt(et,n,t))}catch(e){et(n,e,t)}}):(t.value=e,t.state=1,X(t,!1))}catch(e){et({done:!1},e,t)}}};if(D&&(L=(H=function(t){w(this,L),v(t),f(i,this);var e=R(this);try{t(tt(nt,e),tt(et,e))}catch(t){et(e,t)}}).prototype,(i=function(t){N(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:null})}).prototype=p(L,"then",function(t,e){var n=R(this),i=W(x(this,H));return n.parent=!0,i.ok=!y(t)||t,i.fail=y(e)&&e,i.domain=c?U.domain:void 0,0===n.state?n.reactions.add(i):S(function(){V(i,n)}),i.promise}),r=function(){var t=new i,e=R(t);this.promise=t,this.resolve=tt(nt,e),this.reject=tt(et,e)},P.f=W=function(t){return t===H||t===o?new r(t):q(t)},!l&&y(A)&&F!==Object.prototype)){s=F.then,M||p(F,"then",function(t,e){var n=this;return new H(function(t,e){f(s,n,t,e)}).then(t,e)},{unsafe:!0});try{delete F.constructor}catch(t){}d&&d(F,L)}a({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:H}),o=u.Promise,g(H,j,!1,!0),m(j)},9391:function(t,e,n){"use strict";var i=n(6518),r=n(6395),o=n(550),s=n(9039),a=n(7751),l=n(4901),c=n(2293),h=n(3438),u=n(6840),f=o&&o.prototype;if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){f.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=c(this,a("Promise")),n=l(t);return this.then(n?function(n){return h(e,t()).then(function(){return n})}:t,n?function(n){return h(e,t()).then(function(){throw n})}:t)}}),!r&&l(o)){var p=a("Promise").prototype.finally;f.finally!==p&&u(f,"finally",p,{unsafe:!0})}},3362:function(t,e,n){"use strict";n(436),n(6499),n(2003),n(7743),n(1481),n(280)},7743:function(t,e,n){"use strict";var i=n(6518),r=n(9565),o=n(9306),s=n(6043),a=n(1103),l=n(2652);i({target:"Promise",stat:!0,forced:n(537)},{race:function(t){var e=this,n=s.f(e),i=n.reject,c=a(function(){var s=o(e.resolve);l(t,function(t){r(s,e,t).then(n.resolve,i)})});return c.error&&i(c.value),n.promise}})},1481:function(t,e,n){"use strict";var i=n(6518),r=n(6043);i({target:"Promise",stat:!0,forced:n(916).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},280:function(t,e,n){"use strict";var i=n(6518),r=n(7751),o=n(6395),s=n(550),a=n(916).CONSTRUCTOR,l=n(3438),c=r("Promise"),h=o&&!a;i({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return l(h&&this===c?s:this,t)}})},7337:function(t,e,n){"use strict";var i=n(6518),r=n(9504),o=n(5610),s=RangeError,a=String.fromCharCode,l=String.fromCodePoint,c=r([].join);i({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(o(e=+arguments[r],1114111)!==e)throw new s(e+" is not a valid code point");n[r++]=e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320)}return c(n,"")}})},7764:function(t,e,n){"use strict";var i=n(8183).charAt,r=n(655),o=n(1181),s=n(1088),a=n(2529),l="String Iterator",c=o.set,h=o.getterFor(l);s(String,"String",function(t){c(this,{type:l,string:r(t),index:0})},function(){var t,e=h(this),n=e.string,r=e.index;return r>=n.length?a(void 0,!0):(t=i(n,r),e.index+=t.length,a(t,!1))})},8406:function(t,e,n){"use strict";n(3792),n(7337);var i=n(6518),r=n(4576),o=n(3389),s=n(7751),a=n(9565),l=n(9504),c=n(3724),h=n(7416),u=n(6840),f=n(2106),p=n(6279),d=n(687),g=n(3994),m=n(1181),v=n(679),y=n(4901),b=n(9297),w=n(6080),x=n(6955),_=n(8551),S=n(34),k=n(655),T=n(2360),C=n(6980),O=n(81),A=n(851),E=n(2529),P=n(2812),j=n(8227),D=n(4488),I=j("iterator"),M="URLSearchParams",R=M+"Iterator",N=m.set,F=m.getterFor(M),H=m.getterFor(R),L=o("fetch"),z=o("Request"),B=o("Headers"),U=z&&z.prototype,W=B&&B.prototype,q=r.TypeError,$=r.encodeURIComponent,Y=String.fromCharCode,G=s("String","fromCodePoint"),V=parseInt,X=l("".charAt),Q=l([].join),J=l([].push),K=l("".replace),Z=l([].shift),tt=l([].splice),et=l("".split),nt=l("".slice),it=l(/./.exec),rt=/\+/g,ot=/^[0-9a-f]+$/i,st=function(t,e){var n=nt(t,e,e+2);return it(ot,n)?V(n,16):NaN},at=function(t){for(var e=0,n=128;n>0&&0!==(t&n);n>>=1)e++;return e},lt=function(t){var e=null,n=t.length;switch(n){case 1:e=t[0];break;case 2:e=(31&t[0])<<6|63&t[1];break;case 3:e=(15&t[0])<<12|(63&t[1])<<6|63&t[2];break;case 4:e=(7&t[0])<<18|(63&t[1])<<12|(63&t[2])<<6|63&t[3]}return null===e||e>1114111||e>=55296&&e<=57343||e<(n>3?65536:n>2?2048:n>1?128:0)?null:e},ct=function(t){for(var e=(t=K(t,rt," ")).length,n="",i=0;i<e;){var r=X(t,i);if("%"===r){if("%"===X(t,i+1)||i+3>e){n+="%",i++;continue}var o=st(t,i+1);if(o!=o){n+=r,i++;continue}i+=2;var s=at(o);if(0===s)r=Y(o);else{if(1===s||s>4){n+="�",i++;continue}for(var a=[o],l=1;l<s&&!(++i+3>e||"%"!==X(t,i));){var c=st(t,i+1);if(c!=c||c>191||c<128)break;if(1===l){if(224===o&&c<160)break;if(237===o&&c>159)break;if(240===o&&c<144)break;if(244===o&&c>143)break}J(a,c),i+=2,l++}if(a.length!==s){n+="�";continue}var h=lt(a);if(null===h){for(var u=0;u<s;u++)n+="�";i++;continue}r=G(h)}}n+=r,i++}return n},ht=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ft=function(t){return ut[t]},pt=function(t){return K($(t),ht,ft)},dt=g(function(t,e){N(this,{type:R,target:F(t).entries,index:0,kind:e})},M,function(){var t=H(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,E(void 0,!0);var i=e[n];switch(t.kind){case"keys":return E(i.key,!1);case"values":return E(i.value,!1)}return E([i.key,i.value],!1)},!0),gt=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?nt(t,1):t:k(t)))};gt.prototype={type:M,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,n,i,r,o,s,l,c=this.entries,h=A(t);if(h)for(n=(e=O(t,h)).next;!(i=a(n,e)).done;){if(o=(r=O(_(i.value))).next,(s=a(o,r)).done||(l=a(o,r)).done||!a(o,r).done)throw new q("Expected sequence with length 2");J(c,{key:k(s.value),value:k(l.value)})}else for(var u in t)b(t,u)&&J(c,{key:u,value:k(t[u])})},parseQuery:function(t){if(t)for(var e,n,i=this.entries,r=et(t,"&"),o=0;o<r.length;)(e=r[o++]).length&&(n=et(e,"="),J(i,{key:ct(Z(n)),value:ct(Q(n,"="))}))},serialize:function(){for(var t,e=this.entries,n=[],i=0;i<e.length;)t=e[i++],J(n,pt(t.key)+"="+pt(t.value));return Q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var mt=function(){v(this,vt);var t=N(this,new gt(arguments.length>0?arguments[0]:void 0));c||(this.size=t.entries.length)},vt=mt.prototype;if(p(vt,{append:function(t,e){var n=F(this);P(arguments.length,2),J(n.entries,{key:k(t),value:k(e)}),c||this.size++,n.updateURL()},delete:function(t){for(var e=F(this),n=P(arguments.length,1),i=e.entries,r=k(t),o=n<2?void 0:arguments[1],s=void 0===o?o:k(o),a=0;a<i.length;){var l=i[a];l.key!==r||void 0!==s&&l.value!==s?a++:tt(i,a,1)}c||(this.size=i.length),e.updateURL()},get:function(t){var e=F(this).entries;P(arguments.length,1);for(var n=k(t),i=0;i<e.length;i++)if(e[i].key===n)return e[i].value;return null},getAll:function(t){var e=F(this).entries;P(arguments.length,1);for(var n=k(t),i=[],r=0;r<e.length;r++)e[r].key===n&&J(i,e[r].value);return i},has:function(t){for(var e=F(this).entries,n=P(arguments.length,1),i=k(t),r=n<2?void 0:arguments[1],o=void 0===r?r:k(r),s=0;s<e.length;){var a=e[s++];if(a.key===i&&(void 0===o||a.value===o))return!0}return!1},set:function(t,e){var n=F(this);P(arguments.length,2);for(var i,r=n.entries,o=!1,s=k(t),a=k(e),l=0;l<r.length;l++)(i=r[l]).key===s&&(o?tt(r,l--,1):(o=!0,i.value=a));o||J(r,{key:s,value:a}),c||(this.size=r.length),n.updateURL()},sort:function(){var t=F(this);D(t.entries,function(t,e){return t.key>e.key?1:-1}),t.updateURL()},forEach:function(t){for(var e,n=F(this).entries,i=w(t,arguments.length>1?arguments[1]:void 0),r=0;r<n.length;)i((e=n[r++]).value,e.key,this)},keys:function(){return new dt(this,"keys")},values:function(){return new dt(this,"values")},entries:function(){return new dt(this,"entries")}},{enumerable:!0}),u(vt,I,vt.entries,{name:"entries"}),u(vt,"toString",function(){return F(this).serialize()},{enumerable:!0}),c&&f(vt,"size",{get:function(){return F(this).entries.length},configurable:!0,enumerable:!0}),d(mt,M),i({global:!0,constructor:!0,forced:!h},{URLSearchParams:mt}),!h&&y(B)){var yt=l(W.has),bt=l(W.set),wt=function(t){if(S(t)){var e,n=t.body;if(x(n)===M)return e=t.headers?new B(t.headers):new B,yt(e,"content-type")||bt(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),T(t,{body:C(0,k(n)),headers:C(0,e)})}return t};if(y(L)&&i({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return L(t,arguments.length>1?wt(arguments[1]):{})}}),y(z)){var xt=function(t){return v(this,U),new z(t,arguments.length>1?wt(arguments[1]):{})};U.constructor=xt,xt.prototype=U,i({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xt})}}t.exports={URLSearchParams:mt,getState:F}},8408:function(t,e,n){"use strict";n(8406)},5806:function(t,e,n){"use strict";n(7764);var i,r=n(6518),o=n(3724),s=n(7416),a=n(4576),l=n(6080),c=n(9504),h=n(6840),u=n(2106),f=n(679),p=n(9297),d=n(4213),g=n(7916),m=n(7680),v=n(8183).codeAt,y=n(6098),b=n(655),w=n(687),x=n(2812),_=n(8406),S=n(1181),k=S.set,T=S.getterFor("URL"),C=_.URLSearchParams,O=_.getState,A=a.URL,E=a.TypeError,P=a.encodeURIComponent,j=a.parseInt,D=Math.floor,I=Math.pow,M=c("".charAt),R=c(/./.exec),N=c([].join),F=c(1.1.toString),H=c([].pop),L=c([].push),z=c("".replace),B=c([].shift),U=c("".split),W=c("".slice),q=c("".toLowerCase),$=c([].unshift),Y="Invalid scheme",G="Invalid host",V="Invalid port",X=/[a-z]/i,Q=/[\d+\-.a-z]/i,J=/\d/,K=/^0x/i,Z=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,nt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,it=/[\0\t\n\r #/:<>?@[\\\]^|]/,rt=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,st=/[\t\n\r]/g,at=function(t){var e,n,i,r;if("number"==typeof t){for(e=[],n=0;n<4;n++)$(e,t%256),t=D(t/256);return N(e,".")}if("object"==typeof t){for(e="",i=function(t){for(var e=null,n=1,i=null,r=0,o=0;o<8;o++)0!==t[o]?(r>n&&(e=i,n=r),i=null,r=0):(null===i&&(i=o),++r);return r>n?i:e}(t),n=0;n<8;n++)r&&0===t[n]||(r&&(r=!1),i===n?(e+=n?":":"::",r=!0):(e+=F(t[n],16),n<7&&(e+=":")));return"["+e+"]"}return t},lt={},ct=d({},lt,{" ":1,'"':1,"#":1,"<":1,">":1}),ht=d({},ct,{"'":1}),ut=d({},lt,{" ":1,'"':1,"<":1,">":1,"`":1}),ft=d({},ut,{"#":1,"?":1,"{":1,"}":1,"^":1}),pt=d({},ft,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(t,e){var n=v(t,0);return n>=32&&n<127&&!p(e,t)?t:"'"===t&&p(e,t)?"%27":P(t)},gt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},mt=function(t,e){var n;return 2===t.length&&R(X,M(t,0))&&(":"===(n=M(t,1))||!e&&"|"===n)},vt=function(t){var e;return t.length>1&&mt(W(t,0,2))&&(2===t.length||"/"===(e=M(t,2))||"\\"===e||"?"===e||"#"===e)},yt=function(t){return"."===t||"%2e"===q(t)},bt=function(t){return".."===(t=q(t))||"%2e."===t||".%2e"===t||"%2e%2e"===t},wt={},xt={},_t={},St={},kt={},Tt={},Ct={},Ot={},At={},Et={},Pt={},jt={},Dt={},It={},Mt={},Rt={},Nt={},Ft={},Ht={},Lt={},zt={},Bt=function(t,e,n){var i,r,o,s=b(t);if(e){if(r=this.parse(s))throw new E(r);this.searchParams=null}else{if(void 0!==n&&(i=new Bt(n,!0)),r=this.parse(s,null,i))throw new E(r);(o=O(new C)).bindURL(this),this.searchParams=o}};Bt.prototype={type:"URL",parse:function(t,e,n){var r,o,s,a,l=this,c=e||wt,h=0,u="",f=!1,d=!1,v=!1;for(t=b(t),e||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,t=z(t,rt,""),t=z(t,ot,"$1")),t=z(t,st,""),r=g(t);h<=r.length;){switch(o=r[h],c){case wt:if(!o||!R(X,o)){if(e)return Y;c=_t;continue}u+=q(o),c=xt;break;case xt:if(o&&R(Q,o))u+=q(o);else{if(":"!==o){if(e)return Y;u="",c=_t,h=0;continue}if(e&&(l.isSpecial()!==p(gt,u)||"file"===u&&(l.includesCredentials()||null!==l.port)||"file"===l.scheme&&""===l.host))return;if(l.scheme=u,e)return void(l.isSpecial()&&gt[l.scheme]===l.port&&(l.port=null));u="","file"===l.scheme?c=It:l.isSpecial()&&n&&n.scheme===l.scheme?c=St:l.isSpecial()?c=Ot:"/"===r[h+1]?(c=kt,h++):(l.cannotBeABaseURL=!0,L(l.path,""),c=Ht)}break;case _t:if(!n||n.cannotBeABaseURL&&"#"!==o)return Y;if(n.cannotBeABaseURL&&"#"===o){l.scheme=n.scheme,l.path=m(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,c=zt;break}c="file"===n.scheme?It:Tt;continue;case St:if("/"!==o||"/"!==r[h+1]){c=Tt;continue}c=At,h++;break;case kt:if("/"===o){c=Et;break}c=Ft;continue;case Tt:if(l.scheme=n.scheme,o===i)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query;else if("/"===o||"\\"===o&&l.isSpecial())c=Ct;else if("?"===o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query="",c=Lt;else{if("#"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.path.length&&l.path.length--,c=Ft;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=m(n.path),l.query=n.query,l.fragment="",c=zt}break;case Ct:if(!l.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,c=Ft;continue}c=Et}else c=At;break;case Ot:if(c=At,"/"!==o||"/"!==r[h+1])continue;h++;break;case At:if("/"!==o&&"\\"!==o){c=Et;continue}break;case Et:if("@"===o){f&&(u="%40"+u),f=!0,s=g(u);for(var y=0;y<s.length;y++){var w=s[y];if(":"!==w||v){var x=dt(w,pt);v?l.password+=x:l.username+=x}else v=!0}u=""}else if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(f&&""===u)return"Invalid authority";h-=g(u).length+1,u="",c=Pt}else u+=o;break;case Pt:case jt:if(e&&"file"===l.scheme){c=Rt;continue}if(":"!==o||d){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()){if(l.isSpecial()&&""===u)return G;if(e&&""===u&&(l.includesCredentials()||null!==l.port))return;if(a=l.parseHost(u))return a;if(u="",c=Nt,e)return;continue}"["===o?d=!0:"]"===o&&(d=!1),u+=o}else{if(""===u)return G;if(e===jt)return;if(a=l.parseHost(u))return a;u="",c=Dt}break;case Dt:if(!R(J,o)){if(o===i||"/"===o||"?"===o||"#"===o||"\\"===o&&l.isSpecial()||e){if(""!==u){var _=j(u,10);if(_>65535)return V;l.port=l.isSpecial()&&_===gt[l.scheme]?null:_,u=""}if(e)return;c=Nt;continue}return V}u+=o;break;case It:if(l.scheme="file",l.host="","/"===o||"\\"===o)c=Mt;else{if(!n||"file"!==n.scheme){c=Ft;continue}switch(o){case i:l.host=n.host,l.path=m(n.path),l.query=n.query;break;case"?":l.host=n.host,l.path=m(n.path),l.query="",c=Lt;break;case"#":l.host=n.host,l.path=m(n.path),l.query=n.query,l.fragment="",c=zt;break;default:l.host=n.host,vt(N(m(r,h),""))||(l.path=m(n.path),l.shortenPath()),c=Ft;continue}}break;case Mt:if("/"===o||"\\"===o){c=Rt;break}n&&"file"===n.scheme&&(l.host=n.host,!vt(N(m(r,h),""))&&mt(n.path[0],!0)&&L(l.path,n.path[0])),c=Ft;continue;case Rt:if(o===i||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&mt(u))c=Ft;else if(""===u){if(l.host="",e)return;c=Nt}else{if(a=l.parseHost(u))return a;if("localhost"===l.host&&(l.host=""),e)return;u="",c=Nt}continue}u+=o;break;case Nt:if(l.isSpecial()){if(c=Ft,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==i&&(c=Ft,"/"!==o))continue}else l.fragment="",c=zt;else l.query="",c=Lt;break;case Ft:if(o===i||"/"===o||"\\"===o&&l.isSpecial()||!e&&("?"===o||"#"===o)){if(bt(u)?(l.shortenPath(),"/"===o||"\\"===o&&l.isSpecial()||L(l.path,"")):yt(u)?"/"===o||"\\"===o&&l.isSpecial()||L(l.path,""):("file"===l.scheme&&!l.path.length&&mt(u)&&(null!==l.host&&""!==l.host&&(l.host=""),u=M(u,0)+":"),L(l.path,u)),u="","file"===l.scheme&&(o===i||"?"===o||"#"===o))for(;l.path.length>1&&""===l.path[0];)B(l.path);"?"===o?(l.query="",c=Lt):"#"===o&&(l.fragment="",c=zt)}else u+=dt(o,ft);break;case Ht:"?"===o?(l.query="",c=Lt):"#"===o?(l.fragment="",c=zt):o!==i&&(l.path[0]+=dt(o,lt));break;case Lt:e||"#"!==o?o!==i&&(l.query+=dt(o,l.isSpecial()?ht:ct)):(l.fragment="",c=zt);break;case zt:o!==i&&(l.fragment+=dt(o,ut))}h++}},parseHost:function(t){var e,n,i;if("["===M(t,0)){if("]"!==M(t,t.length-1))return G;if(e=function(t){var e,n,i,r,o,s,a,l=[0,0,0,0,0,0,0,0],c=0,h=null,u=0,f=function(){return M(t,u)};if(":"===f()){if(":"!==M(t,1))return;u+=2,h=++c}for(;f();){if(8===c)return;if(":"!==f()){for(e=n=0;n<4&&R(et,f());)e=16*e+j(f(),16),u++,n++;if("."===f()){if(0===n)return;if(u-=n,c>6)return;for(i=0;f();){if(r=null,i>0){if(!("."===f()&&i<4))return;u++}if(!R(J,f()))return;for(;R(J,f());){if(o=j(f(),10),null===r)r=o;else{if(0===r)return;r=10*r+o}if(r>255)return;u++}l[c]=256*l[c]+r,2!==++i&&4!==i||c++}if(4!==i)return;break}if(":"===f()){if(u++,!f())return}else if(f())return;l[c++]=e}else{if(null!==h)return;u++,h=++c}}if(null!==h)for(s=c-h,c=7;0!==c&&s>0;)a=l[c],l[c--]=l[h+s-1],l[h+--s]=a;else if(8!==c)return;return l}(W(t,1,-1)),!e)return G;this.host=e}else if(this.isSpecial()){if(t=y(t),R(nt,t))return G;if(function(t){var e,n,i=U(t,".");if(""===i[i.length-1]){if(1===i.length)return!1;i.length--}return e=i[i.length-1],!!R(tt,e)||!!R(K,e)&&(""===(n=W(e,2))||!!R(et,n))}(t)){if(e=function(t){var e,n,i,r,o,s,a,l=U(t,".");if(l.length&&""===l[l.length-1]&&l.length--,(e=l.length)>4)return null;for(n=[],i=0;i<e;i++){if(""===(r=l[i]))return null;if(o=10,r.length>1&&"0"===M(r,0)&&(o=R(K,r)?16:8,r=W(r,8===o?1:2)),""===r)s=0;else{if(!R(10===o?tt:8===o?Z:et,r))return null;s=j(r,o)}L(n,s)}for(i=0;i<e;i++)if(s=n[i],i===e-1){if(s>=I(256,5-e))return null}else if(s>255)return null;for(a=H(n),i=0;i<n.length;i++)a+=n[i]*I(256,3-i);return a}(t),null===e)return G;this.host=e}else this.host=t}else{if(R(it,t))return G;for(e="",n=g(t),i=0;i<n.length;i++)e+=dt(n[i],lt);this.host=e}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(gt,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"===this.scheme&&1===e&&mt(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,n=t.username,i=t.password,r=t.host,o=t.port,s=t.path,a=t.query,l=t.fragment,c=e+":";return null!==r?(c+="//",t.includesCredentials()&&(c+=n+(i?":"+i:"")+"@"),c+=at(r),null!==o&&(c+=":"+o)):"file"===e&&(c+="//"),null===r&&!t.cannotBeABaseURL&&s.length>1&&""===s[0]&&(c+="/."),c+=t.cannotBeABaseURL?s[0]:s.length?"/"+N(s,"/"):"",null!==a&&(c+="?"+a),null!==l&&(c+="#"+l),c},setHref:function(t){var e=this.parse(t);if(e)throw new E(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"===t)try{return new Ut(this.path[0]).origin}catch(t){return"null"}return"file"!==t&&this.isSpecial()?t+"://"+at(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(b(t)+":",wt)},getUsername:function(){return this.username},setUsername:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<e.length;n++)this.username+=dt(e[n],pt)}},getPassword:function(){return this.password},setPassword:function(t){var e=g(b(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<e.length;n++)this.password+=dt(e[n],pt)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?at(t):at(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Pt)},getHostname:function(){var t=this.host;return null===t?"":at(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,jt)},getPort:function(){var t=this.port;return null===t?"":b(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""===(t=b(t))?this.port=null:this.parse(t,Dt))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+N(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Nt))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""===(t=b(t))?this.query=null:("?"===M(t,0)&&(t=W(t,1)),this.query="",this.parse(t,Lt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!==(t=b(t))?("#"===M(t,0)&&(t=W(t,1)),this.fragment="",this.parse(t,zt)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ut=function(t){var e=f(this,Wt),n=x(arguments.length,1)>1?arguments[1]:void 0,i=k(e,new Bt(t,!1,n));o||(e.href=i.serialize(),e.origin=i.getOrigin(),e.protocol=i.getProtocol(),e.username=i.getUsername(),e.password=i.getPassword(),e.host=i.getHost(),e.hostname=i.getHostname(),e.port=i.getPort(),e.pathname=i.getPathname(),e.search=i.getSearch(),e.searchParams=i.getSearchParams(),e.hash=i.getHash())},Wt=Ut.prototype,qt=function(t,e){return{get:function(){return T(this)[t]()},set:e&&function(t){return T(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(u(Wt,"href",qt("serialize","setHref")),u(Wt,"origin",qt("getOrigin")),u(Wt,"protocol",qt("getProtocol","setProtocol")),u(Wt,"username",qt("getUsername","setUsername")),u(Wt,"password",qt("getPassword","setPassword")),u(Wt,"host",qt("getHost","setHost")),u(Wt,"hostname",qt("getHostname","setHostname")),u(Wt,"port",qt("getPort","setPort")),u(Wt,"pathname",qt("getPathname","setPathname")),u(Wt,"search",qt("getSearch","setSearch")),u(Wt,"searchParams",qt("getSearchParams")),u(Wt,"hash",qt("getHash","setHash"))),h(Wt,"toJSON",function(){return T(this).serialize()},{enumerable:!0}),h(Wt,"toString",function(){return T(this).serialize()},{enumerable:!0}),A){var $t=A.createObjectURL,Yt=A.revokeObjectURL;$t&&h(Ut,"createObjectURL",l($t,A)),Yt&&h(Ut,"revokeObjectURL",l(Yt,A))}w(Ut,"URL"),r({global:!0,constructor:!0,forced:!s,sham:!o},{URL:Ut})},3296:function(t,e,n){"use strict";n(5806)},7208:function(t,e,n){"use strict";var i=n(6518),r=n(9565);i({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}})},9418:function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e);else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(e,{A:function(){return mt}});const o=Object.entries,s=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor;let h=Object.freeze,u=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,d=p.apply,g=p.construct;h||(h=function(t){return t}),u||(u=function(t){return t}),d||(d=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return t.apply(e,i)}),g||(g=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return new t(...n)});const m=F(Array.prototype.forEach),v=F(Array.prototype.lastIndexOf),y=F(Array.prototype.pop),b=F(Array.prototype.push),w=F(Array.prototype.splice),x=Array.isArray,_=F(String.prototype.toLowerCase),S=F(String.prototype.toString),k=F(String.prototype.match),T=F(String.prototype.replace),C=F(String.prototype.indexOf),O=F(String.prototype.trim),A=F(Number.prototype.toString),E=F(Boolean.prototype.toString),P="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),j="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),D=F(Object.prototype.hasOwnProperty),I=F(Object.prototype.toString),M=F(RegExp.prototype.test),R=(N=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return g(N,e)});var N;function F(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return d(t,e,i)}}function H(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(s&&s(t,null),!x(e))return t;let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(a(e)||(e[i]=t),r=t)}t[r]=!0}return t}function L(t){for(let e=0;e<t.length;e++){D(t,e)||(t[e]=null)}return t}function z(t){const e=f(null);for(const i of o(t)){var n=r(i,2);const o=n[0],s=n[1];D(t,o)&&(x(s)?e[o]=L(s):s&&"object"==typeof s&&s.constructor===Object?e[o]=z(s):e[o]=s)}return e}function B(t,e){for(;null!==t;){const n=c(t,e);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}t=l(t)}return function(){return null}}const U=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),W=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$=h(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Y=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),G=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),V=h(["#text"]),X=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Q=h(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),J=h(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),K=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Z=u(/{{[\w\W]*|^[\w\W]*}}/g),tt=u(/<%[\w\W]*|^[\w\W]*%>/g),et=u(/\${[\w\W]*/g),nt=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),it=u(/^aria-[\-\w]+$/),rt=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ot=u(/^(?:\w+script|data):/i),st=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),at=u(/^html$/i),lt=u(/^[a-z][.\w]*(-[.\w]+)+$/i),ct=1,ht=3,ut=7,ft=8,pt=9,dt=11,gt=function(){return"undefined"==typeof window?null:window};var mt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gt();const n=e=>t(e);if(n.version="3.4.9",n.removed=[],!e||!e.document||e.document.nodeType!==pt||!e.Element)return n.isSupported=!1,n;let i=e.document;const r=i,s=r.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,p=e.NamedNodeMap;void 0===p&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,g=e.trustedTypes,N=c.prototype,F=B(N,"cloneNode"),L=B(N,"remove"),mt=B(N,"nextSibling"),vt=B(N,"childNodes"),yt=B(N,"parentNode"),bt=B(N,"shadowRoot"),wt=B(N,"attributes"),xt=l&&l.prototype?B(l.prototype,"nodeType"):null,_t=l&&l.prototype?B(l.prototype,"nodeName"):null;if("function"==typeof a){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let St,kt,Tt="",Ct=!1,Ot=0;const At=function(){if(Ot>0)throw R('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Et=function(t){At(),Ot++;try{return St.createHTML(t)}finally{Ot--}},Pt=function(t){At(),Ot++;try{return St.createScriptURL(t)}finally{Ot--}},jt=function(){return Ct||(kt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML(t){return t},createScriptURL(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(g,s),Ct=!0),kt},Dt=i,It=Dt.implementation,Mt=Dt.createNodeIterator,Rt=Dt.createDocumentFragment,Nt=Dt.getElementsByTagName,Ft=r.importNode;let Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof o&&"function"==typeof yt&&It&&void 0!==It.createHTMLDocument;const Lt=Z,zt=tt,Bt=et,Ut=nt,Wt=it,qt=ot,$t=st,Yt=lt;let Gt=rt,Vt=null;const Xt=H({},[...U,...W,...q,...Y,...V]);let Qt=null;const Jt=H({},[...X,...Q,...J,...K]);let Kt=Object.seal(f(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Zt=null,te=null;const ee=Object.seal(f(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ne=!0,ie=!0,re=!1,oe=!0,se=!1,ae=!0,le=!1,ce=!1,he=!1,ue=!1,fe=!1,pe=!1,de=!0,ge=!1;const me="user-content-";let ve=!0,ye=!1,be={},we=null;const xe=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _e=null;const Se=H({},["audio","video","img","source","image","track"]);let ke=null;const Te=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Ae="http://www.w3.org/1999/xhtml";let Ee=Ae,Pe=!1,je=null;const De=H({},[Ce,Oe,Ae],S);let Ie=H({},["mi","mo","mn","ms","mtext"]),Me=H({},["annotation-xml"]);const Re=H({},["title","style","font","a","script"]);let Ne=null;const Fe=["application/xhtml+xml","text/html"];let He=null,Le=null;const ze=i.createElement("form"),Be=function(t){return t instanceof RegExp||t instanceof Function},Ue=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Le&&Le===t)return;t&&"object"==typeof t||(t={}),t=z(t),Ne=-1===Fe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,He="application/xhtml+xml"===Ne?S:_,Vt=D(t,"ALLOWED_TAGS")&&x(t.ALLOWED_TAGS)?H({},t.ALLOWED_TAGS,He):Xt,Qt=D(t,"ALLOWED_ATTR")&&x(t.ALLOWED_ATTR)?H({},t.ALLOWED_ATTR,He):Jt,je=D(t,"ALLOWED_NAMESPACES")&&x(t.ALLOWED_NAMESPACES)?H({},t.ALLOWED_NAMESPACES,S):De,ke=D(t,"ADD_URI_SAFE_ATTR")&&x(t.ADD_URI_SAFE_ATTR)?H(z(Te),t.ADD_URI_SAFE_ATTR,He):Te,_e=D(t,"ADD_DATA_URI_TAGS")&&x(t.ADD_DATA_URI_TAGS)?H(z(Se),t.ADD_DATA_URI_TAGS,He):Se,we=D(t,"FORBID_CONTENTS")&&x(t.FORBID_CONTENTS)?H({},t.FORBID_CONTENTS,He):xe,Zt=D(t,"FORBID_TAGS")&&x(t.FORBID_TAGS)?H({},t.FORBID_TAGS,He):z({}),te=D(t,"FORBID_ATTR")&&x(t.FORBID_ATTR)?H({},t.FORBID_ATTR,He):z({}),be=!!D(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?z(t.USE_PROFILES):t.USE_PROFILES),ne=!1!==t.ALLOW_ARIA_ATTR,ie=!1!==t.ALLOW_DATA_ATTR,re=t.ALLOW_UNKNOWN_PROTOCOLS||!1,oe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,se=t.SAFE_FOR_TEMPLATES||!1,ae=!1!==t.SAFE_FOR_XML,le=t.WHOLE_DOCUMENT||!1,ue=t.RETURN_DOM||!1,fe=t.RETURN_DOM_FRAGMENT||!1,pe=t.RETURN_TRUSTED_TYPE||!1,he=t.FORCE_BODY||!1,de=!1!==t.SANITIZE_DOM,ge=t.SANITIZE_NAMED_PROPS||!1,ve=!1!==t.KEEP_CONTENT,ye=t.IN_PLACE||!1,Gt=function(t){try{return M(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:rt,Ee="string"==typeof t.NAMESPACE?t.NAMESPACE:Ae,Ie=D(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?z(t.MATHML_TEXT_INTEGRATION_POINTS):H({},["mi","mo","mn","ms","mtext"]),Me=D(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?z(t.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const e=D(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?z(t.CUSTOM_ELEMENT_HANDLING):f(null);if(Kt=f(null),D(e,"tagNameCheck")&&Be(e.tagNameCheck)&&(Kt.tagNameCheck=e.tagNameCheck),D(e,"attributeNameCheck")&&Be(e.attributeNameCheck)&&(Kt.attributeNameCheck=e.attributeNameCheck),D(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(Kt.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),se&&(ie=!1),fe&&(ue=!0),be&&(Vt=H({},V),Qt=f(null),!0===be.html&&(H(Vt,U),H(Qt,X)),!0===be.svg&&(H(Vt,W),H(Qt,Q),H(Qt,K)),!0===be.svgFilters&&(H(Vt,q),H(Qt,Q),H(Qt,K)),!0===be.mathMl&&(H(Vt,Y),H(Qt,J),H(Qt,K))),ee.tagCheck=null,ee.attributeCheck=null,D(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ee.tagCheck=t.ADD_TAGS:x(t.ADD_TAGS)&&(Vt===Xt&&(Vt=z(Vt)),H(Vt,t.ADD_TAGS,He))),D(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ee.attributeCheck=t.ADD_ATTR:x(t.ADD_ATTR)&&(Qt===Jt&&(Qt=z(Qt)),H(Qt,t.ADD_ATTR,He))),D(t,"ADD_URI_SAFE_ATTR")&&x(t.ADD_URI_SAFE_ATTR)&&H(ke,t.ADD_URI_SAFE_ATTR,He),D(t,"FORBID_CONTENTS")&&x(t.FORBID_CONTENTS)&&(we===xe&&(we=z(we)),H(we,t.FORBID_CONTENTS,He)),D(t,"ADD_FORBID_CONTENTS")&&x(t.ADD_FORBID_CONTENTS)&&(we===xe&&(we=z(we)),H(we,t.ADD_FORBID_CONTENTS,He)),ve&&(Vt["#text"]=!0),le&&H(Vt,["html","head","body"]),Vt.table&&(H(Vt,["tbody"]),delete Zt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw R('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=St;St=t.TRUSTED_TYPES_POLICY;try{Tt=Et("")}catch(t){throw St=e,t}}else null===t.TRUSTED_TYPES_POLICY?(St=void 0,Tt=""):(void 0===St&&(St=jt()),St&&"string"==typeof Tt&&(Tt=Et("")));(Ht.uponSanitizeElement.length>0||Ht.uponSanitizeAttribute.length>0)&&Vt===Xt&&(Vt=z(Vt)),Ht.uponSanitizeAttribute.length>0&&Qt===Jt&&(Qt=z(Qt)),h&&h(t),Le=t},We=H({},[...W,...q,...$]),qe=H({},[...Y,...G]),$e=function(t){b(n.removed,{element:t});try{yt(t).removeChild(t)}catch(e){if(L(t),!yt(t))throw R("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ye=function(t){const e=vt?vt(t):t.childNodes;if(e){const t=[];m(e,e=>{b(t,e)}),m(t,t=>{try{L(t)}catch(t){}})}const n=wt?wt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const i=n[e],r=i&&i.name;if("string"==typeof r)try{t.removeAttribute(r)}catch(t){}}},Ge=function(t,e){try{b(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){b(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(ue||fe)try{$e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Ve=function(t){const e=wt?wt(t):t.attributes;if(e)for(let n=e.length-1;n>=0;--n){const i=e[n],r=i&&i.name;if("string"==typeof r&&!Qt[He(r)])try{t.removeAttribute(r)}catch(t){}}},Xe=function(t){let e=null,n=null;if(he)t="<remove></remove>"+t;else{const e=k(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ne&&Ee===Ae&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=St?Et(t):t;if(Ee===Ae)try{e=(new d).parseFromString(r,Ne)}catch(t){}if(!e||!e.documentElement){e=It.createDocument(Ee,"template",null);try{e.documentElement.innerHTML=Pe?Tt:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Ee===Ae?Nt.call(e,le?"html":"body")[0]:le?e.documentElement:o},Qe=function(t){return Mt.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Je=function(t){var e,n;t.normalize();const i=Mt.call(t.ownerDocument||t,t,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=i.nextNode();for(;r;){let t=r.data;m([Lt,zt,Bt],e=>{t=T(t,e," ")}),r.data=t,r=i.nextNode()}const o=null!==(e=null===(n=t.querySelectorAll)||void 0===n?void 0:n.call(t,"template"))&&void 0!==e?e:[];m(Array.from(o),t=>{Ze(t.content)&&Je(t.content)})},Ke=function(t){const e=_t?_t(t):null;return"string"==typeof e&&("form"===He(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==wt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==xt(t)||t.childNodes!==vt(t)))},Ze=function(t){if(!xt||"object"!=typeof t||null===t)return!1;try{return xt(t)===dt}catch(t){return!1}},tn=function(t){if(!xt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof xt(t)}catch(t){return!1}};function en(t,e,i){m(t,t=>{t.call(n,e,i,Le)})}const nn=function(t){let e=null;if(en(Ht.beforeSanitizeElements,t,null),Ke(t))return $e(t),!0;const i=He(_t?_t(t):t.nodeName);if(en(Ht.uponSanitizeElement,t,{tagName:i,allowedTags:Vt}),ae&&t.hasChildNodes()&&!tn(t.firstElementChild)&&M(/<[/\w!]/g,t.innerHTML)&&M(/<[/\w!]/g,t.textContent))return $e(t),!0;if(ae&&t.namespaceURI===Ae&&"style"===i&&tn(t.firstElementChild))return $e(t),!0;if(t.nodeType===ut)return $e(t),!0;if(ae&&t.nodeType===ft&&M(/<[/\w]/g,t.data))return $e(t),!0;if(Zt[i]||!(ee.tagCheck instanceof Function&&ee.tagCheck(i))&&!Vt[i]){if(!Zt[i]&&sn(i)){if(Kt.tagNameCheck instanceof RegExp&&M(Kt.tagNameCheck,i))return!1;if(Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(i))return!1}if(ve&&!we[i]){const e=yt(t),n=vt(t);if(n&&e){for(let i=n.length-1;i>=0;--i){const r=ye?n[i]:F(n[i],!0);e.insertBefore(r,mt(t))}}}return $e(t),!0}return((xt?xt(t):t.nodeType)!==ct||function(t){let e=yt(t);e&&e.tagName||(e={namespaceURI:Ee,tagName:"template"});const n=_(t.tagName),i=_(e.tagName);return!!je[t.namespaceURI]&&(t.namespaceURI===Oe?e.namespaceURI===Ae?"svg"===n:e.namespaceURI===Ce?"svg"===n&&("annotation-xml"===i||Ie[i]):Boolean(We[n]):t.namespaceURI===Ce?e.namespaceURI===Ae?"math"===n:e.namespaceURI===Oe?"math"===n&&Me[i]:Boolean(qe[n]):t.namespaceURI===Ae?!(e.namespaceURI===Oe&&!Me[i])&&!(e.namespaceURI===Ce&&!Ie[i])&&!qe[n]&&(Re[n]||!We[n]):!("application/xhtml+xml"!==Ne||!je[t.namespaceURI]))}(t))&&("noscript"!==i&&"noembed"!==i&&"noframes"!==i||!M(/<\/no(script|embed|frames)/i,t.innerHTML))?(se&&t.nodeType===ht&&(e=t.textContent,m([Lt,zt,Bt],t=>{e=T(e,t," ")}),t.textContent!==e&&(b(n.removed,{element:t.cloneNode()}),t.textContent=e)),en(Ht.afterSanitizeElements,t,null),!1):($e(t),!0)},rn=function(t,e,n){if(te[e])return!1;if(de&&("id"===e||"name"===e)&&(n in i||n in ze))return!1;const r=Qt[e]||ee.attributeCheck instanceof Function&&ee.attributeCheck(e,t);if(ie&&!te[e]&&M(Ut,e));else if(ne&&M(Wt,e));else if(!r||te[e]){if(!(sn(t)&&(Kt.tagNameCheck instanceof RegExp&&M(Kt.tagNameCheck,t)||Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(t))&&(Kt.attributeNameCheck instanceof RegExp&&M(Kt.attributeNameCheck,e)||Kt.attributeNameCheck instanceof Function&&Kt.attributeNameCheck(e,t))||"is"===e&&Kt.allowCustomizedBuiltInElements&&(Kt.tagNameCheck instanceof RegExp&&M(Kt.tagNameCheck,n)||Kt.tagNameCheck instanceof Function&&Kt.tagNameCheck(n))))return!1}else if(ke[e]);else if(M(Gt,T(n,$t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==C(n,"data:")||!_e[t]){if(re&&!M(qt,T(n,$t,"")));else if(n)return!1}else;return!0},on=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(t){return!on[_(t)]&&M(Yt,t)},an=function(t){en(Ht.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||Ke(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Qt,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],s=o.name,a=o.namespaceURI,l=o.value,c=He(s),h=l;let u="value"===s?h:O(h);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,en(Ht.uponSanitizeAttribute,t,i),u=i.attrValue,!ge||"id"!==c&&"name"!==c||0===C(u,me)||(Ge(s,t),u=me+u),ae&&M(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Ge(s,t);continue}if("attributename"===c&&k(u,"href")){Ge(s,t);continue}if(i.forceKeepAttr)continue;if(!i.keepAttr){Ge(s,t);continue}if(!oe&&M(/\/>/i,u)){Ge(s,t);continue}se&&m([Lt,zt,Bt],t=>{u=T(u,t," ")});const f=He(t.nodeName);if(rn(f,c,u)){if(St&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(a);else switch(g.getAttributeType(f,c)){case"TrustedHTML":u=Et(u);break;case"TrustedScriptURL":u=Pt(u)}if(u!==h)try{a?t.setAttributeNS(a,s,u):t.setAttribute(s,u),Ke(t)?$e(t):y(n.removed)}catch(e){Ge(s,t)}}else Ge(s,t)}en(Ht.afterSanitizeAttributes,t,null)},ln=function(t){let e=null;const n=Qe(t);for(en(Ht.beforeSanitizeShadowDOM,t,null);e=n.nextNode();){en(Ht.uponSanitizeShadowNode,e,null),nn(e),an(e),Ze(e.content)&&ln(e.content);if((xt?xt(e):e.nodeType)===ct){const t=bt?bt(e):e.shadowRoot;Ze(t)&&(cn(t),ln(t))}}en(Ht.afterSanitizeShadowDOM,t,null)},cn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){ln(t.shadow);continue}const n=t.node,i=(xt?xt(n):n.nodeType)===ct,r=vt?vt(n):n.childNodes;if(r)for(let t=r.length-1;t>=0;--t)e.push({node:r[t],shadow:null});if(i){const t=_t?_t(n):null;if("string"==typeof t&&"template"===He(t)){const t=n.content;Ze(t)&&e.push({node:t,shadow:null})}}if(i){const t=bt?bt(n):n.shadowRoot;Ze(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,a=null;if(Pe=!t,Pe&&(t="\x3c!--\x3e"),"string"!=typeof t&&!tn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return A(t);case"boolean":return E(t);case"bigint":return P?P(t):"0";case"symbol":return j?j(t):"Symbol()";case"undefined":default:return I(t);case"function":case"object":{if(null===t)return I(t);const e=t,n=B(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:I(t)}return I(t)}}}(t)))throw R("dirty is not a string, aborting");if(!n.isSupported)return t;ce||Ue(e),n.removed=[];const l=ye&&"string"!=typeof t&&tn(t);if(l){const e=_t?_t(t):t.nodeName;if("string"==typeof e){const t=He(e);if(!Vt[t]||Zt[t])throw R("root node is forbidden and cannot be sanitized in-place")}if(Ke(t))throw R("root node is clobbered and cannot be sanitized in-place");try{cn(t)}catch(e){throw Ye(t),e}}else if(tn(t))i=Xe("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),o.nodeType===ct&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o),cn(o);else{if(!ue&&!se&&!le&&-1===t.indexOf("<"))return St&&pe?Et(t):t;if(i=Xe(t),!i)return ue?null:pe?Tt:""}i&&he&&$e(i.firstChild);const c=Qe(l?t:i);try{for(;s=c.nextNode();)nn(s),an(s),Ze(s.content)&&ln(s.content)}catch(e){throw l&&Ye(t),e}if(l)return m(n.removed,t=>{t.element&&function(t){const e=[t];for(;e.length>0;){const t=e.pop();(xt?xt(t):t.nodeType)===ct&&Ve(t);const n=vt?vt(t):t.childNodes;if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}}(t.element)}),se&&Je(t),t;if(ue){if(se&&Je(i),fe)for(a=Rt.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(Qt.shadowroot||Qt.shadowrootmode)&&(a=Ft.call(r,a,!0)),a}let h=le?i.outerHTML:i.innerHTML;return le&&Vt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&M(at,i.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+h),se&&m([Lt,zt,Bt],t=>{h=T(h,t," ")}),St&&pe?Et(h):h},n.setConfig=function(){Ue(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ce=!0},n.clearConfig=function(){Le=null,ce=!1,St=kt,Tt=""},n.isValidAttribute=function(t,e,n){Le||Ue({});const i=He(t),r=He(e);return rn(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&b(Ht[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=v(Ht[t],e);return-1===n?void 0:w(Ht[t],n,1)[0]}return y(Ht[t])},n.removeHooks=function(t){Ht[t]=[]},n.removeAllHooks=function(){Ht={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return n[t].call(o.exports,o,o.exports,r),o.exports}r.m=n,r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.f={},r.e=function(t){return Promise.all(Object.keys(r.f).reduce(function(e,n){return r.f[n](t,e),e},[]))},r.u=function(t){return t+".genoverse.js"},r.miniCssF=function(t){return t+".css"},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="genoverse:",r.l=function(n,i,o,s){if(t[n])t[n].push(i);else{var a,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),h=0;h<c.length;h++){var u=c[h];if(u.getAttribute("src")==n||u.getAttribute("data-webpack")==e+o){a=u;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",e+o),a.src=n),t[n]=[i];var f=function(e,i){a.onerror=a.onload=null,clearTimeout(p);var r=t[n];if(delete t[n],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach(function(t){return t(i)}),e)return e(i)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.dn=function(t){(Object.getOwnPropertyDescriptor(t,"name")||{}).writable||Object.defineProperty(t,"name",{value:"default",configurable:!0})},function(){var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&(!t||!/^http(s?):/.test(t));)t=n[i--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t}(),function(){if("undefined"!=typeof document){var t=function(t){return new Promise(function(e,n){var i=r.miniCssF(t),o=r.p+i;if(function(t,e){for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var r=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(r===t||r===e))return s}var o=document.getElementsByTagName("style");for(i=0;i<o.length;i++){var s;if((r=(s=o[i]).getAttribute("data-href"))===t||r===e)return s}}(i,o))return e();!function(t,e,n,i,o){var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",r.nc&&(s.nonce=r.nc),s.onerror=s.onload=function(n){if(s.onerror=s.onload=null,"load"===n.type)i();else{var r=n&&n.type,a=n&&n.target&&n.target.href||e,l=new Error("Loading CSS chunk "+t+" failed.\n("+r+": "+a+")");l.name="ChunkLoadError",l.code="CSS_CHUNK_LOAD_FAILED",l.type=r,l.request=a,s.parentNode&&s.parentNode.removeChild(s),o(l)}},s.href=e,n?n.parentNode.insertBefore(s,n.nextSibling):document.head.appendChild(s)}(t,o,null,e,n)})},e={792:0};r.f.miniCss=function(n,i){e[n]?i.push(e[n]):0!==e[n]&&{47:1,52:1,347:1,407:1,423:1,512:1,758:1,895:1,943:1,966:1,984:1}[n]&&i.push(e[n]=t(n).then(function(){e[n]=0},function(t){throw delete e[n],t}))}}}(),function(){var t={792:0};r.f.j=function(e,n){var i=r.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else if(/^(407|758)$/.test(e))t[e]=0;else{var o=new Promise(function(n,r){i=t[e]=[n,r]});n.push(i[2]=o);var s=r.p+r.u(e),a=new Error;r.l(s,function(n){if(r.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}},"chunk-"+e,e)}};var e=function(e,n){var i,o,s=n[0],a=n[1],l=n[2],c=0;if(s.some(function(e){return 0!==t[e]})){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(l)l(r)}for(e&&e(n);c<s.length;c++)o=s[c],r.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunkgenoverse=self.webpackChunkgenoverse||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}(),function(){"use strict";r(67),r(3771),r(113),r(6449),r(8350),r(4423),r(3792),r(3514),r(237),r(9085),r(5506),r(6099),r(6034),r(3362),r(6167),r(3518),r(9391),r(7764),r(3296),r(7208),r(8408)}(),function(){"use strict";var t=r(3006),e=r.n(t),n=r(9418),i=r(8156),o=r.n(i),s=r(6153),a=r(5034),l=r(6829),c=r(3560),h=r.n(c);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).exclude,i=void 0===n?[]:n,r=e.keys().reduce(function(t,n){var r=n.replace("./","").replace(".js","");if(i&&(i.includes(r)||i.includes(r.replace("library/","").replace(/\//g,"."))))return t;for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return Object.assign(t,f({},r,e.apply(void 0,[n].concat(s))))},{});Object.keys(r).sort().forEach(function(e){return Object.keys(r[e]).sort().forEach(function(n){return function(t,e,n,i){i&&h()("default"===n?t:t[n],e.replace("library/","").split("/"),i)}(t,e,n,r[e][n])})})};r.dn(p);var d=r(4692),g=r.n(d),m=(r(4224),r(1758),r(8604),r(5285),{$:r.g.$,jQuery:r.g.jQuery});r.g.$=r.g.jQuery=g();var v;try{(v=r(7859)).keys().forEach(v)}finally{r.g.$=m.$,r.g.jQuery=m.jQuery}var y=g(),b=r(5932);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach(function(e){S(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function S(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=w(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==w(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||C(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,s,a=[],l=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=o.call(n)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return a}}(t,e)||C(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,e){if(t){if("string"==typeof t)return O(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var A=e().extend({baseURL:void 0,urlParamTemplate:"r=__CHR__:__START__-__END__",width:1e3,longestLabel:30,defaultLength:5e3,defaultScrollDelta:100,tracks:[],highlights:[],plugins:[],dragAction:"scroll",wheelAction:"off",isStatic:!1,saveable:!1,saveKey:"",storageType:"sessionStorage",autoHideMessages:!0,trackAutoHeight:!1,hideEmptyTracks:!0,genome:void 0,useHash:void 0,chr:1,start:1,end:1e6,constructor:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=y;if(this.jQuery=i,!this.supported())return this.die("Your browser does not support this functionality");A.configure();var r=i(n.container);null!==(t=r)&&void 0!==t&&t.length||(r=i("<div>").appendTo("body")),r.addClass("genoverse").data("genoverse",this),Object.entries(n).forEach(function(t){var n=T(t,2),i=n[0],r=n[1];void 0!==r&&(e[i]=r)}),this.container=r,this.eventNamespace=".genoverse.".concat(++A.id),this.events={browser:{},tracks:{}},i.when(this.loadCSS(),this.loadGenome(),this.loadPlugins()).always(function(){(0,b.A)(e,"Genoverse"),e.init()})},loadCSS:function(){var t=this.jQuery;return t.when(A.importCSS?r.e(47).then(r.bind(r,4047)):t.Deferred().resolve(),A.importFontAwesome?Promise.all([r.e(758),r.e(895)]).then(r.bind(r,5895)):t.Deferred().resolve())},loadGenome:function(){var t=this;if("string"==typeof this.genome){var e=this.genome.toLowerCase();return r(9828)("./".concat(e)).then(function(n){t.genomeName=t.genome,t.genome=n.default,t.genome||t.die("Unable to load genome ".concat(e))})}},loadPlugins:function(t){var e=this;this.loadedPlugins=this.loadedPlugins||{};var n=(t||this.plugins).map(function(t){return Array.isArray(t)?{name:t[0],conf:t[1]}:{name:t,conf:void 0}}).reduce(function(t,e){return t[e.name]=e,t},{}),i=function(t){var r=t.exports.requires,o=t.exports[t.name]||t.exports.plugin;r&&Object.keys(r).forEach(function(t){"requires"!==t&&i({name:t,conf:(n[t]||{}).conf,exports:{plugin:r[t],requires:r.requires}})}),"function"==typeof o&&!0!==e.loadedPlugins[t.name]&&(o.call(e,t.conf||{}),e.container.addClass("gv-".concat(t.name.replace(/([A-Z])/g,"-$1").toLowerCase(),"-plugin")),e.loadedPlugins[t.name]=!0)},o=Object.keys(n).reduce(function(t,e){return t.then(function(){return r(9910)("./".concat(e)).then(function(t){return i({name:e,conf:n[e].conf,exports:t.default})})})},this.jQuery.Deferred().resolve());return this.jQuery.when(o)},init:function(){var t=this.width;this.addDomElements(t),this.addUserEventHandlers(),this.isStatic&&(this.dragAction=this.wheelAction="off",this.urlParamTemplate=!1),this.tracksById={},this.prev={},this.legends={},this.initialLocation={chr:this.chr,start:this.start,end:this.end},this.saveKey=this.saveKey?"genoverse-".concat(this.saveKey):"genoverse",this.urlParamTemplate=this.urlParamTemplate||"",this.useHash="boolean"==typeof this.useHash?this.useHash:"function"!=typeof window.history.pushState,this.textWidth=document.createElement("canvas").getContext("2d").measureText("W").width,this.labelWidth=this.labelContainer.outerWidth(!0)||0,this.width=Math.min(this.width-this.labelWidth,this.wrapper.width()||Infinity),this.paramRegex=this.urlParamTemplate?new RegExp("([?&;])".concat(this.urlParamTemplate.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/(\b(\w+=)?__CHR__(.)?)/,"$2([\\w\\.]+)$3").replace(/(\b(\w+=)?__START__(.)?)/,"$2(\\d+)$3").replace(/(\b(\w+=)?__END__(.)?)/,"$2(\\d+)$3"),"([;&])")):"";var e=this.getCoords();this.chr=e.chr,this.genome&&(this.chromosomeSize=this.genome[this.chr].size),this.canChangeChr=!!this.genome,this.saveable?this.loadConfig():this.addTracks(),this.width>0&&this.setRange(e.start,e.end),this.highlights.length&&this.addHighlights(this.highlights)},loadConfig:function(){var t,e=this;this.defaultTracks=this.jQuery.extend(!0,[],this.tracks);try{t=window[this.storageType].getItem(this.saveKey)}catch(t){}if(t){t=JSON.parse(t);var n=A.getAllTrackTypes(),i=[],r={},o={};this.tracks.forEach(function(t){var n=e.normaliseTrackDefinition(t);n.prototype.id&&(r[n.prototype.id]=n)}),t.forEach(function(t){var o=r[t.id];if(o)s(o,t),o._fromStorage=!0;else if(n[t.namespace]){var a=(o=n[t.namespace]).prototype.id;e.trackIds=e.trackIds||{},e.trackIds[a]=e.trackIds[a]||1,r[a]&&(o=r[a]),s(o,t),i.push(o)}}),this.tracks.forEach(function(t){var n,o=e.normaliseTrackDefinition(t);(!o.prototype.id||null!==(n=r[o.prototype.id])&&void 0!==n&&n._fromStorage)&&i.push(o)}),this.tracks=i,this.savedConfig=o,this.addTracks()}else this.addTracks();function s(t,e){Object.keys(e).forEach(function(n){if("config"===n)o[e.id]=e[n];else{if("height"===n&&(e[n]=parseInt(e[n],10),isNaN(e[n])))return;t.prototype[n]=e[n]}})}},saveConfig:function(){if(!this._constructing&&this.saveable){var t=[];this.tracks.forEach(function(e){if(e.id&&!(e instanceof l.default)&&!(e instanceof a.default)){var n={id:e.id,namespace:e.namespace,order:e.order,autoHeight:e.autoHeight,height:e.height-(e.initialHeight-e.defaultHeight)};e.config&&(n.config=Object.assign(n.config||{},e.config)),t.push(n)}});try{window[this.storageType].setItem(this.saveKey,JSON.stringify(t))}catch(t){}}},resetConfig:function(){var t=[];this.tracksById.highlights&&(this.tracksById.highlights.removeHighlights(),t=Object.values(this.tracksById.highlights.prop("featuresById")));try{window[this.storageType].removeItem(this.saveKey)}catch(t){}this._constructing=!0,this.savedConfig={},this.removeTracks(k(this.tracks)),this.addTracks(this.jQuery.extend(!0,[],this.defaultTracks)),t.length&&this.addHighlights(t),this._constructing=!1},addDomElements:function(t){var e=this.jQuery;this.menus=e(),this.labelContainer=e('<ul class="gv-label-container">').appendTo(this.container).sortable({items:"li:not(.gv-unsortable)",handle:".gv-handle",axis:"y",helper:"clone",cursor:"move",update:this.updateTrackOrder.bind(this),start:function(t,e){e.placeholder.css({height:e.item.height(),visibility:"visible"}).html(e.item.html()),e.helper.hide()}}),this.wrapper=this.jQuery('<div class="gv-wrapper">').appendTo(this.container),this.selector=this.jQuery('<div class="gv-selector gv-crosshair">').appendTo(this.wrapper),this.selectorControls=this.zoomInHighlight=this.zoomOutHighlight=e(),this.container.addClass("gv-canvas-container").width(t),this.isStatic||(this.selectorControls=e('\n <div class="gv-selector-controls gv-panel">\n <div class="gv-button-set">\n <div class="gv-position">\n <div class="gv-chr"></div>\n <div class="gv-start-end">\n <div class="gv-start"></div>\n <div class="gv-end"></div>\n </div>\n </div>\n </div>\n <div class="gv-button-set">\n <button class="gv-zoom-here">Zoom here</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-center">Center</button>\n </div>\n <div class="gv-button-set">\n <button class="gv-highlight">Highlight</butto\n </div>\n <div class="gv-button-set">\n <button class="gv-cancel">Cancel</button>\n </div>\n </div>\'\n ').appendTo(this.selector),this.zoomInHighlight=e('\n <div class="gv-canvas-zoom gv-i">\n <div class="gv-t gv-l gv-h"></div>\n <div class="gv-t gv-r gv-h"></div>\n <div class="gv-t gv-l gv-v"></div>\n <div class="gv-t gv-r gv-v"></div>\n <div class="gv-b gv-l gv-h"></div>\n <div class="gv-b gv-r gv-h"></div>\n <div class="gv-b gv-l gv-v"></div>\n <div class="gv-b gv-r gv-v"></div>\n </div>\n ').appendTo("body"),this.zoomOutHighlight=this.zoomInHighlight.clone().toggleClass("gv-i gv-o").appendTo("body"))},addUserEventHandlers:function(){var t=this,e=this.jQuery,n=this.eventNamespace,i={},r={};r["mousedown".concat(n)]=function(e){return t.hideMessages(),e.which&&1!==e.which||e.currentTarget===t.selector[0]&&e.target!==e.currentTarget||t.mousedown(e),!1},r["mousewheel".concat(n)]=function(e,n,i,r){return!!t.noWheelZoom||(t.hideMessages(),"zoom"===t.wheelAction?t.mousewheelZoom(e,n):0===r&&0!==i?(t.startDragScroll(e),t.move(10*-i),t.stopDragScroll(!1),!1):void 0)},r["dblclick".concat(n)]=function(e){if(t.isStatic)return!0;t.hideMessages(),t.mousewheelZoom(e,1)},this.container.on(r,".gv-image-container, .gv-selector"),this.selectorControls.on("click",function(e){var n=t.getSelectorPosition();switch(e.target.className){case"gv-zoom-here":t.setRange(n.start,n.end,!0);break;case"gv-center":t.moveTo(t.chr,n.start,n.end,!0,!0),t.cancelSelect();break;case"gv-highlight":t.addHighlight({chr:t.chr,start:n.start,end:n.end});case"gv-cancel":t.cancelSelect()}}),i["mouseup".concat(this.eventNamespace)]=this.mouseup.bind(this),i["mousemove".concat(this.eventNamespace)]=this.mousemove.bind(this),i["keydown".concat(this.eventNamespace)]=this.keydown.bind(this),i["keyup".concat(this.eventNamespace)]=this.keyup.bind(this),i["mousewheel".concat(this.eventNamespace)]=function(e){"zoom"===t.wheelAction&&(t.wheelTimeout&&clearTimeout(t.wheelTimeout),t.noWheelZoom=t.noWheelZoom||e.target!==t.container[0],t.wheelTimeout=setTimeout(function(){t.noWheelZoom=!1},300))},e(document).on(i),e(window).on("".concat(this.useHash?"hashchange":"popstate").concat(this.eventNamespace),this.popState.bind(this))},onTracks:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.tracks.forEach(function(e){if(!e.disabled&&e._interface){var i,r=e._interface[t];if(r)(i=e[r])[t].apply(i,n);else e[t]&&e[t].apply(e,n)}})},reset:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.onTracks.apply(this,["reset"].concat(e)),this.prev={},this.scale=9e99,this.setRange(this.start,this.end)},setWidth:function(t){var e=this;this.width=t,this.width-=this.labelWidth,this.controlPanel&&(this.width-=this.controlPanel.outerWidth(!0)),this.superContainer?(this.superContainer.width(t),this.container.width(this.width)):this.container.width(t),setTimeout(function(){e.onTracks("setWidth",Math.min(e.width,e.container.width())),e.reset("resizing")},1)},mousewheelZoom:function(t,e){var n=this,i=this.jQuery;return clearTimeout(this.zoomDeltaTimeout),clearTimeout(this.zoomTimeout),this.zoomDeltaTimeout=setTimeout(function(){e>0?n.zoomInHighlight.css({left:t.pageX-20,top:t.pageY-20,display:"block"}).animate({width:80,height:80,top:"-=20",left:"-=20"},{complete:function(){i(this).css({width:40,height:40,display:"none"})}}):n.zoomOutHighlight.css({left:t.pageX-40,top:t.pageY-40,display:"block"}).animate({width:40,height:40,top:"+=20",left:"+=20"},{complete:function(){i(this).css({width:80,height:80,display:"none"})}})},100),this.zoomTimeout=setTimeout(function(){n[e>0?"zoomIn":"zoomOut"](t.pageX-n.container.offset().left-n.labelWidth),"select"===n.dragAction&&n.moveSelector(t)},300),!1},startDragScroll:function(t){this.dragging="scroll",this.scrolling=!t,this.dragOffset=t?t.pageX-this.left:0,this.dragStart=this.start,this.scrollDelta=Math.max(this.scale,this.defaultScrollDelta)},stopDragScroll:function(t){this.dragging=!1,this.scrolling=!1,!1!==t&&(this.start!==this.dragStart&&this.updateURL(),this.checkTrackHeights())},startDragSelect:function(t){if(!t)return!1;var e=Math.max(0,t.pageX-this.wrapper.offset().left-2);this.dragging="select",this.selectorStalled=!1,this.selectorStart=e,this.selector.css({left:e,width:0}).removeClass("gv-crosshair"),this.selectorControls.hide()},stopDragSelect:function(t){if(!t)return!1;if(this.dragging=!1,this.selectorStalled=!0,this.selector.outerWidth(!0)<2)return this.cancelSelect();var e=Math.min(t.pageY-this.wrapper.offset().top,this.wrapper.outerHeight(!0)-1.2*this.selectorControls.outerHeight(!0)),n=this.getSelectorPosition();this.selectorControls.find(".gv-chr").html(this.chr),this.selectorControls.find(".gv-start").html(n.start),this.selectorControls.find(".gv-end").html(n.end),this.selectorControls.find(".gv-selector-location").html("".concat(this.chr,":").concat(n.start,"-").concat(n.end)).end().css({top:e,left:this.selector.outerWidth(!0)/2-this.selectorControls.outerWidth(!0)/2}).show()},cancelSelect:function(t){t||(this.dragging=!1),this.selectorStalled=!1,this.selector.addClass("gv-crosshair").width(0),this.selectorControls.hide(),"scroll"===this.dragAction&&this.selector.hide()},dragSelect:function(t){var e=t.pageX-this.wrapper.offset().left;e>this.selectorStart?this.selector.css({left:this.selectorStart,width:Math.min(e-this.selectorStart,this.width-this.selectorStart-1)}):this.selector.css({left:Math.max(e,1),width:Math.min(this.selectorStart-e,this.selectorStart-1)})},setDragAction:function(t,e){this.dragAction=t,"select"===this.dragAction?this.selector.addClass("gv-crosshair").width(0).show():e&&!this.selector.hasClass("gv-crosshair")?this.selectorStalled=!1:(this.cancelSelect(),this.selector.hide())},toggleSelect:function(t){t?(this.prev.dragAction="scroll",this.setDragAction("select")):(this.setDragAction(this.prev.dragAction,!0),delete this.prev.dragAction)},setWheelAction:function(t){this.wheelAction=t},keydown:function(t){16!==t.which||this.prev.dragAction||"scroll"!==this.dragAction?27===t.which&&(this.cancelSelect(),this.closeMenus()):this.toggleSelect(!0)},keyup:function(t){16===t.which&&this.prev.dragAction&&this.toggleSelect()},mousedown:function(t){switch(t.shiftKey?"scroll"===this.dragAction&&this.toggleSelect(!0):this.prev.dragAction&&this.toggleSelect(),this.dragAction){case"select":this.startDragSelect(t);break;case"scroll":this.startDragScroll(t)}},mouseup:function(t){switch(this.dragging){case"select":this.stopDragSelect(t);break;case"scroll":this.stopDragScroll()}},mousemove:function(t){if(this.dragging&&!this.scrolling)switch(this.dragAction){case"scroll":this.move(t.pageX-this.dragOffset-this.left);break;case"select":this.dragSelect(t)}else"select"===this.dragAction&&this.moveSelector(t)},moveSelector:function(t){this.selectorStalled||this.selector.css("left",t.pageX-this.wrapper.offset().left-2)},move:function(t){var e=this.scale;e>1&&(t=Math.round(t/e)*e);var n=this.left+t;n<=this.minLeft?(n=this.minLeft,t=this.minLeft-this.left):n>=this.maxLeft&&(n=this.maxLeft,t=this.maxLeft-this.left);var i=Math.max(Math.round(this.start-t/e),1),r=i+this.length-1;r>this.chromosomeSize&&(i=(r=this.chromosomeSize)-this.length+1),this.left=n,i!==this.dragStart&&(this.closeMenus(),this.cancelSelect(!0)),this.onTracks("move",t),this.setRange(i,r)},moveTo:function(t,e,n,i,r){void 0!==t&&String(t)!==String(this.chr)&&(this.canChangeChr?(this.genome&&this.genome[t]?(this.chr=t,this.chromosomeSize=this.genome[t].size,this.start=this.end=this.scale=-1):this.die("Chromosome cannot be found in genome"),this.onTracks("changeChr")):this.die("Chromosome changing is not allowed")),this.setRange(e,n,i,r),this.prev.scale===this.scale&&(this.left=Math.max(Math.min(this.left+Math.round((this.prev.start-this.start)*this.scale),this.maxLeft),this.minLeft),this.onTracks("moveTo",this.chr,this.start,this.end,(this.prev.start-this.start)*this.scale))},setRange:function(t,e,n,i){if(this.prev.start=this.start,this.prev.end=this.end,this.start=Math.min(Math.max("number"==typeof t?Math.floor(t):parseInt(t,10),1),this.chromosomeSize),this.end=Math.max(Math.min("number"==typeof e?Math.floor(e):parseInt(e,10),this.chromosomeSize),1),this.end<this.start&&(this.end=Math.min(this.start+this.defaultLength-1,this.chromosomeSize)),i&&this.end-this.start+1!==this.length)if(this.end===this.chromosomeSize)this.start=this.end-this.length+1;else{var r=(this.start+this.end)/2;this.start=Math.max(Math.floor(r-this.length/2),1),this.end=this.start+this.length-1,this.end>this.chromosomeSize&&(this.end=this.chromosomeSize,this.start=this.end-this.length+1)}else this.length=this.end-this.start+1;this.setScale(),!0!==n||this.prev.start===this.start&&this.prev.end===this.end||this.updateURL()},setScale:function(){this.prev.scale=this.scale,this.scale=this.width/this.length,this.scaledStart=this.start*this.scale,this.prev.scale!==this.scale&&(this.left=0,this.minLeft=Math.round((this.end-this.chromosomeSize)*this.scale),this.maxLeft=Math.round((this.start-1)*this.scale),this.labelBuffer=Math.ceil(this.textWidth/this.scale)*this.longestLabel,this.prev.scale&&(this.cancelSelect(),this.closeMenus()),this.onTracks("setScale"),this.onTracks("makeFirstImage"))},checkTrackHeights:function(){this.dragging||this.onTracks("checkHeight")},resetTrackHeights:function(){this.onTracks("resetHeight")},zoomIn:function(t){t||(t=this.width/2);var e=Math.round(this.start+t/(2*this.scale)),n=2===this.length?e:Math.round(e+(this.length-1)/2);this.setRange(e,n,!0)},zoomOut:function(t){t||(t=this.width/2);var e=Math.round(this.start-t/this.scale),n=1===this.length?e+1:Math.round(e+2*(this.length-1));this.setRange(e,n,!0)},normaliseTrackDefinition:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Track",i=o()(A,n),r=n.split("."),s=function(t){var e=t.split(".").filter(function(t){return"Genoverse"!==t&&!r.includes(t)}).join(".");return e===n?i:o()(i,e)},a=function(t){return _(_(_(_({},t),t.controller?{controller:e.normaliseTrackDefinition(t.controller,"Track.Controller")}:{}),t.model?{model:e.normaliseTrackDefinition(t.model,"Track.Model")}:{}),t.view?{view:e.normaliseTrackDefinition(t.view,"Track.View")}:{})};if("string"==typeof t)return s(t);if(Array.isArray(t)&&"string"==typeof t[0]){var l=s(t[0]);return"object"===w(t[1])&&Object.keys(t[1]).length?l.extend(a(t[1])):l}return"object"===w(t)&&Object.keys(t).length?i.extend(a(t)):t},addTrack:function(t,e){return this.addTracks([t],e)[0]},addTracks:function(t,e){var n,i=this.jQuery,r={browser:this,width:Math.min(this.width,this.container.width())},o=Boolean(t);if(o&&!this.tracks.filter(function(t){return"function"==typeof t}).length){var s=T((e?this.tracks.filter(function(t){return t.order<e}):this.tracks).sort(function(t,e){return e.order-t.order}),1)[0];s&&(n=s.order+.1)}t=t||k(this.tracks);for(var a=0;a<t.length;a++){var l=this.normaliseTrackDefinition(t[a]);t[a]=new l(_(_({},r),{},{namespace:A.getTrackNamespace(l),order:"number"==typeof n?n:a,config:this.savedConfig?i.extend(!0,{},this.savedConfig[l.prototype.id]):void 0})),t[a].id&&(this.tracksById[t[a].id]=t[a]),o?this.tracks.push(t[a]):this.tracks[a]=t[a]}return this.sortTracks(),this.saveConfig(),t},removeTrack:function(t){t&&this.removeTracks((t.prop("childTracks")||[]).concat(t))},removeTracks:function(t){for(var e=t.length;e--;){for(var n=t[e],i=this.tracks.length;i--;)if(n===this.tracks[i]){this.tracks.splice(i,1);break}n.id&&delete this.tracksById[n.id],n.destructor()}this.saveConfig()},sortTracks:function(){var t=this.jQuery;if(!this.tracks.some(function(t){return"object"!==w(t)})){var e=this.tracks.slice().sort(function(t,e){return t.order-e.order}),n=t(),i=t();e.forEach(function(t,e){if(!t.prop("parentTrack")){t.prop("fixedOrder")||t.prop("order",e);var r=t.prop("superContainer")||t.prop("container");t.prop("menus").length&&t.prop("top",r.position().top),n.push(t.prop("label")[0]),i.push(r[0])}}),this.labelContainer.append(n),this.wrapper.append(i),this.tracks=e,n.map(function(){return t(this).data("track")}).each(function(){if(this.prop("menus").length){var t=(this.prop("superContainer")||this.prop("container")).position().top-this.prop("top");this.prop("menus").css("top",function(e,n){return parseInt(n,10)+t}),this.prop("top",null)}})}},updateTrackOrder:function(t,e){var n=e.item.data("track");if(!n.prop("unsortable")&&!n.prop("fixedOrder")){var i=e.item.prev().data("track"),r=e.item.next().data("track"),o=i?i.prop("order"):0,s=r?r.prop("order"):0,a=o||s,l=i&&r&&Math.floor(s)===Math.floor(o)?o+(s-o)/2:a+(o?1:-1)*Math.abs(Math.round(a)-a||1)/2;n.prop("order",l),this.sortTracks(),this.saveConfig()}},updateURL:function(){this.urlParamTemplate&&(this.useHash?window.location.hash=this.getQueryString():window.history.pushState({},"",this.getQueryString()))},popState:function(){if(!this.baseURL||window.location.href.match(this.baseURL)){var t=this.getCoords(),e=parseInt(t.start,10),n=parseInt(t.end,10);(t.chr&&String(t.chr)!==String(this.chr)||t.start&&(e!==this.start||n!==this.end))&&(this.moveTo(t.chr,e,n),this.closeMenus(),this.hideMessages())}},getCoords:function(){var t={},e="".concat(decodeURIComponent(this.useHash&&window.location.hash.replace(/^#/,"?")||window.location.search),"&").match(this.paramRegex),n=0;return e?(e=e.slice(2,-1),this.urlParamTemplate.split("__").forEach(function(i){var r=i.match(/^(CHR|START|END)$/);r&&(t[r[1].toLowerCase()]="CHR"===r[1]?e[n++]:parseInt(e[n++],10))}),t.chr&&t.start&&t.end&&(!this.genome||this.genome[t.chr])?t:this.initialLocation):this.initialLocation},getQueryString:function(){var t=this.urlParamTemplate.replace("__CHR__",this.chr).replace("__START__",this.start).replace("__END__",this.end),e="".concat(decodeURIComponent(this.useHash?window.location.hash.replace(/^#/,"?"):window.location.search),"&"),n=e.match(this.paramRegex)?e.replace(this.paramRegex,"$1".concat(t,"$5")).slice(0,-1):"".concat(e).concat(t);return this.useHash?n=n.replace(/^[&?]/,""):0!==n.indexOf("?")&&(n="?".concat(n.replace(/^&/,""))),n},getChromosomeSize:function(t){return t&&this.genome&&this.genome[t]?this.genome[t].size:this.chromosomeSize},supported:function(){var t=document.createElement("canvas");return!(!t.getContext||!t.getContext("2d"))},die:function(t,e){if(!e||!e.length)throw t;e.html(t),this.failed=!0},createMenuEl:function(){var t=this.jQuery;return this.menuTemplate=this.menuTemplate||t('\n <div class="gv-menu">\n <div class="gv-close gv-menu-button fas fa-times-circle"></div>\n <div class="gv-menu-loading">Loading...</div>\n <div class="gv-menu-error">An error has occurred</div>\n <div class="gv-menu-content">\n <div class="gv-title"></div>\n <table class="gv-focus-highlight">\n <tr>\n <td><a class="gv-focus" href="#">Focus here</a></td>\n <td><a class="gv-highlight" href="#">Highlight this feature</a></td>\n </tr>\n </table>\n <table></table>\n </div>\n </div>\n ').on("click",function(e){var n=t(this);t(e.target).hasClass("gv-close")&&n.fadeOut("fast",function(){var t=n.data();t.track&&t.track.prop("menus",t.track.prop("menus").not(this)),t.browser.menus=t.browser.menus.not(this)})}),this.menuTemplate.clone(!0).data({browser:this})},makeMenu:function(t,e,i){var r=this,o=this.jQuery;if(!t)return!1;if(0===(t=[].concat(t)).length)return!1;if(1===t.length)return this.makeFeatureMenu(t[0],e,i);var s=this.createMenuEl(),a=o(".gv-menu-content",s).addClass("gv-menu-content-first"),l=o("table:not(.gv-focus-highlight)",a);return o(".gv-focus-highlight, .gv-menu-loading",s).remove(),o(".gv-title",s).html("".concat(t.length," features")),(i?i.model.sortFeatures(t):t.sort(function(t,e){return t.start-e.start})).forEach(function(t){var e="".concat(t.chr,":").concat(t.start).concat(t.end===t.start?"":"-".concat(t.end)),s=n.A.sanitize(t.menuLabel||t.name||(Array.isArray(t.label)?t.label.join(" "):t.label)||String(t.id));o('<a href="#">').html(s.match(e)?s:"".concat(e," ").concat(s)).on("click",function(e){return r.makeFeatureMenu(t,e,i),!1}).appendTo(o("<td>").appendTo(o("<tr>").appendTo(l)))}),o('<div class="gv-menu-scroll-wrapper">').append(l).appendTo(a),s.appendTo(this.superContainer||this.container).show(),e&&s.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),this.menus=this.menus.add(s),i&&i.prop("menus",i.prop("menus").add(s)),s},insertPropertiesIntoMenu:function(t,e,i,r,o){var s=this,a=this.jQuery,l=function(t){var e=t.currentTarget,n=a(e).data(),i=n.end-n.start+1,r=Math.max(Math.round(i/4),25);return s.moveTo(n.chr,n.start-r,n.end+r,!0),!1},c=function(t){var e=t.currentTarget;return s.addHighlight(a(e).data()),!1};[].concat(t).forEach(function(t,h){var u=i.clone().addClass(h?"":"gv-menu-content-first").appendTo(e),f=void 0!==t.chr?t.chr:r.chr,p=parseInt(void 0!==t.start?t.start:r.start,10),d=parseInt(void 0!==t.end?t.end:r.end,10),g=Math.max.apply(Math,k(Object.values(t).map(function(t){return Array.isArray(t)?t.length:1}))),m=n.A.sanitize(t.title),v="";if(a(".gv-title",u)[t.title?"html":"remove"](m),o&&p&&d&&!s.isStatic){var y={chr:f,start:p,end:Math.max(d,p),label:r.label||m||"",color:r.color};a(".gv-focus",u).data(y).on("click",l),a(".gv-highlight",u).data(y).on("click",c)}else a(".gv-focus-highlight",u).remove();Object.entries(t).forEach(function(t){var e=T(t,2),n=e[0],i=e[1];if((!/^start|end$/.test(n)||!1!==i)&&"title"!==n){var r=""===i?' colspan="'.concat(g+1,'"'):"";v+="<tr><td".concat(r,">").concat(n,"</td>"),r||(Array.isArray(i)?i.forEach(function(t){v+="<td>".concat(t,"</td>")}):v+=1===g?"<td>".concat(i,"</td>"):'<td colspan="'.concat(g,'">').concat(i,"</td>")),v+="</tr>"}}),a("table:not(.gv-focus-highlight)",u)[v?"html":"remove"](n.A.sanitize(v))})},makeFeatureMenu:function(t,e,n){var i=this,r=this.jQuery,o=this.superContainer||this.container;if(t.menuEl&&!0!==t.menuEl.data("hasErrored"))t.menuEl.appendTo(o);else{var s,a=this.createMenuEl().data({feature:t}),l=r(".gv-menu-content",a).remove(),c=r(".gv-menu-loading",a);try{s=n?n.controller.populateMenu(t):t}catch(t){s=r.Deferred().reject(t),a.data("hasErrored",!0)}var h="object"===w(s)&&"function"==typeof s.promise;h||c.hide(),r.when(s).done(function(e){((null==n?void 0:n.controller)||i).insertPropertiesIntoMenu(e,a,l,t,n),h&&c.hide()}).fail(function(t){c.hide(),a.data("hasErrored",!0),r(".gv-menu-error",a).css("display","block"),console.error(t)}),n&&a.addClass(n.id).data("track",n),t.menuEl=a.appendTo(o)}return this.menus=this.menus.add(t.menuEl),n&&n.prop("menus",n.prop("menus").add(t.menuEl)),t.menuEl.show(),e&&t.menuEl.css({left:0,top:0}).position({of:e,my:"left top",collision:"flipfit"}),t.menuEl},closeMenus:function(t){(t=t||this).menus.filter(":visible").children(".gv-close").trigger("click"),t.menus=this.jQuery()},hideMessages:function(){this.autoHideMessages&&this.wrapper.find(".gv-message-container").addClass("gv-collapsed")},getSelectorPosition:function(){var t=this.selector.position().left,e=this.selector.outerWidth(!0),n=Math.round(t/this.scale)+this.start,i=Math.round((t+e)/this.scale)+this.start-1;return{start:n,end:i=i<=n?n:i,left:t,width:e}},addHighlight:function(t){this.addHighlights([t])},addHighlights:function(t){this.tracksById.highlights||this.addTrack(a.default),this.tracksById.highlights.addHighlights(t)},on:function(t,e,n,i){var r=this,o={};function a(t,e){t.split(" ").forEach(function(t){o[t]=(o[t]||[]).concat(e)})}"object"===w(t)?(Object.entries(t).forEach(function(t){var e=T(t,2);return a(e[0],e[1])}),e=e||this):(void 0===n&&(n=e,e=this),a(t,n));var l=e instanceof s.Ay||"tracks"===e?"tracks":"browser";Object.entries(o).forEach(function(t){var e,n=T(t,2),o=n[0],s=n[1],a="".concat(o).concat(i?".once":""),c=s.map(function(t){return t.toString()});(r.events[l][a]=r.events[l][a]||[],r.events[l][a].some(function(t){var e=t.toString();return c.some(function(t){return t===e})}))||(e=r.events[l][a]).push.apply(e,k(s))})},once:function(t,e,n){this.on(t,e,n,!0)},destroy:function(){var t=this;this.destroying=!0,this.onTracks("destructor"),(this.superContainer||this.container).empty(),this.zoomInHighlight&&this.zoomInHighlight.add(this.zoomOutHighlight).remove(),this.container.off(this.eventNamespace),this.jQuery(window).add(document).off(this.eventNamespace),Object.keys(this).forEach(function(e){delete t[e]})}},{id:0,Track:s.Ay,jQuery:y,configure:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.tracks,n=void 0===e?{}:e,i=t.plugins,o=void 0===i?{}:i,a=t.genomes,l=void 0===a?{}:a,c=t.css,h=void 0===c||c,u=t.fontawesome,f=void 0===u||u,d=t.force;if(void 0!==d&&d||!A.configured){p(s.Ay,r(2872),{exclude:n.exclude}),n.include&&p(s.Ay,n.include);var g=function(t){return t.keys().forEach(t)};o.include&&g(o.include),l.include&&g(l.include),A.importCSS=h,A.importFontAwesome=f}A.configured=!0},getAllTrackTypes:function(t,n){if(t=t||s.Ay,n&&(t=t[n]),!t)return[];var i={};return Object.entries(t).forEach(function(n){var r=T(n,2),o=r[0],s=r[1];"function"!=typeof s||e()[o]||/^(Controller|Model|View)$/.test(o)||(Object.entries(A.getAllTrackTypes(t,o)).forEach(function(t){var e=T(t,2),n=e[0],r=e[1];"function"==typeof r&&(i["".concat(o,".").concat(n)]=r)}),i[o]=s)}),i},getTrackNamespace:function(t){for(var e=A.getAllTrackTypes(),n=Object.entries(e).map(function(e){var n=T(e,2),i=n[0],r=n[1];return(t===r||t.prototype instanceof r)&&i}).filter(Boolean),i=n.length;n.length>1;){for(var r=0;r<n.length-1;r++){if(e[n[r]].prototype instanceof e[n[r+1]]){n.splice(r+1,1);break}if(e[n[r+1]].prototype instanceof e[n[r]]){n.splice(r,1);break}}if(i--<0)break}return n[0]}});r.g.Genoverse=A}()}();
2
2
  //# sourceMappingURL=genoverse.js.map