ixbrl-viewer 1.4.46__py3-none-any.whl → 1.4.47__py3-none-any.whl

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.

Potentially problematic release.


This version of ixbrl-viewer might be problematic. Click here for more details.

@@ -1,2 +1,2 @@
1
1
  /*! For license information please see ixbrlviewer.js.LICENSE.txt */
2
- (()=>{var t={918:(t,e,n)=>{var i={"./cy/balancetypes.json":366,"./cy/currencies.json":768,"./cy/datatypes.json":220,"./cy/labelroles.json":800,"./cy/referenceparts.json":10,"./cy/scale.json":407,"./cy/tooltips.json":711,"./cy/translation.json":474,"./en/balancetypes.json":531,"./en/currencies.json":85,"./en/datatypes.json":335,"./en/labelroles.json":113,"./en/referenceparts.json":343,"./en/scale.json":292,"./en/tooltips.json":694,"./en/translation.json":997,"./es/balancetypes.json":746,"./es/currencies.json":476,"./es/datatypes.json":120,"./es/labelroles.json":364,"./es/referenceparts.json":6,"./es/scale.json":3,"./es/tooltips.json":971,"./es/translation.json":702};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=918},987:t=>{t.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABCQAAsAAAAAH4AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAa8AAAMAQOlEZk9TLzIAAAK4AAAAQQAAAGBW70w3Y21hcAAAAvwAAAGMAAAEfNTg0uJnbHlmAAAEiAAACMkAABEU102GOGhlYWQAAA1UAAAAJwAAADZjKUTdaGhlYQAADXwAAAAZAAAAJAgLBExobXR4AAANmAAAACAAAADcdRgAAGxvY2EAAA24AAAARwAAAHCi9KZsbWF4cAAADgAAAAAdAAAAIAFLAKJuYW1lAAAOIAAAATAAAAI6/H8bLXBvc3QAAA9QAAABPgAAAc566iDIeJxlkk1u03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45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},864:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`html {\n font-size: 62.5%;\n}\nbody {\n background-color: var(--colour-bg);\n color: var(--colour-foreground);\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px var(--colour-border-grey);\n border-radius: 5px;\n color: var(--colour-text);\n background-color: unset;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox:focus-within,\nlabel.checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n.inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n.bare-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n left: 0;\n padding: 1rem;\n box-sizing: border-box;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: var(--colour-primary);\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: var(--colour-primary) focus;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: var(--colour-button-primary-bg);\n border-radius: 0.4rem;\n border: 0.1rem solid var(--colour-button-primary-border);\n /* border: solid 1px #399; */\n color: var(--colour-bg);\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: var(--colour-bg);\n display: none;\n padding: 0;\n margin: 0;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n border: none;\n position: absolute;\n top: 1rem;\n right: 1.4rem;\n padding: 0.3rem;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n color: var(--colour-border-grey);\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n color: var(--colour-text);\n background-color: var(--colour-button-bg);\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: var(--colour-bg);\n background-color: var(--colour-primary);\n border: none;\n}\n#ixv .menu {\n line-height: var(--top-bar-height);\n}\n#ixv .menu .menu-title {\n line-height: var(--top-bar-height);\n padding: 0 2.4rem 0 0.3rem;\n position: relative;\n border: none;\n}\n#ixv .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n cursor: pointer;\n font-size: 1.8rem;\n position: absolute;\n right: 0.2rem;\n}\n#ixv .menu .menu-title::before {\n cursor: pointer;\n}\n#ixv .menu .content-container {\n position: fixed;\n top: calc(var(--top-bar-height));\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv .menu .content-container .content {\n line-height: initial;\n background: var(--colour-bg);\n border: solid 1px var(--colour-border-grey);\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv .menu .content-container .content .group {\n margin-bottom: 1rem;\n}\n#ixv .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv .menu .content-container .content .item:hover {\n background: var(--colour-row-hover);\n}\n#ixv .menu .content-container .content .item:focus-within {\n outline: solid 2px var(--colour-foreground);\n outline-offset: -2px;\n}\n#ixv .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1d";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv .menu .content-container .content a.item {\n display: block;\n color: var(--colour-text);\n}\n#ixv .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv .menu .content-container .content .label {\n text-transform: uppercase;\n font-weight: bold;\n font-size: 1.2rem;\n text-align: left;\n padding-top: 1rem;\n color: var(--colour-border-grey);\n border-bottom: solid 1px var(--colour-border-grey);\n padding-left: 1rem;\n}\n#ixv .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv .toolbar-menu .menu-checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n#ixv .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: var(--colour-button-bg);\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n font-size: 1.4rem;\n line-height: 1.8rem;\n padding: 1.2rem 1.6rem;\n border: none;\n width: 100%;\n text-align: left;\n cursor: pointer;\n}\n.accordian .card .title:hover {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.85);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: var(--colour-loader);\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: var(--colour-loader) transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem var(--colour-border-grey);\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-radius: 0.6rem 0.6rem 0 0;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n text-align: left;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: var(--colour-bg);\n background-color: var(--colour-bg);\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: var(--colour-primary);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: var(--colour-warning);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea14";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-value,\n#inspector .summary .body .mandatory-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .hidden-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead tr th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div.has-tooltip {\n bottom: -0.8rem;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: var(--colour-row-odd);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: var(--colour-row-hover);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n:root {\n --colour-bg-selected: #f3f3f3;\n --colour-bg-tag: #595959;\n --colour-bg: #ffffff;\n --colour-bg-fade: rgba(0, 0, 0, 0.5);\n --colour-border-grey: #cbcbcb;\n --colour-button-bg: #f8f8f8;\n --colour-button-primary-bg: #005999;\n --colour-button-primary-border: #003b66;\n --colour-foreground: #000000;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #595959;\n --colour-linked-fact: #026dce;\n --colour-loader: #ffffff;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-related-fact: #0eb30e;\n --colour-row-odd: #f8f8f8;\n --colour-row-hover: #e6e6e6;\n --colour-text-form-value: #737373;\n --colour-text-light: #737373;\n --colour-text-title: #444444;\n --colour-text: #595959;\n --colour-warning: #7a4b06;\n --top-bar-height: 3.5rem;\n}\n:root .only-dark {\n display: none;\n}\n:root[data-theme="theme-dark"] {\n --colour-bg-selected: #242424;\n --colour-bg-tag: #ffffff;\n --colour-bg: #000000;\n --colour-bg-fade: rgba(255, 255, 255, 0.5);\n --colour-border-grey: #676767;\n --colour-button-bg: #151515;\n --colour-button-primary-bg: #4fb3fd;\n --colour-button-primary-border: #62bafd;\n --colour-foreground: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffea96;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #bcbcbc;\n --colour-linked-fact: #72bafd;\n --colour-loader: #ffffff;\n --colour-primary-focus: #4fb3fd;\n --colour-primary: #72bafd;\n --colour-related-fact: #11dc11;\n --colour-row-odd: #151515;\n --colour-row-hover: #4b4b4b;\n --colour-text-form-value: #a1a1a1;\n --colour-text-light: #797979;\n --colour-text-title: #bcbcbc;\n --colour-text: #bcbcbc;\n --colour-warning: #d8ae15;\n --top-bar-height: 3.5rem;\n}\n:root[data-theme="theme-dark"] .only-dark {\n display: initial;\n}\n:root[data-theme="theme-dark"] .only-light {\n display: none;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table,\n#ixv dialog {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv a {\n text-decoration: none;\n color: var(--colour-primary);\n}\n#ixv a:hover {\n text-decoration: underline;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: var(--colour-bg);\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: var(--top-bar-height);\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n background-color: white;\n color: black;\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgba(225, 225, 225, 0.7);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n line-height: 1.8rem;\n display: flex;\n align-items: center;\n color: var(--colour-text);\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: var(--top-bar-height);\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar #home-link {\n font-size: 2.2rem;\n font-weight: bold;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .header {\n height: 100%;\n}\n#ixv #top-bar .document-title {\n box-sizing: border-box;\n padding-right: 1.6rem;\n line-height: var(--top-bar-height);\n border-right: solid 0.1rem #ccc;\n height: var(--top-bar-height);\n overflow: hidden;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n display: flex;\n right: 0;\n top: 0;\n line-height: var(--top-bar-height);\n height: var(--top-bar-height);\n background: var(--colour-bg);\n padding-left: 1.8rem;\n}\n#ixv #top-bar .top-bar-controls > * {\n margin-right: 0.8rem;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu .content > * {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea17";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: white;\n color: black;\n border: solid 1px black;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem black;\n border-left: solid 0.1rem black;\n transform: translate(50%, -50%) rotate(45deg);\n background: white;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: var(--colour-highlight-default);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: var(--colour-highlight-1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: var(--colour-highlight-2);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1e";\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode {\n border: none;\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode::before {\n font-family: viewericons;\n content: "\\ea0d";\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector container */\n width: 25%;\n position: absolute;\n top: var(--top-bar-height);\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem var(--colour-border-grey);\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n width: 100%;\n box-sizing: border-box;\n color: var(--colour-text-title);\n}\n#ixv #inspector h2 {\n text-align: center;\n font-size: 1.8rem;\n line-height: 3.2rem;\n margin: 0.8rem 0;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n padding: 0.8rem 0.9rem;\n display: flex;\n}\n#ixv #inspector #inspector-head .controls > * {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea18";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea15";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea1a";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n margin-left: auto;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .inspector-container {\n flex-grow: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n /* inspector body */\n}\n#ixv #inspector .inspector-container .inspector-title {\n text-align: center;\n position: relative;\n margin: 0.8rem 0;\n}\n#ixv #inspector .inspector-container .inspector-title h2 {\n margin: 0;\n padding: 0;\n}\n#ixv #inspector .inspector-container .inspector-title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n top: 0;\n left: 0.9rem;\n position: absolute;\n}\n#ixv #inspector .inspector-container .inspector-title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .inspector-container .search-controls {\n margin: 0 0 0.8rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input {\n display: flex;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea11";\n}\n#ixv #inspector .inspector-container .search-controls .filter-info {\n text-align: center;\n font-style: italic;\n margin-top: 0.8rem;\n position: relative;\n}\n#ixv #inspector .inspector-container .search-controls .filter-info .reset {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n position: absolute;\n right: 0.8rem;\n top: -0.3rem;\n}\n#ixv #inspector .inspector-container .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls.active-filters .filter-toggle {\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .search-controls:not(.active-filters) .reset {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 button {\n font-weight: inherit;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group input,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group select,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .datatype-conflict-warning {\n margin: 1rem 0;\n color: var(--colour-warning);\n display: none;\n}\n#ixv #inspector .inspector-container .inspector-body {\n border-top: solid 1px var(--colour-border-grey);\n width: 100%;\n position: relative;\n overflow-y: auto;\n flex-grow: 1;\n /* search results */\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: var(--colour-text-light);\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1b";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .inspector-body {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: var(--colour-text-light);\n width: 85%;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea19";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .more-results {\n cursor: pointer;\n color: var(--colour-primary);\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-container .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: var(--colour-primary);\n content: "\\2022";\n position: absolute;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector dt {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4rem;\n margin-top: 1.4rem;\n}\n#ixv #inspector dd {\n margin-inline-start: 2rem;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0e";\n color: var(--colour-primary);\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n color: var(--colour-primary);\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv #inspector .analyse {\n margin-left: 0.4rem;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea12";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding: 0 0 0.5rem 1.2rem;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type {\n font-size: 1.4rem;\n line-height: 1.8rem;\n border: none;\n color: var(--colour-text-title);\n text-align: left;\n position: relative;\n padding: 0.4rem 0.9rem 0.4rem 2.3rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: absolute;\n top: 0.4rem;\n left: 0;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header button::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-warning);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 0.2rem 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.weight {\n text-align: center;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td.concept-name {\n padding: 0.3rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name button,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value button {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px var(--colour-border-grey);\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .resetable-multiselect {\n position: relative;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect {\n position: absolute;\n top: -2.5rem;\n right: -0.5rem;\n cursor: pointer;\n border: none;\n padding: 0.3rem;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: var(--colour-bg);\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem var(--colour-border-grey);\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: var(--colour-text-light);\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: var(--colour-bg-fade);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgba(0, 0, 0, 0.5);\n}\n#ixv #inspector table.property-table:not(.numeric) {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.property-table td,\n#ixv #inspector table.property-table th {\n padding: 0;\n line-height: 2.6rem;\n}\n#ixv #inspector table.property-table th {\n width: 90px;\n text-align: right;\n padding-right: 30px;\n color: var(--colour-text-title);\n}\n#ixv #inspector table.property-table th.has-tooltip {\n padding-right: 10px;\n}\n#ixv #inspector table.property-table tr.value .show-all {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1c";\n}\n#ixv #inspector table.property-table td {\n overflow: clip visible;\n text-overflow: ellipsis;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector table.property-table tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector table.property-table.numeric td {\n text-align: right;\n}\n#ixv .fact-link {\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: var(--colour-text-title);\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: var(--colour-text);\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .datatype {\n color: var(--colour-text);\n margin: 0.6rem 0;\n font-style: italic;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: var(--colour-text);\n}\n#ixv .dialog-mask {\n background-color: var(--colour-bg-fade);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: var(--colour-primary);\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: var(--colour-primary);\n color: var(--colour-bg);\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n#ixv .has-tooltip {\n white-space: nowrap;\n}\n#ixv .has-tooltip > * {\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n cursor: help;\n margin-left: -0.3rem;\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon::after {\n content: "\\24d8";\n}\n#ixv .has-tooltip button + .tooltip-icon {\n margin-left: -1rem;\n}\n#ixv .tooltip {\n position: fixed;\n visibility: hidden;\n transition: all 0.5s ease;\n background-color: var(--colour-bg);\n z-index: 1;\n border: solid 0.1rem var(--colour-border-grey);\n border-radius: 0.4rem;\n padding: 0.8rem;\n box-shadow: rgba(0, 0, 0, 0.3) 0.2rem 0.2rem 0.2rem;\n font-weight: normal;\n opacity: 0;\n cursor: default;\n color: var(--colour-text);\n text-align: left;\n}\n#ixv .tooltip.show,\n#ixv .tooltip.hover-show {\n visibility: visible;\n opacity: 1;\n transition: opacity 0.5s ease;\n}\n#ixv .tooltip.with-glossary-link .glossary-link {\n display: block;\n}\n#ixv .tooltip .glossary-link {\n margin-top: 0.8rem;\n font-size: smaller;\n display: none;\n}\n`,""]),t.exports=a},95:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n:root {\n --colour-bg: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-linked-fact: #026dce;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-secondary: #66cc00;\n --colour-related-fact: #0eb30e;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-1) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-2) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: var(--colour-highlight-1);\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: var(--colour-highlight-2);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-default) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em var(--colour-related-fact);\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: var(--colour-secondary);\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: var(--colour-bg);\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem var(--colour-bg);\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea10";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n`,""]),t.exports=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},62:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},758:t=>{"use strict";t.exports=function(t){return t[1]}},60:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,n,s){var a=o.URL||o.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),n);else if(i(t))e(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){r(s)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=r)},793:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div class="fact-details">\n <dl>\n <dt data-i18n="factDetails.concept">Concept</dt>\n <dd>\n <div class="std-label"></div>\n <div class="documentation"></div>\n </dd>\n <dt id="dimensions-label" class="has-tooltip">\n <span data-i18n="factDetails.dimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimension" data-tooltip-glossary-link="true"></button>\n </dt>\n <dd>\n <div id="dimensions"></div>\n </dd>\n <dt data-i18n="factDetails.properties">Properties</dt>\n <dd>\n <table class="property-table fact-properties">\n <tr class="period">\n <th class="has-tooltip">\n <span data-i18n="factDetails.date">Date</span>\n <button class="tooltip-icon" data-tooltip-name="period"></button>\n </th>\n <td></td>\n </tr>\n <tr class="value">\n <th data-i18n="factDetails.factValue">Fact Value</th>\n <td><span class="value"></span> <button class="show-all inline-button" aria-label="Show full text">[...]</button> <span class="expand-text-block"></span></td>\n </tr>\n <tr class="accuracy">\n <th class="has-tooltip">\n <span data-i18n="factDetails.accuracy">Accuracy</span>\n <button class="tooltip-icon" data-tooltip-name="accuracy"></button>\n </th>\n <td></td>\n </tr>\n <tr class="scale">\n <th class="has-tooltip">\n <span data-i18n="factDetails.scale">Scale</span>\n <button class="tooltip-icon" data-tooltip-name="scale"></button>\n </th>\n <td></td>\n </tr>\n <tr class="change">\n <th data-i18n="factDetails.change">Change</th>\n <td></td>\n </tr>\n <tr class="entity-identifier">\n <th data-i18n="factDetails.entity">Entity</th>\n <td></td>\n </tr>\n <tr class="concept">\n <th class="has-tooltip">\n <span data-i18n="factDetails.concept">Concept</span>\n <button class="tooltip-icon" data-tooltip-name="concept" data-tooltip-glossary-link="#concept"></button>\n </th>\n <td><div><span class="text"></span><span class="filler"></span><button class="clipboard-copy copy-icon inline-button" title="Copy concept to clipboard"></button></div></td>\n </tr>\n <tr class="datatype">\n <th data-i18n="factDetails.datatype">Type</th>\n <td></td>\n </tr>\n <tr class="balance">\n <th data-i18n="factDetails.balance">Balance</th>\n <td></td>\n </tr>\n </table>\n </dd>\n </dl>\n <div class="duplicates">\n <button class="prev" title="Show previous duplicate"></button> \n <span class="text"></span> \n <button class="next" title="Show next duplicate"></button>\n </div>\n</div>\n'},523:(t,e,n)=>{var i=`<a href="https://arelle.org" target="_blank" aria-label="Link to Arelle website">\n <img alt="Arelle logo" class="only-light" src="${n(59)}"/>\n <img alt="Arelle logo" class="only-dark" src="${n(600)}"/>\n</a>\n`;t.exports=i},643:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div>\n <table class="fact-properties">\n <tr class="value">\n <th data-i18n="footnotes.footnote">Footnote</th>\n <td><span class="value"></span> <button class="show-all inline-button">[...]</button></td>\n </tr>\n </table>\n</div>\n'},87:(t,e,n)=>{var i=`\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div id="ixv" xmlns="http://www.w3.org/1999/xhtml">\n <div class="loader loading">\n <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span>\n </div>\n <header id="top-bar">\n <img class="header only-light" alt="Inline Viewer logo" src="${n(778)}"/>\n <img class="header only-dark" alt="Inline Viewer logo" src="${n(587)}"/>\n <h1 class="document-title"></h1>\n <div class="top-bar-controls">\n <div id="toolbar-highlight-menu" class="horizontal-menu">\n <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content">\n <div class="arrow"></div>\n <div class="items"></div>\n </div></span><span class="content"></span>\n </div>\n <button id="toggle-dark-mode" data-i18n="[title]toolbar.toggleDarkMode" title="Toggle dark mode"></button>\n <button class="inline-button validation-warning" data-i18n="[aria-label]inspector.validationResults" aria-label="Validation Results" title="Report has validation errors"></button>\n <div class="menu" id="display-options-menu">\n <button data-i18n="[title]inspector.settingsMenu" title="Settings menu" class="menu-title"></button>\n <div class="content-container">\n <div class="content"></div>\n </div>\n </div>\n </div>\n </header>\n <section id="viewer-pane" data-i18n="[aria-label]viewer.ixbrlDocumentView" aria-label="iXBRL Document View">\n <div class="ixds-tabs"><div class="tab-area"></div></div>\n <div id="iframe-container">\n <div class="zoom-in">+</div>\n <div class="zoom-out">-</div>\n <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div>\n </div>\n <div class="resize"></div>\n <div class="resize-spacer"></div>\n </section>\n <section id="inspector" class="no-fact-selected" data-i18n="[aria-label]inspector.ixbrlInspector" aria-label="iXBRL Inspector">\n <div id="inspector-head">\n <nav class="controls">\n <button class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary">\n </button>\n <button class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline">\n </button>\n <button class="search-button" data-i18n="[title]inspector.searchTitle" title="Search">\n </button>\n <button class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></button>\n <button class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></button>\n </nav>\n </div>\n\n <div class="inspector-container fact-mode-only">\n <div class="inspector-title">\n <h2 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h2>\n <h2 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h2>\n </div>\n <div class="inspector-body" tabindex="1">\n <div class="no-fact-overlay">\n <div class="no-fact-overlay-icon"></div>\n <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p>\n </div>\n <div class="fact-selected-only">\n <div class="tags">\n <div class="target-document-tag"></div>\n <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div>\n <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div>\n </div>\n <div class="collapsible-section">\n <div class="fact-inspector collapsible-body">\n </div>\n </div>\n <div class="footnote-mode-off">\n <div class="collapsible-section anchoring">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.anchoring">Anchoring</button> <button class="tooltip-icon" data-tooltip-name="anchoring" data-tooltip-glossary-link="#anchoring"></button></h3>\n <div class="collapsible-body">\n <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4>\n <div class="anchors-wider">\n </div>\n <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4>\n <div class="anchors-narrower">\n </div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.labels">Labels</button></h3>\n <div class="collapsible-body labels">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.references">References</button> <button class="tooltip-icon" data-tooltip-name="references" data-tooltip-glossary-link="#reference"></button></h3>\n <div class="collapsible-body references">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.calculations">Calculations</button> <button class="tooltip-icon" data-tooltip-name="calculations" data-tooltip-glossary-link="#calculation-tree"></button></h3>\n <div class="collapsible-body calculations">\n <div class="tree"></div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.footnotes">Footnotes</button></h3>\n <div class="collapsible-body footnotes fact-list">\n </div>\n </div>\n <div class="collapsible-section footnote-facts-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated Facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.fact-groups">Sections</button></h3>\n <div class="collapsible-body fact-groups fact-list">\n </div>\n </div>\n </div>\n <div class="footnote-details footnote-mode-only">\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="inspector-container search-mode-only" role="search">\n <div class="inspector-title">\n <button class="back" title="Back">\n </button>\n <h2 data-i18n="inspector.search">Search</h2>\n </div>\n <div class="search-controls search-mode-only">\n <div class="search-input">\n <input id="ixbrl-search" type="text" data-i18n="[aria-label]inspector.searchReport" aria-label="Search iXBRL report" disabled="disabled"/>\n <button class="filter-toggle" data-i18n="[title]search.toggleFilterControls" title="Toggle filter controls"></button>\n </div>\n <div class="filter-info">\n <span id="matching-facts-summary"></span>\n <button class="reset" data-i18n="inspector.reset">Reset</button>\n </div>\n <div class="search-filters">\n <h3 data-i18n="search.filter">Filter</h3>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.visibility" for="search-filter-visibility">\n Visibility\n </label>\n <select id="search-filter-visibility">\n <option value="*">-</option>\n <option value="visible" data-i18n="inspector.visible">Visible</option>\n <option value="hidden" data-i18n="inspector.hidden">Hidden</option>\n </select>\n </div>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.conceptType" for="search-filter-concept-type">\n Concept Type\n </label>\n <select id="search-filter-concept-type">\n <option value="*">-</option>\n <option value="numeric" data-i18n="inspector.numericOption">Numeric</option>\n <option value="text" data-i18n="inspector.textOption">Text</option>\n </select>\n </div>\n\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.factValue" for="search-filter-fact-value">\n Fact Value\n </label>\n <select id="search-filter-fact-value">\n <option value="*">-</option>\n <option value="negative" data-i18n="inspector.negative">Negative</option>\n <option value="positive" data-i18n="inspector.positive">Positive</option>\n </select>\n </div>\n\n <div id="search-filter-period" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-period-multiselect">\n <button data-i18n="inspector.period">Period</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-period-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-namespace-multiselect">\n <button data-i18n="inspector.namespaces">Namespaces</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body namespaces resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-namespace-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-datatypes" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-datatype-multiselect">\n <button data-i18n="inspector.datatypes">Types</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body datatypes resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-datatype-multiselect">\n </select>\n <div class="datatype-conflict-warning" data-i18n="search.dataTypeConflictWarning">Warning: selection conflicts with Concept Type filter</div>\n </div>\n </div>\n\n <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-target-document-multiselect">\n <button data-i18n="inspector.targetDocument">Target Document</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body target-document resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-target-document-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-units" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-units-multiselect">\n <button data-i18n="inspector.units">Units</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body units resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-units-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-scales-multiselect">\n <button data-i18n="inspector.scales">Scales</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body scales resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-scales-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-dimension-type-multiselect">\n <button data-i18n="inspector.dimensions">Dimension Type</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body dimensions resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-dimension-type-multiselect">\n <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option>\n <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option>\n </select>\n </div>\n </div>\n\n <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-calculations-multiselect">\n <button data-i18n="inspector.calculations">Calculations</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body calculations resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-calculations-multiselect">\n <option value="summation" data-i18n="inspector.summation">Summation</option>\n <option value="contributor" data-i18n="inspector.contributor">Contributor</option>\n </select>\n </div>\n </div>\n\n <div class="checkboxes">\n <div id="mandatory-fact-filter-checkbox">\n <label class="checkbox">\n <input id="search-mandatory-fact-filter" type="checkbox" style="display: none;"/> <span data-i18n="inspector.mandatoryFacts">Only Mandatory Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n </div>\n\n </div>\n </div> \x3c!-- search controls --\x3e\n\n <div class="inspector-body">\n\n <section class="search-results search-mode-only" data-i18n="[aria-label]inspector.searchResults" aria-label="Search results">\n <div class="results fact-list">\n </div>\n <div class="search-overlay">\n <div class="search-overlay-icon"></div>\n <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div>\n <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div>\n </div>\n </section>\n </div> \n </div>\n\n <div class="inspector-container summary-mode-only summary">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentSummary">Document Summary</h2>\n </div>\n <div class="inspector-body">\n <div class="body">\n <div class="collapsible-section fact-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.fact.header">Fact Summary</button></h3>\n <div class="collapsible-body">\n <table class="property-table numeric">\n <tr class="hidden-facts">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.hidden">Hidden facts</span>\n <button class="tooltip-icon" data-tooltip-name="hiddenFacts"></button>\n </th>\n <td>\n <button class="hidden-facts-value"></button>\n </td>\n </tr>\n <tr class="mandatory-facts" id="mandatory-facts-row" style="display: none;">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.mandatory">Mandatory Facts:</span>\n <button class="tooltip-icon" data-tooltip-name="mandatoryFacts"></button>\n <td>\n <button class="mandatory-facts-value"></button>\n </td>\n </th></tr>\n <tr class="total-facts">\n <th>\n <span data-i18n="inspector.summary.fact.total">Total facts</span>\n </th>\n <td>\n <button class="total-facts-value"></button>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div class="collapsible-section tag-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.tag.header">Tag Summary</button></h3>\n <div class="collapsible-body">\n <div class="tag-summary-body">\n <table>\n <thead>\n <tr>\n <th scope="col" class="namespace has-tooltip">\n <span data-i18n="inspector.summary.tag.colNamespace">Namespace</span>\n <button class="tooltip-icon" data-tooltip-name="namespace"></button>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colConcepts">Concepts</span>\n <button class="tooltip-icon" data-tooltip-name="conceptsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colDimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimensionsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colMembers">Members</span>\n <button class="tooltip-icon" data-tooltip-name="membersCount"></button>\n </div>\n </th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th>\n </tr>\n </thead>\n <tbody class="tag-summary-table-body">\n </tbody>\n <tfoot>\n <tr class="tag-summary-table-footer-row">\n <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n </div>\n <div class="collapsible-section files-summary">\n <h3 class="collapsible-header">\n <div class="has-tooltip">\n <button data-i18n="inspector.summary.file.header">File Summary</button>\n <button class="tooltip-icon" data-tooltip-name="fileSummary"></button>\n </div>\n </h3>\n <div class="collapsible-body">\n <div class="file-summary-container">\n <div class="files inline-docs">\n <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span>\n <ul></ul>\n </div>\n <div class="files schemas">\n <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span>\n <ul></ul>\n </div>\n <div class="files pres-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files calc-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files def-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span>\n <ul></ul>\n </div>\n <div class="files label-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span>\n <ul></ul>\n </div>\n <div class="files ref-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span>\n <ul></ul>\n </div>\n <div class="files other-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span>\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n <div class="collapsible-section report-creation">\n <h3 class="collapsible-header" data-i18n="inspector.summary.reportCreation">Report Creation</h3>\n <div class="collapsible-body">\n <ul></ul>\n </div>\n </div>\n </div>\n </div> \x3c!-- inspector-body --\x3e\n </div> \x3c!-- summary --\x3e\n\n <div class="inspector-container outline-mode-only outline">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentOutline">Document Outline</h2>\n </div>\n <div class="inspector-body">\n <div class="no-outline-overlay">\n <div class="no-outline-overlay-icon"></div>\n <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p>\n </div>\n <div class="body">\n </div>\n </div>\n </div>\n <footer class="inspector-foot powered-by">\n <div id="footer-logo"></div>\n <div class="version"></div>\n </footer>\n <div class="failed-to-load-mask"></div>\n </section>\n <div id="tooltip" class="tooltip">\n <span class="tooltip-text"></span> \n <div class="glossary-link">\n <a target="_blank" href="#" data-i18n="inspector.xbrlGlossaryOpensInNewTab"></a>\n </div>\n </div>\n <div class="dialog-mask">\n </div>\n <div id="dialog-container"></div>\n <div id="dialog-templates">\n <dialog class="dialog full-screen chart" role="dialog" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents" role="figure" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <div class="chart-container"><canvas id="chart-canvas"></canvas></div>\n <div class="other-aspects"></div>\n </div>\n </dialog>\n <dialog class="dialog validation-report" role="dialog" aria-labelledby="validation-results-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="validation-results-title" data-i18n="inspector.validationResults">Validation results</h2>\n <table>\n <thead>\n <th data-i18n="inspector.validationSeverity">Severity</th>\n <th data-i18n="inspector.validationCode">Code</th>\n <th data-i18n="inspector.validationMessage">Message</th>\n </thead>\n <tbody>\n\n </tbody>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog calculation-inspector" role="dialog" aria-labelledby="calculation-inspector-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="calculation-inspector-title" data-i18n="inspector.calculationDetails">Calculation details</h2>\n <table class="calculation-trace">\n <thead>\n <tr>\n <th class="weight"></th>\n <th class="line-item" data-i18n="calculation.concept">Concept</th>\n <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th>\n <th class="icons"></th>\n <th class="value-column calc11-only" data-i18n="calculation.minimum">Minimum</th>\n <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td>\n </tr>\n </tfoot>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog text-block-viewer" role="dialog" aria-labelledby="text-block-viewer-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="text-block-viewer-title" class="title"></h2>\n <iframe id="text-block-viewer-iframe"></iframe>\n <div class="controls">\n <label class="checkbox">\n <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog message-box" role="dialog" aria-labelledby="message-box-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="message-box-title" class="title"></h2>\n <div class="message">\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog></div>\n \n</div>\n`;t.exports=i},806:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function e(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 n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="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},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function f(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var g=function(t){return!(!t||!t.Window)&&t instanceof t.Window},m=void 0,v=void 0;function y(t){m=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),v=t}function b(t){return g(t)?t:(t.ownerDocument||t).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var w=function(t){return!!t&&"object"===i(t)},A=function(t){return"function"==typeof t},x=function(t){return t===v||g(t)},C=function(t){return w(t)&&11===t.nodeType},M=w,L=A,I=function(t){return"number"==typeof t},_=function(t){return"boolean"==typeof t},S=function(t){return"string"==typeof t},k=function(t){if(!t||"object"!==i(t))return!1;var e=b(t)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},T=function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},D=function(t){return w(t)&&void 0!==t.length&&A(t.splice)};function j(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function N(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";e.page[r]=n.coords.start.page[r],e.client[r]=n.coords.start.client[r],e.delta[r]=0}}}var O={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.draggable=O.draggable,e.map.drag=O,e.methodDict.drag="draggable",i.actions.drag=O.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":N,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.buttons,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||i&n.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return M(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):_(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:j,move:N,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},E=O,z={init:function(t){var e=t;z.document=e.document,z.DocumentFragment=e.DocumentFragment||F,z.SVGElement=e.SVGElement||F,z.SVGSVGElement=e.SVGSVGElement||F,z.SVGElementInstance=e.SVGElementInstance||F,z.Element=e.Element||F,z.HTMLElement=e.HTMLElement||z.Element,z.Event=e.Event,z.Touch=e.Touch||F,z.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var R=z,P={init:function(t){var e=R.Element,n=t.navigator||{};P.supportsTouch="ontouchstart"in t||L(t.DocumentTouch)&&R.document instanceof t.DocumentTouch,P.supportsPointerEvent=!1!==n.pointerEnabled&&!!R.PointerEvent,P.isIOS=/iP(hone|od|ad)/.test(n.platform),P.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),P.isIe9=/MSIE 9/.test(n.userAgent),P.isOperaMobile="Opera"===n.appName&&P.supportsTouch&&/Presto/.test(n.userAgent),P.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",P.pEventTypes=P.supportsPointerEvent?R.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,P.wheelEvent=R.document&&"onmousewheel"in R.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=P;function U(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function W(t,e){for(;k(t);){if(Z(t,e))return t;t=B(t)}return null}function B(t){var e=t.parentNode;if(C(e)){for(;(e=e.host)&&C(e););return e}return e}function Z(t,e){return v!==m&&(e=e.replace(/\/deep\//g," ")),t[Y.prefixedMatchesSelector](e)}var H=function(t){return t.parentNode||t.host};function G(t,e){for(var n,i=[],r=t;(n=H(r))&&r!==e&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function V(t,e,n){for(;k(t);){if(Z(t,e))return!0;if((t=B(t))===n)return Z(t,e)}return!1}function Q(t){return t.correspondingUseElement||t}function J(t){var e=t instanceof R.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function X(t){var e,n=J(t);if(!Y.isIOS7&&n){var i={x:(e=(e=b(t))||v).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function q(t){for(var e=[];t;)e.push(t),t=B(t);return e}function K(t){return!!S(t)&&(R.document.querySelector(t),!0)}function $(t,e){for(var n in e)t[n]=e[n];return t}function tt(t,e,n){return"parent"===t?B(n):"self"===t?e.getRect(n):W(n,t)}function et(t,e,n,i){var r=t;return S(r)?r=tt(r,e,n):L(r)&&(r=r.apply(void 0,i)),k(r)&&(r=X(r)),r}function nt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=$({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function ot(t,e,n){var i=n&&t.options[n];return nt(et(i&&i.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},S(t)&&-1!==t.search(" ")&&(t=at(t)),D(t))return t.forEach((function(t){return st(t,e,n,i)})),i;if(M(t)&&(e=t,t=""),L(e)&&n(t))i[t]=i[t]||[],i[t].push(e);else if(D(e))for(var r=0,o=e;r<o.length;r++){var s=o[r];st(t,s,n,i)}else if(M(e))for(var a in e)st(at(a).map((function(e){return"".concat(t).concat(e)})),e[a],n,i);return i}function at(t){return t.trim().split(/ +/)}var lt=function(t,e){return Math.sqrt(t*t+e*e)},ct=["webkit","moz"];function ut(t,e){t.__set||(t.__set={});var n=function(n){if(ct.some((function(t){return 0===n.indexOf(t)})))return 1;"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var i in e)n(i);return t}function dt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function ht(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pt(t){return t instanceof R.Event||t instanceof R.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t,e){return e=e||{x:0,y:0},Y.isOperaMobile&&pt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e),e}function mt(t){return I(t.pointerId)?t.pointerId:t.identifier}function vt(t){var e=[];return D(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function yt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var i=t[n];for(var r in e)e[r]+=i[r]}for(var o in e)e[o]/=t.length;return e}function bt(t){if(!t.length)return null;var e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function wt(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[0][n]-r[1][n],s=r[0][i]-r[1][i];return lt(o,s)}function At(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[1][n]-r[0][n],s=r[1][i]-r[0][i];return 180*Math.atan2(s,o)/Math.PI}function xt(t){return S(t.pointerType)?t.pointerType:I(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof R.Touch?"touch":"mouse"}function Ct(t){var e=L(t.composedPath)?t.composedPath():t.path;return[Q(e?e[0]:t.target),Q(t.currentTarget)]}var Mt=function(){function t(e){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return s(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Mt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Lt=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}return t},It=function(t){return Lt([],t)},_t=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},St=function(t,e){return t[_t(t,e)]},kt=function(t){l(n,t);var e=h(n);function n(t,i,o){var s;r(this,n),(s=e.call(this,i._interaction)).dropzone=void 0,s.dragEvent=void 0,s.relatedTarget=void 0,s.draggable=void 0,s.propagationStopped=!1,s.immediatePropagationStopped=!1;var a="dragleave"===o?t.prev:t.cur,l=a.element,c=a.dropzone;return s.type=o,s.target=l,s.currentTarget=l,s.dropzone=c,s.dragEvent=i,s.relatedTarget=i.target,s.draggable=i.interactable,s.timeStamp=i.timeStamp,s}return s(n,[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=e.activeDrops,r=_t(i,(function(e){var n=e.dropzone,i=e.element;return n===t.dropzone&&i===t.target}));e.activeDrops.splice(r,1);var o=new n(e,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new n(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Mt);function Tt(t,e){for(var n=0,i=t.slice();n<i.length;n++){var r=i[n],o=r.dropzone,s=r.element;e.dropzone=o,e.target=s,o.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function Dt(t,e){for(var n=function(t,e){for(var n=[],i=0,r=t.interactables.list;i<r.length;i++){var o=r[i];if(o.options.drop.enabled){var s=o.options.drop.accept;if(!(k(s)&&s!==e||S(s)&&!Z(e,s)||L(s)&&!s({dropzone:o,draggableElement:e})))for(var a=0,l=o.getAllElements();a<l.length;a++){var c=l[a];c!==e&&n.push({dropzone:o,element:c,rect:o.getRect(c)})}}}return n}(t,e),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function jt(t,e,n){for(var i=t.dropState,r=t.interactable,o=t.element,s=[],a=0,l=i.activeDrops;a<l.length;a++){var c=l[a],u=c.dropzone,d=c.element,h=c.rect,p=u.dropCheck(e,n,r,o,d,h);s.push(p?d:null)}var f=function(t){for(var e,n,i,r=[],o=0;o<t.length;o++){var s=t[o],a=t[e];if(s&&o!==e)if(a){var l=H(s),c=H(a);if(l!==s.ownerDocument)if(c!==s.ownerDocument)if(l!==c){r=r.length?r:G(a);var u=void 0;if(a instanceof R.HTMLElement&&s instanceof R.SVGElement&&!(s instanceof R.SVGSVGElement)){if(s===c)continue;u=s.ownerSVGElement}else u=s;for(var d=G(u,a.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var p=[d[h-1],d[h],r[h]];if(p[0])for(var f=p[0].lastChild;f;){if(f===p[1]){e=o,r=d;break}if(f===p[2])break;f=f.previousSibling}}else i=a,(parseInt(b(n=s).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(e=o);else e=o}else e=o}return e}(s);return i.activeDrops[f]||null}function Nt(t,e,n){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new kt(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new kt(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new kt(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new kt(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new kt(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new kt(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function Ot(t,e){var n=t.dropState,i=n.activeDrops,r=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&r.dropzone.fire(e.enter),e.move&&r.dropzone.fire(e.move),e.drop&&r.dropzone.fire(e.drop),e.deactivate&&Tt(i,e.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Et(t,e){var n=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Dt(e,n.element));var s=i,a=jt(n,s,r);o.rejected=o.rejected&&!!a&&a.dropzone===o.cur.dropzone&&a.element===o.cur.element,o.cur.dropzone=a&&a.dropzone,o.cur.element=a&&a.element,o.events=Nt(n,0,s)}}var zt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(E),i.prototype.dropzone=function(t){return function(t,e){if(M(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=st(e.listeners),i=Object.keys(n).reduce((function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return L(e.ondrop)&&t.on("drop",e.ondrop),L(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),L(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),L(e.ondragenter)&&t.on("dragenter",e.ondragenter),L(e.ondragleave)&&t.on("dragleave",e.ondragleave),L(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:I(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return _(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,e,n,i,r,o){return function(t,e,n,i,r,o,s){var a=!1;if(!(s=s||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,a,t,o,i,r);var l=t.options.drop.overlap;if("pointer"===l){var c=ot(i,r,"drag"),u=gt(e);u.x+=c.x,u.y+=c.y;var d=u.x>s.left&&u.x<s.right,h=u.y>s.top&&u.y<s.bottom;a=d&&h}var p=i.getRect(r);if(p&&"center"===l){var f=p.left+p.width/2,g=p.top+p.height/2;a=f>=s.left&&f<=s.right&&g>=s.top&&g<=s.bottom}return p&&I(l)&&(a=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),t.options.drop.checker&&(a=t.options.drop.checker(e,n,a,t,o,i,r)),a}(this,t,e,n,i,r,o)},n.dynamicDrop=function(e){return _(e)?(t.dynamicDrop=e,n):t.dynamicDrop},$(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=zt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,i=(t.event,t.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Dt(e,n.element),r.events=Nt(n,0,i),r.events.activate&&(Tt(r.activeDrops,r.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Et,"interactions:after-action-move":function(t,e){var n=t.interaction,i=t.iEvent;if("drag"===n.prepared.name){var r=n.dropState;Ot(n,r.events),e.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,i=t.iEvent;Et(t,e),Ot(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Dt,getDrop:jt,getDropEvents:Nt,fireDropEvents:Ot,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=zt;function Rt(t){var e=t.interaction,n=t.iEvent,i=t.phase;if("gesture"===e.prepared.name){var r=e.pointers.map((function(t){return t.pointer})),o="start"===i,s="end"===i,a=e.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],o)n.distance=wt(r,a),n.box=bt(r),n.scale=1,n.ds=0,n.angle=At(r,a),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(s||e.pointers.length<2){var l=e.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=wt(r,a),n.box=bt(r),n.scale=n.distance/e.gesture.startDistance,n.angle=At(r,a),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,I(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var Pt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.gesturable=function(t){return M(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):_(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=Pt,e.methodDict.gesture="gesturable",i.actions.gesture=Pt.defaults},listeners:{"interactions:action-start":Rt,"interactions:action-move":Rt,"interactions:action-end":Rt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Yt=Pt;function Ut(t,e,n,i,r,o,s){if(!e)return!1;if(!0===e){var a=I(o.width)?o.width:o.right-o.left,l=I(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?a:l)/2)),a<0&&("left"===t?t="right":"right"===t&&(t="left")),l<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var c=a>=0?o.left:o.right;return n.x<c+s}if("top"===t){var u=l>=0?o.top:o.bottom;return n.y<u+s}if("right"===t)return n.x>(a>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(l>=0?o.bottom:o.top)-s}return!!k(i)&&(k(e)?e===i:V(i,e,r))}function Wt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=e;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var Bt,Zt,Ht={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,i=t.Interactable,r=t.defaults;Ht.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Ht.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return function(t,e,n){return M(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),S(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),_(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:_(e.square)&&(t.options.resize.square=e.square),t):_(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=Ht,e.methodDict.resize="resizable",r.actions.resize=Ht.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.rect;n._rects={start:$({},r),corrected:$({},r),previous:$({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(t),Wt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,s=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if($(d,c),o){if($(c,s),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(s.top,l.bottom),c.bottom=Math.max(s.bottom,l.top),c.left=Math.min(s.left,l.right),c.right=Math.max(s.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(t),Wt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.element,r=t.rect,o=t.buttons;if(r){var s=$({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||o&a.mouseButtons)){if(M(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ut(c,a.edges[c],s,e._latestPointer.eventTarget,i,r,a.margin||Ht.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(t.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&s.x>r.right-Ht.defaultMargin,d="x"!==a.axis&&s.y>r.bottom-Ht.defaultMargin;(u||d)&&(t.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,i=t.name,r=Ht.cursors,o=null;if(n)o=r[i+n];else if(e){for(var s="",a=0,l=["top","bottom","left","right"];a<l.length;a++){var c=l[a];e[c]&&(s+=c)}o=r[s]}return o},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Gt=Ht,Vt={id:"actions",install:function(t){t.usePlugin(Yt),t.usePlugin(Gt),t.usePlugin(E),t.usePlugin(Ft)}},Qt=0,Jt=function(t){return Bt(t)},Xt=function(t){return Zt(t)},qt=function(t){if(Bt=t.requestAnimationFrame,Zt=t.cancelAnimationFrame,!Bt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var i=e[n];Bt=t["".concat(i,"RequestAnimationFrame")],Zt=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Bt=Bt&&Bt.bind(t),Zt=Zt&&Zt.bind(t),Bt||(Bt=function(e){var n=Date.now(),i=Math.max(0,16-(n-Qt)),r=t.setTimeout((function(){e(n+i)}),i);return Qt=n+i,r},Zt=function(t){return clearTimeout(t)})},Kt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Kt.isScrolling=!0,Xt(Kt.i),t.autoScroll=Kt,Kt.interaction=t,Kt.prevTime=Kt.now(),Kt.i=Jt(Kt.scroll)},stop:function(){Kt.isScrolling=!1,Kt.interaction&&(Kt.interaction.autoScroll=null),Xt(Kt.i)},scroll:function(){var t=Kt.interaction,e=t.interactable,n=t.element,i=t.prepared.name,r=e.options[i].autoScroll,o=$t(r.container,e,n),s=Kt.now(),a=(s-Kt.prevTime)/1e3,l=r.speed*a;if(l>=1){var c={x:Kt.x*l,y:Kt.y*l};if(c.x||c.y){var u=te(o);x(o)?o.scrollBy(c.x,c.y):o&&(o.scrollLeft+=c.x,o.scrollTop+=c.y);var d=te(o),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:o})}Kt.prevTime=s}Kt.isScrolling&&(Xt(Kt.i),Kt.i=Jt(Kt.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&Kt.check(e.interactable,e.prepared.name))if(e.simulation)Kt.x=Kt.y=0;else{var i,r,o,s,a=e.interactable,l=e.element,c=e.prepared.name,u=a.options[c].autoScroll,d=$t(u.container,a,l);if(x(d))s=n.clientX<Kt.margin,i=n.clientY<Kt.margin,r=n.clientX>d.innerWidth-Kt.margin,o=n.clientY>d.innerHeight-Kt.margin;else{var h=J(d);s=n.clientX<h.left+Kt.margin,i=n.clientY<h.top+Kt.margin,r=n.clientX>h.right-Kt.margin,o=n.clientY>h.bottom-Kt.margin}Kt.x=r?1:s?-1:0,Kt.y=o?1:i?-1:0,Kt.isScrolling||(Kt.margin=u.margin,Kt.speed=u.speed,Kt.start(e))}}};function $t(t,e,n){return(S(t)?tt(t,e,n):t)||b(n)}function te(t){return x(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ee={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=Kt,Kt.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=Kt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Kt.stop(),Kt.interaction&&(Kt.interaction=null)},"interactions:stop":Kt.stop,"interactions:action-move":function(t){return Kt.onInteractionMove(t)}}},ne=ee;function ie(t,e){var n=!1;return function(){return n||(v.console.warn(e),n=!0),t.apply(this,arguments)}}function re(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function oe(t){return _(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function se(t){return L(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var ae={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,i,r){var o=function(t,e,n,i,r){var o=t.getRect(i),s={action:null,interactable:t,interaction:n,element:i,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return r.fire("auto-start:check",s),s.action}(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,r,i):o},e.prototype.ignoreFrom=ie((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ie((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=se,e.prototype.styleCursor=oe}};function le(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&he(e,n,t,r)?t:null}function ce(t,e,n,i,r,o,s){for(var a=0,l=i.length;a<l;a++){var c=i[a],u=r[a],d=c.getAction(e,n,t,u);if(d){var h=le(d,c,u,o,s);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function ue(t,e,n,i,r){var o=[],s=[],a=i;function l(t){o.push(t),s.push(a)}for(;k(a);){o=[],s=[],r.interactables.forEachMatch(a,l);var c=ce(t,e,n,o,s,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;a=B(a)}return{action:null,interactable:null,element:null}}function de(t,e,n){var i=e.action,r=e.interactable,o=e.element;i=i||{name:null},t.interactable=r,t.element=o,re(t.prepared,i),t.rect=r&&i.name?r.getRect(o):null,ge(t,n),n.fire("autoStart:prepared",{interaction:t})}function he(t,e,n,i){var r=t.options,o=r[n.name].max,s=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&s&&a))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var p=h[d],f=p.prepared.name;if(p.interacting()){if(++l>=a)return!1;if(p.interactable===t){if((c+=f===n.name?1:0)>=o)return!1;if(p.element===e&&(u++,f===n.name&&u>=s))return!1}}}return a>0}function pe(t,e){return I(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function fe(t,e,n){var i=n.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ge(t,e){var n=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var o="";if(r.name){var s=n.options[r.name].cursorChecker;o=L(s)?s(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}fe(t.element,o||"",e)}else e.autoStart.cursorElement&&fe(e.autoStart.cursorElement,"",e)}var me={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(ae),n.base.actionChecker=null,n.base.styleCursor=!0,$(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return pe(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.interacting()||de(n,ue(n,i,r,o,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||de(n,ue(n,i,r,o,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!he(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),ge(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,i=n.interactable;i&&i.options.styleCursor&&fe(n.element,"",e)}},maxInteractions:pe,withinInteractionLimit:he,validateAction:le},ve=me,ye={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,i=t.eventTarget,r=t.dx,o=t.dy;if("drag"===n.prepared.name){var s=Math.abs(r),a=Math.abs(o),l=n.interactable.options.drag,c=l.startAxis,u=s>a?"x":s<a?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(t){if(t!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,d,i)){var o=t.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,t)&&ve.validateAction(o,t,d,i,e))return t}}};k(d);){var p=e.interactables.forEachMatch(d,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=d;break}d=B(d)}}}}}};function be(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var we={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(ve),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=be(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;be(e)>0&&(e.prepared.name=null)}},getHoldDuration:be},Ae=we,xe={id:"auto-start",install:function(t){t.usePlugin(ve),t.usePlugin(Ae),t.usePlugin(ye)}},Ce=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):_(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Me(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Le={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Ce,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,o=e.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||k(n.target)&&Z(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===e.target||U(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Me,t}),{})};function Ie(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function _e(t){var e={};for(var n in t){var i=t[n];T(i)?e[n]=_e(i):D(i)?e[n]=It(i):e[n]=i}return e}var Se=function(){function t(e){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=ke(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(t,[{key:"start",value:function(t,e){var n,i,r=t.phase,o=this.interaction,s=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(s),this.startEdges=$({},o.edges),this.edges=$({},this.startEdges),this.startOffset=(i=e,(n=o.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var a=this.fillArg({phase:r,pageCoords:e,preEnd:!1});return this.result=ke(),this.startAll(a),this.result=this.setAll(a)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0,n=this.states;e<n.length;e++){var i=n[e];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,i=t.skipModifiers,r=t.rect,o=t.edges;t.coords=$({},t.pageCoords),t.rect=$({},r),t.edges=$({},o);for(var s=i?this.states.slice(i):this.states,a=ke(t.coords,t.rect),l=0;l<s.length;l++){var c,u=s[l],d=u.options,h=$({},t.coords),p=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,e)&&(t.state=u,p=u.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-h.x,y:t.coords.y-h.y})),a.eventProps.push(p)}$(this.edges,t.edges),a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;var f=this.result.coords,g=this.result.rect;if(f&&g){var m=a.rect.left!==g.left||a.rect.right!==g.right||a.rect.top!==g.top||a.rect.bottom!==g.bottom;a.changed=m||f.x!==a.coords.x||f.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,i=e.coords.cur,r=e.coords.start,o=this.result,s=this.startDelta,a=o.delta;"start"===n&&$(this.startDelta,o.delta);for(var l=0,c=[[r,s],[i,a]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var p=this.result.rectDelta,f=t.rect||e.rect;f.left+=p.left,f.right+=p.right,f.top+=p.top,f.bottom+=p.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,i=t.preEnd,r=t.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var s=e.coords.cur.page,a={x:t.modifiedCoords.x-s.x,y:t.modifiedCoords.y-s.y};o.coords.x+=a.x,o.coords.y+=a.y,o.delta.x+=a.x,o.delta.y+=a.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var s=i[o];t.state=s;var a=s.options,l=s.methods,c=l.beforeEnd&&l.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(a,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=$({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var o=r[i];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:e,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,i=e.rect,r=e.modification;if(r.result){for(var o=r.startDelta,s=r.result,a=s.delta,l=s.rectDelta,c=0,u=[[n.start,o],[n.cur,a]];c<u.length;c++){var d=u[c],h=d[0],p=d[1];h.page.x-=p.x,h.page.y-=p.y,h.client.x-=p.x,h.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return _e(t)})),this.result=ke($({},t.result.coords),$({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function ke(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Te(t,e){var n=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var s={options:r,methods:i,name:e,enable:function(){return r.enabled=!0,s},disable:function(){return r.enabled=!1,s}};return s};return e&&"string"==typeof e&&(r._defaults=n,r._methods=i),r}function De(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var je={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new Se(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,i=n.setAndApply(t);return e.edges=n.edges,i},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,i=n.beforeEnd(t);return e.edges=n.startEdges,i},"interactions:action-start":De,"interactions:action-move":De,"interactions:action-end":De,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Ne=je,Oe={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ee=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l,c){var u;r(this,n),(u=e.call(this,t)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,a=a||t.element;var h=t.interactable,p=(h&&h.options||Oe).deltaSource,f=ot(h,a,o),g="start"===s,m="end"===s,v=g?d(u):t.prevEvent,y=g?t.coords.start:m?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return u.page=$({},y.page),u.client=$({},y.client),u.rect=$({},t.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=f.x,u.page.y-=f.y,u.client.x-=f.x,u.client.y-=f.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=a,u.currentTarget=a,u.preEnd=l,u.type=c||o+(s||""),u.interactable=h,u.t0=g?t.pointers[t.pointers.length-1].downTime:v.t0,u.x0=t.coords.start.page.x-f.x,u.y0=t.coords.start.page.y-f.y,u.clientX0=t.coords.start.client.x-f.x,u.clientY0=t.coords.start.client.y-f.y,u.delta=g||m?{x:0,y:0}:{x:u[p].x-v[p].x,y:u[p].y-v[p].y},u.dt=t.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=$({},t.coords.velocity[p]),u.speed=lt(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===s?u.getSwipe():null,u}return s(n,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,i=202.5<=e&&e<337.5;return{up:i,down:!i&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Mt);Object.defineProperties(Ee.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var ze=s((function t(e,n,i,o,s){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=i,this.downTime=o,this.downTarget=s})),Fe=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Re=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Pe=0,Ye=function(){function t(e){var n=this,i=e.pointerType,o=e.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ie((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Pe++,this._scopeFire=o,this.pointerType=i;var s=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return s[t]}})};for(var l in Fe)a(l);var c=function(t){Object.defineProperty(n._proxy,t,{value:function(){return s[t].apply(s,arguments)}})};for(var u in Re)c(u);this._scopeFire("interactions:new",{interaction:this})}return s(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(re(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?$({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=lt(i,r)>this.pointerMoveTolerance);var s,a,l,c=this.getPointerIndex(t),u={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:e,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||(s=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),s.page.x=a.page.x/l,s.page.y=a.page.y/l,s.client.x=a.client.x/l,s.client.y=a.client.y/l,s.timeStamp=l),this._scopeFire("interactions:move",u),o||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&dt(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||ht(this.coords.delta),(t=$({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));var o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=mt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:_t(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,i){var r,o,s,a=mt(t),l=this.getPointerIndex(t),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),c?c.pointer=t:(c=new ze(a,t,e,null,null),l=this.pointers.length,this.pointers.push(c)),function(t,e,n){var i=e.length>1?yt(e):e[0];gt(i,t.page),function(t,e){e=e||{},Y.isOperaMobile&&pt(t)?ft("screen",t,e):ft("client",t,e)}(i,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),r=this.coords.delta,o=this.coords.prev,s=this.coords.cur,r.page.x=s.page.x-o.page.x,r.page.y=s.page.y-o.page.y,r.client.x=s.client.x-o.client.x,r.client.y=s.client.y-o.client.y,r.timeStamp=s.timeStamp-o.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ut(this.downPointer,t),this.interacting()||(dt(this.coords.start,this.coords.cur),dt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,i){return new Ee(this,t,this.prepared.name,e,this.element,n,i)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,i=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===n&&(rt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var s=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ue(t){We(t.interaction)}function We(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return Ze(t.coords.cur,e),Ze(t.coords.delta,e),rt(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Be(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function Ze(t,e){var n=t.page,i=t.client,r=e.x,o=e.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Re.offsetBy="";var He={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Be},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ze(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ue,"interactions:before-action-move":Ue,"interactions:before-action-end":function(t){var e=t.interaction;if(We(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ge=He,Ve=function(){function t(e){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return s(t,[{key:"start",value:function(t){var e=this.interaction,n=Qe(e);if(!n||!n.enabled)return!1;var i=e.coords.velocity.client,r=lt(i.x,i.y),o=this.modification||(this.modification=new Se(e));if(o.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=Qe(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(e.x-r)/i,y:(e.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(s),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Jt((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,i,r,o=this,s=this.interaction,a=Qe(s).resistance,l=(s._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-a*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Xe(r=u,0,t,n),y:Xe(r,0,e,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,s.offsetBy(d),s.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else s.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,i=Qe(e).smoothEndDuration;if(n<i){var r={x:qe(n,0,this.targetOffset.x,i),y:qe(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,e.offsetBy(o),e.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(e,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),dt(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function Qe(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var Je={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(Ge),t.usePlugin(Ne),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new Ve(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,i=e.inertia;if(i.active)for(var r=n;k(r);){if(r===e.element){i.resume(t);break}r=B(r)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":De,"interactions:action-inertiastart":De,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xe(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i}function qe(t,e,n,i){return-n*(t/=i)*(t-2)+e}var Ke=Je;function $e(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(t.immediatePropagationStopped)break;i(t)}}var tn=function(){function t(e){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=$({},e||{})}return s(t,[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&$e(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&$e(t,e)}},{key:"on",value:function(t,e){var n=st(t,e);for(t in n)this.types[t]=Lt(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=st(t,e);for(t in n){var i=this.types[t];if(i&&i.length)for(var r=0,o=n[t];r<o.length;r++){var s=o[r],a=i.indexOf(s);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}]),t}(),en=function(){function t(e){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,ut(this,e)}return s(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function nn(t){return M(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function rn(t,e){return t===e||("boolean"==typeof t?!!e.capture===t&&0==!!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var on={id:"events",install:function(t){var e,n=[],i={},r=[],o={add:s,remove:a,addDelegate:function(t,e,n,o,a){var u=nn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];s(h,n,l),s(h,n,c,!0)}}var p=i[n],f=St(p,(function(n){return n.selector===t&&n.context===e}));f||(f={selector:t,context:e,listeners:[]},p.push(f)),f.listeners.push({func:o,options:u})},removeDelegate:function(t,e,n,r,o){var s,u=nn(o),d=i[n],h=!1;if(d)for(s=d.length-1;s>=0;s--){var p=d[s];if(p.selector===t&&p.context===e){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===r&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(s,1),a(e,n,l),a(e,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,i,r){if(t.addEventListener){var s=nn(r),a=St(n,(function(e){return e.eventTarget===t}));a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),St(a.events[e],(function(t){return t.func===i&&rn(t.options,s)}))||(t.addEventListener(e,i,o.supportsOptions?s:s.capture),a.events[e].push({func:i,options:s}))}}function a(t,e,i,r){if(t.addEventListener&&t.removeEventListener){var s=_t(n,(function(e){return e.eventTarget===t})),l=n[s];if(l&&l.events)if("all"!==e){var c=!1,u=l.events[e];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];a(t,e,h.func,h.options)}return}for(var p=nn(r),f=0;f<u.length;f++){var g=u[f];if(g.func===i&&rn(g.options,p)){t.removeEventListener(e,i,o.supportsOptions?p:p.capture),u.splice(f,1),0===u.length&&(delete l.events[e],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(e in l.events)l.events.hasOwnProperty(e)&&a(t,e,"all")}}function l(t,e){for(var n=nn(e),r=new en(t),o=i[t.type],s=Ct(t)[0],a=s;k(a);){for(var l=0;l<o.length;l++){var c=o[l],u=c.selector,d=c.context;if(Z(a,u)&&U(d,s)&&U(d,a)){var h=c.listeners;r.currentTarget=a;for(var p=0;p<h.length;p++){var f=h[p];rn(f.options,n)&&f.func(r)}}}a=B(a)}}function c(t){return l(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},sn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=sn.methodOrder;e<n.length;e++){var i=n[e],r=sn[i](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,i=t.eventTarget,r=t.scope;if(!/down|start/i.test(n))return null;for(var o=0,s=r.interactions.list;o<s.length;o++){var a=s[o],l=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;l;){if(l===a.element)return a;l=B(l)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,i=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var s=0,a=o.interactions.list;s<a.length;s++){var l=a[s];if(l.pointerType===i){if(l.simulation&&!an(l,n))continue;if(l.interacting())return l;e||(e=l)}}if(e)return e;for(var c=0,u=o.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(an(r,e))return r}return null},idle:function(t){for(var e=t.pointerType,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&e===r.pointerType)return r}return null}};function an(t,e){return t.pointers.some((function(t){return t.id===e}))}var ln=sn,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var i=e.interactions.list,r=xt(n),o=Ct(n),s=o[0],a=o[1],l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:mt(d),pointerType:r,eventType:n.type,eventTarget:s,curEventTarget:a,scope:e},p=dn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,p])}}else{var f=!1;if(!Y.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!f;g++)f="mouse"!==i[g].pointerType&&i[g].pointerIsDown;f=f||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!f){var m={pointer:n,pointerId:mt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:s,scope:e},v=dn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],w=b[0],A=b[1],x=b[2];b[3][t](w,n,A,x)}}}function dn(t){var e=t.pointerType,n=t.scope,i={interaction:ln.search(t),searchDetails:t};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:e})}function hn(t,e){var n=t.doc,i=t.scope,r=t.options,o=i.interactions.docEvents,s=i.events,a=s[e];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),s.delegatedEvents)a(n,l,s.delegateListener),a(n,l,s.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];a(n,d.type,d.listener,c)}}var pn={id:"core/interactions",install:function(t){for(var e={},n=0;n<cn.length;n++){var i=cn[n];e[i]=un(i,t)}var o,a=Y.pEventTypes;function c(){for(var e=0,n=t.interactions.list;e<n.length;e++){var i=n[e];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var e=s[o];t.documents.some((function(t){return U(t.doc,e.downTarget)}))||i.removePointer(e.pointer,e.event)},o=0,s=i.pointers;o<s.length;o++)r()}}(o=R.PointerEvent?[{type:a.down,listener:c},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++)i[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){l(i,e);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return s(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}]),i}(Ye),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:o,pointerMoveTolerance:1},t.usePlugin(Le)},listeners:{"scope:add-document":function(t){return hn(t,"add")},"scope:remove-document":function(t){return hn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,i=e.interactions.list.length-1;i>=0;i--){var r=e.interactions.list[i];r.interactable===n&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(i,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(gn||{}),mn=function(){function t(e,n,i,o){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=b(K(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}return s(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return L(e.onstart)&&this.on("".concat(t,"start"),e.onstart),L(e.onmove)&&this.on("".concat(t,"move"),e.onmove),L(e.onend)&&this.on("".concat(t,"end"),e.onend),L(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){var i,r=this,o=null==(i=this._actions.map[t])?void 0:i.filterEventType,s=function(t){return(null==o||o(t))&&Ie(t,r._actions)};(D(e)||M(e))&&this._onOff(gn.Off,t,e,void 0,s),(D(n)||M(n))&&this._onOff(gn.On,t,n,void 0,s)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var i in e){var r=i,o=this.options[t],s=e[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,s),D(s)?o[r]=It(s):T(s)?(o[r]=$(o[r]||{},_e(s)),M(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==s.enabled)):_(s)&&M(n.perAction[r])?o[r].enabled=s:o[r]=s}}},{key:"getRect",value:function(t){return t=t||(k(this.target)?this.target:null),S(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var e=this;return L(t)?(this.getRect=function(n){var i=$({},t.apply(e,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if(K(e)||M(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return S(t)?Array.from(this._context.querySelectorAll(t)):L(t)&&t.getAllElements?t.getAllElements():k(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||U(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!k(n)&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!k(n))&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,i,r){M(e)&&!D(e)&&(i=n,n=null);var o=st(e,n,r);for(var s in o){"wheel"===s&&(s=Y.wheelEvent);for(var a=0,l=o[s];a<l.length;a++){var c=l[a];Ie(s,this._actions)?this.events[t===gn.On?"on":"off"](s,c):S(this.target)?this._scopeEvents[t===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,s,c,i):this._scopeEvents[t===gn.On?"add":"remove"](this.target,s,c,i)}}return this}},{key:"on",value:function(t,e,n){return this._onOff(gn.On,t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff(gn.Off,t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in M(t)||(t={}),this.options=_e(e.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,$($({},e.perAction),e.actions[i])),this[r](t[i])}for(var o in t)"getRect"!==o?L(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(S(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var i=e[n],r=i.selector,o=i.context,s=i.listeners;r===this.target&&o===this._context&&e.splice(n,1);for(var a=s.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[a][0],s[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),vn=function(){function t(e){var n=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,i=e.target,r=S(i)?n.selectorMap[i]:i[n.scope.id],o=_t(r,(function(t){return t===e}));r.splice(o,1)}})}return s(t,[{key:"new",value:function(t,e){e=$(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),S(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(n)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(t,e){var n=e&&e.context||this.scope.document,i=S(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return St(r,(function(e){return e._context===n&&(i||e.inContext(t))}))}},{key:"forEachMatch",value:function(t,e){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],o=void 0;if((S(r.target)?k(t)&&Z(t,r.target):t===r.target)&&r.inContext(t)&&(o=e(r)),void 0!==o)return o}}}]),t}(),yn=function(){function t(){var e=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=_e(Oe),this.Eventable=tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var e=function e(n,i){var r=t.interactables.getExisting(n,i);return r||((r=t.interactables.new(n,i)).events.global=e.globalEvents),r};return e.getPointerAverage=yt,e.getTouchBBox=bt,e.getTouchDistance=wt,e.getTouchAngle=At,e.getElementRect=X,e.getElementClientRect=J,e.matchesSelector=Z,e.closest=W,e.globalEvents={},e.version="1.10.27",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.on(o,e,n)}return this}if(M(t)){for(var s in t)this.on(s,t[s],e);return this}return Ie(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.off(o,e,n)}return this}if(M(t)){for(var s in t)this.off(s,t[s],e);return this}var a;return Ie(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,e,n),this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return Y.supportsTouch},e.supportsPointerEvent=function(){return Y.supportsPointerEvent},e.stop=function(){for(var t=0,e=this.scope.interactions.list;t<e.length;t++)e[t].stop();return this},e.pointerMoveTolerance=function(t){return I(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Ee,this.Interactable=void 0,this.interactables=new vn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var n=this;this.Interactable=function(t){l(i,t);var e=h(i);function i(){return r(this,i),e.apply(this,arguments)}return s(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return p(c(i.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){p(c(i.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(mn)}return s(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,x(e)&&y(e),R.init(e),Y.init(e),qt(e),t.window=e,t.document=e.document,t.usePlugin(fn),t.usePlugin(on),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var e=t.id;return e?!!this._plugins.map[e]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,e){return t[e]=!0,t[bn(e)]=!0,t}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[bn(o)]))break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,e){if(-1!==this.getDocIndex(t))return!1;var n=b(t);e=e?$({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}},{key:"removeDocument",value:function(t){var e=this.getDocIndex(t),n=b(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function bn(t){return t&&t.replace(/\/.*$/,"")}var wn=new yn,An=wn.interactStatic,xn="undefined"!=typeof globalThis?globalThis:window;wn.init(xn);var Cn=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(e){var n=e[0],i=e[1];return n in t||i in t})),n=function(n,i){for(var r=t.range,o=t.limits,s=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,a=t.offset,l=void 0===a?{x:0,y:0}:a,c={range:r,grid:t,x:null,y:null},u=0;u<e.length;u++){var d=e[u],h=d[0],p=d[1],f=Math.round((n-l.x)/t[h]),g=Math.round((i-l.y)/t[p]);c[h]=Math.max(s.left,Math.min(s.right,f*t[h]+l.x)),c[p]=Math.max(s.top,Math.min(s.bottom,g*t[p]+l.y))}return c};return n.grid=t,n.coordFields=e,n}}),Mn={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=$(e.snappers||{},Cn),e.createSnapGrid=e.snappers.grid}},Ln=Mn,In={start:function(t){var e=t.state,i=t.rect,r=t.edges,o=t.pageCoords,s=e.options,a=s.ratio,l=s.enabled,c=e.options,u=c.equalDelta,d=c.modifiers;"preserve"===a&&(a=i.width/i.height),e.startCoords=$({},o),e.startRect=$({},i),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var p=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:p,y:p}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&$(r,h),null!=d&&d.length){var f=new Se(t.interaction);f.copyFrom(t.interaction.modification),f.prepareStates(d),e.subModification=f,f.startAll(n({},t))}},set:function(t){var e=t.state,i=t.rect,r=t.coords,o=e.linkedEdges,s=$({},r),a=e.equalDelta?_n:Sn;if($(t.edges,o),a(e,e.xIsPrimaryAxis,r,i),!e.subModification)return null;var l=$({},i);rt(o,l,{x:r.x-s.x,y:r.y-s.y});var c=e.subModification.setAll(n(n({},t),{},{rect:l,edges:o,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),$(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function _n(t,e,n){var i=t.startCoords,r=t.edgeSign;e?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function Sn(t,e,n,i){var r=t.startRect,o=t.startCoords,s=t.ratio,a=t.edgeSign;if(e){var l=i.width/s;n.y=o.y+(l-r.height)*a.y}else{var c=i.height*s;n.x=o.x+(c-r.width)*a.x}}var kn=Te(In,"aspectRatio"),Tn=function(){};Tn._defaults={};var Dn=Tn;function jn(t,e,n){return L(t)?et(t,e.interactable,e.element,[n.x,n.y,e]):et(t,e.interactable,e.element)}var Nn={start:function(t){var e=t.rect,n=t.startOffset,i=t.state,r=t.interaction,o=t.pageCoords,s=i.options,a=s.elementRect,l=$({left:0,top:0,right:0,bottom:0},s.offset||{});if(e&&a){var c=jn(s.restriction,r,o);if(c){var u=c.right-c.left-e.width,d=c.bottom-c.top-e.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-e.width*a.left,l.top+=n.top-e.height*a.top,l.right+=n.right-e.width*(1-a.right),l.bottom+=n.bottom-e.height*(1-a.bottom)}i.offset=l},set:function(t){var e=t.coords,n=t.interaction,i=t.state,r=i.options,o=i.offset,s=jn(r.restriction,n,e);if(s){var a=function(t){return!t||"left"in t&&"top"in t||((t=$({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(s);e.x=Math.max(Math.min(a.right-o.right,e.x),a.left+o.left),e.y=Math.max(Math.min(a.bottom-o.bottom,e.y),a.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},On=Te(Nn,"restrict"),En={top:1/0,left:1/0,bottom:-1/0,right:-1/0},zn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fn(t,e){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in t||(t[r]=e[r])}return t}var Rn={noInner:En,noOuter:zn,start:function(t){var e,n=t.interaction,i=t.startOffset,r=t.state,o=r.options;o&&(e=nt(jn(o.offset,n,n.coords.start.page))),e=e||{x:0,y:0},r.offset={top:e.y+i.top,left:e.x+i.left,bottom:e.y-i.bottom,right:e.x-i.right}},set:function(t){var e=t.coords,n=t.edges,i=t.interaction,r=t.state,o=r.offset,s=r.options;if(n){var a=$({},e),l=jn(s.inner,i,a)||{},c=jn(s.outer,i,a)||{};Fn(l,En),Fn(c,zn),n.top?e.y=Math.min(Math.max(c.top+o.top,a.y),l.top+o.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+o.bottom,a.y),l.bottom+o.bottom)),n.left?e.x=Math.min(Math.max(c.left+o.left,a.x),l.left+o.left):n.right&&(e.x=Math.max(Math.min(c.right+o.right,a.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Pn=Te(Rn,"restrictEdges"),Yn=$({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Nn.defaults),Un=Te({start:Nn.start,set:Nn.set,defaults:Yn},"restrictRect"),Wn={width:-1/0,height:-1/0},Bn={width:1/0,height:1/0},Zn=Te({start:function(t){return Rn.start(t)},set:function(t){var e=t.interaction,n=t.state,i=t.rect,r=t.edges,o=n.options;if(r){var s=it(jn(o.min,e,t.coords))||Wn,a=it(jn(o.max,e,t.coords))||Bn;n.options={endOnly:o.endOnly,inner:$({},Rn.noInner),outer:$({},Rn.noOuter)},r.top?(n.options.inner.top=i.bottom-s.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+s.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-s.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+s.width,n.options.outer.right=i.left+a.width),Rn.set(t),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Hn={start:function(t){var e,n=t.interaction,i=t.interactable,r=t.element,o=t.rect,s=t.state,a=t.startOffset,l=s.options,c=l.offsetWithOrigin?function(t){var e=t.interaction.element;return nt(et(t.state.options.origin,null,null,[e]))||ot(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===l.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=et(l.offset,i,r,[n]);(e=nt(u)||{x:0,y:0}).x+=c.x,e.y+=c.y}var d=l.relativePoints;s.offsets=o&&d&&d.length?d.map((function(t,n){return{index:n,relativePoint:t,x:a.left-o.width*t.x+e.x,y:a.top-o.height*t.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,i=t.state,r=i.options,o=i.offsets,s=ot(e.interactable,e.element,e.prepared.name),a=$({},n),l=[];r.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(var c=0,u=o;c<u.length;c++)for(var d=u[c],h=a.x-d.x,p=a.y-d.y,f=0,g=r.targets.length;f<g;f++){var m,v=r.targets[f];(m=L(v)?v(h,p,e._proxy,d,f):v)&&l.push({x:(I(m.x)?m.x:h)+d.x,y:(I(m.y)?m.y:p)+d.y,range:I(m.range)?m.range:r.range,source:v,index:f,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var w=l[b],A=w.range,x=w.x-a.x,C=w.y-a.y,M=lt(x,C),_=M<=A;A===1/0&&y.inRange&&y.range!==1/0&&(_=!1),y.target&&!(_?y.inRange&&A!==1/0?M/A<y.distance/y.range:A===1/0&&y.range!==1/0||M<y.distance:!y.inRange&&M<y.distance)||(y.target=w,y.distance=M,y.range=A,y.inRange=_,y.delta.x=x,y.delta.y=C)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Gn=Te(Hn,"snap"),Vn={start:function(t){var e=t.state,n=t.edges,i=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Hn.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,i=t.coords,r=n.options,o=n.offsets,s={x:i.x-o[0].x,y:i.y-o[0].y};n.options=$({},r),n.options.targets=[];for(var a=0,l=r.targets||[];a<l.length;a++){var c=l[a],u=void 0;if(u=L(c)?c(s.x,s.y,e):c){for(var d=0,h=n.targetFields;d<h.length;d++){var p=h[d],f=p[0],g=p[1];if(f in u||g in u){u.x=u[f],u.y=u[g];break}}n.options.targets.push(u)}}var m=Hn.set(t);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qn=Te(Vn,"snapSize"),Jn={aspectRatio:kn,restrictEdges:Pn,restrict:On,restrictRect:Un,restrictSize:Zn,snapEdges:Te({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Vn.start(t)):null},set:Vn.set,defaults:$(_e(Vn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Gn,snapSize:Qn,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},Xn={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(Ne),t.usePlugin(Ln),e.modifiers=Jn,Jn){var i=Jn[n],r=i._defaults,o=i._methods;r._methods=o,t.defaults.perAction[n]=r}}},qn=Xn,Kn=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l){var c;if(r(this,n),ut(d(c=e.call(this,a)),o),o!==i&&ut(d(c),i),c.timeStamp=l,c.originalEvent=o,c.type=t,c.pointerId=mt(i),c.pointerType=xt(i),c.target=s,c.currentTarget=null,"tap"===t){var u=a.getPointerIndex(i);c.dt=c.timeStamp-a.pointers[u].downTime;var h=c.timeStamp-a.tapTime;c.double=!!a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===c.target&&h<500}else"doubletap"===t&&(c.dt=i.timeStamp-a.tapTime,c.double=!0);return c}return s(n,[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(Mt),$n={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=$n,t.defaults.actions.pointerEvents=$n.defaults,$(t.actions.phaselessTypes,$n.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ni(t),ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.pointerIndex,a=n.pointers[s].hold,l=q(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,p=0,f=c.targets;p<f.length;p++){var g=f[p].eventable.options.holdDuration;g<h&&(h=g)}a.duration=h,a.timeout=setTimeout((function(){ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},e)}),h)}}(t,e),ti(t,e)},"interactions:up":function(t,e){ni(t),ti(t,e),function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.pointerWasMoved||ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){ni(t),ti(t,e)}},PointerEvent:Kn,fire:ti,collectEventTargets:ei,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=t.targets,l=void 0===a?ei(t,e):a,c=new Kn(s,i,r,o,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:s,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var p in h.props||{})c[p]=h.props[p];var f=ot(h.eventable,h.node);if(c._subtractOrigin(f),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(f),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",u),"tap"===s){var g=c.double?ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},e):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function ei(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=n.getPointerIndex(i),l=n.pointers[a];if("tap"===s&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=q(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:s,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,e.fire("pointerEvents:collect-targets",u)}return"hold"===s&&(u.targets=u.targets.filter((function(t){var e,i;return t.eventable.options.holdDuration===(null==(e=n.pointers[a])||null==(i=e.hold)?void 0:i.duration)}))),u.targets}function ni(t){var e=t.interaction,n=t.pointerIndex,i=e.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var ii=Object.freeze({__proto__:null,default:$n});function ri(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var oi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin($n);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=ri,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,i=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===i.type&&o.length){var s=o[0].eventable.options.holdRepeatInterval;s<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},e)}),s))}}})},si=oi,ai={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(t){return $(this.events.options,t),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var i=n.call(this,t,e);return i===this&&(this.events.options[t]=e),i}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,i=t.node,r=t.type,o=t.eventTarget;e.interactables.forEachMatch(i,(function(t){var e=t.events,s=e.options;e.types[r]&&e.types[r].length&&t.testIgnoreAllow(s,i,o)&&n.push({node:i,eventable:e,props:{interactable:t}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,i=t.options;$(n.events.options,e.pointerEvents.defaults),$(n.events.options,i.pointerEvents||{})}}},li=ai,ci={id:"pointer-events",install:function(t){t.usePlugin(ii),t.usePlugin(si),t.usePlugin(li)}},ui=ci,di={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var i=t.getAllElements(),r=n.window.Promise,o=r?[]:null,s=function(){var s=i[a],l=t.getRect(s);if(!l)return 1;var c,u=St(n.interactions.list,(function(n){return n.interacting()&&n.interactable===t&&n.element===s&&n.prepared.name===e.name}));if(u)u.move(),o&&(c=u._reflowPromise||new r((function(t){u._reflowResolve=t})));else{var d=it(l),h=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(t,e,n,i,r){var o=t.interactions.new({pointerType:"reflow"}),s={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=e,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),ht(o.coords.delta),re(o.prepared,i),o._doPhase(s);var a=t.window.Promise,l=a?new a((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=l,o.start(i,e,n),o._interacting?(o.move(s),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,t,s,e,h)}o&&o.push(c)},a=0;a<i.length&&!s();a++);return o&&r.all(o).then((function(){return t}))}(this,e,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(t,e){t.splice(t.indexOf(e),1)}(e.interactions.list,n))}}},hi=di;if(An.use(Le),An.use(Ge),An.use(ui),An.use(Ke),An.use(qn),An.use(xe),An.use(Vt),An.use(ne),An.use(hi),An.default=An,"object"===i(t)&&t)try{t.exports=An}catch(e){}return An.default=An,An}()},194:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};e.default={init:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(e,i,o){if(0!==i.length){var s="text";if(0===i.indexOf("[")){var a=i.split("]");i=a[1],s=a[0].substr(1,a[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===s)e.html(t.t(i,u(o,e.html())));else if("text"===s)e.text(t.t(i,u(o,e.text())));else if("prepend"===s)e.prepend(t.t(i,u(o,e.html())));else if("append"===s)e.append(t.t(i,u(o,e.html())));else if(0===s.indexOf("data-")){var l=s.substr(5),c=t.t(i,u(o,e.data(l)));e.data(l,c),e.attr(s,c)}else e.attr(s,t.t(i,u(o,e.attr(s))))}function u(t,e){return r.parseDefaultValueFromContent?n({},t,{defaultValue:e}):t}}function s(t,i){var s=t.attr(r.selectorAttr);if(s||void 0===s||!1===s||(s=t.text()||t.val()),s){var a=t,l=t.data(r.targetAttr);if(l&&(a=t.find(l)||t),i||!0!==r.useOptionsAttr||(i=t.data(r.optionsAttr)),i=i||{},s.indexOf(";")>=0){var c=s.split(";");e.each(c,(function(t,e){""!==e&&o(a,e.trim(),i)}))}else o(a,s,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,t.data(r.optionsAttr,u)}}}r=n({},i,r),e[r.tName]=t.t.bind(t),e[r.i18nName]=t,e.fn[r.handleName]=function(t){return this.each((function(){s(e(this),t),e(this).find("["+r.selectorAttr+"]").each((function(){s(e(this),t)}))}))}}}},790:(t,e,n)=>{t.exports=n(194).default},651: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,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.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 A(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 x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var C="3.7.1",M=/HTML$/i,L=function(t,e){return new L.fn.init(t,e)};function I(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}L.fn=L.prototype={jquery:C,constructor:L,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=L.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return L.each(this,t)},map:function(t){return this.pushStack(L.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(L.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(L.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},L.extend=L.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&&(L.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||L.isPlainObject(n)?n:{},r=!1,s[e]=L.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},L.extend({expando:"jQuery"+(C+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]"!==h.call(t)||(e=s(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){A(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(I(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+=L.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&&(I(Object(t))?L.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!M.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(I(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&&(L.fn[Symbol.iterator]=o[Symbol.iterator]),L.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var S=o.pop,k=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");L.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 N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}L.escapeSelector=function(t){return(t+"").replace(N,O)};var E=b,z=c;!function(){var t,e,n,r,s,l,c,d,h,f,g=z,v=L.expando,y=0,b=0,w=tt(),A=tt(),x=tt(),C=tt(),M=function(t,e){return t===e&&(s=!0),0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+D+"*("+N+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+D+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",R=new RegExp(D+"+","g"),P=new RegExp("^"+D+"*,"+D+"*"),Y=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),U=new RegExp(D+"|>"),W=new RegExp(F),B=new RegExp("^"+N+"$"),Z={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),X=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))},q=function(){lt()},K=ht((function(t){return!0===t.disabled&&_(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(t){g={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function $(t,e,n,i){var r,o,s,a,c,u,p,f=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,d)){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(f&&(s=f.getElementById(r))&&$.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(!(C[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(U.test(t)||Y.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=L.escapeSelector(a):e.setAttribute("id",a=v)),o=(u=ut(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+dt(u[o]);p=u.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){C(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(j,"$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 _(e,"input")&&e.type===t}}function rt(t){return function(e){return(_(e,"input")||_(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:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!L.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",q),m.getById=nt((function(t){return c.appendChild(t).id=L.expando,!l.getElementsByName||!l.getElementsByName(L.expando).length})),m.disconnectedMatch=nt((function(t){return f.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(J,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,X);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&&d){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&&d)return e.getElementsByClassName(t)},h=[],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||h.push("\\["+D+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.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&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),M=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==E&&$.contains(E,t)?-1:e===l||e.ownerDocument==E&&$.contains(E,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in $.matches=function(t,e){return $(t,null,null,e)},$.matchesSelector=function(t,e){if(lt(t),d&&!C[e+" "]&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){C(e,!0)}return $(e,l,null,[t]).length>0},$.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),L.contains(t,e)},$.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,!d):void 0;return void 0!==r?r:t.getAttribute(n)},$.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},L.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),k.call(t,M),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)T.call(t,n[i],1)}return r=null,t},L.fn.uniqueSort=function(){return this.pushStack(L.uniqueSort(a.apply(this)))},e=L.expr={cacheLength:50,createPseudo:et,match:Z,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(J,X),t[3]=(t[3]||t[4]||t[5]||"").replace(J,X),"~="===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]||$.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]&&$.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&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=$.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(R," ")+" ").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,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;f;){for(d=e;d=d[f];)if(a?_(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(w=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===e){u[t]=[y,h,w];break}}else if(b&&(w=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(d=++h&&d&&d[f]||(w=h=0)||p.pop())&&(!(a?_(d,m):1===d.nodeType)||!++w||(b&&((u=d[v]||(d[v]={}))[t]=[y,w]),d!==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()]||$.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=u.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(j,"$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 $(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,X),function(e){return(e.textContent||L.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.test(t||"")||$.error("unsupported lang: "+t),t=t.replace(J,X).toLowerCase(),function(e){var n;do{if(n=d?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 _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){var e;return _(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first: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 ut(t,n){var i,r,o,s,a,l,c,u=A[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(r=P.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=Y.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(j," ")}),a=a.slice(i.length)),e.filter)!(r=Z[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?$.error(t):A(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(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,u,d=[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(u=e[v]||(e[v]={}),r&&_(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[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 ft(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,d,h,p,f=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)$(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:ft(y,f,t,a,l);if(n?n(b,p=r||(o?t:v||i)?[]:s,a,l):p=b,i)for(c=ft(p,m),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[m[d]]=!(b[m[d]]=h));if(o){if(r||t){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(o,h):f[d])>-1&&(o[c]=!(s[c]=h))}}else p=ft(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,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),p=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];c<s;c++)if(r=e.relative[t[c].type])p=[ht(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&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(j,"$1"),r,c<o&&mt(t.slice(c,o)),o<s&&mt(t=t.slice(o)),o<s&&dt(t))}p.push(r)}return pt(p)}function vt(t,i){var r,o=[],s=[],a=x[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=x(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,c,u,h){var p,f,m,v=0,b="0",w=s&&[],A=[],x=n,C=s||o&&e.find.TAG("*",h),M=y+=null==x?1:Math.random()||.1,I=C.length;for(h&&(n=a==l||a||h);b!==I&&null!=(p=C[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);m=t[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(y=M)}r&&((p=!m&&p)&&v--,s&&w.push(p))}if(v+=b,r&&b!==v){for(f=0;m=i[f++];)m(w,A,a,c);if(s){if(v>0)for(;b--;)w[b]||A[b]||(A[b]=S.call(u));A=ft(A)}g.apply(u,A),h&&!s&&A.length>0&&v+i.length>1&&L.uniqueSort(u)}return h&&(y=M,n=x),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,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&d&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,X),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=Z.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(J,X),Q.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&dt(s)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(M).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),L.find=$,L.expr[":"]=L.expr.pseudos,L.unique=L.uniqueSort,$.compile=vt,$.select=yt,$.setDocument=lt,$.tokenize=ut,$.escape=L.escapeSelector,$.getText=L.text,$.isXML=L.isXMLDoc,$.selectors=L.expr,$.support=L.support,$.uniqueSort=L.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&&L(t).is(n))break;i.push(t)}return i},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=L.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?L.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?L.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?L.grep(t,(function(t){return u.call(e,t)>-1!==n})):L.filter(e,t,n)}L.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?L.find.matchesSelector(i,t)?[i]:[]:L.find.matches(t,L.grep(e,(function(t){return 1===t.nodeType})))},L.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(L(t).filter((function(){for(e=0;e<i;e++)if(L.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)L.find(t,r[e],n);return i>1?L.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&P.test(t)?L(t):t||[],!1).length}});var W,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(L.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||W,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.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 L?e[0]:e,L.merge(this,L.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),Y.test(i[1])&&L.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(L):L.makeArray(t,this)}).prototype=L.fn,W=L(b);var Z=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}L.fn.extend({has:function(t){var e=L(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(L.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&L(t);if(!P.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&&L.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?L.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(L(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(L.uniqueSort(L.merge(this.get(),L(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),L.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 R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),L.merge([],t.childNodes))}},(function(t,e){L.fn[t]=function(n,i){var r=L.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=L.filter(i,r)),this.length>1&&(H[t]||L.uniqueSort(r),Z.test(t)&&r.reverse()),this.pushStack(r)}}));var V=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function J(t){throw t}function X(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])}}L.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return L.each(t.match(V)||[],(function(t,n){e[n]=!0})),e}(t):L.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){L.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return L.each(arguments,(function(t,e){for(var n;(n=L.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?L.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},L.extend({Deferred:function(t){var e=[["notify","progress",L.Callbacks("memory"),L.Callbacks("memory"),2],["resolve","done",L.Callbacks("once memory"),L.Callbacks("once memory"),0,"resolved"],["reject","fail",L.Callbacks("once memory"),L.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 L.Deferred((function(n){L.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,Q,r),s(o,e,J,r)):(o++,c.call(i,s(o,e,Q,r),s(o,e,J,r),s(o,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){L.Deferred.exceptionHook&&L.Deferred.exceptionHook(i,u.error),t+1>=o&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(L.Deferred.getErrorHook?u.error=L.Deferred.getErrorHook():L.Deferred.getStackHook&&(u.error=L.Deferred.getStackHook()),i.setTimeout(u))}}return L.Deferred((function(i){e[0][3].add(s(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:Q)),e[2][3].add(s(0,i,v(n)?n:J))})).promise()},promise:function(t){return null!=t?L.extend(t,r):r}},o={};return L.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=L.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&&(X(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)X(r[n],s(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;L.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&q.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},L.readyException=function(t){i.setTimeout((function(){throw t}))};var K=L.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),L.ready()}L.fn.ready=function(t){return K.then(t).catch((function(t){L.readyException(t)})),this},L.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--L.readyWait:L.isReady)||(L.isReady=!0,!0!==t&&--L.readyWait>0||K.resolveWith(b,[L]))}}),L.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(L.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===x(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(L(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=L.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||L.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&&!L.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}L.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)}}),L.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)),dt(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=dt(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)}))}}),L.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,L.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=L.queue(t,e),i=n.length,r=n.shift(),o=L._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){L.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:L.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),L.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?L.queue(this[0],t):void 0===e?this:this.each((function(){var n=L.queue(this,t,e);L._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&L.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){L.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=L.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 ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return L.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return L.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"===L.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return L.css(t,e,"")},l=a(),c=n&&n[3]||(L.cssNumber[e]?"":"px"),u=t.nodeType&&(L.cssNumber[e]||"px"!==c&&+l)&&pt.exec(L.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)L.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,L.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var wt={};function At(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=L.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function xt(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]=At(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}L.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?L(this).show():L(this).hide()}))}});var Ct,Mt,Lt=/^(?:checkbox|radio)$/i,It=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;Ct=b.createDocumentFragment().appendChild(b.createElement("div")),(Mt=b.createElement("input")).setAttribute("type","radio"),Mt.setAttribute("checked","checked"),Mt.setAttribute("name","t"),Ct.appendChild(Mt),m.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue,Ct.innerHTML="<option></option>",m.option=!!Ct.lastChild;var St={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 kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?L.merge([t],n):n}function Tt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,m.option||(St.optgroup=St.option=[1,"<select multiple='multiple'>","</select>"]);var Dt=/<|&#?\w+;/;function jt(t,e,n,i,r){for(var o,s,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===x(o))L.merge(h,o.nodeType?[o]:o);else if(Dt.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(It.exec(o)||["",""])[1].toLowerCase(),l=St[a]||St._default,s.innerHTML=l[1]+L.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;L.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&L.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),s=kt(d.appendChild(o),"script"),c&&Tt(s),n)for(u=0;o=s[u++];)_t.test(o.type||"")&&n.push(o);return d}var Nt=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Et(){return!1}function zt(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)zt(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=Et;else if(!r)return t;return 1===o&&(s=r,r=function(t){return L().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=L.guid++)),t.each((function(){L.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),L.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(L.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,L.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&L.event.add(t,e,Ot)}L.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&L.find.matchesSelector(gt,r),n.guid||(n.guid=L.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==L&&L.event.triggered!==e.type?L.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(V)||[""]).length;c--;)p=g=(a=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=L.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=L.event.special[p]||{},u=L.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&L.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),L.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,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=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=L.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||L.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)L.event.remove(t,p+e[c],n,i,!0);L.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=L.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=L.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=L.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=((L.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.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?L(r,this).index(c)>-1:L.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(L.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[L.expando]?t:new L.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Lt.test(e.type)&&e.click&&_(e,"input")&&at.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},L.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},L.Event=function(t,e){if(!(this instanceof L.Event))return new L.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:Et,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&&L.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[L.expando]=!0},L.Event.prototype={constructor:L.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},L.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},L.event.addProp),L.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=L.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else L.event.simulate(e,t.target,L.event.fix(t))}L.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},L.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))}}})),L.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){L.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||L.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),L.fn.extend({on:function(t,e,n,i){return zt(this,t,e,n,i)},one:function(t,e,n,i){return zt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,L(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=Et),this.each((function(){L.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&L(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Zt(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++)L.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=L.extend({},o),lt.set(e,s))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Lt.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,u,d=0,h=t.length,p=h-1,f=e[0],g=v(f);if(g||h>1&&"string"==typeof f&&!m.checkClone&&Pt.test(f))return t.each((function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),Gt(o,e,n,i)}));if(h&&(o=(r=jt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=L.map(kt(r,"script"),Wt)).length;d<h;d++)c=r,d!==p&&(c=L.clone(c,!0,!0),a&&L.merge(s,kt(c,"script"))),n.call(t[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,L.map(s,Bt),d=0;d<a;d++)c=s[d],_t.test(c.type||"")&&!at.access(c,"globalEval")&&L.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?L._evalUrl&&!c.noModule&&L._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):A(c.textContent.replace(Yt,""),c,u))}return t}function Vt(t,e,n){for(var i,r=e?L.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||L.cleanData(kt(i)),i.parentNode&&(n&&mt(i)&&Tt(kt(i,"script")),i.parentNode.removeChild(i));return t}L.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||L.isXMLDoc(t)))for(s=kt(a),i=0,r=(o=kt(t)).length;i<r;i++)Ht(o[i],s[i]);if(e)if(n)for(o=o||kt(t),s=s||kt(a),i=0,r=o.length;i<r;i++)Zt(o[i],s[i]);else Zt(t,a);return(s=kt(a,"script")).length>0&&Tt(s,!l&&kt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=L.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]?L.event.remove(n,i):L.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),L.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?L.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||Ut(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(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&&(L.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return L.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&&!Rt.test(t)&&!St[(It.exec(t)||["",""])[1].toLowerCase()]){t=L.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(L.cleanData(kt(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;L.inArray(this,t)<0&&(L.cleanData(kt(this)),n&&n.replaceChild(e,this))}),t)}}),L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){L.fn[t]=function(t){for(var n,i=[],r=L(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),L(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Jt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},qt=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(ft.join("|"),"i");function $t(t,e,n){var i,r,o,s,a=Jt.test(e),l=t.style;return(n=n||Xt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(j,"$1")||void 0),""!==s||mt(t)||(s=L.style(t,e)),!m.pixelBoxStyles()&&Qt.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(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,L.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){return L.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var 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+=L.css(t,n+ft[s],!0,r)),i?("content"===n&&(l-=L.css(t,"padding"+ft[s],!0,r)),"margin"!==n&&(l-=L.css(t,"border"+ft[s]+"Width",!0,r))):(l+=L.css(t,"padding"+ft[s],!0,r),"padding"!==n?l+=L.css(t,"border"+ft[s]+"Width",!0,r):a+=L.css(t,"border"+ft[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 ue(t,e,n){var i=Xt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===L.css(t,"boxSizing",!1,i),o=r,s=$t(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&_(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===L.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===L.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 de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}L.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(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=Jt.test(e),c=t.style;if(l||(e=re(a)),s=L.cssHooks[e]||L.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]||(L.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 Jt.test(e)||(e=re(a)),(s=L.cssHooks[e]||L.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),L.each(["height","width"],(function(t,e){L.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(L.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):qt(t,se,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,o=Xt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===L.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=L.css(t,e)),le(0,n,l)}}})),L.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),L.each({margin:"",padding:"",border:"Width"},(function(t,e){L.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(L.cssHooks[t+e].set=le)})),L.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=Xt(t),r=e.length;s<r;s++)o[e[s]]=L.css(t,e[s],!1,i);return o}return void 0!==n?L.style(t,e,n):L.css(t,e)}),t,e,arguments.length>1)}}),L.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||L.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(L.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=L.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):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.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=L.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){L.fx.step[t.prop]?L.fx.step[t.prop](t):1!==t.elem.nodeType||!L.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:L.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},L.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},L.fx=de.prototype.init,L.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,L.fx.interval),L.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=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=ft[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=L.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||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:L.extend({},e),opts:L.extend(!0,{specialEasing:{},easing:L.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=L.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}}),u=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=L.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}(u,c.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(c,t,u,c.opts))return v(i.stop)&&(L._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return L.map(u,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),L.fx.timer(L.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}L.Animation=L.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,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=L._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,L.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],fe.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]||L.style(t,i)}if((l=!L.isEmptyObject(e))||!L.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(u=L.css(t,"display"))&&(c?u=c:(xt([t],!0),c=t.style.display||c,u=L.css(t,"display"),xt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===L.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.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&&xt([t],!0),h.done((function(){for(i in g||xt([t]),at.remove(t,"fxshow"),p)L.style(t,i,p[i])}))),l=be(g?m[i]:0,i,h),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)}}),L.speed=function(t,e,n){var i=t&&"object"==typeof t?L.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return L.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in L.fx.speeds?i.duration=L.fx.speeds[i.duration]:i.duration=L.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&&L.dequeue(this,i.queue)},i},L.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=L.isEmptyObject(t),o=L.speed(e,n,i),s=function(){var e=we(this,L.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=L.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||L.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=L.timers,s=i?i.length:0;for(n.finish=!0,L.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}))}}),L.each(["toggle","show","hide"],(function(t,e){var n=L.fn[e];L.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),L.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){L.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),L.timers=[],L.fx.tick=function(){var t,e=0,n=L.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||L.fx.stop(),he=void 0},L.fx.timer=function(t){L.timers.push(t),L.fx.start()},L.fx.interval=13,L.fx.start=function(){pe||(pe=!0,me())},L.fx.stop=function(){pe=null},L.fx.speeds={slow:600,fast:200,_default:400},L.fn.delay=function(t,e){return t=L.fx&&L.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 Ae,xe=L.expr.attrHandle;L.fn.extend({attr:function(t,e){return tt(this,L.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){L.removeAttr(this,t)}))}}),L.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?L.prop(t,e,n):(1===o&&L.isXMLDoc(t)||(r=L.attrHooks[e.toLowerCase()]||(L.expr.match.bool.test(e)?Ae:void 0)),void 0!==n?null===n?void L.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=L.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(V);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Ae={set:function(t,e,n){return!1===e?L.removeAttr(t,n):t.setAttribute(n,n),n}},L.each(L.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||L.find.attr;xe[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=xe[s],xe[s]=r,r=null!=n(t,e,i)?s:null,xe[s]=o),r}}));var Ce=/^(?:input|select|textarea|button)$/i,Me=/^(?:a|area)$/i;function Le(t){return(t.match(V)||[]).join(" ")}function Ie(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(V)||[]}L.fn.extend({prop:function(t,e){return tt(this,L.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[L.propFix[t]||t]}))}}),L.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&L.isXMLDoc(t)||(e=L.propFix[e]||e,r=L.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=L.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||Me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(L.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)}}),L.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){L.propFix[this.toLowerCase()]=this})),L.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){L(this).addClass(t.call(this,e,Ie(this)))})):(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Le(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){L(this).removeClass(t.call(this,e,Ie(this)))})):arguments.length?(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Le(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){L(this).toggleClass(t.call(this,n,Ie(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=_e(t),this.each((function(){if(a)for(o=L(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=Ie(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&&(" "+Le(Ie(n))+" ").indexOf(e)>-1)return!0;return!1}});var Se=/\r/g;L.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,L(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=L.map(r,(function(t){return null==t?"":t+""}))),(e=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=L.valHooks[r.type]||L.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),L.extend({valHooks:{option:{get:function(t){var e=L.find.attr(t,"value");return null!=e?e:Le(L.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||!_(n.parentNode,"optgroup"))){if(e=L(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=L.makeArray(e),s=r.length;s--;)((i=r[s]).selected=L.inArray(L.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),L.each(["radio","checkbox"],(function(){L.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=L.inArray(L(t).val(),e)>-1}},m.checkOn||(L.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ke=i.location,Te={guid:Date.now()},De=/\?/;L.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||L.error("Invalid XML: "+(n?L.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var je=/^(?:focusinfocus|focusoutblur)$/,Ne=function(t){t.stopPropagation()};L.extend(L.event,{trigger:function(t,e,n,r){var o,s,a,l,c,u,d,h,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!je.test(g+L.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[L.expando]?t:new L.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]:L.makeArray(e,[t]),d=L.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,je.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?l:d.bindType||g,(u=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&ot(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!ot(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),L.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Ne),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Ne),L.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=L.extend(new L.Event,n,{type:t,isSimulated:!0});L.event.trigger(i,null,e)}}),L.fn.extend({trigger:function(t,e){return this.each((function(){L.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return L.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Ee=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,i){var r;if(Array.isArray(e))L.each(e,(function(e,r){n||Oe.test(t)?i(t,r):Re(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Re(t+"["+r+"]",e[r],n,i)}L.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&&!L.isPlainObject(t))L.each(t,(function(){r(this.name,this.value)}));else for(n in t)Re(n,t[n],e,r);return i.join("&")},L.fn.extend({serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=L.prop(this,"elements");return t?L.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!L(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Lt.test(t))})).map((function(t,e){var n=L(this).val();return null==n?null:Array.isArray(n)?L.map(n,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:n.replace(Ee,"\r\n")}})).get()}});var Pe=/%20/g,Ye=/#.*$/,Ue=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ze=/^\/\//,He={},Ge={},Ve="*/".concat("*"),Qe=b.createElement("a");function Je(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 Xe(t,e,n,i){var r={},o=t===Ge;function s(a){var l;return r[a]=!0,L.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 qe(t,e){var n,i,r=L.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&L.extend(!0,t,i),t}Qe.href=ke.href,L.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.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":L.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,L.ajaxSettings),e):qe(L.ajaxSettings,t)},ajaxPrefilter:Je(He),ajaxTransport:Je(Ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,c,u,d,h,p=L.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?L(f):L.event,m=L.Deferred(),v=L.Callbacks("once memory"),y=p.statusCode||{},w={},A={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=We.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=A[t.toLowerCase()]=A[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)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),M(0,e),this}};if(m.promise(C),p.url=((t||p.url||ke.href)+"").replace(Ze,ke.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=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=L.param(p.data,p.traditional)),Xe(He,p,e,C),c)return C;for(d in(u=L.event&&p.global)&&0==L.active++&&L.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Be.test(p.type),r=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pe,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(De.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ue,"$1"),h=(De.test(r)?"&":"?")+"_="+Te.guid+++h),p.url=r+h),p.ifModified&&(L.lastModified[r]&&C.setRequestHeader("If-Modified-Since",L.lastModified[r]),L.etag[r]&&C.setRequestHeader("If-None-Match",L.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.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)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),n=Xe(Ge,p,e,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(a=i.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,n.send(w,M)}catch(t){if(c)throw t;M(-1,t)}}else M(-1,"No Transport");function M(t,e,s,l){var d,h,b,w,A,x=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",C.readyState=t>0?4:0,d=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,C,s)),!d&&L.inArray("script",p.dataTypes)>-1&&L.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.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],u.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,C,d),d?(p.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(L.lastModified[r]=A),(A=C.getResponseHeader("etag"))&&(L.etag[r]=A)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,d=!(b=w.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",d?m.resolveWith(f,[h,x,C]):m.rejectWith(f,[C,x,b]),C.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:b]),v.fireWith(f,[C,x]),u&&(g.trigger("ajaxComplete",[C,p]),--L.active||L.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return L.get(t,e,n,"json")},getScript:function(t,e){return L.get(t,void 0,e,"script")}}),L.each(["get","post"],(function(t,e){L[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),L.ajax(L.extend({url:t,type:e,dataType:r,data:n,success:i},L.isPlainObject(t)&&t))}})),L.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),L._evalUrl=function(t,e,n){return L.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){L.globalEval(t,e,n)}})},L.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=L(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){L(this).wrapInner(t.call(this,e))})):this.each((function(){var e=L(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){L(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){L(this).replaceWith(this.childNodes)})),this}}),L.expr.pseudos.hidden=function(t){return!L.expr.pseudos.visible(t)},L.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},L.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},$e=L.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,L.ajaxTransport((function(t){var e,n;if(m.cors||$e&&!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()}}})),L.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),L.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 L.globalEval(t),t}}}),L.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),L.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=L("<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=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||L.expando+"_"+Te.guid++;return this[t]=!0,t}}),L.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+=(De.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||L.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?L(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),L.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=Y.exec(t))?[e.createElement(r[1])]:(r=jt([t],e,o),o&&o.length&&L(o).remove(),L.merge([],r.childNodes)));var i,r,o},L.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Le(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&L.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?L("<div>").append(L.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},L.expr.pseudos.animated=function(t){return L.grep(L.timers,(function(e){return t===e.elem})).length},L.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=L.css(t,"position"),u=L(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=L.css(t,"top"),l=L.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,L.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},L.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){L.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"===L.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"===L.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=L(t).offset()).top+=L.css(t,"borderTopWidth",!0),r.left+=L.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-L.css(i,"marginTop",!0),left:e.left-r.left-L.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===L.css(t,"position");)t=t.offsetParent;return t||gt}))}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;L.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)}})),L.each(["top","left"],(function(t,e){L.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=$t(t,e),Qt.test(n)?L(t).position()[e]+"px":n}))})),L.each({Height:"height",Width:"width"},(function(t,e){L.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){L.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?L.css(e,n,a):L.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){L.fn[e]=function(t){return this.on(e,t)}})),L.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)}}),L.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){L.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;L.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||L.guid++,r},L.holdReady=function(t){t?L.readyWait++:L.ready(!0)},L.isArray=Array.isArray,L.parseJSON=JSON.parse,L.nodeName=_,L.isFunction=v,L.isWindow=y,L.camelCase=rt,L.type=x,L.now=Date.now,L.isNumeric=function(t){var e=L.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},L.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return L}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return L.noConflict=function(t){return i.$===L&&(i.$=sn),t&&i.jQuery===L&&(i.jQuery=on),L},void 0===r&&(i.jQuery=i.$=L),L}))},461:(t,e,n)=>{t.exports=function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){return r(e[s][1][t]||t)}),c,c.exports,t,e,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,s,a,l,c,u=[],d=0,h=t.length,p=h,f="string"!==i.getTypeOf(t);d<t.length;)p=h-d,r=f?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),s=e>>2,a=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,s,a,l,c=0,u=0,d="data:";if(t.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(s=o.indexOf(t.charAt(c++)))>>4,n=(15&s)<<4|(a=o.indexOf(t.charAt(c++)))>>2,i=(3&a)<<6|(l=o.indexOf(t.charAt(c++))),h[u++]=e,64!==a&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e[s])];return~t}(0|e,t,t.length):function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e.charCodeAt(s))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=i?"uint8array":"array";function l(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,s,u){var d,h,p=t.file,f=t.compression,g=u!==a.utf8encode,m=o.transformTo("string",u(p.name)),v=o.transformTo("string",a.utf8encode(p.name)),y=p.comment,b=o.transformTo("string",u(y)),w=o.transformTo("string",a.utf8encode(y)),A=v.length!==p.name.length,x=w.length!==y.length,C="",M="",L="",I=p.dir,_=p.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),g||!A&&!x||(k|=2048);var T=0,D=0;I&&(T|=16),"UNIX"===s?(D=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,I)):(D=20,T|=function(t){return 63&(t||0)}(p.dosPermissions)),d=_.getUTCHours(),d<<=6,d|=_.getUTCMinutes(),d<<=5,d|=_.getUTCSeconds()/2,h=_.getUTCFullYear()-1980,h<<=4,h|=_.getUTCMonth()+1,h<<=5,h|=_.getUTCDate(),A&&(M=i(1,1)+i(l(m),4)+v,C+="up"+i(M.length,2)+M),x&&(L=i(1,1)+i(l(b),4)+w,C+="uc"+i(L.length,2)+L);var j="";return j+="\n\0",j+=i(k,2),j+=f.magic,j+=i(d,2),j+=i(h,2),j+=i(S.crc32,4),j+=i(S.compressedSize,4),j+=i(S.uncompressedSize,4),j+=i(m.length,2),j+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+j+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=t("../utils"),s=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,s){var a=o.transformTo("string",s(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!s.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new r(e.streamFiles,n,e.platform,e.encodeFileName),s=0;try{t.forEach((function(t,n){s++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),o=t("./utf8"),s=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new s(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),o=r.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=i.resolve(a.fileNameStr);n.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=o.getTypeOf(e),a=o.extend(n||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=g(t)),a.createFolders&&(i=f(t))&&m.call(this,i,!0);var d="string"===r&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!d),(e instanceof c&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v;v=e instanceof c||e instanceof s?e:h.isNode&&h.isStream(e)?new p(t,e):o.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new u(t,v,a);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),s=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new s("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(i.transformTo("uint8array",t)):new o(i.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function o(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,i),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,i),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e,n){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=n,i.checkSupport(s),this._worker=t.pipe(new r(s)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}u.prototype={accumulate:function(t){return function(t,e){return new l.Promise((function(n,r){var o=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){o.push(t),e&&e(n)})).on("error",(function(t){o=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(l,function(t,e){var n,i=0,r=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(o),n=0;n<e.length;n++)r.set(e[n],i),i+=e[n].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,o),c);n(t)}catch(t){r(t)}o=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,l=new Array(2*s);for(e=n=0;e<s;)if((r=t[e++])<128)l[n++]=r;else if(4<(o=a[r]))l[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<s;)r=r<<6|63&t[e++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,s),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),l=e;s!==e.length&&(r.uint8array?(l=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(l=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},h.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,a,c){return s.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):o&&!0!==a&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),s=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),s=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),s=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(e=e.pipe(new s.Utf8EncodeWorker)),!o&&i&&(e=e.pipe(new s.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,s=new r(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return o.reject(t,i)}i===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,o.reject(t,e))}function r(e){n||(n=!0,o.resolve(t,e))}var s=f((function(){e(r,i)}));"error"===s.status&&i(s.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return o.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=a,t.outcome=e;for(var r=-1,s=t.queue.length;++r<s;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=s,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){s[r]=t,++a!==n||i||(i=!0,o.resolve(c,s))}),(function(t){i||(i=!0,o.reject(c,t))}))}},c.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,s=-1,a=new this(r);++s<e;)i=t[s],this.resolve(i).then((function(t){n||(n=!0,o.resolve(a,t))}),(function(t){n||(n=!0,o.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(s[n]);this._dict_set=!0}}function u(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,s))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,l,c,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===s.Z_BUF_ERROR&&!0===m&&(n=s.Z_OK,m=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==s.Z_STREAM_END&&(0!==p.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,d=o.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new i.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,n.string2buf=function(t){var e,n,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,a=e||t.length,c=new Array(2*a);for(n=i=0;n<a;)if((r=t[n++])<128)c[i++]=r;else if(4<(o=s[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<a;)r=r<<6|63&t[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t,o=t>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(r=r+e[i++]|0)|0,--s;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return~t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),l=t("./messages"),c=-2,u=258,d=262,h=113;function p(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function m(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function v(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function w(t,e){var n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,c=t.window,h=t.w_mask,p=t.prev,f=t.strstart+u,g=c[o+s-1],m=c[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+s]===m&&c[n+s-1]===g&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(i=u-(f-o),o=f-u,s<i){if(t.match_start=e,a<=(s=i))break;g=c[o+s-1],m=c[o+s]}}}while((e=p[e&h])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function A(t){var e,n,i,o,l,c,u,h,p,f,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-d)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;i=t.head[--e],t.head[e]=g<=i?i-g:0,--n;);for(e=n=g;i=t.prev[--e],t.prev[e]=g<=i?i-g:0,--n;);o+=g}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,f=void 0,(p=o)<(f=c.avail_in)&&(f=p),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=s(c.adler,u,f,h):2===c.state.wrap&&(c.adler=a(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function x(t,e){for(var n,i;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n)),t.match_length>=3)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function C(t,e){for(var n,i,r;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function M(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function L(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):p(t,c)}function _(t){var e=I(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function S(t,e,n,i,o,s){if(!t)return c;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),o<1||9<o||8!==n||i<8||15<i||e<0||9<e||s<0||4<s)return p(t,c);8===i&&(i=9);var l=new L;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=n,_(t)}i=[new M(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(A(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)})),new M(4,4,8,4,x),new M(4,5,16,8,x),new M(4,6,32,32,x),new M(4,4,16,16,C),new M(8,16,32,32,C),new M(8,16,128,128,C),new M(8,32,128,256,C),new M(32,128,258,1024,C),new M(32,258,258,4096,C)],n.deflateInit=function(t,e){return S(t,e,8,15,8,0)},n.deflateInit2=S,n.deflateReset=_,n.deflateResetKeep=I,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,0):c},n.deflate=function(t,e){var n,r,s,l;if(!t||!t.state||5<e||e<0)return t?p(t,c):c;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return p(t,0===t.avail_out?-5:c);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,b(r,d),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return p(t,-5);if(666===r.status&&0!==t.avail_in)return p(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var w=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(A(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,s,a=t.window;;){if(t.lookahead<=u){if(A(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){s=t.strstart+u;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<s);t.match_length=u-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==w&&4!==w||(r.status=666),1===w||3===w)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===w&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),m(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?p(t,c):(t.state=null,e===h?p(t,-3):0):c},n.deflateSetDictionary=function(t,e){var n,i,o,a,l,u,d,h,p=e.length;if(!t||!t.state)return c;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return c;for(1===a&&(t.adler=s(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,u=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,A(n);n.lookahead>=3;){for(i=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=2,A(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=d,t.avail_in=l,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I;n=t.state,i=t.next_in,L=t.input,r=i+(t.avail_in-5),o=t.next_out,I=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=w=b>>>24,f-=w,0==(w=b>>>16&255))I[o++]=65535&b;else{if(!(16&w)){if(!(64&w)){b=g[(65535&b)+(p&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}A=65535&b,(w&=15)&&(f<w&&(p+=L[i++]<<f,f+=8),A+=p&(1<<w)-1,p>>>=w,f-=w),f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=w=b>>>24,f-=w,!(16&(w=b>>>16&255))){if(!(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,f<(w&=15)&&(p+=L[i++]<<f,(f+=8)<w&&(p+=L[i++]<<f,f+=8)),l<(x+=p&(1<<w)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=w,f-=w,(w=o-s)<x){if(u<(w=x-w)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(M=h,(C=0)===d){if(C+=c-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}}else if(d<w){if(C+=c+d-w,(w-=d)<A){for(A-=w;I[o++]=h[C++],--w;);if(C=0,d<A){for(A-=w=d;I[o++]=h[C++],--w;);C=o-x,M=I}}}else if(C+=d-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}for(;2<A;)I[o++]=M[C++],I[o++]=M[C++],I[o++]=M[C++],A-=3;A&&(I[o++]=M[C++],1<A&&(I[o++]=M[C++]))}else{for(C=o-x;I[o++]=I[C++],I[o++]=I[C++],I[o++]=I[C++],2<(A-=3););A&&(I[o++]=I[C++],1<A&&(I[o++]=I[C++]))}break}}break}}while(i<r&&o<a);i-=A=f>>3,p&=(1<<(f-=A<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),l=-2;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function p(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function f(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=p(t,e))&&(t.state=null),n):l}var g,m,v=!0;function y(t){if(v){var e;for(g=new i.Buf32(512),m=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),v=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function b(t,e,n,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),r>=s.wsize?(i.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r<(o=s.wsize-s.wnext)&&(o=r),i.arraySet(s.window,e,n-r,o,s.wnext),(r-=o)?(i.arraySet(s.window,e,n-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(t){return f(t,15)},n.inflateInit2=f,n.inflate=function(t,e){var n,u,d,h,p,f,g,m,v,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=0,z=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,w=f,A=g,j=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(2&n.wrap&&35615===m){z[n.check=0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,D=8+(15&(m>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,z[2]=m>>>16&255,z[3]=m>>>24&255,n.check=o(n.check,z,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(x=n.length)&&(x=f),x&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,h,x,D)),512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,n.length-=x),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}t.adler=n.check=c(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==e)break;m>>>=2,v-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(x=n.length){if(f<x&&(x=f),g<x&&(x=g),0===x)break t;i.arraySet(d,u,h,x,p),f-=x,h+=x,g-=x,p+=x,n.length-=x;break}n.mode=12;break;case 17:for(;v<14;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},j=a(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(_<16)m>>>=L,v-=L,n.lens[n.have++]=_;else{if(16===_){for(O=L+2;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m>>>=L,v-=L,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],x=3+(3&m),m>>>=2,v-=2}else if(17===_){for(O=L+3;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=3+(7&(m>>>=L)),m>>>=3,v-=3}else{for(O=L+7;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=11+(127&(m>>>=L)),m>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},j=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},j=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,j){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=f&&258<=g){t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,s(t,A),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(I&&!(240&I)){for(S=L,k=I,T=_;I=(E=n.lencode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,n.length=_,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(E=n.distcode[m&(1<<n.distbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(!(240&I)){for(S=L,k=I,T=_;I=(E=n.distcode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,64&I){t.msg="invalid distance code",n.mode=30;break}n.offset=_,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(x=A-g,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}C=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),M=n.window}else M=d,C=p-n.offset,x=n.length;for(g<x&&(x=g),g-=x,n.length-=x;d[p++]=M[C++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===f)break t;f--,m|=u[h++]<<v,v+=8}if(A-=g,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?o(n.check,d,A,p-A):r(n.check,d,A,p-A)),A=g,(n.flags?m:c(m))!==n.check){t.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:j=1;break t;case 30:j=-3;break t;case 31:return-4;default:return l}return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&b(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,A-=t.avail_out,t.total_in+=w,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?o(n.check,d,A,t.next_out-A):r(n.check,d,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===A||4===e)&&0===j&&(j=-5),j)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:b(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[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],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[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,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,h){var p,f,g,m,v,y,b,w,A,x=h.bits,C=0,M=0,L=0,I=0,_=0,S=0,k=0,T=0,D=0,j=0,N=null,O=0,E=new i.Buf16(16),z=new i.Buf16(16),F=null,R=0;for(C=0;C<=15;C++)E[C]=0;for(M=0;M<l;M++)E[e[n+M]]++;for(_=x,I=15;1<=I&&0===E[I];I--);if(I<_&&(_=I),0===I)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(L=1;L<I&&0===E[L];L++);for(_<L&&(_=L),C=T=1;C<=15;C++)if(T<<=1,(T-=E[C])<0)return-1;if(0<T&&(0===t||1!==I))return-1;for(z[1]=0,C=1;C<15;C++)z[C+1]=z[C]+E[C];for(M=0;M<l;M++)0!==e[n+M]&&(d[z[e[n+M]]++]=M);if(y=0===t?(N=F=d,19):1===t?(N=r,O-=257,F=o,R-=257,256):(N=s,F=a,-1),C=L,v=u,k=M=j=0,g=-1,m=(D=1<<(S=_))-1,1===t&&852<D||2===t&&592<D)return 1;for(;;){for(b=C-k,A=d[M]<y?(w=0,d[M]):d[M]>y?(w=F[R+d[M]],N[O+d[M]]):(w=96,0),p=1<<C-k,L=f=1<<S;c[v+(j>>k)+(f-=p)]=b<<24|w<<16|A,0!==f;);for(p=1<<C-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,M++,0==--E[C]){if(C===I)break;C=e[n+d[M]]}if(_<C&&(j&m)!==g){for(0===k&&(k=_),v+=L,T=1<<(S=C-k);S+k<I&&!((T-=E[S+k])<=0);)S++,T<<=1;if(D+=1<<S,1===t&&852<D||2===t&&592<D)return 1;c[g=j&m]=_<<24|S<<16|v-u}}return 0!==j&&(c[v+j]=C-k<<24|64<<16),h.bits=_,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var o=256,s=286,a=30,l=15,c=[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],u=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,w,A=new Array(a);function x(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?g[t]:g[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function I(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function _(t,e,n){I(t,n[2*e],n[2*e+1])}function S(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function k(t,e,n){var i,r,o=new Array(16),s=0;for(i=1;i<=l;i++)o[i]=s=s+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function T(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function D(t){8<t.bi_valid?L(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function N(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&j(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!j(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function O(t,e,n){var i,r,s,a,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?_(t,r,e):(_(t,(s=m[r])+o+1,e),0!==(a=c[s])&&I(t,r-=v[s],a),_(t,s=M(--i),n),0!==(a=u[s])&&I(t,i-=A[s],a)),l<t.last_lit;);_(t,256,e)}function E(t,e){var n,i,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)N(t,o,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,N(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,s,a,c=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(t.bl_count[o]++,s=0,f<=i&&(s=p[i-f]),a=c[2*i],t.opt_len+=a*(o+s),h&&(t.static_len+=a*(d[2*i+1]+s)));if(0!==m){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=t.bl_count[o];0!==i;)u<(r=t.heap[--n])||(c[2*r+1]!==o&&(t.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(t,e),k(o,u,t.bl_count)}function z(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],++a<l&&r===s||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4))}function F(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a<l&&r===s)){if(a<c)for(;_(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==o&&(_(t,r,t.bl_tree),a--),_(t,16,t.bl_tree),I(t,a-3,2)):a<=10?(_(t,17,t.bl_tree),I(t,a-3,3)):(_(t,18,t.bl_tree),I(t,a-11,7));o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4)}}r(A);var R=!1;function P(t,e,n,r){I(t,0+(r?1:0),3),function(t,e,n){D(t),L(t,n),L(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){R||(function(){var t,e,n,i,r,o=new Array(16);for(i=n=0;i<28;i++)for(v[i]=n,t=0;t<1<<c[i];t++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,t=0;t<1<<u[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(A[i]=r<<7,t=0;t<1<<u[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,o[8]++;for(;t<=255;)p[2*t+1]=9,t++,o[9]++;for(;t<=279;)p[2*t+1]=7,t++,o[7]++;for(;t<=287;)p[2*t+1]=8,t++,o[8]++;for(k(p,287,o),t=0;t<a;t++)f[2*t+1]=5,f[2*t]=S(t,5);y=new x(p,c,257,s,l),b=new x(f,u,0,a,l),w=new x(new Array(0),d,0,19,7)}(),R=!0),t.l_desc=new C(t.dyn_ltree,y),t.d_desc=new C(t.dyn_dtree,b),t.bl_desc=new C(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,T(t)},n._tr_stored_block=P,n._tr_flush_block=function(t,e,n,i){var r,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),E(t,t.l_desc),E(t,t.d_desc),a=function(t){var e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),E(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=n+5,n+4<=r&&-1!==e?P(t,e,n,i):4===t.strategy||s===r?(I(t,2+(i?1:0),3),O(t,p,f)):(I(t,4+(i?1:0),3),function(t,e,n,i){var r;for(I(t,e-257,5),I(t,n-1,5),I(t,i-4,4),r=0;r<i;r++)I(t,t.bl_tree[2*h[r]+1],3);F(t,t.dyn_ltree,e-1),F(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),O(t,t.dyn_ltree,t.dyn_dtree)),T(t),i&&D(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+o+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){I(t,2,3),_(t,256,p),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t){"use strict";if(!t.setImmediate){var e,n,i,r,o=1,s={},a=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,e="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(r="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),i=0;i<n.length;i++)n[i]=arguments[i+1];var r={callback:t,args:n};return s[o]=r,e(o),o++},c.clearImmediate=u}function u(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var e=s[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(undefined,n)}}(e)}finally{u(t),a=!1}}}}function h(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},998:(t,e,n)=>{var i,r;!function(){var o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=function(t){var e=new E.Builder;return e.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),e.searchPipeline.add(E.stemmer),t.call(e,e),e.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(t){o.console&&console.warn&&console.warn(t)}),E.utils.asString=function(t){return null==t?"":t.toString()},E.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],o=t[r];if(Array.isArray(o))e[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");e[r]=o}}return e},E.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(t){var e=t.indexOf(E.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new E.FieldRef(i,n,t)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},E.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},E.Set.prototype.contains=function(t){return!!this.elements[t]},E.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===E.Set.complete)return this;if(t===E.Set.empty)return t;this.length<t.length?(e=this,n=t):(e=t,n=this),i=Object.keys(e.elements);for(var o=0;o<i.length;o++){var s=i[o];s in n.elements&&r.push(s)}return new E.Set(r)},E.Set.prototype.union=function(t){return t===E.Set.complete?E.Set.complete:t===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},E.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(t,e){this.str=t||"",this.metadata=e||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},E.Token.prototype.clone=function(t){return t=t||function(t){return t},new E.Token(t(this.str,this.metadata),this.metadata)},E.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map((function(t){return new E.Token(E.utils.asString(t).toLowerCase(),E.utils.clone(e))}));for(var n=t.toString().toLowerCase(),i=n.length,r=[],o=0,s=0;o<=i;o++){var a=o-s;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(a>0){var l=E.utils.clone(e)||{};l.position=[s,a],l.index=r.length,r.push(new E.Token(n.slice(s,o),l))}s=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+e),t.label=e,E.Pipeline.registeredFunctions[t.label]=t},E.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},E.Pipeline.load=function(t){var e=new E.Pipeline;return t.forEach((function(t){var n=E.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(t){E.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},E.Pipeline.prototype.after=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},E.Pipeline.prototype.before=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},E.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},E.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],o=0;o<t.length;o++){var s=i(t[o],o,t);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)r.push(s[a]);else r.push(s)}t=r}return t},E.Pipeline.prototype.runString=function(t,e){var n=new E.Token(t,e);return this.run([n]).map((function(t){return t.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(t){return E.Pipeline.warnIfFunctionNotRegistered(t),t.label}))},E.Vector=function(t){this._magnitude=0,this.elements=t||[]},E.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<t&&(e=r),o>t&&(n=r),o!=t);)i=n-e,r=e+Math.floor(i/2),o=this.elements[2*r];return o==t||o>t?2*r:o<t?2*(r+1):void 0},E.Vector.prototype.insert=function(t,e){this.upsert(t,e,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},E.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,o=i.length,s=0,a=0,l=0,c=0;l<r&&c<o;)(s=n[l])<(a=i[c])?l+=2:s>a?c+=2:s==a&&(e+=n[l+1]*i[c+1],l+=2,c+=2);return e},E.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,p="^("+c+")?"+l,f=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(p),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,A=/^(.+?)(ed|ing)$/,x=/.$/,C=/(at|bl|iz)$/,M=new RegExp("([^aeiouylsz])\\1$"),L=new RegExp("^"+c+l+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,S=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,k=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,j=/ll$/,N=new RegExp("^"+c+l+"[^aeiouwxy]$"),O=function(t){var e,n,i,r,o,l,c;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),o=b,(r=y).test(t)?t=t.replace(r,"$1$2"):o.test(t)&&(t=t.replace(o,"$1$2")),o=A,(r=w).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=x,t=t.replace(r,""))}else o.test(t)&&(e=(u=o.exec(t))[1],(o=v).test(e)&&(l=M,c=L,(o=C).test(t=e)?t+="e":l.test(t)?(r=x,t=t.replace(r,"")):c.test(t)&&(t+="e")));return(r=I).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=_).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+s[n])),(r=S).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+a[n])),o=T,(r=k).test(t)?(e=(u=r.exec(t))[1],(r=g).test(e)&&(t=e)):o.test(t)&&(e=(u=o.exec(t))[1]+u[2],(o=g).test(e)&&(t=e)),(r=D).test(t)&&(e=(u=r.exec(t))[1],o=m,l=N,((r=g).test(e)||o.test(e)&&!l.test(e))&&(t=e)),o=g,(r=j).test(t)&&o.test(t)&&(r=x,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t},function(t){return t.update(O)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(t){var e=t.reduce((function(t,e){return t[e]=e,t}),{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(t){return t.update((function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(t){for(var e=new E.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},E.TokenSet.fromClause=function(t){return"editDistance"in t?E.TokenSet.fromFuzzyString(t.term,t.editDistance):E.TokenSet.fromString(t.term)},E.TokenSet.fromFuzzyString=function(t,e){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(r.str.length>0){var o,s=r.str.charAt(0);s in r.node.edges?o=r.node.edges[s]:(o=new E.TokenSet,r.node.edges[s]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else a=new E.TokenSet,r.node.edges["*"]=a;if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(t){for(var e=new E.TokenSet,n=e,i=0,r=t.length;i<r;i++){var o=t[i],s=i==r-1;if("*"==o)e.edges[o]=e,e.final=s;else{var a=new E.TokenSet;a.final=s,e.edges[o]=a,e=a}}return n},E.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var o=0;o<r;o++){var s=i[o];e.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return t},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},E.TokenSet.prototype.intersect=function(t){for(var e=new E.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,s=Object.keys(n.node.edges),a=s.length,l=0;l<o;l++)for(var c=r[l],u=0;u<a;u++){var d=s[u];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],f=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||f:((g=new E.TokenSet).final=f,n.output.edges[d]=g),i.push({qNode:p,output:g,node:h})}}}return e},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;for(this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<t.length;i++){var r=new E.TokenSet,o=t[i];e.edges[o]=r,this.uncheckedNodes.push({parent:e,char:o,child:r}),e=r}e.final=!0,this.previousWord=t},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},E.Index.prototype.search=function(t){return this.query((function(e){new E.QueryParser(t,e).parse()}))},E.Index.prototype.query=function(t){for(var e=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;for(t.call(e,e),a=0;a<e.clauses.length;a++){var l,c=e.clauses[a],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var p=E.TokenSet.fromClause(c),f=this.tokenSet.intersect(p).toArray();if(0===f.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<f.length;m++){var v=f[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var w=y[D=c.fields[g]],A=Object.keys(w),x=v+"/"+D,C=new E.Set(A);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(C),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(t,e){return t+e})),!r[x]){for(var M=0;M<A.length;M++){var L,I=A[M],_=new E.FieldRef(I,D),S=w[I];void 0===(L=n[_])?n[_]=new E.MatchData(v,D,S):L.add(v,D,S)}r[x]=!0}}else void 0===s[D]&&(s[D]=E.Set.empty),s[D]=s[D].union(C)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var k=E.Set.complete,T=E.Set.empty;for(a=0;a<this.fields.length;a++){var D;o[D=this.fields[a]]&&(k=k.intersect(o[D])),s[D]&&(T=T.union(s[D]))}var j=Object.keys(n),N=[],O=Object.create(null);if(e.isNegated())for(j=Object.keys(this.fieldVectors),a=0;a<j.length;a++){_=j[a];var z=E.FieldRef.fromString(_);n[_]=new E.MatchData}for(a=0;a<j.length;a++){var F=(z=E.FieldRef.fromString(j[a])).docRef;if(k.contains(F)&&!T.contains(F)){var R,P=this.fieldVectors[z],Y=i[z.fieldName].similarity(P);if(void 0!==(R=O[F]))R.score+=Y,R.matchData.combine(n[z]);else{var U={ref:F,score:Y,matchData:n[z]};O[F]=U,N.push(U)}}}return N.sort((function(t,e){return e.score-t.score}))},E.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map((function(t){return[t,this.invertedIndex[t]]}),this),e=Object.keys(this.fieldVectors).map((function(t){return[t,this.fieldVectors[t].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},E.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),o=t.invertedIndex,s=new E.TokenSet.Builder,a=E.Pipeline.load(t.pipeline);t.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],p=d[1];s.insert(h),r[h]=p}return s.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=s.root,e.pipeline=a,new E.Index(e)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(t){this._ref=t},E.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},E.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},E.Builder.prototype.k1=function(t){this._k1=t},E.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],s=this._fields[o].extractor,a=s?s(t):t[o],l=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var f=Object.create(null);f._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)f[i[g]]=Object.create(null);this.invertedIndex[p]=f}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=p.metadata[v];null==this.invertedIndex[p][o][n][v]&&(this.invertedIndex[p][o][n][v]=[]),this.invertedIndex[p][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var o=E.FieldRef.fromString(t[r]),s=o.fieldName;i[s]||(i[s]=0),i[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var l=a[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(e[r]),s=o.fieldName,a=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[s].boost||1,p=this._documents[o.docRef].boost||1,f=0;f<d;f++){var g,m,v,y=u[f],b=c[y],w=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+b),m*=h,m*=p,v=Math.round(1e3*m)/1e3,l.insert(w,v)}t[o]=l}this.fieldVectors=t},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},E.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var s=r[o];i[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},E.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var s=r[o],a=Object.keys(t.metadata[i][s]);null==this.metadata[i][s]&&(this.metadata[i][s]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[i][s][c]?this.metadata[i][s][c]=t.metadata[i][s][c]:this.metadata[i][s][c]=this.metadata[i][s][c].concat(t.metadata[i][s][c])}}}},E.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[t][e]?this.metadata[t][e][o]=this.metadata[t][e][o].concat(n[o]):this.metadata[t][e][o]=n[o]}else this.metadata[t][e]=n},E.Query=function(t){this.clauses=[],this.allFields=t},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=E.Query.wildcard.NONE),t.wildcard&E.Query.wildcard.LEADING&&t.term.charAt(0)!=E.Query.wildcard&&(t.term="*"+t.term),t.wildcard&E.Query.wildcard.TRAILING&&t.term.slice(-1)!=E.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=E.Query.presence.OPTIONAL),this.clauses.push(t),this},E.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach((function(t){this.term(t,E.utils.clone(e))}),this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},E.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var t=E.QueryLexer.lexText;t;)t=t(this)},E.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},E.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(t){return t.backup(),t.emit(E.QueryLexer.FIELD),t.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(E.QueryLexer.TERM)),t.ignore(),t.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return E.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(e.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else t.escapeCharacter()}},E.QueryParser=function(t,e){this.lexer=new E.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=E.QueryParser.parseClause;t;)t=t(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},E.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},E.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new E.QueryParseError(n,e.start,e.end)}},E.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new E.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,e.start,e.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,e.start,e.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else t.nextClause()}},E.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},E.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(e,n,e,t):i)||(t.exports=r)}()},420:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function h(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Ne(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=f(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(t,e){var n,i,r,o=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=f(e)),l(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)l(r=e[i=v[n]])||(t[i]=r);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,a,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var M,L={};function I(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),L[t]||(x(e),L[t]=!0)}function _(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t,e){var n,i=h({},t);for(n in e)s(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)s(t,n)&&!s(e,n)&&o(t[n])&&(i[n]=h({},i[n]));return i}function k(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};function T(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},O={};function E(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(O[t]=r),e&&(O[e[0]]=function(){return T(r.apply(this,arguments),e[1],e[2])}),n&&(O[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=F(e,t.localeData()),N[e]=N[e]||function(t){var e,n,i,r=t.match(D);for(e=0,n=r.length;e<n;e++)O[r[e]]?r[e]=O[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=_(r[i])?r[i].call(e,t):r[i];return o}}(e),N[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;n>=0&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function Y(t){var e,n,i={};for(n in t)s(t,n)&&(e=P(n))&&(i[e]=t[n]);return i}var U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var W,B=/\d/,Z=/\d\d/,H=/\d{3}/,G=/\d{4}/,V=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,tt=/\d+/,et=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot=/^[1-9]\d?/,st=/^([1-9]\d|\d)/;function at(t,e,n){W[t]=_(e)?e:function(t,i){return t&&n?n:e}}function lt(t,e){return s(W,t)?W[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ut(e)),n}W={};var ht={};function pt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=dt(t)}),i=t.length,n=0;n<i;n++)ht[t[n]]=r}function ft(t,e){pt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function gt(t,e,n){null!=e&&s(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,yt=1,bt=2,wt=3,At=4,xt=5,Ct=6,Mt=7,Lt=8;function It(t){return mt(t)?366:365}E("Y",0,0,(function(){var t=this.year();return t<=9999?T(t,4):"+"+t})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),at("Y",et),at("YY",Q,Z),at("YYYY",K,G),at("YYYYY",$,V),at("YYYYYY",$,V),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),pt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var _t,St=kt("FullYear",!0);function kt(t,e){return function(n){return null!=n?(Dt(this,t,n),i.updateOffset(this,e),this):Tt(this,t)}}function Tt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Dt(t,e,n){var i,r,o,s,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=29!==(a=t.date())||1!==s||mt(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?mt(t)?29:28:31-i%7%2}_t=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),E("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),at("M",Q,ot),at("MM",Q,Z),at("MMM",(function(t,e){return e.monthsShortRegex(t)})),at("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[yt]=dt(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=rt,Ft=rt;function Rt(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))||-1!==(r=_t.call(this._longMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))||-1!==(r=_t.call(this._shortMonthsParse,s))?r:null}function Pt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,jt(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function Yt(t){return null!=t?(Pt(this,t),i.updateOffset(this,!0),this):Tt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,n,i,r,o=[],s=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i=ct(this.monthsShort(n,"")),r=ct(this.months(n,"")),o.push(i),s.push(r),a.push(r),a.push(i);o.sort(t),s.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Wt(t,e,n,i,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function Bt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Zt(t,e,n){var i=7+e-n;return-(7+Bt(t,0,i).getUTCDay()-e)%7+i-1}function Ht(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+Zt(t,i,r);return a<=0?s=It(o=t-1)+a:a>It(t)?(o=t+1,s=a-It(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Gt(t,e,n){var i,r,o=Zt(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Vt(r=t.year()-1,e,n):s>Vt(t.year(),e,n)?(i=s-Vt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Vt(t,e,n){var i=Zt(t,e,n),r=Zt(t+1,e,n);return(It(t)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),at("w",Q,ot),at("ww",Q,Z),at("W",Q,ot),at("WW",Q,Z),ft(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=dt(t)}));function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}E("d",0,"do","day"),E("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),E("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),E("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),at("d",Q),at("e",Q),at("E",Q),at("dd",(function(t,e){return e.weekdaysMinRegex(t)})),at("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),at("dddd",(function(t,e){return e.weekdaysRegex(t)})),ft(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),ft(["d","e","E"],(function(t,e,n,i){e[i]=dt(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kt=rt,$t=rt,te=rt;function ee(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null}function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=ct(this.weekdaysMin(n,"")),r=ct(this.weekdaysShort(n,"")),o=ct(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);s.sort(t),a.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){E(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function oe(t,e){return e._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,ie),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),re("a",!0),re("A",!1),at("a",oe),at("A",oe),at("H",Q,st),at("h",Q,ot),at("k",Q,ot),at("HH",Q,Z),at("hh",Q,Z),at("kk",Q,Z),at("hmm",J),at("hmmss",X),at("Hmm",J),at("Hmmss",X),pt(["H","HH"],wt),pt(["k","kk"],(function(t,e,n){var i=dt(t);e[wt]=24===i?0:i})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[wt]=dt(t),f(n).bigHour=!0})),pt("hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i)),f(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r)),f(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i))})),pt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r))}));var se=kt("Hours",!0);var ae,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:qt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ce={},ue={};function de(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function he(t){return t?t.toLowerCase().replace("_","-"):t}function pe(e){var n=null;if(void 0===ce[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ae._abbr,Object(function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}()),fe(n)}catch(t){ce[e]=null}return ce[e]}function fe(t,e){var n;return t&&((n=l(e)?me(t):ge(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function ge(t,e){if(null!==e){var n,i=le;if(e.abbr=t,null!=ce[t])I("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ce[t]._config;else if(null!=e.parentLocale)if(null!=ce[e.parentLocale])i=ce[e.parentLocale]._config;else{if(null==(n=pe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ce[t]=new k(S(i,e)),ue[t]&&ue[t].forEach((function(t){ge(t.name,t.config)})),fe(t),ce[t]}return delete ce[t],null}function me(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!r(t)){if(e=pe(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=he(t[o]).split("-")).length,n=(n=he(t[o+1]))?n.split("-"):null;e>0;){if(i=pe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&de(r,n)>=e-1)break;e--}o++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>jt(n[vt],n[yt])?bt:n[wt]<0||n[wt]>24||24===n[wt]&&(0!==n[At]||0!==n[xt]||0!==n[Ct])?wt:n[At]<0||n[At]>59?At:n[xt]<0||n[xt]>59?xt:n[Ct]<0||n[Ct]>999?Ct:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Mt),f(t)._overflowWeekday&&-1===e&&(e=Lt),f(t).overflow=e),t}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ce=/^\/?Date\((-?\d+)/i,Me=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Le={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ie(t){var e,n,i,r,o,s,a=t._i,l=ye.exec(a)||be.exec(a),c=Ae.length,u=xe.length;if(l){for(f(t).iso=!0,e=0,n=c;e<n;e++)if(Ae[e][1].exec(l[1])){r=Ae[e][0],i=!1!==Ae[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(xe[e][1].exec(l[3])){o=(l[2]||" ")+xe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!we.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),De(t)}else t._isValid=!1}function _e(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Se(t){var e,n,i,r,o,s,a,l,c=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],s=c[6],a=c[7],l=[_e(n),Ot.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),e=l,!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Le[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),t._d=Bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ke(t,e,n){return null!=t?t:null!=e?e:n}function Te(t){var e,n,r,o,s,a=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,i,r,o,s,a,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=ke(e.GG,t._a[vt],Gt(Oe(),1,4).year),i=ke(e.W,1),((r=ke(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,c=Gt(Oe(),o,s),n=ke(e.gg,t._a[vt],c.year),i=ke(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Vt(n,o,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Ht(n,i,r,o,s),t._a[vt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ke(t._a[vt],r[vt]),(t._dayOfYear>It(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Bt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[At]&&0===t._a[xt]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Bt:Wt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function De(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,s,a,l,c=""+t._i,u=c.length,d=0;for(l=(r=F(t._f,t._locale).match(D)||[]).length,e=0;e<l;e++)o=r[e],(n=(c.match(lt(o,t))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&f(t).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),d+=n.length),O[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),gt(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-d,c.length>0&&f(t).unusedInput.push(c),t._a[wt]<=12&&!0===f(t).bigHour&&t._a[wt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(a=f(t).era)&&(t._a[vt]=t._locale.erasConvertYear(a,t._a[vt])),Te(t),ve(t)}else Se(t);else Ie(t)}function je(t){var e=t._i,n=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ve(e)):(u(e)?t._d=e:r(n)?function(t){var e,n,i,r,o,s,a=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],De(e),g(e)&&(s=!0),o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,a?o<i&&(i=o,n=e):(null==i||o<i||s)&&(i=o,n=e,s&&(a=!0));h(t,n||e)}(t):n?De(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ce.exec(t._i);null===e?(Ie(t),!1===t._isValid&&(delete t._isValid,Se(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Te(t)):o(e)?function(t){if(!t._d){var e=Y(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Te(t)}}(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),g(t)||(t._d=null),t))}function Ne(t,e,n,i,s){var l,c={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=t,c._f=e,c._strict=i,(l=new w(ve(je(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Oe(t,e,n,i){return Ne(t,e,n,i,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ee=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),ze=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Fe(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Oe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=Y(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Re.length;for(e in t)if(s(t,e)&&(-1===_t.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Re[n]]){if(i)return!1;parseFloat(t[Re[n]])!==dt(t[Re[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=me(),this._bubble()}function Ye(t){return t instanceof Pe}function Ue(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){E(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+T(~~(t/60),2)+e+T(~~t%60,2)}))}We("Z",":"),We("ZZ",""),at("Z",it),at("ZZ",it),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ze(it,t)}));var Be=/([\+\-]|\d\d)/gi;function Ze(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Be)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?i:-i}function He(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(A(t)||u(t)?t.valueOf():Oe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Oe(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function Ve(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,o,a,l,u=t,d=null;return Ye(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=Qe.exec(t))?(n="-"===d[1]?-1:1,u={y:0,d:dt(d[bt])*n,h:dt(d[wt])*n,m:dt(d[At])*n,s:dt(d[xt])*n,ms:dt(Ue(1e3*d[Ct]))*n}):(d=Je.exec(t))?(n="-"===d[1]?-1:1,u={y:qe(d[2],n),M:qe(d[3],n),w:qe(d[4],n),d:qe(d[5],n),h:qe(d[6],n),m:qe(d[7],n),s:qe(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Oe(u.from),a=Oe(u.to),r=o.isValid()&&a.isValid()?(a=He(a,o),o.isBefore(a)?l=Ke(o,a):((l=Ke(a,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Pe(u),Ye(t)&&s(t,"_locale")&&(i._locale=t._locale),Ye(t)&&s(t,"_isValid")&&(i._isValid=t._isValid),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ke(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function $e(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(I(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),tn(this,Xe(n,i),t),this}}function tn(t,e,n,r){var o=e._milliseconds,s=Ue(e._days),a=Ue(e._months);t.isValid()&&(r=null==r||r,a&&Pt(t,Tt(t,"Month")+a*n),s&&Dt(t,"Date",Tt(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Xe.fn=Pe.prototype,Xe.invalid=function(){return Xe(NaN)};var en=$e(1,"add"),nn=$e(-1,"subtract");function rn(t){return"string"==typeof t||t instanceof String}function on(t){return A(t)||u(t)||rn(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&rn(t)})).length),e&&n}(t)||function(t){var e,n,i=o(t)&&!a(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||s(t,n);return i&&r}(t)||null==t}function sn(t,e){if(t.date()<e.date())return-sn(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function an(t){var e;return void 0===t?this._locale._abbr:(null!=(e=me(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(t,e){return(t%e+e)%e}function gn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function yn(){var t,e,n,i,r,o=[],s=[],a=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=ct(c[t].name),i=ct(c[t].abbr),r=ct(c[t].narrow),s.push(n),o.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function bn(t,e){E(0,[t,t.length],0,e)}function wn(t,e,n,i,r){var o;return null==t?Gt(this,i,r).year:(e>(o=Vt(t,i,r))&&(e=o),An.call(this,t,e,n,i,r))}function An(t,e,n,i,r){var o=Ht(t,e,n,i,r),s=Bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),at("N",vn),at("NN",vn),at("NNN",vn),at("NNNN",(function(t,e){return e.erasNameRegex(t)})),at("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),pt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),at("y",tt),at("yy",tt),at("yyy",tt),at("yyyy",tt),at("yo",(function(t,e){return e._eraYearOrdinalRegex||tt})),pt(["y","yy","yyy","yyyy"],vt),pt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),at("G",et),at("g",et),at("GG",Q,Z),at("gg",Q,Z),at("GGGG",K,G),at("gggg",K,G),at("GGGGG",$,V),at("ggggg",$,V),ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=dt(t)})),ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),E("Q",0,"Qo","quarter"),at("Q",B),pt("Q",(function(t,e){e[yt]=3*(dt(t)-1)})),E("D",["DD",2],"Do","date"),at("D",Q,ot),at("DD",Q,Z),at("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],bt),pt("Do",(function(t,e){e[bt]=dt(t.match(Q)[0])}));var xn=kt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),at("DDD",q),at("DDDD",H),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),E("m",["mm",2],0,"minute"),at("m",Q,st),at("mm",Q,Z),pt(["m","mm"],At);var Cn=kt("Minutes",!1);E("s",["ss",2],0,"second"),at("s",Q,st),at("ss",Q,Z),pt(["s","ss"],xt);var Mn,Ln,In=kt("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),at("S",q,B),at("SS",q,Z),at("SSS",q,H),Mn="SSSS";Mn.length<=9;Mn+="S")at(Mn,tt);function _n(t,e){e[Ct]=dt(1e3*("0."+t))}for(Mn="S";Mn.length<=9;Mn+="S")pt(Mn,_n);Ln=kt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var Sn=w.prototype;function kn(t){return t}Sn.add=en,Sn.calendar=function(t,e){1===arguments.length&&(arguments[0]?on(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=o(t)&&!a(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||s(t,r[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Oe(),r=He(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=e&&(_(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,Oe(n)))},Sn.clone=function(){return new w(this)},Sn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=sn(this,i)/12;break;case"month":o=sn(this,i);break;case"quarter":o=sn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:ut(o)},Sn.endOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hn-fn(e+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":e=this._d.valueOf(),e+=dn-fn(e,dn)-1;break;case"second":e=this._d.valueOf(),e+=un-fn(e,un)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},Sn.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.fromNow=function(t){return this.from(Oe(),t)},Sn.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.toNow=function(t){return this.to(Oe(),t)},Sn.get=function(t){return _(this[t=P(t)])?this[t]():this},Sn.invalidAt=function(){return f(this).overflow},Sn.isAfter=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Sn.isBefore=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Sn.isBetween=function(t,e,n,i){var r=A(t)?t:Oe(t),o=A(e)?e:Oe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},Sn.isSame=function(t,e){var n,i=A(t)?t:Oe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Sn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Sn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Sn.isValid=function(){return g(this)},Sn.lang=ln,Sn.locale=an,Sn.localeData=cn,Sn.max=ze,Sn.min=Ee,Sn.parsingFlags=function(){return h({},f(this))},Sn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=Y(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(_(this[t=P(t)]))return this[t](e);return this},Sn.startOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fn(e+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":e=this._d.valueOf(),e-=fn(e,dn);break;case"second":e=this._d.valueOf(),e-=fn(e,un)}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.subtract=nn,Sn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Sn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Sn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Sn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Sn.eraYear=function(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()},Sn.year=St,Sn.isLeapYear=function(){return mt(this.year())},Sn.weekYear=function(t){return wn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(t){return wn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Sn.month=Yt,Sn.daysInMonth=function(){return jt(this.year(),this.month())},Sn.week=Sn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Sn.isoWeek=Sn.isoWeeks=function(t){var e=Gt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Sn.weeksInYear=function(){var t=this.localeData()._week;return Vt(this.year(),t.dow,t.doy)},Sn.weeksInWeekYear=function(){var t=this.localeData()._week;return Vt(this.weekYear(),t.dow,t.doy)},Sn.isoWeeksInYear=function(){return Vt(this.year(),1,4)},Sn.isoWeeksInISOWeekYear=function(){return Vt(this.isoWeekYear(),1,4)},Sn.date=xn,Sn.day=Sn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Tt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Sn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Sn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Sn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Sn.hour=Sn.hours=se,Sn.minute=Sn.minutes=Cn,Sn.second=Sn.seconds=In,Sn.millisecond=Sn.milliseconds=Ln,Sn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ze(it,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ge(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?tn(this,Xe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ge(this)},Sn.utc=function(t){return this.utcOffset(0,t)},Sn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ze(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Oe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=Ve,Sn.isUTC=Ve,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=C("dates accessor is deprecated. Use date instead.",xn),Sn.months=C("months accessor is deprecated. Use month instead",Yt),Sn.years=C("years accessor is deprecated. Use year instead",St),Sn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Sn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=je(e))._a?(t=e._isUTC?p(e._a):Oe(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&dt(t[i])!==dt(e[i]))&&s++;return s+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=k.prototype;function Dn(t,e,n,i){var r=me(),o=p().set(i,e);return r[n](o,t)}function jn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Dn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(t,i,n,"month");return r}function Nn(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=me(),s=t?o._week.dow:0,a=[];if(null!=n)return Dn(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Dn(e,(r+s)%7,i,"day");return a}Tn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return _(i)?i.call(e,n):i},Tn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(t){return this._ordinal.replace("%d",t)},Tn.preparse=kn,Tn.postformat=kn,Tn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return _(r)?r(t,e,n,i):r.replace(/%d/i,t)},Tn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return _(n)?n(e):n.replace(/%s/i,e)},Tn.set=function(t){var e,n;for(n in t)s(t,n)&&(_(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(t,e){var n,r,o,s=this._eras||me("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s},Tn.erasParse=function(t,e,n){var i,r,o,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([o,s,a].indexOf(t)>=0)return l[i]},Tn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},Tn.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||yn.call(this),t?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(t){return s(this,"_erasNameRegex")||yn.call(this),t?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||yn.call(this),t?this._erasNarrowRegex:this._erasRegex},Tn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Tn.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(t){return Gt(t,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(n,this._week.dow):t?n[t.day()]:n},Tn.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Tn.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Tn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return ee.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Tn.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=te),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Tn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",fe),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",me);var On=Math.abs;function En(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Fn(t){return 4800*t/146097}function Rn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var Yn=Pn("ms"),Un=Pn("s"),Wn=Pn("m"),Bn=Pn("h"),Zn=Pn("d"),Hn=Pn("w"),Gn=Pn("M"),Vn=Pn("Q"),Qn=Pn("y"),Jn=Yn;function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var qn=Xn("milliseconds"),Kn=Xn("seconds"),$n=Xn("minutes"),ti=Xn("hours"),ei=Xn("days"),ni=Xn("months"),ii=Xn("years");var ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function si(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var ai=Math.abs;function li(t){return(t>0)-(t<0)||+t}function ci(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,s,a,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,n=ut(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=li(this._months)!==li(d)?"-":"",s=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?s+c+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Pe.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var t=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),t.milliseconds=On(t.milliseconds),t.seconds=On(t.seconds),t.minutes=On(t.minutes),t.hours=On(t.hours),t.months=On(t.months),t.years=On(t.years),this},ui.add=function(t,e){return En(this,t,e,1)},ui.subtract=function(t,e){return En(this,t,e,-1)},ui.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Rn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ui.asMilliseconds=Yn,ui.asSeconds=Un,ui.asMinutes=Wn,ui.asHours=Bn,ui.asDays=Zn,ui.asWeeks=Hn,ui.asMonths=Gn,ui.asQuarters=Vn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*zn(Rn(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=ut(o/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,n=ut(e/60),l.hours=n%24,s+=ut(n/24),a+=r=ut(Fn(s)),s-=zn(Rn(r)),i=ut(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},ui.clone=function(){return Xe(this)},ui.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},ui.milliseconds=qn,ui.seconds=Kn,ui.minutes=$n,ui.hours=ti,ui.days=ei,ui.weeks=function(){return ut(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=oi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},oi,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=Xe(t).abs(),o=ri(r.as("s")),s=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,si.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=an,ui.localeData=cn,ui.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),at("x",et),at("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),pt("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.30.1",e=Oe,i.fn=Sn,i.min=function(){return Fe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Fe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return Oe(1e3*t)},i.months=function(t,e){return jn(t,e,"months")},i.isDate=u,i.locale=fe,i.invalid=m,i.duration=Xe,i.isMoment=A,i.weekdays=function(t,e,n){return Nn(t,e,n,"weekdays")},i.parseZone=function(){return Oe.apply(null,arguments).parseZone()},i.localeData=me,i.isDuration=Ye,i.monthsShort=function(t,e){return jn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return Nn(t,e,n,"weekdaysMin")},i.defineLocale=ge,i.updateLocale=function(t,e){if(null!=e){var n,i,r=le;null!=ce[t]&&null!=ce[t].parentLocale?ce[t].set(S(ce[t]._config,e)):(null!=(i=pe(t))&&(r=i._config),e=S(r,e),null==i&&(e.abbr=t),(n=new k(e)).parentLocale=ce[t],ce[t]=n),fe(t)}else null!=ce[t]&&(null!=ce[t].parentLocale?(ce[t]=ce[t].parentLocale,t===fe()&&fe(t)):null!=ce[t]&&delete ce[t]);return ce[t]},i.locales=function(){return M(ce)},i.weekdaysShort=function(t,e,n){return Nn(t,e,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(t){return void 0===t?ri:"function"==typeof t&&(ri=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==oi[t]&&(void 0===e?oi[t]:(oi[t]=e,"s"===t&&(oi.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Sn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},366:t=>{"use strict";t.exports={}},768:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"UD$","unitFormatEUR":"€","unitFormatMXN":"MXN$","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"ceiniogau"}')},220:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"Llinyn","monetaryItemType":"Arianol","decimalItemType":"Degol","pureItemType":"Pur","sharesItemType":"Cyfranddaliadau"}')},800:t=>{"use strict";t.exports=JSON.parse('{"label":"Label Safonol","documentation":"Label Dogfennaeth","terseLabel":"Label tense","verboseLabel":"Label Verbose","positiveLabel":"Label Cadarnhaol","positiveTerseLabel":"Label Terse Positif","positiveVerboseLabel":"Label Verbose positif","negativeLabel":"Label negyddol","negativeTerseLabel":"Label Terse negyddol","negativeVerboseLabel":"Label Verbose negyddol","zeroLabel":"Label sero","zeroTerseLabel":"Label Sero Terse","zeroVerboseLabel":"Label Verbose Sero","totalLabel":"Label Cyfanswm","periodStartLabel":"Label Dechrau Cyfnod","periodEndLabel":"Label Diwedd Cyfnod","definitionGuidance":"Arweiniad Diffiniad","disclosureGuidance":"Canllawiau Datgelu","presentationGuidance":"Arweiniad Cyflwyno","measurementGuidance":"Canllawiau Mesur","commentaryGuidance":"Arweiniad Sylwadau","exampleGuidance":"Arweiniad Enghreifftiol"}')},10:t=>{"use strict";t.exports=JSON.parse('{"Name":"Enw","Number":"Rhif","IssueDate":"Dyddiad Cyhoeddi","Paragraph":"Paragraff","Subparagraph":"Is-baragraff","URI":"URI","URIDate":"Dyddiad URI","Note":"Nodyn"}')},407:t=>{"use strict";t.exports=JSON.parse('{"0":"rhai","1":"degau","2":"cannoedd","3":"miloedd","4":"deg mil","5":"can miloedd","6":"miliynau","7":"deg miliwn","8":"can miliynau","9":"biliynau","-3":"miloedd","-2":"canfedau","-1":"degfedau"}')},711:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Mae perthnasoedd angori yn darparu cysylltiadau rhwng cysyniadau ymestyn cwmni-benodol a chysyniadau safonol a ddiffinnir yn y tacsonomeg sylfaenol.","dimension":"Mae dimensiwn yn nodwedd gymhwyso a ddefnyddir i ddiffinio pwynt data yn unigryw.","conceptsCount":"Nifer y cysyniadau unigryw a ddefnyddiwyd yn yr adroddiad hwn.","dimensionsCount":"Nifer y dimensiynau unigryw a ddefnyddir yn yr adroddiad hwn.","fileSummary":"Rhestr o\'r ffeiliau sydd yn y ffeilio.","membersCount":"Nifer yr aelodau dimensiwn unigryw a ddefnyddiwyd yn yr adroddiad hwn.","scale":"Ar gyfer ffeithiau rhifol, y swm a ddefnyddir i raddio\'r gwerth a gyflwynir.","accuracy":"Y cywirdeb yr adroddir ffaith rifol iddo.","concept":"Elfen sy\'n diffinio ystyr ffaith yw cysyniad.","period":"Y cyfnod yr adroddir y ffaith hon yn ei erbyn. Gall hyn fod yn amrantiad neu\'n hyd, yn dibynnu ar natur y cysyniad.","references":"Gwybodaeth am y diffiniad awdurdodol o gysyniad. Mae cyfeiriadau fel arfer yn cyfeirio at safon gyfrifyddu.","calculations":"Perthnasoedd cyfrifo rhwng ffeithiau rhifol mewn adroddiad. Gellir defnyddio cydberthnasau cyfrifo i olrhain sut mae ffigurau mewn adroddiad treigl, a gellir eu defnyddio hefyd i wirio cysondeb y niferoedd a adroddir.","hiddenFacts":"Nifer y ffeithiau cudd yn yr adroddiad hwn. Mae ffeithiau cudd yn ffeithiau a adroddir fel data XBRL, ond nad ydynt yn cael eu dangos yn yr adroddiad a gyflwynir.","mandatoryFacts":"Nifer y ffeithiau gorfodol yn yr adroddiad hwn. Mae ffeithiau gorfodol yn ffeithiau y mae\'n ofynnol i\'r awdurdodaeth ffeilio adrodd arnynt.","namespace":"Defnyddir bylchau enw i rannu cysyniad, dimensiwn a diffiniadau aelodau. Os bydd adroddiad yn defnyddio unrhyw gysyniadau, dimensiynau neu aelodau sy\'n benodol i gwmni, caiff y rhain eu diffinio mewn gofod enw ar wahân. Gellir defnyddio bylchau enw hefyd i rannu tacsonomegau mawr."}')},474:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Wedi\'i gyfrifo","concept":"Cysyniad","consistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg cyson yn bresennol","does-not-bind":"Nid yw cyfrifo yn rhwymo","inconsistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg anghyson yn bresennol","maximum":"Uchafswm","minimum":"Isafswm","reported-total":"Adroddwyd","reported-value":"Gwerth a adroddwyd","useCalculations11":"Defnyddiwch Gyfrifiadau v1.1"},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Anfeidrol drachywiredd","none":"Dim","notApplicable":"n/a","unscaled":"Heb raddfa","unspecified":"Amhenodol"},"dialog":{"close":""},"factDetails":{"accuracy":"Cywirdeb","balance":"","calculationIsConsistent":"Mae\'r cyfrifiad yn gyson","calculationIsInconsistent":"Mae\'r cyfrifiad yn anghyson","calculationUnchecked":"Nid yw\'r cyfrifiad wedi\'i wirio oherwydd presenoldeb ffeithiau dyblyg","calculationUncheckedIncorrectVersion":"Cyfrifiad 1.1 perthnasau heb eu gwirio yn y modd cyfrifo etifeddiaeth","change":"Newid","changeFromIn":"Oddiwrth {{from}} mewn ","changePercentageDecrease":"{{decrease}}gostyngiad % ar ","changePercentageIncrease":"{{increase}}cynnydd % ar ","concept":"Cysyniad","datatype":"Math","date":"Dyddiad","dimensions":"Dimensiynau","duplicatesCount":"{{current}} o {{total}}","entity":"Endid","factValue":"Gwerth Ffaith","nonNumericFact":"ffaith nad yw\'n rhifol","noPriorFactInThisReport":"Dim ffaith flaenorol yn yr adroddiad hwn","noUnit":"<NOUNIT>","properties":"Priodweddau","scale":"Graddfa","viewCalculationDetails":"Gweld manylion y cyfrifiad"},"footnotes":{"footnote":"Troednodyn"},"inspector":{"anchoring":"Angori","associatedFacts":"Ffeithiau cysylltiedig","calculationDetails":"Manylion cyfrifo","calculations":"Cyfrifiadau","concealedFact":"Ffaith guddiedig","conceptType":"Math o Gysyniad","contributor":"Cyfranwr","datatypes":"Mathau data","dimensions":"Math Dimensiwn","documentOutline":"Amlinelliad o\'r ddogfen","documentSummary":"Crynodeb o\'r ddogfen","explicitDimension":"Dimensiynau Penodol","fact-groups":"Adrannau","factProperties":"Priodweddau Ffaith","factSearch":"Chwiliad Ffeithiau","factValue":"Gwerth Ffaith","footnoteProperties":"Priodweddau Troednodyn","footnotes":"Troednodiadau","hidden":"Gudd","hiddenFact":"Ffaith Gudd","highlight":"Uchafbwynt","initializing":"Cychwyn","ixbrlInspector":"","labels":"","loadingViewer":"Wrthi\'n llwytho Gwyliwr iXBRL","mandatoryFacts":"Dim ond Ffeithiau Gorfodol","namespaces":"Gofodau Enw","narrowerAnchor":"Angorau culach","negative":"Negyddol","nextTag":"Tag nesaf","noFactSelected":"Dim Ffaith wedi\'i Dewis","numericOption":"Rhifol","outlineUnavailable":"Amlinelliad Ddim ar gael","period":"Cyfnod","positive":"Cadarnhaol","previousTag":"Tag blaenorol","printDocument":"Argraffu Dogfen","references":"Cyfeiriadau","reset":"Ailosod","scales":"Graddfeydd","search":"Chwiliwch","searchReport":"","searchResults":"","searchTitle":"Chwiliwch","settingsMenu":"","showAnalysisChart":"","showTextOnly":"Dangos testun yn unig","summary":{"fact":{"header":"Crynodeb o Ffeithiau","hidden":"Ffeithiau cudd","mandatory":"Ffeithiau Gorfodol","total":"Cyfanswm y Ffeithiau"},"file":{"calculations":"Cronfeydd Cyswllt Cyfrifo","definitions":"Diffiniad Basau Cyswllt","header":"Crynodeb Ffeil","inline":"Dogfennau Mewnol","labels":"Label Linkbases","other":"Cronfeydd Cyswllt Eraill","presentation":"Basau Cyswllt Cyflwyniad","references":"Basau Cyswllt Cyfeiriad","schemas":"Sgemâu"},"reportCreation":"Creu Adroddiad","tag":{"colConcepts":"Cysyniadau","colDimensions":"Dimensiynau","colMembers":"Aelodau","colNamespace":"Gofod Enw","colTotal":"Cyfanswm","header":"Crynodeb Tag","rowTotal":"Cyfanswm"}},"summation":"Crynhoad","targetDocument":"Dogfen Darged","textOption":"Testun","typedDimensions":"Dimensiynau wedi\'u Teipio","units":"Unedau","validationCode":"Cod","validationMessage":"Neges","validationResults":"Canlyniadau dilysu","validationSeverity":"Difrifoldeb","visibility":"Gwelededd","visible":"Gweladwy","widerAnchor":"Angor ehangach","xbrlGlossaryOpensInNewTab":"Geirfa XBRL (yn agor mewn tab newydd)"},"menu":{"actions":"Gweithredoedd","applicationLanguage":"Iaith Cais","documentLanguage":"Iaith Dogfen","help":"Cymorth","options":"Opsiynau","contactUs":"Cysylltwch â Ni","survey":"Arolwg","userGuide":"Canllaw Defnyddiwr"},"search":{"concealedFact":"Ffaith guddiedig","dataTypeConflictWarning":"","default":"rhagosodedig","filter":"Hidlo","hiddenFact":"Ffaith gudd","matchingFactsSummary":"","noMatchFound":"Heb ganfod cyfatebiaeth","reset":"","selected":"dethol","showMoreResults":"Dangos mwy o ganlyniadau","toggleFilterControls":"","tryAgainDifferentKeywords":"Ceisiwch eto gyda geiriau allweddol gwahanol","viewFact":""},"toolbar":{"homePage":"Hafan","toggleDarkMode":"Toggle modd tywyll","xbrlElements":"Elfennau XBRL"},"viewer":{"ixbrlDocumentView":""}}')},531:t=>{"use strict";t.exports=JSON.parse('{"debit":"Debit","credit":"Credit"}')},85:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},335:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"Boolean","dateItemType":"Date","stringItemType":"String","monetaryItemType":"Monetary","decimalItemType":"Decimal","pureItemType":"Pure","sharesItemType":"Shares"}')},113:t=>{"use strict";t.exports=JSON.parse('{"label":"Standard Label","documentation":"Documentation Label"}')},343:t=>{"use strict";t.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},292:t=>{"use strict";t.exports=JSON.parse('{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"}')},694:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Anchoring relationships provide links between company-specific extension concepts and standard concepts defined in the base taxonomy.","dimension":"A dimension is a qualifying characteristic that is used to uniquely define a data point.","conceptsCount":"The number of unique concepts used in this report.","dimensionsCount":"The number of unique dimensions used in this report.","fileSummary":"A list of the files that are in the filing.","membersCount":"The number of unique dimension members used in this report.","scale":"For numeric facts, the amount by which the presented value is scaled.","accuracy":"The accuracy to which a numeric fact is reported.","concept":"A concept is an element that defines the meaning of a fact.","period":"The period against which this fact is reported. This can be either an instant or a duration, depending on the nature of the concept.","references":"Information about the authoritative definition of a concept. References typically refer to an accounting standard.","calculations":"Calculation relationships between numeric facts in a report. Calculation relationships can be used to trace how figures in a report roll-up, and can also be used to check the consistency of the reported numbers.","hiddenFacts":"The number of hidden facts in this report. Hidden facts are facts that are reported as XBRL data, but are not shown in the presented report.","mandatoryFacts":"The number of mandatory facts in this report. Mandatory facts are facts that are required to be reported by the filing jurisdiction.","namespace":"Namespaces are used to partition concept, dimension and member definitions. If a report uses any company-specific concepts, dimensions or members, these will be defined in a separate namespace. Namespaces can also be used to partition large taxonomies."}')},997:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","does-not-bind":"Calculation does not bind","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","minimum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"chart":{"comparisonChart":"Comparison chart"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"dialog":{"close":"close"},"factDetails":{"accuracy":"Accuracy","balance":"Balance","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","calculationUncheckedIncorrectVersion":"Calculation 1.1 relationships not checked in legacy calculation mode","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","datatype":"Type","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"Calculation details","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","datatypes":"Types","dimensions":"Dimension Type","documentOutline":"Document outline","documentSummary":"Document summary","explicitDimension":"Explicit Dimensions","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hidden":"Hidden","hiddenFact":"Hidden Fact","highlight":"Highlight","initializing":"Initializing","ixbrlInspector":"iXBRL Inspector","labels":"","loadingViewer":"Loading iXBRL Viewer","mandatoryFacts":"Only Mandatory Facts","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","search":"Search","searchReport":"Search iXBRL Report","searchResults":"Search Results","searchTitle":"Search","settingsMenu":"Settings Menu","showAnalysisChart":"Show analysis chart","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","hidden":"Hidden facts","mandatory":"Mandatory facts","total":"Total facts"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"reportCreation":"Report creation","tag":{"colConcepts":"Concepts","colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","targetDocument":"Target Document","textOption":"Text","typedDimensions":"Typed Dimensions","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibility":"Visibility","visible":"Visible","widerAnchor":"Wider anchor","xbrlGlossaryOpensInNewTab":"XBRL Glossary (opens in new tab)"},"menu":{"actions":"Actions","applicationLanguage":"Application Language","documentLanguage":"Document Language","help":"Help","options":"Options","contactUs":"Contact Us","survey":"Survey","userGuide":"User Guide"},"search":{"concealedFact":"Concealed fact","dataTypeConflictWarning":"Warning: selection conflicts with Concept Type filter","default":"default","filter":"Filter","hiddenFact":"Hidden fact","matchingFactsSummary":"Showing {{nMatches}} of {{nTotal}} facts","noMatchFound":"No match found","reset":"Reset","selected":"selected","showMoreResults":"Show more results","toggleFilterControls":"Toggler filter controls","tryAgainDifferentKeywords":"Try again with different keywords","viewFact":"View fact"},"toolbar":{"homePage":"Home","toggleDarkMode":"Toggle dark mode","xbrlElements":"XBRL Elements"},"viewer":{"ixbrlDocumentView":"iXBRL Document View"}}')},746:t=>{"use strict";t.exports=JSON.parse('{"debit":"","credit":""}')},476:t=>{"use strict";t.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},120:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"","monetaryItemType":"","decimalItemType":"","pureItemType":"","sharesItemType":""}')},364:t=>{"use strict";t.exports=JSON.parse('{"label":"Etiqueta estándar","documentation":"Etiqueta de documentación","terseLabel":"Etiqueta concisa","verboseLabel":"Etiqueta verbosa","positiveLabel":"Etiqueta positiva","positiveTerseLabel":"Etiqueta concisa positiva","positiveVerboseLabel":"Etiqueta verbosa positiva","negativeLabel":"Etiqueta negativa","negativeTerseLabel":"Etiqueta concisa negativa","negativeVerboseLabel":"Etiqueta verbosa negativa","zeroLabel":"Etiqueta cero","zeroTerseLabel":"Etiqueta Zero Terse","zeroVerboseLabel":"Etiqueta de verbosidad cero","totalLabel":"Etiqueta total","periodStartLabel":"Etiqueta de inicio del período","periodEndLabel":"Etiqueta de fin de período","definitionGuidance":"Orientación sobre la definición","disclosureGuidance":"Guía de divulgación","presentationGuidance":"Guía de presentación","measurementGuidance":"Guía de medición","commentaryGuidance":"Guía de comentarios","exampleGuidance":"Ejemplo de orientación"}')},6:t=>{"use strict";t.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},3:t=>{"use strict";t.exports=JSON.parse('{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"}')},971:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Las relaciones de anclaje proporcionan vínculos entre los conceptos de extensión específicos de la empresa y los conceptos estándar definidos en la taxonomía base.","dimension":"Una dimensión es una característica calificativa que se utiliza para definir de forma única un punto de datos.","conceptsCount":"TEl número de conceptos únicos utilizados en este informe.","dimensionsCount":"El número de dimensiones únicas utilizadas en este informe.","fileSummary":"Una lista de los archivos que se encuentran en el archivo.","membersCount":"El número de miembros de dimensión únicos utilizados en este informe.","scale":"Para hechos numéricos, la cantidad por la cual se escala el valor presentado.","accuracy":"La precisión con la que se informa un hecho numérico.","concept":"Un concepto es un elemento que define el significado de un hecho.","period":"El período en el que se informa sobre este hecho. Puede ser un instante o una duración, según la naturaleza del concepto.","references":"Información sobre la definición autorizada de un concepto. Las referencias suelen hacer referencia a una norma contable.","calculations":"Relaciones de cálculo entre hechos numéricos en un informe. Las relaciones de cálculo se pueden utilizar para rastrear cómo se acumulan las cifras en un informe y también se pueden utilizar para verificar la coherencia de los números informados.","hiddenFacts":"La cantidad de datos ocultos en este informe. Los datos ocultos son aquellos que se informan como datos XBRL, pero que no se muestran en el informe presentado.","mandatoryFacts":"Número de hechos obligatorios en este informe. Los hechos obligatorios son hechos que la jurisdicción que presenta la solicitud debe informar.","namespace":"Los espacios de nombres se utilizan para dividir definiciones de conceptos, dimensiones y miembros. Si un informe utiliza conceptos, dimensiones o miembros específicos de la empresa, estos se definirán en un espacio de nombres independiente. Los espacios de nombres también se pueden utilizar para dividir taxonomías grandes."}')},702:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","does-not-bind":"","inconsistent-duplicate-facts-present":"","maximum":"","minimum":"","reported-total":"","reported-value":"","useCalculations11":""},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"dialog":{"close":""},"factDetails":{"accuracy":"Precisión","balance":"","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","calculationUncheckedIncorrectVersion":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","datatype":"","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","datatypes":"Tipos de datos","dimensions":"Tipo de dimensión","documentOutline":"Esquema del documento","documentSummary":"Resumen del documento","explicitDimension":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hidden":"Oculto","hiddenFact":"Hecho oculto","highlight":"Destacar","initializing":"","ixbrlInspector":"","labels":"","loadingViewer":"Preparando el visor iXBRL","mandatoryFacts":"Sólo hechos obligatorios","namespaces":"Espacios de nombres","narrowerAnchor":"Anclaje angosto","negative":"Negativo","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"Positivo","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","search":"Buscar","searchReport":"","searchResults":"","searchTitle":"Búsqueda de hechos","settingsMenu":"","showAnalysisChart":"","showTextOnly":"","summary":{"fact":{"header":"Resumen de los hechos","hidden":"Hechos ocultos","mandatory":"Hechos obligatorios","total":"Hechos totales"},"file":{"calculations":"","definitions":"","header":"Resumen del archivo","inline":"Documentos en línea","labels":"","other":"","presentation":"","references":"","schemas":""},"reportCreation":"","tag":{"colConcepts":"Conceptos","colDimensions":"Dimensiones","colMembers":"Miembros","colNamespace":"Espacio de nombres","colTotal":"Total","header":"Resumen de la etiqueta","rowTotal":"Total"}},"summation":"","targetDocument":"","textOption":"Texto","typedDimensions":"","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibility":"Visibilidad","visible":"Visible","widerAnchor":"Anclaje amplio","xbrlGlossaryOpensInNewTab":"Glosario XBRL (se abre en una pestaña nueva)"},"menu":{"actions":"Comportamientos","applicationLanguage":"Idioma de Aplicación","documentLanguage":"Idioma del Documento","help":"Ayuda","options":"Opciones","contactUs":"Contacta con nosotros","survey":"Encuesta","userGuide":"Guía del Usuario"},"search":{"concealedFact":"","dataTypeConflictWarning":"","default":"","filter":"Filtro","hiddenFact":"Hecho oculto","matchingFactsSummary":"","noMatchFound":"No se encontró ninguna coincidencia","reset":"","selected":"seleccionados","showMoreResults":"Mostrar más resultados","toggleFilterControls":"","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes","viewFact":""},"toolbar":{"homePage":"Inicio","toggleDarkMode":"Alternar modo oscuro","xbrlElements":"Elementos XBRL"},"viewer":{"ixbrlDocumentView":""}}')}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=n(651),e=n.n(t),i=n(806),r=n.n(i);const o=t=>"string"==typeof t,s=()=>{let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return n.resolve=t,n.reject=e,n},a=t=>null==t?"":""+t,l=/###/g,c=t=>t&&t.indexOf("###")>-1?t.replace(l,"."):t,u=t=>!t||o(t),d=(t,e,n)=>{const i=o(e)?e.split("."):e;let r=0;for(;r<i.length-1;){if(u(t))return{};const e=c(i[r]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return u(t)?{}:{obj:t,k:c(i[r])}},h=(t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);if(void 0!==i||1===e.length)return void(i[r]=n);let o=e[e.length-1],s=e.slice(0,e.length-1),a=d(t,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=d(t,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},p=(t,e)=>{const{obj:n,k:i}=d(t,e);if(n)return n[i]},f=(t,e,n)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?o(t[i])||t[i]instanceof String||o(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):f(t[i],e[i],n):t[i]=e[i]);return t},g=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const v=t=>o(t)?t.replace(/[&<>"'\/]/g,(t=>m[t])):t,y=[" ",",","?","!",";"],b=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),w=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t<i.length;){if(!r||"object"!=typeof r)return;let e,o="";for(let s=t;s<i.length;++s)if(s!==t&&(o+=n),o+=i[s],e=r[o],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<i.length-1)continue;t+=s-t+1;break}r=e}return r},A=t=>t&&t.replace("_","-"),x={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class C{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||x,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(o(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new C(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new C(this.logger,t)}}var M=new C;class L{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(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.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,i]=t;for(let t=0;t<i;t++)e(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[i,r]=e;for(let e=0;e<r;e++)i.apply(i,[t,...n])}))}}class I extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,e],n&&(Array.isArray(n)?a.push(...n):o(n)&&r?a.push(...n.split(r)):a.push(n)));const l=p(this.data,a);return!l&&!e&&!n&&t.indexOf(".")>-1&&(t=a[0],e=a[1],n=a.slice(2).join(".")),!l&&s&&o(n)?w(this.data&&this.data[t]&&this.data[t][e],n,r):l}addResource(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),i=e,e=s[1]),this.addNamespaces(e),h(this.data,s,i),r.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(o(n[i])||Array.isArray(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=e,e=s[1]),this.addNamespaces(e);let a=p(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?f(a,n,r):a={...a,...n},h(this.data,s,a),o.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var _={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,i,r))})),e}};const S={};class k extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=t,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{n[t]&&(i[t]=n[t])})),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=M.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const i=y.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===i.length)return!0;const r=b.getRegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!r.test(t);if(!o){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(o=!0)}return o})(t,n,i));if(s&&!a){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const o=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),t=o.join(i)}return o(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],e),l=a[a.length-1],c=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:`${l}${t}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:s}const d=this.resolve(t,e);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!o(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||o(m)&&Array.isArray(h))if(v&&o(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,e,n));else{let i=!1,a=!1;const u=void 0!==e.count&&!o(e.count),p=k.hasDefaultValue(e),f=u?this.pluralResolver.getSuffix(c,e.count,e):"",g=e.ordinal&&u?this.pluralResolver.getSuffix(c,e.count,{ordinal:!1}):"",m=u&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${g}`]||e.defaultValue;!this.isValidLookup(h)&&p&&(i=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||i||b){if(this.logger.log(b?"updateKey":"missingKey",c,l,s,b?v:h),r){const t=this.resolve(s,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,n,i)=>{const r=p&&i!==h?i:y;this.options.missingKeyHandler?this.options.missingKeyHandler(t,l,n,r,b,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,l,n,r,b,e),this.emit("missingKey",t,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||v)}))})):i(t,s,v))}h=this.extendTranslation(h,t,e,d,n),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${s}`),(a||i)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,i?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...e,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=t,d.usedParams=this.getUsedParamsDetails(e),d):t}if(r){const t=Array.isArray(h),n=t?[]:{},i=t?f:p;for(const t in h)if(Object.prototype.hasOwnProperty.call(h,t)){const o=`${i}${r}${t}`;n[t]=this.translate(o,{...e,joinArrays:!1,ns:a}),n[t]===o&&(n[t]=h[t])}h=n}}return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(e),d):h}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=o(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const e=t.match(this.interpolator.nestingRegexp);l=e&&e.length}let c=n.replace&&!o(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,n.lng||this.language||i.usedLng,n),a){const e=t.match(this.interpolator.nestingRegexp);l<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):s.translate(...i,e)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=o(a)?[a]:a;return null!=t&&l&&l.length&&!1!==n.applyPostProcessor&&(t=_.handle(l,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,i,r,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const l=this.extractFromKey(t,a),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const d=void 0!==a.count&&!o(a.count),h=d&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&(o(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(s=t,!S[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(S[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(e))return;r=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,t,a);else{let t;d&&(t=this.pluralResolver.getSuffix(n,a.count,a));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(o.push(c+t),a.ordinal&&0===t.indexOf(i)&&o.push(c+t.replace(i,this.options.pluralSeparator)),h&&o.push(c+e)),p){const n=`${c}${this.options.contextSeparator}${a.context}`;o.push(n),d&&(o.push(n+t),a.ordinal&&0===t.indexOf(i)&&o.push(n+t.replace(i,this.options.pluralSeparator)),h&&o.push(n+e))}}let s;for(;s=o.pop();)this.isValidLookup(e)||(i=s,e=this.getResource(n,t,s,a))})))}))})),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!o(t.replace);let i=n?t.replace:t;if(n&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const T=t=>t.charAt(0).toUpperCase()+t.slice(1);class D{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(o(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=T(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),o(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return o(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):o(t)&&r(this.formatLanguageCode(t)),n.forEach((t=>{i.indexOf(t)<0&&r(this.formatLanguageCode(t))})),i}}let j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const O=["v1","v2","v3"],E=["v4"],z={zero:0,one:1,two:2,few:3,many:4,other:5};class F{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=M.create("pluralResolver"),this.options.compatibilityJSON&&!E.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return j.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:N[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=A("dev"===t?"en":t),i=e.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const o=new Intl.PluralRules(n,{type:i});return this.pluralRulesCache[r]=o,o}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>z[t]-z[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}const R=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((t,e,n)=>{const i=p(t,n);return void 0!==i?i:p(e,n)})(t,e,n);return!s&&r&&o(n)&&(s=w(t,n,i),void 0===s&&(s=w(e,n,i))),s},P=t=>t.replace(/\$/g,"$$$$");class Y{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=void 0!==e?e:v,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?g(r):o||"{{",this.suffix=s?g(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?g(d):h||g("$t("),this.nestingSuffix=p?g(p):f||g(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r,s,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=t=>{if(t.indexOf(this.formatSeparator)<0){const r=R(e,c,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),o=r.shift().trim(),s=r.join(this.formatSeparator).trim();return this.format(R(e,c,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...i,...e,interpolationkey:o})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>P(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?P(this.escape(t)):P(t)}].forEach((e=>{for(l=0;r=e.regex.exec(t);){const n=r[1].trim();if(s=u(n),void 0===s)if("function"==typeof d){const e=d(t,r,i);s=o(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(h){s=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),s=""}else o(s)||this.useRawValueToEscape||(s=a(s));const c=e.safeValue(s);if(t=t.replace(r[0],c),h?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,l++,l>=this.maxReplaces)break}})),t}nest(t,e){let n,i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let o=`{${i[1]}`;t=i[0],o=this.interpolate(o,r);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let c=[];r={...s},r=r.replace&&!o(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),c=t,u=!0}if(i=e(l.call(this,n[1].trim(),r),r),i&&n[0]===t&&!o(i))return i;o(i)||(i=a(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),i=""),u&&(i=c.reduce(((t,e)=>this.format(t,e,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}const U=t=>{const e={};return(n,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const s=i+JSON.stringify(o);let a=e[s];return a||(a=t(A(i),r),e[s]=a),a(n)}};class W{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("formatter"),this.options=t,this.formats={number:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:U(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:U(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:U(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=U(e)}format(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((t=>t.indexOf(")")>-1))){const t=r.findIndex((t=>t.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,t)].join(this.formatSeparator)}return r.reduce(((t,e)=>{const{formatName:r,formatOptions:o}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(t){const[e,...i]=t.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=e.trim();n[o]||(n[o]=r),"false"===r&&(n[o]=!1),"true"===r&&(n[o]=!0),isNaN(r)||(n[o]=parseInt(r,10))}}))}return{formatName:e,formatOptions:n}})(e);if(this.formats[r]){let e=t;try{const s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=s.locale||s.lng||i.locale||i.lng||n;e=this.formats[r](t,a,{...o,...i,...s})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t)}}class B extends L{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=M.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,e,n,i){const r={},o={},s={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const s=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(s[t]=!0)})),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const i=t.split("|"),r=i[0],o=i[1];e&&this.emit("failedLoading",r,o,e),!e&&n&&this.store.addResourceBundle(r,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const s={};this.queue.forEach((n=>{((t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);i[r]=i[r]||[],i[r].push(n)})(n.loaded,[r],o),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{s[t]||(s[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===s[t][e]&&(s[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,n,i+1,2*r,o)}),r):o(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,s);try{const n=a(t,e);n&&"function"==typeof n.then?n.then((t=>s(null,t))).catch(s):s(null,n)}catch(t){s(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();o(t)&&(t=this.languageUtils.toResolveHierarchy(t)),o(e)&&(e=[e]);const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n),!n&&o&&this.logger.log(`${e}loaded namespace ${r} for language ${i}`,o),this.loaded(t,n,o)}))}saveMissing(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,i,a):l(t,e,n,i),r&&"function"==typeof r.then?r.then((t=>s(null,t))).catch(s):s(null,r)}catch(t){s(t)}else l(t,e,n,i,s,a)}t&&t[0]&&this.store.addResource(t[0],e,n,i)}}}const Z=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),o(t[1])&&(e.defaultValue=t[1]),o(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),H=t=>(o(t.ns)&&(t.ns=[t.ns]),o(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),o(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),G=()=>{};class V extends L{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=H(t),this.services={},this.logger=M,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(o(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=Z();this.options={...i,...this.options,...H(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?M.init(r(this.modules.logger),this.options):M.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=W);const n=new D(this.options);this.store=new I(this.options.resources,this.options);const o=this.services;o.logger=M,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new F(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(o.formatter=r(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Y(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new B(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const a=s(),l=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=o(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const i=s();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=G),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),n(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&_.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=s();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},a=(t,o)=>{o?(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},l=e=>{t||e||!this.services.languageDetector||(e=[]);const n=o(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{a(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t):l(this.services.languageDetector.detect()),i}getFixedT(t,e,n){var i=this;const r=function(t,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);const c=i.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${c}${t}`)):o.keyPrefix?`${o.keyPrefix}${c}${t}`:t,i.t(u,o)};return o(t)?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,t)||i&&!o(r,t)))}loadNamespaces(t,e){const n=s();return this.options.ns?(o(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=s();o(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=i.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new D(Z());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new V(i);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new I(this.store.data,i),r.services.resourceStore=r.store),r.translator=new k(r.services,i),r.translator.on("*",(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];r.emit(t,...n)})),r.init(i,e),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Q=V.createInstance();Q.createInstance=V.createInstance,Q.createInstance,Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;var J,X,q=n(420),K=n.n(q),$=9e15,tt=1e9,et="0123456789abcdef",nt="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",it="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",rt={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},ot=!0,st="[DecimalError] ",at=st+"Invalid argument: ",lt=st+"Precision limit exceeded",ct=st+"crypto unavailable",ut="[object Decimal]",dt=Math.floor,ht=Math.pow,pt=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ft=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,gt=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,mt=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vt=1e7,yt=nt.length-1,bt=it.length-1,wt={toStringTag:ut};function At(t){var e,n,i,r=t.length-1,o="",s=t[0];if(r>0){for(o+=s,e=1;e<r;e++)(n=7-(i=t[e]+"").length)&&(o+=jt(n)),o+=i;(n=7-(i=(s=t[e])+"").length)&&(o+=jt(n))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function xt(t,e,n){if(t!==~~t||t<e||t>n)throw Error(at+t)}function Ct(t,e,n,i){var r,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,r=0):(r=Math.ceil((e+1)/7),e%=7),o=ht(10,7-e),a=t[r]%o|0,null==i?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[r+1]/o/100|0)==ht(10,e-2)-1||(a==o/2||0==a)&&!(t[r+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(i||n<4)&&9999==a||!i&&n>3&&4999==a):s=((i||n<4)&&a+1==o||!i&&n>3&&a+1==o/2)&&(t[r+1]/o/1e3|0)==ht(10,e-3)-1,s}function Mt(t,e,n){for(var i,r,o=[0],s=0,a=t.length;s<a;){for(r=o.length;r--;)o[r]*=e;for(o[0]+=et.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}wt.absoluteValue=wt.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),It(t)},wt.ceil=function(){return It(new this.constructor(this),this.e+1,2)},wt.clampedTo=wt.clamp=function(t,e){var n=this,i=n.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(at+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new i(n)},wt.comparedTo=wt.cmp=function(t){var e,n,i,r,o=this,s=o.d,a=(t=new o.constructor(t)).d,l=o.s,c=t.s;if(!s||!a)return l&&c?l!==c?l:s===a?0:!s^l<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?l:a[0]?-c:0;if(l!==c)return l;if(o.e!==t.e)return o.e>t.e^l<0?1:-1;for(e=0,n=(i=s.length)<(r=a.length)?i:r;e<n;++e)if(s[e]!==a[e])return s[e]>a[e]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},wt.cosine=wt.cos=function(){var t,e,n=this,i=n.constructor;return n.d?n.d[0]?(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i,r;if(e.isZero())return e;(i=e.d.length)<32?r=(1/Wt(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=Ut(t,1,e.times(r),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(i,Bt(i,n)),i.precision=t,i.rounding=e,It(2==X||3==X?n.neg():n,t,e,!0)):new i(1):new i(NaN)},wt.cubeRoot=wt.cbrt=function(){var t,e,n,i,r,o,s,a,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ot=!1,(o=u.s*ht(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=At(u.d),(o=((t=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ht(n,1/3),t=dt((t+1)/3)-(t%3==(t<0?-1:2)),(i=new d(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=u.s),s=(t=d.precision)+3;;)if(c=(l=(a=i).times(a).times(a)).plus(u),i=Lt(c.plus(u).times(a),c.plus(l),s+2,1),At(a.d).slice(0,s)===(n=At(i.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(It(i,t+1,1),e=!i.times(i).times(i).eq(u));break}if(!r&&(It(a,t+1,0),a.times(a).times(a).eq(u))){i=a;break}s+=4,r=1}return ot=!0,It(i,t,d.rounding,e)},wt.decimalPlaces=wt.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-dt(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},wt.dividedBy=wt.div=function(t){return Lt(this,new this.constructor(t))},wt.dividedToIntegerBy=wt.divToInt=function(t){var e=this.constructor;return It(Lt(this,new e(t),0,1,1),e.precision,e.rounding)},wt.equals=wt.eq=function(t){return 0===this.cmp(t)},wt.floor=function(){return It(new this.constructor(this),this.e+1,3)},wt.greaterThan=wt.gt=function(t){return this.cmp(t)>0},wt.greaterThanOrEqualTo=wt.gte=function(t){var e=this.cmp(t);return 1==e||0===e},wt.hyperbolicCosine=wt.cosh=function(){var t,e,n,i,r,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,i=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(r=o.d.length)<32?e=(1/Wt(4,t=Math.ceil(r/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Ut(s,1,o.times(e),new s(1),!0);for(var l,c=t,u=new s(8);c--;)l=o.times(o),o=a.minus(l.times(u.minus(l.times(u))));return It(o,s.precision=n,s.rounding=i,!0)},wt.hyperbolicSine=wt.sinh=function(){var t,e,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Ut(o,2,r,r,!0);else{t=(t=1.4*Math.sqrt(i))>16?16:0|t,r=Ut(o,2,r=r.times(1/Wt(5,t)),r,!0);for(var s,a=new o(5),l=new o(16),c=new o(20);t--;)s=r.times(r),r=r.times(a.plus(s.times(l.times(s).plus(c))))}return o.precision=e,o.rounding=n,It(r,e,n,!0)},wt.hyperbolicTangent=wt.tanh=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+7,i.rounding=1,Lt(n.sinh(),n.cosh(),i.precision=t,i.rounding=e)):new i(n.s)},wt.inverseCosine=wt.acos=function(){var t,e=this,n=e.constructor,i=e.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?e.isNeg()?Tt(n,r,o):new n(0):new n(NaN):e.isZero()?Tt(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,e=e.asin(),t=Tt(n,r+4,o).times(.5),n.precision=r,n.rounding=o,t.minus(e))},wt.inverseHyperbolicCosine=wt.acosh=function(){var t,e,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(t=i.precision,e=i.rounding,i.precision=t+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ot=!1,n=n.times(n).minus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln()):new i(n)},wt.inverseHyperbolicSine=wt.asinh=function(){var t,e,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ot=!1,n=n.times(n).plus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln())},wt.inverseHyperbolicTangent=wt.atanh=function(){var t,e,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(t=o.precision,e=o.rounding,i=r.sd(),Math.max(i,t)<2*-r.e-1?It(new o(r),t,e,!0):(o.precision=n=i-r.e,r=Lt(r.plus(1),new o(1).minus(r),n+t,1),o.precision=t+4,o.rounding=1,r=r.ln(),o.precision=t,o.rounding=e,r.times(.5))):new o(NaN)},wt.inverseSine=wt.asin=function(){var t,e,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(e=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==e?0===e?((t=Tt(o,n+4,i).times(.5)).s=r.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},wt.inverseTangent=wt.atan=function(){var t,e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=bt)return(s=Tt(u,d+4,h).times(.25)).s=c.s,s}else{if(!c.s)return new u(NaN);if(d+4<=bt)return(s=Tt(u,d+4,h).times(.5)).s=c.s,s}for(u.precision=a=d+10,u.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ot=!1,e=Math.ceil(a/7),i=1,l=c.times(c),s=new u(c),r=c;-1!==t;)if(r=r.times(l),o=s.minus(r.div(i+=2)),r=r.times(l),void 0!==(s=o.plus(r.div(i+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<<n-1)),ot=!0,It(s,u.precision=d,u.rounding=h,!0)},wt.isFinite=function(){return!!this.d},wt.isInteger=wt.isInt=function(){return!!this.d&&dt(this.e/7)>this.d.length-2},wt.isNaN=function(){return!this.s},wt.isNegative=wt.isNeg=function(){return this.s<0},wt.isPositive=wt.isPos=function(){return this.s>0},wt.isZero=function(){return!!this.d&&0===this.d[0]},wt.lessThan=wt.lt=function(t){return this.cmp(t)<0},wt.lessThanOrEqualTo=wt.lte=function(t){return this.cmp(t)<1},wt.logarithm=wt.log=function(t){var e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ot=!1,s=Ft(c,a=d+5),i=e?kt(u,a+10):Ft(t,a),Ct((l=Lt(s,i,a,1)).d,r=d,h))do{if(s=Ft(c,a+=10),i=e?kt(u,a+10):Ft(t,a),l=Lt(s,i,a,1),!o){+At(l.d).slice(r+1,r+15)+1==1e14&&(l=It(l,d+1,0));break}}while(Ct(l.d,r+=10,h));return ot=!0,It(l,d,h)},wt.minus=wt.sub=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.constructor;if(t=new f(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new f(t.d||p.s!==t.s?p:NaN):t=new f(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,a=f.precision,l=f.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new f(3===l?-0:0);t=new f(p)}return ot?It(t,a,l):t}if(n=dt(t.e/7),u=dt(p.e/7),c=c.slice(),o=u-n){for((d=o<0)?(e=c,o=-o,s=h.length):(e=h,n=u,s=c.length),o>(i=Math.max(Math.ceil(a/7),s)+2)&&(o=i,e.length=1),e.reverse(),i=o;i--;)e.push(0);e.reverse()}else{for((d=(i=c.length)<(s=h.length))&&(s=i),i=0;i<s;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(e=c,c=h,h=e,t.s=-t.s),s=c.length,i=h.length-s;i>0;--i)c[s++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=vt-1;--c[r],c[i]+=vt}c[i]-=h[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=St(c,n),ot?It(t,a,l):t):new f(3===l?-0:0)},wt.modulo=wt.mod=function(t){var e,n=this,i=n.constructor;return t=new i(t),!n.d||!t.s||t.d&&!t.d[0]?new i(NaN):!t.d||n.d&&!n.d[0]?It(new i(n),i.precision,i.rounding):(ot=!1,9==i.modulo?(e=Lt(n,t.abs(),0,3,1)).s*=t.s:e=Lt(n,t,0,i.modulo,1),e=e.times(t),ot=!0,n.minus(e))},wt.naturalExponential=wt.exp=function(){return zt(this)},wt.naturalLogarithm=wt.ln=function(){return Ft(this)},wt.negated=wt.neg=function(){var t=new this.constructor(this);return t.s=-t.s,It(t)},wt.plus=wt.add=function(t){var e,n,i,r,o,s,a,l,c,u,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return d.s&&t.s?d.d||(t=new h(t.d||d.s===t.s?d:NaN)):t=new h(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(c=d.d,u=t.d,a=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(t=new h(d)),ot?It(t,a,l):t;if(o=dt(d.e/7),i=dt(t.e/7),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,s=u.length):(n=u,i=o,s=c.length),r>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(r=s,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((s=c.length)-(r=u.length)<0&&(r=s,n=u,u=c,c=n),e=0;r;)e=(c[--r]=c[r]+u[r]+e)/vt|0,c[r]%=vt;for(e&&(c.unshift(e),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=St(c,i),ot?It(t,a,l):t},wt.precision=wt.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(at+t);return n.d?(e=Dt(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},wt.round=function(){var t=this,e=t.constructor;return It(new e(t),t.e+1,e.rounding)},wt.sine=wt.sin=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i=e.d.length;if(i<3)return e.isZero()?e:Ut(t,2,e,e);n=(n=1.4*Math.sqrt(i))>16?16:0|n,e=Ut(t,2,e=e.times(1/Wt(5,n)),e);for(var r,o=new t(5),s=new t(16),a=new t(20);n--;)r=e.times(e),e=e.times(o.plus(r.times(s.times(r).minus(a))));return e}(i,Bt(i,n)),i.precision=t,i.rounding=e,It(X>2?n.neg():n,t,e,!0)):new i(NaN)},wt.squareRoot=wt.sqrt=function(){var t,e,n,i,r,o,s=this,a=s.d,l=s.e,c=s.s,u=s.constructor;if(1!==c||!a||!a[0])return new u(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);for(ot=!1,0==(c=Math.sqrt(+s))||c==1/0?(((e=At(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(e),l=dt((l+1)/2)-(l<0||l%2),i=new u(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(Lt(s,o,n+2,1)).times(.5),At(o.d).slice(0,n)===(e=At(i.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(It(i,l+1,1),t=!i.times(i).eq(s));break}if(!r&&(It(o,l+1,0),o.times(o).eq(s))){i=o;break}n+=4,r=1}return ot=!0,It(i,l,u.rounding,t)},wt.tangent=wt.tan=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+10,i.rounding=1,(n=n.sin()).s=1,n=Lt(n,new i(1).minus(n.times(n)).sqrt(),t+10,0),i.precision=t,i.rounding=e,It(2==X||4==X?n.neg():n,t,e,!0)):new i(NaN)},wt.times=wt.mul=function(t){var e,n,i,r,o,s,a,l,c,u=this,d=u.constructor,h=u.d,p=(t=new d(t)).d;if(t.s*=u.s,!(h&&h[0]&&p&&p[0]))return new d(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=dt(u.e/7)+dt(t.e/7),(l=h.length)<(c=p.length)&&(o=h,h=p,p=o,s=l,l=c,c=s),o=[],i=s=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(e=0,r=l+i;r>i;)a=o[r]+p[i]*h[r-i-1]+e,o[r--]=a%vt|0,e=a/vt|0;o[r]=(o[r]+e)%vt|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=St(o,n),ot?It(t,d.precision,d.rounding):t},wt.toBinary=function(t,e){return Zt(this,2,t,e)},wt.toDecimalPlaces=wt.toDP=function(t,e){var n=this,i=n.constructor;return n=new i(n),void 0===t?n:(xt(t,0,tt),void 0===e?e=i.rounding:xt(e,0,8),It(n,t+n.e+1,e))},wt.toExponential=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,!0):(xt(t,0,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t+1,e),!0,t+1)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toFixed=function(t,e){var n,i,r=this,o=r.constructor;return void 0===t?n=_t(r):(xt(t,0,tt),void 0===e?e=o.rounding:xt(e,0,8),n=_t(i=It(new o(r),t+r.e+1,e),!1,t+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},wt.toFraction=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.d,g=p.constructor;if(!f)return new g(p);if(c=n=new g(1),i=l=new g(0),s=(o=(e=new g(i)).e=Dt(f)-p.e-1)%7,e.d[0]=ht(10,s<0?7+s:s),null==t)t=o>0?e:c;else{if(!(a=new g(t)).isInt()||a.lt(c))throw Error(at+a);t=a.gt(e)?o>0?e:c:a}for(ot=!1,a=new g(At(f)),u=g.precision,g.precision=o=7*f.length*2;d=Lt(a,e,0,1,1),1!=(r=n.plus(d.times(i))).cmp(t);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=e,e=a.minus(d.times(r)),a=r;return r=Lt(t.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=p.s,h=Lt(c,i,o,1).minus(p).abs().cmp(Lt(l,n,o,1).minus(p).abs())<1?[c,i]:[l,n],g.precision=u,ot=!0,h},wt.toHexadecimal=wt.toHex=function(t,e){return Zt(this,16,t,e)},wt.toNearest=function(t,e){var n=this,i=n.constructor;if(n=new i(n),null==t){if(!n.d)return n;t=new i(1),e=i.rounding}else{if(t=new i(t),void 0===e?e=i.rounding:xt(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(ot=!1,n=Lt(n,t,0,e,1).times(t),ot=!0,It(n)):(t.s=n.s,n=t),n},wt.toNumber=function(){return+this},wt.toOctal=function(t,e){return Zt(this,8,t,e)},wt.toPower=wt.pow=function(t){var e,n,i,r,o,s,a=this,l=a.constructor,c=+(t=new l(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new l(ht(+a,c));if((a=new l(a)).eq(1))return a;if(i=l.precision,o=l.rounding,t.eq(1))return It(a,i,o);if((e=dt(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=Nt(l,a,n,i),t.s<0?new l(1).div(r):It(r,i,o);if((s=a.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(e=0!=(n=ht(+a,c))&&isFinite(n)?new l(n+"").e:dt(c*(Math.log("0."+At(a.d))/Math.LN10+a.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?s/0:0):(ot=!1,l.rounding=a.s=1,n=Math.min(12,(e+"").length),(r=zt(t.times(Ft(a,i+n)),i)).d&&Ct((r=It(r,i+5,1)).d,i,o)&&(e=i+10,+At((r=It(zt(t.times(Ft(a,e+n)),e),e+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=It(r,i+1,0))),r.s=s,ot=!0,l.rounding=o,It(r,i,o))},wt.toPrecision=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xt(t,1,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t,e),t<=i.e||i.e<=r.toExpNeg,t)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toSignificantDigits=wt.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(xt(t,1,tt),void 0===e?e=n.rounding:xt(e,0,8)),It(new n(this),t,e)},wt.toString=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},wt.truncated=wt.trunc=function(){return It(new this.constructor(this),this.e+1,1)},wt.valueOf=wt.toJSON=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var Lt=function(){function t(t,e,n){var i,r=0,o=t.length;for(t=t.slice();o--;)i=t[o]*e+r,t[o]=i%n|0,r=i/n|0;return r&&t.unshift(r),t}function e(t,e,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(t[r]!=e[r]){o=t[r]>e[r]?1:-1;break}return o}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(i,r,o,s,a,l){var c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k=i.constructor,T=i.s==r.s?1:-1,D=i.d,j=r.d;if(!(D&&D[0]&&j&&j[0]))return new k(i.s&&r.s&&(D?!j||D[0]!=j[0]:j)?D&&0==D[0]||!j?0*T:T/0:NaN);for(l?(p=1,u=i.e-r.e):(l=vt,p=7,u=dt(i.e/p)-dt(r.e/p)),_=j.length,L=D.length,y=(v=new k(T)).d=[],d=0;j[d]==(D[d]||0);d++);if(j[d]>(D[d]||0)&&u--,null==o?(x=o=k.precision,s=k.rounding):x=a?o+(i.e-r.e)+1:o,x<0)y.push(1),f=!0;else{if(x=x/p+2|0,d=0,1==_){for(h=0,j=j[0],x++;(d<L||h)&&x--;d++)C=h*l+(D[d]||0),y[d]=C/j|0,h=C%j|0;f=h||d<L}else{for((h=l/(j[0]+1)|0)>1&&(j=t(j,h,l),D=t(D,h,l),_=j.length,L=D.length),M=_,w=(b=D.slice(0,_)).length;w<_;)b[w++]=0;(S=j.slice()).unshift(0),I=j[0],j[1]>=l/2&&++I;do{h=0,(c=e(j,b,_,w))<0?(A=b[0],_!=w&&(A=A*l+(b[1]||0)),(h=A/I|0)>1?(h>=l&&(h=l-1),1==(c=e(g=t(j,h,l),b,m=g.length,w=b.length))&&(h--,n(g,_<m?S:j,m,l))):(0==h&&(c=h=1),g=j.slice()),(m=g.length)<w&&g.unshift(0),n(b,g,w,l),-1==c&&(c=e(j,b,_,w=b.length))<1&&(h++,n(b,_<w?S:j,w,l)),w=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[w++]=D[M]||0:(b=[D[M]],w=1)}while((M++<L||void 0!==b[0])&&x--);f=void 0!==b[0]}y[0]||y.shift()}if(1==p)v.e=u,J=f;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*p-1,It(v,a?o+v.e+1:o,s,f)}return v}}();function It(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor;t:if(null!=e){if(!(d=t.d))return t;for(r=1,a=d[0];a>=10;a/=10)r++;if((o=e-r)<0)o+=7,s=e,l=(u=d[h=0])/ht(10,r-s-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(a=d.length)){if(!i)break t;for(;a++<=h;)d.push(0);u=l=0,r=1,s=(o%=7)-7+1}else{for(u=a=d[h],r=1;a>=10;a/=10)r++;l=(s=(o%=7)-7+r)<0?0:u/ht(10,r-s-1)%10|0}if(i=i||e<0||void 0!==d[h+1]||(s<0?u:u%ht(10,r-s-1)),c=n<4?(l||i)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?s>0?u/ht(10,r-s):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,c?(e-=t.e+1,d[0]=ht(10,(7-e%7)%7),t.e=-e||0):d[0]=t.e=0,t;if(0==o?(d.length=h,a=1,h--):(d.length=h+1,a=ht(10,7-o),d[h]=s>0?(u/ht(10,r-s)%ht(10,s)|0)*a:0),c)for(;;){if(0==h){for(o=1,s=d[0];s>=10;s/=10)o++;for(s=d[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,d[0]==vt&&(d[0]=1));break}if(d[h]+=a,d[h]!=vt)break;d[h--]=0,a=1}for(o=d.length;0===d[--o];)d.pop()}return ot&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function _t(t,e,n){if(!t.isFinite())return Rt(t);var i,r=t.e,o=At(t.d),s=o.length;return e?(n&&(i=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+jt(i):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):r<0?(o="0."+jt(-r-1)+o,n&&(i=n-s)>0&&(o+=jt(i))):r>=s?(o+=jt(r+1-s),n&&(i=n-r-1)>0&&(o=o+"."+jt(i))):((i=r+1)<s&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-s)>0&&(r+1===s&&(o+="."),o+=jt(i))),o}function St(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function kt(t,e,n){if(e>yt)throw ot=!0,n&&(t.precision=n),Error(lt);return It(new t(nt),e,1,!0)}function Tt(t,e,n){if(e>bt)throw Error(lt);return It(new t(it),e,n,!0)}function Dt(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function jt(t){for(var e="";t--;)e+="0";return e}function Nt(t,e,n,i){var r,o=new t(1),s=Math.ceil(i/7+4);for(ot=!1;;){if(n%2&&Ht((o=o.times(e)).d,s)&&(r=!0),0===(n=dt(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ht((e=e.times(e)).d,s)}return ot=!0,o}function Ot(t){return 1&t.d[t.d.length-1]}function Et(t,e,n){for(var i,r=new t(e[0]),o=0;++o<e.length;){if(!(i=new t(e[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function zt(t,e){var n,i,r,o,s,a,l,c=0,u=0,d=0,h=t.constructor,p=h.rounding,f=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(ot=!1,l=f):l=e,a=new h(.03125);t.e>-2;)t=t.times(a),d+=5;for(l+=i=Math.log(ht(2,d))/Math.LN10*2+5|0,n=o=s=new h(1),h.precision=l;;){if(o=It(o.times(t),l,1),n=n.times(++u),At((a=s.plus(Lt(o,n,l,1))).d).slice(0,l)===At(s.d).slice(0,l)){for(r=d;r--;)s=It(s.times(s),l,1);if(null!=e)return h.precision=f,s;if(!(c<3&&Ct(s.d,l-i,p,c)))return It(s,h.precision=f,p,ot=!0);h.precision=l+=10,n=o=a=new h(1),u=0,c++}s=a}}function Ft(t,e){var n,i,r,o,s,a,l,c,u,d,h,p=1,f=t,g=f.d,m=f.constructor,v=m.rounding,y=m.precision;if(f.s<0||!g||!g[0]||!f.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=f.s?NaN:g?0:f);if(null==e?(ot=!1,u=y):u=e,m.precision=u+=10,i=(n=At(g)).charAt(0),!(Math.abs(o=f.e)<15e14))return c=kt(m,u+2,y).times(o+""),f=Ft(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==e?It(f,y,v,ot=!0):f;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=At((f=f.times(t)).d)).charAt(0),p++;for(o=f.e,i>1?(f=new m("0."+n),o++):f=new m(i+"."+n.slice(1)),d=f,l=s=f=Lt(f.minus(1),f.plus(1),u,1),h=It(f.times(f),u,1),r=3;;){if(s=It(s.times(h),u,1),At((c=l.plus(Lt(s,new m(r),u,1))).d).slice(0,u)===At(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(kt(m,u+2,y).times(o+""))),l=Lt(l,new m(p),u,1),null!=e)return m.precision=y,l;if(!Ct(l.d,u-10,v,a))return It(l,m.precision=y,v,ot=!0);m.precision=u+=10,c=s=f=Lt(d.minus(1),d.plus(1),u,1),h=It(f.times(f),u,1),r=a=1}l=c,r+=2}}function Rt(t){return String(t.s*t.s/0)}function Pt(t,e){var n,i,r;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;48===e.charCodeAt(i);i++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(i,r)){if(r-=i,t.e=n=n-i-1,t.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&t.d.push(+e.slice(0,i)),r-=7;i<r;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=r;for(;i--;)e+="0";t.d.push(+e),ot&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Yt(t,e){var n,i,r,o,s,a,l,c,u;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),mt.test(e))return Pt(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(ft.test(e))n=16,e=e.toLowerCase();else if(pt.test(e))n=2;else{if(!gt.test(e))throw Error(at+e);n=8}for((o=e.search(/p/i))>0?(l=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf("."))>=0,i=t.constructor,s&&(o=(a=(e=e.replace(".","")).length)-o,r=Nt(i,new i(n),o,2*o)),o=u=(c=Mt(e,n,vt)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*t.s):(t.e=St(c,u),t.d=c,ot=!1,s&&(t=Lt(t,r,4*a)),l&&(t=t.times(Math.abs(l)<54?ht(2,l):je.pow(2,l))),ot=!0,t)}function Ut(t,e,n,i,r){var o,s,a,l,c=t.precision,u=Math.ceil(c/7);for(ot=!1,l=n.times(n),a=new t(i);;){if(s=Lt(a.times(l),new t(e++*e++),c,1),a=r?i.plus(s):i.minus(s),i=Lt(s.times(l),new t(e++*e++),c,1),void 0!==(s=a.plus(i)).d[u]){for(o=u;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=i,i=s,s=o}return ot=!0,s.d.length=u+1,s}function Wt(t,e){for(var n=t;--e;)n*=t;return n}function Bt(t,e){var n,i=e.s<0,r=Tt(t,t.precision,1),o=r.times(.5);if((e=e.abs()).lte(o))return X=i?4:1,e;if((n=e.divToInt(r)).isZero())X=i?3:2;else{if((e=e.minus(n.times(r))).lte(o))return X=Ot(n)?i?2:3:i?4:1,e;X=Ot(n)?i?1:4:i?3:2}return e.minus(r).abs()}function Zt(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor,f=void 0!==n;if(f?(xt(n,1,tt),void 0===i?i=p.rounding:xt(i,0,8)):(n=p.precision,i=p.rounding),t.isFinite()){for(f?(r=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):r=e,(s=(u=_t(t)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new p(1)).e=u.length-s,h.d=Mt(_t(h),10,r),h.e=h.d.length),o=l=(d=Mt(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(s<0?o--:((t=new p(t)).d=d,t.e=o,d=(t=Lt(t,h,n,i,0,r)).d,o=t.e,c=J),s=d[n],a=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==s||c)&&(0===i||i===(t.s<0?3:2)):s>a||s===a&&(4===i||c||6===i&&1&d[n-1]||i===(t.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(s=0,u="";s<l;s++)u+=et.charAt(d[s]);if(f){if(l>1)if(16==e||8==e){for(s=16==e?4:3,--l;l%s;l++)u+="0";for(l=(d=Mt(u,r,e)).length;!d[l-1];--l);for(s=1,u="1.";s<l;s++)u+=et.charAt(d[s])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=f?"0p+0":"0";u=(16==e?"0x":2==e?"0b":8==e?"0o":"")+u}else u=Rt(t);return t.s<0?"-"+u:u}function Ht(t,e){if(t.length>e)return t.length=e,!0}function Gt(t){return new this(t).abs()}function Vt(t){return new this(t).acos()}function Qt(t){return new this(t).acosh()}function Jt(t,e){return new this(t).plus(e)}function Xt(t){return new this(t).asin()}function qt(t){return new this(t).asinh()}function Kt(t){return new this(t).atan()}function $t(t){return new this(t).atanh()}function te(t,e){t=new this(t),e=new this(e);var n,i=this.precision,r=this.rounding,o=i+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?Tt(this,i,r):new this(0)).s=t.s:!t.d||e.isZero()?(n=Tt(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(Lt(t,e,o,1)),e=Tt(this,o,1),this.precision=i,this.rounding=r,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Lt(t,e,o,1)):(n=Tt(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ee(t){return new this(t).cbrt()}function ne(t){return It(t=new this(t),t.e+1,2)}function ie(t,e,n){return new this(t).clamp(e,n)}function re(t){if(!t||"object"!=typeof t)throw Error(st+"Object expected");var e,n,i,r=!0===t.defaults,o=["precision",1,tt,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!(dt(i)===i&&i>=o[e+1]&&i<=o[e+2]))throw Error(at+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(at+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ct);this[n]=!0}else this[n]=!1}return this}function oe(t){return new this(t).cos()}function se(t){return new this(t).cosh()}function ae(t,e){return new this(t).div(e)}function le(t){return new this(t).exp()}function ce(t){return It(t=new this(t),t.e+1,3)}function ue(){var t,e,n=new this(0);for(ot=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return ot=!0,new this(1/0);n=e}return ot=!0,n.sqrt()}function de(t){return t instanceof je||t&&t.toStringTag===ut||!1}function he(t){return new this(t).ln()}function pe(t,e){return new this(t).log(e)}function fe(t){return new this(t).log(2)}function ge(t){return new this(t).log(10)}function me(){return Et(this,arguments,"lt")}function ve(){return Et(this,arguments,"gt")}function ye(t,e){return new this(t).mod(e)}function be(t,e){return new this(t).mul(e)}function we(t,e){return new this(t).pow(e)}function Ae(t){var e,n,i,r,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:xt(t,1,tt),i=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ct);for(e=crypto.randomBytes(i*=4);o<i;)(r=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(a.push(r%1e7),o+=4);o=i/4}else for(;o<i;)a[o++]=1e7*Math.random()|0;for(t%=7,(i=a[--o])&&t&&(r=ht(10,7-t),a[o]=(i/r|0)*r);0===a[o];o--)a.pop();if(o<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<7&&(n-=7-i)}return s.e=n,s.d=a,s}function xe(t){return It(t=new this(t),t.e+1,this.rounding)}function Ce(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Me(t){return new this(t).sin()}function Le(t){return new this(t).sinh()}function Ie(t){return new this(t).sqrt()}function _e(t,e){return new this(t).sub(e)}function Se(){var t=0,e=arguments,n=new this(e[t]);for(ot=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return ot=!0,It(n,this.precision,this.rounding)}function ke(t){return new this(t).tan()}function Te(t){return new this(t).tanh()}function De(t){return It(t=new this(t),t.e+1,1)}wt[Symbol.for("nodejs.util.inspect.custom")]=wt.toString,wt[Symbol.toStringTag]="Decimal";var je=wt.constructor=function t(e){var n,i,r;function o(t){var e,n,i,r=this;if(!(r instanceof o))return new o(t);if(r.constructor=o,de(t))return r.s=t.s,void(ot?!t.d||t.e>o.maxE?(r.e=NaN,r.d=null):t.e<o.minE?(r.e=0,r.d=[0]):(r.e=t.e,r.d=t.d.slice()):(r.e=t.e,r.d=t.d?t.d.slice():t.d));if("number"==(i=typeof t)){if(0===t)return r.s=1/t<0?-1:1,r.e=0,void(r.d=[0]);if(t<0?(t=-t,r.s=-1):r.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(ot?e>o.maxE?(r.e=NaN,r.d=null):e<o.minE?(r.e=0,r.d=[0]):(r.e=e,r.d=[t]):(r.e=e,r.d=[t]))}return 0*t!=0?(t||(r.s=NaN),r.e=NaN,void(r.d=null)):Pt(r,t.toString())}if("string"!==i)throw Error(at+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),r.s=-1):(43===n&&(t=t.slice(1)),r.s=1),mt.test(t)?Pt(r,t):Yt(r,t)}if(o.prototype=wt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=re,o.clone=t,o.isDecimal=de,o.abs=Gt,o.acos=Vt,o.acosh=Qt,o.add=Jt,o.asin=Xt,o.asinh=qt,o.atan=Kt,o.atanh=$t,o.atan2=te,o.cbrt=ee,o.ceil=ne,o.clamp=ie,o.cos=oe,o.cosh=se,o.div=ae,o.exp=le,o.floor=ce,o.hypot=ue,o.ln=he,o.log=pe,o.log10=ge,o.log2=fe,o.max=me,o.min=ve,o.mod=ye,o.mul=be,o.pow=we,o.random=Ae,o.round=xe,o.sign=Ce,o.sin=Me,o.sinh=Le,o.sqrt=Ie,o.sub=_e,o.sum=Se,o.tan=ke,o.tanh=Te,o.trunc=De,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)e.hasOwnProperty(i=r[n++])||(e[i]=this[i]);return o.config(e),o}(rt);nt=new je(nt),it=new je(it);const Ne=je,Oe="http://www.xbrl.org/2003/iso4217",Ee="calc",ze="guide_link",Fe="home_link_label",Re="home_link_url",Pe="support_link",Ye="survey_link",Ue="ixbrl-viewer-theme",We="ixbrl-viewer-highlight-all-facts";function Be(t,e){return t.hours()+t.minutes()+t.seconds()===0?(e&&(t=t.clone().subtract(1,"day")),t.format("D MMM Y")):t.format("D MMM Y HH:mm:ss")}function Ze(t,e){const n=Ne(t),i=(void 0===e?n.toFixed():n.toFixed(Math.max(0,e))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function He(t,e){const n=[],i=t.split(" ");let r="";return i.forEach(((t,o)=>{if(r.length>0){const s=r+" "+t;if(!(s.length>e))return o===i.length-1?void n.push(s):void(r=s);n.push(r),r=""}o!==i.length-1&&t.length<e?r=t:n.push(t)})),n}function Ge(t,e){let n=He(t,e),i=n[0];return n.length>1&&(i+=" …"),i}function Ve(t){return t=t.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((t,e)=>e+"T00:00:00")),K().utc(t)}function Qe(t,e,n){return t.hasOwnProperty(e)||(t[e]=n),t[e]}function Je(t){setTimeout((function e(){t.next().done||setTimeout(e,0)}),0)}function Xe(t,e){return null==e?null:t.toString()+"-"+e}class qe{constructor(t,e){this.name=e,this.report=t,this.qname=t.qname(e)}label(){return"http://www.xbrl.org/2003/instance"==this.qname.namespace?Q.t(`dataTypes:${this.qname.localname}`,{defaultValue:this.qname.qname}):this.report.reportSet.taxonomyNamer.convertQName(this.qname)}}class Ke{constructor(t){this.balance=t}label(){return Q.t(`balanceTypes:${this.balance}`,{defaultValue:this.balance})}}class $e{constructor(t,e){this._c=t.concepts()[e]||{},this.name=e,this.report=t}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((t=>t.map((t=>t[1])))).join(" "):""}labels(){if(!this._c.labels)return{};const t=this.report.reportSet.viewerOptions.language;return Object.fromEntries(Object.entries(this._c.labels).map((([e,n])=>[e,n[t]])).filter((([t,e])=>void 0!==e)))}references(){return this._c.r?this._c.r.map((t=>t.map((t=>({part:t[0],value:t[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}dataType(){if(void 0!==this._c.dt)return new qe(this.report,this._c.dt)}balance(){if(void 0!==this._c.b)return new Ke(this._c.b)}}class tn{constructor(t,e){this.reportSet=t,this._reportData=e,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const t of Object.values(this._reportData.concepts))for(const e of Object.values(t.labels))for(const t of Object.keys(e))this._availableLanguages.add(t)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(t,e){const n={},i=this._reportData.rels[e]||{};for(const e in i)t in i[e]&&(n[e]=i[e][t]);return n}_reverseRelationships(t){if(!(t in this._reverseRelationshipCache)){const e={},n=this._reportData.rels[t]||{};for(const[t,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Qe(Qe(e,t,{}),i.t,[]).push(i);this._reverseRelationshipCache[t]=e}return this._reverseRelationshipCache[t]}getParentRelationships(t,e){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(e)))t in r&&(n[i]=r[t]);return n}getParentRelationshipsInGroup(t,e,n){return(this._reverseRelationships(e)[n]||{})[t]||[]}dimensionDefault(t){for(const e of Object.values(this._reportData.rels["d-d"]||{}))if(t in e)return e[t][0].t}relationshipGroups(t){return Object.keys(this._reportData.rels[t]||{})}relationshipGroupRoots(t,e){const n=[];for(const i in this._reportData.rels[t][e])e in this.getParentRelationships(i,t)||n.push(i);return n}getAlignedFacts(t,e){const n=this.reportSet.facts(),i=[];e||(e={});for(const r of n)r.isAligned(t,e)&&i.push(r);return i}deduplicate(t){const e=[];for(const n of t){let t=!1;for(const i of e)i.isAligned(n,{})&&(t=!0);t||e.push(n)}return e}getConcept(t){return new $e(this,t)}getRoleLabel(t){const e=this._reportData.roleDefs[t];if(void 0!==e){const t=e.en;if(null!=t)return t}}getRoleLabelOrURI(t){return this.getRoleLabel(t)??this.reportSet.roleMap()[t]}getLabelRoleLabel(t){const e=this.reportSet.roleMap()[t];if(void 0===e)return;const n=e.split("/").pop();if(e.startsWith("http://www.xbrl.org/2003/role/")&&Q.exists(`labelRoles:${n}`))return Q.t(`labelRoles:${n}`);const i=this.getRoleLabel(t);return void 0!==i?i:n.replaceAll(/([A-Z][a-z]+)/g," $1").trim().replace(/^./,(t=>t.toUpperCase()))}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(t){return this.reportSet.qname(t)}getScaleLabel(t,e){let n=Q.t(`scale:${t}`,{defaultValue:"noName"});if(e&&e.isMonetary()&&-2===t){let t=e.value()??"";t&&(t=this.qname(t).localname),n=Q.t(`currencies:cents${t}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(t,e,n){return this.getLabelAndLang(t,e,n).label}getLabelAndLang(t,e,n){e=e||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[t];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+t),{label:"<no label>"};const o=r.labels[e];if(void 0===o||0==Object.keys(o).length)return{label:void 0};{let e,r;if(i&&o[i])e=o[i],r=i;else for(const t of["en","en-us",Object.keys(o).sort()[0]])if(void 0!==o[t]){e=o[t],r=t;break}if(void 0===e)return{label:void 0};let s="";return n&&this.reportSet.viewerOptions.showPrefixes&&(s="("+this.reportSet.taxonomyNamer.fromQName(this.qname(t)).prefix+") "),s+=e,{label:s,lang:r}}}getLabelOrName(t,e,n){const i=this.getLabel(t,e,n);return void 0===i?t:i}getLabelOrNameAndLang(t,e,n){const i=this.getLabelAndLang(t,e,n);return void 0===i.label?{label:t}:i}isCalculationContributor(t){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.values(t).flatMap((t=>t.map((t=>t.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(t)}isCalculationSummation(t){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.keys(t)))):this._calculationSummations=new Set),this._calculationSummations.has(t)}softwareCredits(){return this._reportData.softwareCredits??[]}}class en{constructor(t){this._p=t}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let t;return t=this._p?"f"===this._p?"None":this._p.includes("/")?Be(this.from(),!1)+" to "+Be(this.to(),!0):Be(this.to(),!0):"Undefined",t}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Ve(this._p.split("/")[1]):Ve(this._p):null}from(){return this._p&&this._p.includes("/")?Ve(this._p.split("/")[0]):null}isEquivalentDuration(t){const e=t.type(),n=this.type();if(!e||!n)return!1;if(e!==n)return!1;if("d"!==e)return!0;const i=t.to().toDate()-t.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const nn={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class rn{static identifierURL(t){const e=nn[t.namespace];if(void 0!==e&&void 0!==e.url){let n=e.url.replace("%s",t.localname);return n=n.replace(/%0(\d+)d/,((e,n)=>t.localname.padStart(n,"0"))),n}}static identifierNameForFact(t){const e=nn[t.identifier().namespace];if(void 0!==e)return e.name}static readableName(t){const e=nn[t.namespace];return void 0!==e?"["+e.name+"] "+t.localname:t.qname}static readableNameHTML(t){const e=nn[t.namespace],n=document.createElement("span");if(void 0!==e){n.appendChild(document.createElement("span")).textContent="["+e.name+"] ";const i=rn.identifierURL(t);if(void 0!==i){const e=n.appendChild(document.createElement("a"));e.textContent=t.localname,e.setAttribute("target","_blank"),e.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=t.localname}else n.textContent=t.qname;return n}}const on={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class sn{constructor(t,e,n){this._aspect=t,this._value=e,this._report=n}name(){return this._aspect}label(){return on[this._aspect]??this._report.getLabel(this._aspect)}labelOrNameAndLang(){return this._aspect in on?{label:on}:this._report.getLabelOrNameAndLang(this._aspect)}value(){return this._value}equalTo(t){return void 0!==t&&this._aspect===t._aspect&&this._value===t._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(t){return this.valueLabelAndLang(t).label}valueLabelAndLang(t){return"c"===this._aspect?this._report.getLabelOrNameAndLang(this._value,t):this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?{label:null===this._value?"nil":this._value}:this._report.getLabelOrNameAndLang(this._value,t):"u"===this._aspect?{label:this._report.reportSet.getUnit(this._value).label()}:"p"===this._aspect?{label:new en(this._value).toString()}:"e"===this._aspect?{label:rn.readableName(this._report.qname(this._value))}:{label:this._value}}}class an{constructor(t){this._aspectSet=t||[]}add(t){this._aspectSet.push(t)}uniqueValues(){let t={};for(const e of Object.values(this._aspectSet))t[e.value()]=e;return Object.values(t)}}class ln{constructor(t,e){this.a="object"==typeof t?t:new Ne(t),this.b="object"==typeof e?e:new Ne(e)}static fromFact(t){if(!t.isNumeric())return;const e=t.decimals();let n,i=0;void 0!==e&&(i=new Ne(10).pow(0-e).times(.5));const r=t.value();try{n=new Ne(r)}catch(t){if(t instanceof Error&&/DecimalError/.test(t.message))return;throw t}return new ln(n.minus(i),n.plus(i))}intersection(t){return ln.intersection(this,t)}static intersection(...t){if(t.includes(void 0)||0==t.length)return;const e=t.map((t=>t.a)),n=t.map((t=>t.b)),i=Ne.max(...e),r=Ne.min(...n);return r.lessThan(i)?void 0:new ln(i,r)}plus(t){return new ln(this.a.plus(t.a),this.b.plus(t.b))}times(t){return t>0?new ln(this.a.times(t),this.b.times(t)):new ln(this.b.times(t),this.a.times(t))}midpoint(){return Ne.add(this.a,this.b).div(2)}}class cn{constructor(t,e,n){this.f=n,this.ixNode=t.reportSet.getIXNodeForItemId(e),this.report=t,this.vuid=e,this.linkedFacts=[],this._footnotes=[]}localId(){return function(t){return t.replace(/^\d+-/,"")}(this.vuid)}isMandatory(){return this.f.a.m}getLabel(t,e){return this.report.getLabel(this.f.a.c,t,e)}getLabelAndLang(t,e){return this.report.getLabelAndLang(this.f.a.c,t,e)}getLabelOrName(t,e){return this.report.getLabelOrName(this.f.a.c,t,e)}getLabelOrNameAndLang(t,e){return this.report.getLabelOrNameAndLang(this.f.a.c,t,e)}conceptName(){return this.f.a.c}conceptDisplayName(){return this.report.reportSet.taxonomyNamer.convertQName(this.conceptQName())}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new en(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(t){let n=void 0===t?this.f.v:t;if(this.isInvalidIXValue())n="Invalid value";else if(this.isNumeric()){const t=this.decimals();let e;e=this.isNil()?"nil":Ze(n,t),n=this.isMonetaryValue()?this.unitLabel()+" "+e:e+" "+this.unitLabel()}else if(this.isNil())n="nil";else if(this.isTextBlock()){const t=e()("<div>").append(e()(e().parseHTML(n,null,!1)));t.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=t.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const e of n.split(" "))t.push(this.report.getLabelOrName(e,"std"));n=t.join(", ")}return n}unit(){if(void 0===this._unit){const t=this.aspect("u")?.value();if(!t)return;this._unit=this.report.reportSet.getUnit(t)}return this._unit}unitLabel(){return this.unit()?.label()??Q.t("factDetails.noUnit")}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const t={};for(const[e,n]of Object.entries(this.f.a))e.indexOf(":")>-1&&(t[e]=n);return t}hasExplicitDimension(){return Object.keys(this.dimensions()).some((t=>!this.report.getConcept(t).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((t=>this.report.getConcept(t).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((t=>this.aspect(t)))}aspect(t){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[t]&&void 0!==this.f.a[t]&&(this._aspects[t]=new sn(t,this.f.a[t],this.report)),this._aspects[t]}isAligned(t,e){if(Object.keys(this.f.a).length!=Object.keys(t.f.a).length)return!1;for(const n in this.f.a)if(e.hasOwnProperty(n)){if(null!==e[n])if(e[n].constructor===Array){if(!e[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=e[n])return!1}else if(this.f.a[n]!=t.f.a[n])return!1;return!0}isEquivalentDuration(t){return this.period().isEquivalentDuration(t.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(t,e=!1){return this.report.getScaleLabel(e?-t:t,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.decimals();if(void 0===t)return Q.t("common.accuracyInfinite");if(null===t)return Q.t("common.unspecified");const e=this.getScaleLabel(t,!0);return null!=e?e:t.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.scale();if(null==t)return Q.t("common.unscaled");const e=this.getScaleLabel(t);return null!=e?e:t.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(t){this._footnotes.push(t)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const t=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.src)));return t}narrowerConcepts(){const t=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.t)));return t}addLinkedFact(t){this.linkedFacts.push(t)}roundedValue(){Ne.rounding=Ne.ROUND_HALF_UP;const t=new Ne(this.value()),e=this.decimals();return void 0===e?t:t.mul(10**e).round().mul(10**(0-e))}isCompleteDuplicate(t){return this.value()===t.value()&&this.decimals()===t.decimals()}addLinkedFact(t){this.linkedFacts.push(t)}valueInterval(){return ln.fromFact(this)}isMorePrecise(t){return void 0!==t.decimals()&&(void 0===this.decimals()||this.decimals()>t.decimals())}targetDocument(){return this.report.targetDocument()}}class un{constructor(t,e,n){this.vuid=e,this.linkedFacts=[],this.title=n,this.ixNode=t.reportSet.getIXNodeForItemId(e)}addLinkedFact(t){this.linkedFacts.push(t)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class dn{constructor(t,e){this._reportSet=t,this._value=e;const n=e.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Oe,this._label=n.map((t=>{const e=t.split("*").map((t=>function(t,e){const n=t.qname(e);return n.namespace===Oe?e=Q.t(`currencies:unitFormat${n.localname}`,{defaultValue:n.localname}):e.includes(":")&&(e=e.split(":")[1]),e}(this._reportSet,t))).join("*");return e.includes("*")?`(${e})`:e})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}}class hn{constructor(t,e){const n=e.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=t[n[0]],this.qname=e}}function pn(){this.showPrefixes=!0,this.language=null}class fn{constructor(t){this.map=new Map(Array.from(t.entries()).map((([t,e])=>[new RegExp(t),new gn(e[0],e[1])])))}getName(t,e){for(const[t,n]of this.map.entries())if(null!==e.match(t))return n;return new gn(t,t)}fromQName(t){return this.getName(t.prefix,t.namespace)}convertQName(t){return this.fromQName(t).prefix+":"+t.localname}}class gn{constructor(t,e){this.prefix=t,this.name=e}}class mn{constructor(t){this._data=t,this._ixNodeMap={},this.viewerOptions=new pn,this.taxonomyNamer=new fn(new Map)}setIXNodeMap(t){this._ixNodeMap=t,this._initialize()}_initialize(){this._items={},this.reports=[];const t=Object.keys(this._ixNodeMap).filter((t=>this._ixNodeMap[t].footnote));t.sort(((t,e)=>this._ixNodeMap[t].docOrderindex-this._ixNodeMap[e].docOrderindex));for(const[e,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new tn(this,i);this.reports.push(n);for(const[t,r]of Object.entries(i.facts)){const i=Xe(e,t);this._items[i]=new cn(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Xe(e,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Xe(e,n);var r=this._items[i];void 0===r&&(r=new un(o.report,i,"Footnote "+(t.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((t,e)=>new Set([...t,...e.availableLanguages()])),new Set))}getItemById(t){return this._items[t]}getIXNodeForItemId(t){return this._ixNodeMap[t]||{}}facts(){return Object.values(this._items).filter((t=>t instanceof cn))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}preferredPrefix(t){return this.taxonomyNamer.getName(t,this._data.prefixes[t]).prefix}namespaceGroups(){const t={};for(const e of this.facts())t[e.conceptQName().prefix]=(t[e.conceptQName().prefix]||0)+1;const e=Object.keys(t);return e.sort(((e,n)=>t[n]-t[e])),e}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.getConceptPrefix())))),this._usedPrefixes}getUsedConceptDataTypes(){if(void 0===this._usedDataTypes){const t=new Map;for(const e of Object.values(this._items).filter((t=>t instanceof cn)).map((t=>({dataType:t.concept().dataType(),isNumeric:t.isNumeric()}))).filter((t=>void 0!==t.dataType)))t.set(e.dataType.name,e);this._usedDataTypes=t.values().toArray()}return this._usedDataTypes}getSoftwareCredits(){let t=new Set(this.reports.flatMap((t=>t.softwareCredits())));return Array.from(t).sort()}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.unit()?.value())).filter((t=>t)).sort())),this._usedUnits}getUnit(t){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[t]&&(this._unitsMap[t]=new dn(this,t)),this._unitsMap[t]}getUsedScalesMap(){const t={};return Object.values(this._items).filter((t=>t instanceof cn)).forEach((e=>{const n=e.scale();if(null!=n){n in t||(t[n]=new Set);const r=t[n],o=(i=e.getScaleLabel(n))?i.split(" ").map((t=>Array.from(t).map(((t,e)=>0===e?t.toUpperCase():t)).join(""))).join(" "):i;o&&!r.has(o)&&r.add(o)}var i})),t}roleMap(){return this._data.roles}qname(t){return new hn(this.prefixMap(),t)}reportsData(){return this._data.sourceReports?.flatMap((t=>t.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((t,e)=>(t.docSetFiles??[]).map((t=>({index:e,file:t}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((t=>void 0!==t.rels?.["w-n"]))}usesCalculations(){return this.reportsData().some((t=>Object.keys(t.rels?.calc??{}).length>0))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(t){return Object.values(this._items).filter((e=>e instanceof cn&&e.report==t))}}function vn(t){return"(?:"+t.join("|")+")"}function yn(t){return"(?:"+t+")?"}function bn(t){return"(?:"+t+")*"}const wn=vn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),An="[  \t\n\r]",xn=An+"*",Cn="[-—]",Mn="(?:^|(?<=(?:[/“—([]|"+An+"|"+Cn+")))",Ln="(?:$|(?=(?:[/,.:;”—)\\]]|"+An+"|"+Cn+")))",In="(?:st|nd|rd|th)",_n="[123]?\\d"+In+"?",Sn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",kn="(?:[01]?\\d)",Tn="(?:19|20)\\d\\d",Dn="year"+xn+Tn,jn=Sn+xn+_n+xn+","+xn+Tn,Nn=Tn+xn+Sn+xn+_n,On="\\d{4}-\\d{2}-\\d{2}",En=vn([jn,Nn,Sn+xn+Tn,Sn+xn+_n,On]),zn=(vn([jn,Nn,On]),"\\b"+vn([En,Tn,Dn])+"\\b"),Fn="\\d+"+xn+"months?",Rn="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",Pn="section"+xn+"\\d{1,3}\\(?:?\\w\\)?",Yn="topic"+xn+"\\d{1,3}(?:\\.[\\w\\d])*",Un="form"+xn+"\\d{1,2}-\\w",Wn="asc"+xn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Bn="item"+xn+"\\d{1,2}\\w?",Zn="rule"+xn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Hn="note"+xn+"\\d{1,3}",Gn="level"+xn+"\\d{1,3}",Vn="page"+xn+"\\d{1,3}",Qn="tier"+xn+"\\d{1,3}",Jn=vn([Rn,"\\d+"])+xn+"months ended",Xn=vn([Pn,Yn,Un,Wn,Bn,Zn,Hn,Gn,Vn,Qn,Jn,kn+"/[0-3]?d/"+Tn,kn+"/\\d\\d"]),qn=vn([yn(xn+Cn+xn),xn]),Kn=Rn+bn(qn+Rn),$n=Kn+bn(qn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+yn(qn+Kn)),ti=vn([vn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+yn("\\.\\d+"),"\\.\\d+"]),ei=vn([yn(wn+xn)+yn("[-+(]"+xn)+yn(wn+xn)+ti+yn(In)+yn(xn+vn([wn,"\\%"]))+xn+"\\)?"+yn(xn+vn([wn,"\\%"])),$n,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),ni=Mn+vn(["("+zn+")","("+Xn+")",Fn,ei])+Ln,ii=new RegExp(ni,"gi");var ri=n(461),oi=n(60);function si(t,e){var n=e.attribute;return t=t.replace(ai,"&amp;").replace(li,"&gt;").replace(ci,"&lt;"),n&&(t=t.replace(ui,"&apos;").replace(di,"&quot;")),t}var ai=/&/g,li=/>/g,ci=/</g,ui=/'/g,di=/"/g,hi=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,pi=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function fi(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===e||e;return t=t.replace(hi,""),n&&(t=t.replace(pi,"")),t}function gi(t){return si(fi(t),{attribute:!0})}function mi(t){return si(fi(t),{attribute:!1})}function vi(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(gi(String(t[e])),'"')})).reduce((function(t,e){return t+" "+e}),"")}function yi(t,e){return"".concat(wi(t)).concat(e)}var bi=26;function wi(t){if("number"!=typeof t)return"";var e=Math.floor(t/bi),n=String.fromCharCode(97+t%bi).toUpperCase();return 0===e?n:wi(e-1)+n}function Ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function xi(t,e,n,i,r,o){if(null===n&&!r)return"";var s={r:yi(e,t)};if(r&&(s.s=r),null===n)return"<c".concat(vi(s),"/>");if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(t,e,n){switch(t){case String:if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return n(e);case Number:if("number"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a number"));return String(e);case Date:if(!(e instanceof Date))throw new Error("Invalid cell value: ".concat(e,". Expected a Date"));return String(function(t){return t.getTime()/864e5+25569}(e));case Boolean:if("boolean"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a boolean"));return e?"1":"0";case"Formula":if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return mi(e);default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i,n,o),(i=function(t){switch(t){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i))&&(s.t=i);var a,l,c=function(t){var e=function(t){switch(t){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(t),n=e.replace(Ci,"</");return[e,n]}(i),u=(l=2,function(t){if(Array.isArray(t))return t}(a=c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(a,l)||function(t,e){if(t){if("string"==typeof t)return Ai(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(t,e):void 0}}(a,l)||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.")}()),d=u[0],h=u[1];return"<c".concat(vi(s),">")+d+n+h+"</c>"}var Ci=/</g;function Mi(t){var e=t.align,n=t.alignVertical,i=t.textRotation,r=t.indent,o=t.wrap,s=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,u=t.color,d=t.backgroundColor,h=t.borderColor,p=t.borderStyle,f=t.leftBorderColor,g=t.leftBorderStyle,m=t.rightBorderColor,v=t.rightBorderStyle,y=t.topBorderColor,b=t.topBorderStyle,w=t.bottomBorderColor,A=t.bottomBorderStyle;if(e||n||i||r||o||s||a||l||c||u||d||h||p||f||g||m||v||y||b||w||A)return function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({align:e,alignVertical:n,textRotation:i,indent:r,wrap:o,fontFamily:s,fontSize:a,fontWeight:l,fontStyle:c,color:u,backgroundColor:d,borderColor:h,borderStyle:p,leftBorderColor:f,leftBorderStyle:g,rightBorderColor:m,rightBorderStyle:v,topBorderColor:y,topBorderStyle:b,bottomBorderColor:w,bottomBorderStyle:A})}function Li(t){return Li="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},Li(t)}function Ii(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 _i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ii(Object(n),!0).forEach((function(e){Si(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Si(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ti={fontWeight:"bold"};function Di(t,e){if(!t)return"";if(t.type!==Date||t.width||(t.width=14),!t.width)return"";var n=e+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(t.width,'" customWidth="1"/>')}function ji(t){var e=t.data,n=t.rowIndex,i=t.columnIndex,r=t.span,o=t.rowSpan,s=t.cloneData,a=Mi(e[n][i]);a&&(e=s());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=e[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[l][c]=a)}c++}l++}}function Ni(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Oi(t,e){var n=e.schema,i=e.columns,r=e.getHeaderStyle,o=e.getStyle,s=e.getSharedString,a=e.customFont,l=e.dateFormat,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.showGridLines,p=e.rightToLeft,f=e.sheetId;!function(t,e){if(e.schema){if(!Array.isArray(t))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(t))throw new TypeError("Expected an array of arrays");if(t.length>0&&!Array.isArray(t[0]))throw new TypeError("Expected an array of arrays")}}(t,{schema:n});var g=function(t,e){var n=[];if(e.schema)return{data:t,mergedCells:n};for(var i=function(){t=t.slice();for(var e=0;e<t.length;)t[e]=t[e].slice(),e++;return i=function(){return t},t},r=0;r<t.length;){for(var o=t[r],s=0;s<o.length;){var a=o[s];if(a){var l=a.span,c=void 0===l?1:l,u=a.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(ji({data:t,rowIndex:r,columnIndex:s,span:c,rowSpan:d,cloneData:i}),n.push([[r,s],[r+(d?d-1:0),s+(c?c-1:0)]]))}s++}r++}return{data:t,mergedCells:n}}(t,{schema:n}),m=g.data,v=g.mergedCells;return'<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>'.replace("{data}",function(t,e){var n=e.schema,i=e.getHeaderStyle,r=e.getStyle,o=e.getSharedString,s=e.customFont,a=e.dateFormat;if(n){for(var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ki(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(t){return _i({type:String,value:t.column,align:t.align},i?i(t):Ti)}))];break}t=c.concat(t.map((function(t){return n.map((function(e){return _i(_i({},e),{},{value:e.value(t)})}))})))}return t.map((function(t,e){return function(t,e,n){var i,r=n.getStyle,o=n.getSharedString,s=n.customFont,a=n.dateFormat,l=n.usesSchema,c=e+1,u=t.map((function(t,e){if(null==t)return"";var n,u=t.height,d=Mi(t),h=t.type,p=t.value,f=t.format;if(function(t){return null==t||""===t}(p)?p=null:void 0===h&&(l||(h=function(t){switch(Li(t)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(t instanceof Date)return Date}}(p)),void 0===h&&(h=String,p=String(p))),f){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(f=a);return(f||s||d)&&(n=r(d||{},{format:f})),u&&(void 0===i||i<u)&&(i=u),xi(c,e,p,h,n,o)})).join(""),d={r:c};return i&&(d.ht=i,d.customHeight=1),"<row".concat(vi(d),">")+u+"</row>"}(t,e,{getStyle:r,getSharedString:o,customFont:s,dateFormat:a,usesSchema:void 0!==n})})).join("")}(m,{schema:n,getHeaderStyle:r,getStyle:o,getSharedString:s,customFont:a,dateFormat:l})).replace("{views}",function(t){var e=t.stickyRowsCount,n=t.stickyColumnsCount,i=t.showGridLines,r=t.rightToLeft;if(!e&&!n&&!1!==i&&!r)return"";var o="",s={tabSelected:1,workbookViewId:0};!1===i&&(s.showGridLines=!1),r&&(s.rightToLeft=1);var a={ySplit:e||0,xSplit:n||0,topLeftCell:yi(n||0,(e||0)+1),activePane:"bottomRight",state:"frozen"};return o+="<sheetViews>",o+="<sheetView".concat(vi(s),">"),o+="<pane".concat(vi(a),"/>"),(o+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d,showGridLines:h,rightToLeft:p})).replace("{columnsDescription}",function(t){var e=t.schema,n=t.columns;if(e||n){var i=(e||n).map(Di).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(t){return 0===t.length?"":'<mergeCells count="'.concat(t.length,'">')+t.map((function(t){var e,n,i=(n=2,function(t){if(Array.isArray(t))return t}(e=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=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Ni(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(t,e):void 0}}(e,n)||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.")}()),r=i[0],o=i[1],s=yi(r[1],r[0]+1)+":"+yi(o[1],o[0]+1);return'<mergeCell ref="'.concat(s,'"/>')})).join("")+"</mergeCells>"}(v)).replace("{layout}",function(t){var e=t.sheetId,n=t.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(gi(n),'"'),i+=' r:id="rId'.concat(e,'"'),i+="/>"),i}({sheetId:f,orientation:c}))}function Ei(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t){if("#"!==t[0])throw new Error('Color "'.concat(t,'" must start with a "#"'));return"FF".concat(t.slice(1).toUpperCase())}function Ri(t){if(!(t>=-90&&t<=90))throw new Error("Unsupported text rotation angle: ".concat(t,". Values from -90 to 90 are supported."));return t}function Pi(t){return t<0?90-t:t}function Yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ui(){var t=[],e={};return{getSharedStringsXml:function(){return function(t){var e='<?xml version="1.0"?>';e+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';e+="<si><t".concat(o,">"),e+=mi(r),e+="</t></si>"}return e+"</sst>"}(t)},getSharedString:function(n){var i=e[n];return void 0===i&&(i=String(t.length),e[n]=i,t.push(n)),i}}}var Wi=/[\[\]\/\\:*?]+/;function Bi(t){if(!t)throw new Error("Sheet name can't be empty");if(t.length>31)throw new Error('Sheet name "'.concat(t,"\" can't be longer than 31 characters"));if(Wi.test(t))throw new Error('Sheet name "'.concat(t,'" contains illegal characters: []/\\:*?'))}function Zi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Hi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Gi=["fileName"];function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Qi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fileName;return function(t,e){var n=e.sheet,i=e.sheets,r=e.schema,o=e.columns,s=e.headerStyle,a=e.getHeaderStyle,l=e.fontFamily,c=e.fontSize,u=e.orientation,d=e.stickyRowsCount,h=e.stickyColumnsCount,p=e.showGridLines,f=e.rightToLeft,g=e.dateFormat,m=new ri;m.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),m.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var v=function(t){var e=t.data,n=t.sheetName,i=t.sheetNames,r=t.schema,o=t.columns,s=t.headerStyle,a=t.getHeaderStyle,l=t.fontFamily,c=t.fontSize,u=t.orientation,d=t.stickyRowsCount,h=t.stickyColumnsCount,p=t.showGridLines,f=t.rightToLeft,g=t.dateFormat,m=Ui(),v=m.getSharedStringsXml,y=m.getSharedString,b=function(t){var e=t.fontFamily,n=t.fontSize,i=Boolean(e||n);void 0===e&&(e="Calibri"),void 0===n&&(n=12);var r=[],o={},s=[],a={},l=[],c={},u=[],d={},h=[],p={};function f(t,f){var g,m=t.align,v=t.alignVertical,y=t.textRotation,b=t.indent,w=t.wrap,A=t.fontFamily,x=t.fontSize,C=t.fontWeight,M=t.fontStyle,L=t.color,I=t.backgroundColor,_=t.borderColor,S=t.borderStyle,k=t.leftBorderColor,T=t.leftBorderStyle,D=t.rightBorderColor,j=t.rightBorderStyle,N=t.topBorderColor,O=t.topBorderStyle,E=t.bottomBorderColor,z=t.bottomBorderStyle,F=f.format,R="".concat(A||"-",":").concat(x||"-",":").concat(C||"-",":").concat(M||"-",":").concat(L||"-"),P=I||"-",Y="".concat(N||_||"-",":").concat(O||S||"-")+"/"+"".concat(D||_||"-",":").concat(j||S||"-")+"/"+"".concat(E||_||"-",":").concat(z||S||"-")+"/"+"".concat(k||_||"-",":").concat(T||S||"-"),U="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(b||"-","/").concat(w||"-","/").concat(F||"-","/").concat(R,"/").concat(P,"/").concat(Y),W=a[U];if(void 0!==W)return W;F&&void 0===(g=o[F])&&(g=o[F]=String(100+r.length),r.push(F));var B,Z,H=i?0:void 0;return(A||x||C||M||L)&&void 0===(H=c[R])&&(H=c[R]=String(l.length),l.push({custom:!0,size:x||n,family:A||e,weight:C,style:M,color:L})),I&&void 0===(B=d[P])&&(B=d[P]=String(u.length),u.push({color:I})),(_||S||k||T||D||j||N||O||E||z)&&void 0===(Z=p[Y])&&(Z=p[Y]=String(h.length),h.push({left:{style:T||S,color:k||_},right:{style:j||S,color:D||_},top:{style:O||S,color:N||_},bottom:{style:z||S,color:E||_}})),s.push({fontId:H,fillId:B,borderId:Z,align:m,alignVertical:v,textRotation:y,indent:b,wrap:w,formatId:g}),a[U]=String(s.length-1)}return l.push({size:n,family:e,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),p["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),f({},{}),{getStylesXml:function(){return function(t){var e=t.formats,n=t.styles,i=t.fonts,r=t.fills,o=t.borders,s='<?xml version="1.0" ?>';if(s+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e.length>0){s+='<numFmts count="'.concat(e.length,'">');for(var a=0;a<e.length;a++)s+='<numFmt numFmtId="'.concat(100+a,'" formatCode="').concat(gi(e[a]),'"/>');s+="</numFmts>"}s+='<fonts count="'.concat(i.length,'">');for(var l,c=Ei(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,p=u.color,f=u.weight,g=u.style,m=u.custom;s+="<font>",s+='<sz val="'.concat(d,'"/>'),s+="<color ".concat(p?'rgb="'+gi(Fi(p))+'"':'theme="1"',"/>"),s+='<name val="'.concat(gi(h),'"/>'),s+='<family val="2"/>',m||(s+='<scheme val="minor"/>'),"bold"===f&&(s+="<b/>"),"italic"===g&&(s+="<i/>"),s+="</font>"}s+="</fonts>",s+='<fills count="'.concat(r.length,'">');for(var v,y=Ei(r);!(v=y()).done;){var b=v.value,w=b.color,A=b.gray125;s+="<fill>",w?(s+='<patternFill patternType="solid">',s+='<fgColor rgb="'.concat(gi(Fi(w)),'"/>'),s+='<bgColor indexed="64"/>',s+="</patternFill>"):s+=A?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',s+="</fill>"}s+="</fills>",s+='<borders count="'.concat(o.length,'">');for(var x,C=Ei(o);!(x=C()).done;){var M=x.value,L=M.left,I=M.right,_=M.top,S=M.bottom,k=function(t,e){var n=e.style,i=e.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(t)+(n?' style="'.concat(gi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(gi(Fi(i)),'"/>'):"")+(r?"</".concat(t,">"):"")};s+="<border>",s+=k("left",L),s+=k("right",I),s+=k("top",_),s+=k("bottom",S),s+="<diagonal/>",s+="</border>"}s+="</borders>",s+='<cellXfs count="'.concat(n.length,'">');for(var T,D=Ei(n);!(T=D()).done;){var j=T.value,N=j.fontId,O=j.fillId,E=j.borderId,z=j.align,F=j.alignVertical,R=j.textRotation,P=j.indent,Y=j.wrap,U=j.formatId;s+="<xf "+[void 0!==U?'numFmtId="'.concat(U,'"'):void 0,void 0!==U?'applyNumberFormat="1"':void 0,void 0!==N?'fontId="'.concat(N,'"'):void 0,void 0!==N?'applyFont="1"':void 0,void 0!==O?'fillId="'.concat(O,'"'):void 0,void 0!==O?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,z||F||R||P||Y?'applyAlignment="1"':void 0].filter((function(t){return t})).join(" ")+">"+(z||F||R||P||Y?"<alignment"+(z?' horizontal="'.concat(gi(z),'"'):"")+(F?' vertical="'.concat(gi(F),'"'):"")+(R?' textRotation="'.concat(Pi(Ri(R)),'"'):"")+(P?' indent="'.concat(gi(String(P)),'"'):"")+(Y?' wrapText="1"':"")+"/>":"")+"</xf>"}return(s+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:s,fonts:l,fills:u,borders:h})},getStyle:f}}({fontFamily:l,fontSize:c}),w=b.getStylesXml,A=b.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],e=[e],o&&(o=[o]),r&&(r=[r])),s&&!a&&(a=function(){return s});for(var x,C=Zi(i);!(x=C()).done;)Bi(x.value);for(var M,L=[],I=0,_=Zi(i);!(M=_()).done;)M.value,L.push(Oi(e[I],{schema:r&&r[I],columns:o&&o[I],getHeaderStyle:a,getStyle:A,getSharedString:y,customFont:l||c,dateFormat:g,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,sheetId:I+1})),I++;return{sheets:i.map((function(t,e){return{id:e+1,name:t,data:L[e]}})),getSharedStringsXml:v,getStylesXml:w}}({data:t,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:s,getHeaderStyle:a,fontFamily:l,fontSize:c,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,dateFormat:g}),y=v.sheets,b=v.getSharedStringsXml,w=v.getStylesXml,A=m.folder("xl");A.file("_rels/workbook.xml.rels",function(t){var e=t.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+e.map((function(t){var e=t.id;return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(e.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(e.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:y})),A.file("workbook.xml",function(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(t.stickyRowsCount||t.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+t.sheets.map((function(t){var e=t.id,n=t.name;return'<sheet name="'.concat(gi(n),'" sheetId="').concat(e,'" r:id="rId').concat(e,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:y,stickyRowsCount:d,stickyColumnsCount:h})),A.file("styles.xml",w()),A.file("sharedStrings.xml",b());for(var x,C=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Vi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y);!(x=C()).done;){var M=x.value,L=M.id,I=M.data;A.file("worksheets/sheet".concat(L,".xml"),I)}return m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"deflate"})}(t,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,Gi)).then((function(t){return n?oi.saveAs(t,n):t}))}class Ji{constructor(t,e){this._table=t,this._reportSet=e}static addHandles(t,n){e()("table",t).each((function(){const t=e()(this);if(t.find("tr").filter(((t,n)=>e()(n).find(".ixbrl-element").length>0)).length>1){t.css("position","relative");const i=new Ji(t,n);e()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(t).on("click",(()=>i.exportTable()))}}))}_getRawTable(){const t=this._table,n=this._reportSet;let i=0;const r=[];t.find("tr").each((function(){const t=[];e()(this).find("td:visible, th:visible").each((function(){const i=e()(this).attr("colspan");if(i)for(let e=0;e<i-1;e++)t.push({type:"static",value:""});const r=e()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const t=r.first().data("ivids");o=n.getItemById(t)}if(o instanceof cn){const n={type:"fact",fact:o},i=e()(this)[0];let s=r[0],a=s.textContent;for(;s!==i;)s=null!==s.previousSibling?s.previousSibling:s.parentNode,3==s.nodeType&&(a=s.textContent+a);null!==a.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==e()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==e()(this).css("border-bottom-style").match(/(solid|double)/),t.push(n)}else{const n=e()(this).text();t.push({type:"static",value:n})}})),t.length>i&&(i=t.length),r.push(t)}));for(const t of r)for(;t.length<i;)t.push({type:"static",value:""});return r}_getFactsInSlice(t){return t.filter((t=>"fact"===t.type)).map((t=>t.fact))}_getConstantAspectsForSlice(t,e){const n=this._getFactsInSlice(t);if(0==n.length)return null;const i=new Set;for(const t of n)for(const e of t.aspects())i.add(e.name());const r=new Map;for(const t of i){r.set(t,n[0].aspect(t));for(let e=1;e<n.length;e++)void 0!==r.get(t)&&r.get(t).equalTo(n[e].aspect(t))||r.delete(t)}return r}_writeTable(t){const e=[],n=[];for(const[i,r]of t.entries()){const t=[];for(const[e,i]of r.entries()){const r={};"fact"===i.type?(n[e]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),t.push(r)}e.push(t)}return{columns:n,data:e}}exportTable(){const t=this._getRawTable();let e=0;const n=[],i=new Set;for(const r of t){const t=this._getConstantAspectsForSlice(r);if(n.push(t),null!==t)for(const[e,n]of t)i.add(e);r.length>e&&(e=r.length)}const r=[],o=new Set;for(let n=0;n<e;n++){const e=t.map((t=>t[n])),i=this._getConstantAspectsForSlice(e);if(r.push(i),null!==i)for(const[t,e]of i)o.add(t)}const s=new Set(o);for(const t of o)for(const[e,n]of Object.entries(r))null===n||n.get(t)||s.delete(t);for(const t of o)i.delete(t);for(const n of o){const o=Array.from(i).map((()=>""));for(let t=0;t<e;t++){let e=(r[t]||new Map).get(n);void 0!==e&&(e=e.valueLabel("std")),o.push({type:"aspectLabel",value:e||""})}t.unshift(o)}for(let e=o.size;e<t.length;e++){const r=[];for(const t of i){let i=(n[e-o.size]||new Map).get(t);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}t[e]=r.concat(t[e])}const a=this._writeTable(t);Qi(a.data,{columns:a.columns,fileName:"table.xlsx"})}}var Xi=0;class qi{constructor(t,e,n){this.wrapperNodes=e,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=t,this.isHidden=!1,this.docOrderindex=Xi++}continuationIds(){return this.continuations.map((t=>t.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((t=>t.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.filter(":not(.ixbrl-no-highlight)").is(":hidden")||this.wrapperNodes.is(((t,n)=>function(t){const e=parseFloat(t.split(",")[3]);return!isNaN(e)&&e<.1}(e()(n).css("color"))))}}class Ki{constructor(){this.index=[]}addItem(t,e){this.index.push({vuid:t,docIndex:e})}getAdjacentItem(t,e){const n=this.index.findIndex((e=>e.vuid===t)),i=this.index.length;return this.index[(n+e+i)%i].vuid}getFirstInDocument(t){return this.index.filter((e=>e.docIndex===t))[0].vuid}getLastInDocument(t){return this.index.filter((e=>e.docIndex===t)).at(-1).vuid}}class $i{constructor(t){this.node=e()("#dialog-templates").find(t).clone().appendTo("#ixv #dialog-container"),e()(".close",this.node).on("click",(()=>this.close())),e()(document).on("keyup",(t=>{27===t.which&&this.close()}))}addButton(t,n,i){const r=this.node.find(".buttons"),o=e()("<button></button>").text(t).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){e()(".dialog-mask").hide(),this.node.get(0).close(),this.node.remove()}show(){e()(".dialog-mask").show(),this.node.get(0).showModal(),this.node.show()}}class tr extends $i{constructor(t,e,n,i){super(".dialog.message-box"),this.title=t,this.message=e,this.okText=n,this.cancelText=i}show(t,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=e()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),t&&t()})),this.cancelText){const t=e()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(t),t.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((t,e)=>{this.show((()=>t(!0)),(()=>t(!1)))}))}}class er extends Error{}function nr(t){return-1==t.indexOf(":")?t:t.substring(t.indexOf(":")+1)}class ir{constructor(t,n,i){this._iv=t,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=e().Callbacks(),this.onMouseEnter=e().Callbacks(),this.onMouseLeave=e().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ki,this._currentDocumentIndex=0}_checkContinuationCount(){const t=Object.keys(this.continuationOfMap).length;if(t>this._iv.options.continuationElementLimit){const n=e()("<div></div>").append(e()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${t} ix:continuation elements).`)).append(e()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(e()("<p></p>").text("Do you want to continue trying to load this document?"));return new tr("Large document warning",n,"Continue","Cancel").showAsync().then((t=>{if(!t)throw new er("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(t,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((t=>{throw t})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(t){e()(this).data("selected",t==i._currentDocumentIndex);const n=e()(this).data("report-index");i._preProcessiXBRL(e()(this).contents().find("body").get(0),n,t)})),async function(){for(const[t,n]of i._iframes.toArray().entries()){const r=e()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,t),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=e()(r).children(":visible");o.hide(),e()(r).addClass("review"),i._wrapUntaggedNumbers(e()(r),t,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),t()}))})).catch((t=>n(t)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){e()("#ixv .ixds-tabs").show();for(const[t,n]of this._reportSet.reportFiles().entries())e()('<button class="tab"></button>').text(n.file).prop("title",n.file).data("ix-doc-id",t).on("click",(()=>this.selectDocument(t))).appendTo(e()("#ixv #viewer-pane .ixds-tabs .tab-area"));e()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(t){let n="<span>";if("block"===getComputedStyle(t).getPropertyValue("display"))n="<div>";else{const e=t.getElementsByTagName("*");for(var i=0;i<e.length;i++)if("block"===getComputedStyle(e[i]).getPropertyValue("display")){n="<div>";break}}return e()(t).wrap(n),t.parentNode}_wrapUntaggedNumbers(t,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;t.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const t=nr(this.nodeName.toUpperCase());"NONFRACTION"===t||"NONNUMERIC"===t&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(e()(this),n,"NONNUMERIC"===t)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=e()("<div></div>");let o=0;!function(t,e){for(var n;null!==(n=ii.exec(t));)e(n,void 0!==n[2],void 0!==n[1])}(n,(function(s,a,l){if(s.index>o&&r.append(document.createTextNode(n.substring(o,s.index))),a||i&&0===s.index&&s.index+s[0].length===n.length&&n===t.text())r.append(document.createTextNode(s[0]));else{const t=l?"review-untagged-date":"review-untagged-number";e()("<span></span>").text(s[0]).addClass(t).appendTo(r)}o=s.index+s[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),e()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(t,n){if(this.selectDocument(t),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=e().escapeSelector(i),r=this._iframes.eq(t).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(t){const n=e()(t).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&e()(t).attr("target","_blank"):e()(t).on("click",(t=>{this._showDocumentAndElement(o,r),t.preventDefault()}))}}_findOrCreateWrapperNode(t,n){if(n)return e()(t).addClass("ixbrl-element-hidden");const i=t.closest("td,th"),r=[],o=e()(t).text();if(null!==i&&o.length>0){const t=e()(i).text(),n=t.indexOf(o),s=t.substring(0,n)+t.substring(n+o.length);/[0-9A-Za-z]/.test(s)||r.push(i)}0==r.length&&r.push(this._wrapNode(t));for(const t of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&r.push(t);for(const[t,e]of r.entries())r.length>1&&e.classList.add("ixbrl-contains-absolute"),0==t?e.classList.add("ixbrl-element"):e.classList.add("ixbrl-sub-element");return e()(r)}_addIdToNode(t,e){const n=t.data("ivids")||[];n.push(e),t.data("ivids",n)}_buildContinuationMaps(){const t={},n={};this._iframes.each(((i,r)=>{const o=e()(r).data("report-index");e()(r).contents().find("body *").each(((e,i)=>{const r=nr(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const e=Xe(o,i.getAttribute("id")),s=Xe(o,i.getAttribute("continuedAt"));null!==s&&(t[e]=s),"CONTINUATION"!=r&&(n[e]=[])}}))})),this.continuationOfMap={};for(const[e,r]of Object.entries(n))for(var i=e;void 0!==t[i];)i=t[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=e;this.itemContinuationMap=n}_getOrCreateIXNode(t,e,n,i){let r=this._ixNodeMap[t];return r||(r=new qi(t,e,n),this._ixNodeMap[t]=r,r.isHidden=i),r}_preProcessiXBRL(t,e,n,i){const r=nr(t.nodeName).toUpperCase(),o="FOOTNOTE"===r,s="CONTINUATION"===r,a="NONNUMERIC"===r,l="NONFRACTION"===r,c=a||l;if(1===t.nodeType){const u=Xe(e,t.getAttribute("id"));if(c||o){if(t.hasAttribute("id")){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),u);let r=this._getOrCreateIXNode(u,e,n,i);if(this._docOrderItemIndex.addItem(u,n),l&&(e.addClass("ixbrl-element-nonfraction"),t.hasAttribute("scale"))){const e=Number(t.getAttribute("scale"));Number.isNaN(e)||0===e||(r.scale=e)}a&&(e.addClass("ixbrl-element-nonnumeric"),t.hasAttribute("escape")&&t.getAttribute("escape").match(/^(true|1)$/)&&(r.escaped=!0)),o&&(e.addClass("ixbrl-element-footnote"),r.footnote=!0)}}else if(s){if(t.hasAttribute("id")&&void 0!==this.continuationOfMap[u]){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),this.continuationOfMap[u]),this._getOrCreateIXNode(u,e,n,i),e.addClass("ixbrl-continuation")}}else if("HIDDEN"==r)i=!0;else{const o=Xe(e,function(t){if(t.hasAttribute("style")){const e=/(?:^|\s|;)(?:-sec|-esef)?-ix-hidden:\s*([^\s;]+)/,n=t.getAttribute("style").match(e);if(n)return n[1]}return null}(t));if(null!==o){let e=this._findOrCreateWrapperNode(t,i);e.addClass("ixbrl-element").data("ivids",[o]),this._docOrderItemIndex.addItem(o,n);const r=this._ixNodeMap[o];r?(r.wrapperNodes=e,r.docIndex=n):this._ixNodeMap[o]=new qi(o,e,n)}"A"==r&&this._updateLink(t)}}this._preProcessChildNodes(t,e,n,i)}_preProcessChildNodes(t,e,n,i){for(const r of t.childNodes)this._preProcessiXBRL(r,e,n,i)}_applyStyles(){const t=e()("<style>").prop("type","text/css").text(n(95).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",t)}contents(){return this._iframes.contents()}_selectAdjacentTag(t,e){var n;null!==e?(n=this._docOrderItemIndex.getAdjacentItem(e.vuid,t),this.showDocumentForItemId(n)):n=t>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const t=this;e()(".ixbrl-element",this._contents).on("click",(function(n){n.stopPropagation(),t.selectElementByClick(e()(this))})).on("mouseenter",(function(n){t._mouseEnter(e()(this))})).on("mouseleave",(function(n){t._mouseLeave(e()(this))})),e()("body",this._contents).on("click",(()=>t.selectElement(null))),e()("#iframe-container .zoom-in").on("click",(()=>this.zoomIn())),e()("#iframe-container .zoom-out").on("click",(()=>this.zoomOut())),e()("#iframe-container .print").on("click",(()=>this.currentDocument().get(0).contentWindow.print())),Ji.addHandles(this._contents,this._reportSet)}selectNextTag(t){this._selectAdjacentTag(1,t)}selectPrevTag(t){this._selectAdjacentTag(-1,t)}intersect(t,e){const n={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(t){const n=e()(t).css("overflow-y");if(t.clientHeight>0&&t.clientHeight<t.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=e()(t).css("overflow-x");return t.clientWidth>0&&t.clientWidth<t.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(t){var n=t.getBoundingClientRect();const i=t.getBoundingClientRect();for(var r=e()(t.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=t.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(t){const e=t.filter(":not(.ixbrl-no-highlight)").get(0);this.isFullyVisible(e)||e.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){e()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(t){return t.data("ivids")}selectElement(t,e,n){null!==t?this.onSelect.fire(t,e,n):this.onSelect.fire(null)}selectElementByClick(t){let n=[];const i=this;let r;t.hasClass(".ixbrl-element")||(t=t.closest(".ixbrl-element")),t.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(e()(this));n=n.concat(o),e()(this).text()==t.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(t){const e=t.data("ivids")[0];this.onMouseEnter.fire(e)}_mouseLeave(t){const e=t.data("ivids")[0];this.onMouseLeave.fire(e)}highlightRelatedFact(t){this.changeItemClass(t.vuid,"ixbrl-related")}highlightRelatedFacts(t){for(const e of t)this.changeItemClass(e.vuid,"ixbrl-related")}clearRelatedHighlighting(t){e()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(t){if(!(t in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${t}`);return this._ixNodeMap[t].wrapperNodes}elementsForItemIds(t){return e()(t.map((t=>this.elementsForItemId(t).get())).flat())}changeItemClass(t,e,n){const i=this.elementsForItemIds([t].concat(this.itemContinuationMap[t]));n?i.removeClass(e):i.addClass(e)}highlightItem(t){this.clearHighlighting(),this.changeItemClass(t,"ixbrl-selected")}showItemById(t){if(null!==t){let e=this.elementsForItemId(t);this.showDocumentForItemId(t),e.length>0&&this.showElement(e)}}highlightAllTags(t,n){const i={};e().each(n,(function(t,e){i[e]=t%3}));const r=this._reportSet,o=this;t?(e()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const t=e()(this).data("ivids").map((t=>o._ixNodeMap[t])).filter((t=>!t.footnote))[0];if(void 0!==t){const e=r.getItemById(t.id);if(void 0!==e){const n=o.elementsForItemIds(t.chainIXIds()),r=i[e.conceptQName().prefix];void 0!==r&&n.addClass("ixbrl-highlight-"+r)}}})),e()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):e()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((t,e)=>(e.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const t=this._contents.scrollTop(),n=e()("html",this._contents).height();e()("body",this._contents).css("zoom",this.scale);const i=e()("html",this._contents).height();this._contents.scrollTop(i*t/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(t){var n=[];return this.elementsForItemId(t.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(e()(this).data("ivids"))})),n}linkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight",!0)}_setTitle(t){const n=e()("head title",this._iframes.eq(t).contents()).text();e()("#top-bar .document-title").text(n).attr("aria-label","Inline Viewer: "+n)}showDocumentForItemId(t){this.selectDocument(this._ixNodeMap[t].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(t){this._currentDocumentIndex=t,e()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(t).addClass("active"),this._iframes.height(0).data("selected",!1).eq(t).height("100%").data("selected",!0),this._setTitle(t)}*postProcess(){for(const t of this._iframes.get()){const n=e()(t).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&e.getBoundingClientRect().height,t%100==0&&(yield);for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&0==e.getBoundingClientRect().height&&e.classList.add("ixbrl-no-highlight"),t%100==0&&(yield)}}postLoadAsync(){Je(this.postProcess())}}var rr=n(790),or=n.n(rr),sr=n(998),ar=n.n(sr);class lr{constructor(t){this._reportSet=t,this.ready=!1}*buildSearchIndex(t){var e=[],n={},i=this._reportSet.facts();this.periods={};for(var r=0;r<i.length;r++){var o=i[r],s={id:o.vuid},a=o.getLabel("std");for(var l in s.concept=o.conceptQName().localname,s.doc=o.getLabel("doc"),s.date=o.periodTo(),s.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(a+=" "+n[l]):a+=" "+o.report.getLabel(n[l],"std");s.label=a,s.ref=o.concept().referenceValuesAsString();const t=o.widerConcepts();t.length>0&&(s.widerConcept=o.report.qname(t[0]).localname,s.widerLabel=o.report.getLabel(t[0],"std"),s.widerDoc=o.report.getLabel(t[0],"doc")),e.push(s);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(ar().Builder);u.pipeline.add(ar().trimmer,ar().stopWordFilter,ar().stemmer),u.searchPipeline.add(ar().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[t,n]of e.entries())u.add(n),t%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,t()}visibilityFilter(t,e){return"*"===t.visibilityFilter||"visible"===t.visibilityFilter&&!e.isHidden()||"hidden"===t.visibilityFilter&&e.isHidden()}periodFilter(t,e){return 0===t.periodFilter.length||t.periodFilter.some((t=>e.period().key()===t))}conceptTypeFilter(t,e){return"*"===t.conceptTypeFilter||t.conceptTypeFilter===(e.isNumeric()?"numeric":"text")}dimensionTypeFilter(t,e){const n=t.dimensionTypeFilter.includes("typed"),i=t.dimensionTypeFilter.includes("explicit");return 0===t.dimensionTypeFilter.length||n&&e.hasTypedDimension()||i&&e.hasExplicitDimension()}factValueFilter(t,e){return"*"===t.factValueFilter||"positive"===t.factValueFilter&&e.isPositive()||"negative"===t.factValueFilter&&e.isNegative()}calculationsFilter(t,e){const n=t.calculationsFilter.includes("summation"),i=t.calculationsFilter.includes("contributor");return 0===t.calculationsFilter.length||n&&e.isCalculationSummation()||i&&e.isCalculationContributor()}namespacesFilter(t,e){return 0===t.namespacesFilter.length||t.namespacesFilter.some((t=>e.getConceptPrefix()===t))}dataTypesFilter(t,e){return null==t.dataTypesFilter||0===t.dataTypesFilter.length||t.dataTypesFilter.some((t=>e.concept().dataType()?.name===t))}unitsFilter(t,e){return 0===t.unitsFilter.length||t.unitsFilter.some((t=>e.unit()?.value()===t))}scalesFilter(t,e){return 0===t.scalesFilter.length||t.scalesFilter.some((t=>e.scale()===Number(t)))}targetDocumentFilter(t,e){return 0===t.targetDocumentFilter.length||t.targetDocumentFilter.some((t=>(e.targetDocument()??":default")===t))}mandatoryFactFilter(t,e){return!t.showMandatoryFacts||e.isMandatory()}search(t){if(!this.ready)return;const e=this._searchIndex.search(t.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.dataTypesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter,this.mandatoryFactFilter];return e.forEach(((e,o)=>{const s=i._reportSet.getItemById(e.ref);r.every((e=>e(t,s)))&&n.push({fact:s,score:e.score})})),n}}function cr(t){return t+.5|0}const ur=(t,e,n)=>Math.max(Math.min(t,n),e);function dr(t){return ur(cr(2.55*t),0,255)}function hr(t){return ur(cr(255*t),0,255)}function pr(t){return ur(cr(t/2.55)/100,0,1)}function fr(t){return ur(cr(100*t),0,100)}const gr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mr=[..."0123456789ABCDEF"],vr=t=>mr[15&t],yr=t=>mr[(240&t)>>4]+mr[15&t],br=t=>(240&t)>>4==(15&t);const wr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ar(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function xr(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Cr(t,e,n){const i=Ar(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Mr(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,s]}function Lr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(hr)}function Ir(t,e,n){return Lr(Ar,t,e,n)}function _r(t){return(t%360+360)%360}const Sr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},kr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Tr;const Dr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,jr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Nr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Or(t,e,n){if(t){let i=Mr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Ir(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Er(t,e){return t?Object.assign(e||{},t):t}function zr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=hr(t[3]))):(e=Er(t,{r:0,g:0,b:0,a:1})).a=hr(e.a),e}function Fr(t){return"r"===t.charAt(0)?function(t){const e=Dr.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?dr(t):ur(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?dr(n):ur(n,0,255)),i=255&(e[4]?dr(i):ur(i,0,255)),r=255&(e[6]?dr(r):ur(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):function(t){const e=wr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?dr(+e[5]):hr(+e[5]));const r=_r(+e[2]),o=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Lr(Cr,t,e,n)}(r,o,s):"hsv"===e[1]?function(t,e,n){return Lr(xr,t,e,n)}(r,o,s):Ir(r,o,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Rr{constructor(t){if(t instanceof Rr)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=zr(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*gr[i[1]],g:255&17*gr[i[2]],b:255&17*gr[i[3]],a:5===o?17*gr[i[4]]:255}:7!==o&&9!==o||(r={r:gr[i[1]]<<4|gr[i[2]],g:gr[i[3]]<<4|gr[i[4]],b:gr[i[5]]<<4|gr[i[6]],a:9===o?gr[i[7]]<<4|gr[i[8]]:255})),n=r||function(t){Tr||(Tr=function(){const t={},e=Object.keys(kr),n=Object.keys(Sr);let i,r,o,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,Sr[o]);o=parseInt(kr[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Tr.transparent=[0,0,0,0]);const e=Tr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Fr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Er(this._rgb);return t&&(t.a=pr(t.a)),t}set rgb(t){this._rgb=zr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>br(t.r)&&br(t.g)&&br(t.b)&&br(t.a))(t)?vr:yr,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Mr(t),n=e[0],i=fr(e[1]),r=fr(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${pr(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=n.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Nr(pr(t.r)),r=Nr(pr(t.g)),o=Nr(pr(t.b));return{r:hr(jr(i+n*(Nr(pr(e.r))-i))),g:hr(jr(r+n*(Nr(pr(e.g))-r))),b:hr(jr(o+n*(Nr(pr(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Rr(this.rgb)}alpha(t){return this._rgb.a=hr(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=cr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Or(this._rgb,2,t),this}darken(t){return Or(this._rgb,2,-t),this}saturate(t){return Or(this._rgb,1,t),this}desaturate(t){return Or(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Mr(t);n[0]=_r(n[0]+e),n=Ir(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}const Pr=(()=>{let t=0;return()=>t++})();function Yr(t){return null==t}function Ur(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Wr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Br(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Zr(t,e){return Br(t)?t:e}function Hr(t,e){return void 0===t?e:t}function Gr(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Vr(t,e,n,i){let r,o,s;if(Ur(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if(Wr(t))for(s=Object.keys(t),o=s.length,r=0;r<o;r++)e.call(n,t[s[r]],s[r])}function Qr(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function Jr(t){if(Ur(t))return t.map(Jr);if(Wr(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Jr(t[n[r]]);return e}return t}function Xr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function qr(t,e,n,i){if(!Xr(t))return;const r=e[t],o=n[t];Wr(r)&&Wr(o)?Kr(r,o,i):e[t]=Jr(o)}function Kr(t,e,n){const i=Ur(e)?e:[e],r=i.length;if(!Wr(t))return t;const o=(n=n||{}).merger||qr;let s;for(let e=0;e<r;++e){if(s=i[e],!Wr(s))continue;const r=Object.keys(s);for(let e=0,i=r.length;e<i;++e)o(r[e],t,s,n)}return t}function $r(t,e){return Kr(t,e,{merger:to})}function to(t,e,n){if(!Xr(t))return;const i=e[t],r=n[t];Wr(i)&&Wr(r)?$r(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Jr(r))}const eo={"":t=>t,x:t=>t.x,y:t=>t.y};function no(t,e){const n=eo[e]||(eo[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function io(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ro=t=>void 0!==t,oo=t=>"function"==typeof t,so=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},ao=Math.PI,lo=2*ao,co=Number.POSITIVE_INFINITY,uo=ao/2,ho=Math.log10,po=Math.sign;function fo(t,e,n){return Math.abs(t-e)<n}function go(t){const e=Math.round(t);t=fo(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ho(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function mo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function vo(t){return t*(ao/180)}function yo(t){if(!Br(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function bo(t){return(t%lo+lo)%lo}function wo(t,e,n){return Math.max(e,Math.min(n,t))}function Ao(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function xo(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Co=(t,e,n,i)=>xo(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),Mo=(t,e,n)=>xo(t,n,(i=>t[i][e]>=n)),Lo=["push","pop","shift","splice","unshift"];function Io(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Lo.forEach((e=>{delete t[e]})),delete t._chartjs)}const _o="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function So(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,_o.call(window,(()=>{i=!1,t.apply(e,n)})))}}const ko=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,To=t=>0===t||1===t,Do=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*lo/n),jo=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*lo/n)+1,No={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*uo),easeOutSine:t=>Math.sin(t*uo),easeInOutSine:t=>-.5*(Math.cos(ao*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>To(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>To(t)?t:Do(t,.075,.3),easeOutElastic:t=>To(t)?t:jo(t,.075,.3),easeInOutElastic(t){const e=.1125;return To(t)?t:t<.5?.5*Do(2*t,e,.45):.5+.5*jo(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-No.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*No.easeInBounce(2*t):.5*No.easeOutBounce(2*t-1)+.5};function Oo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Eo(t){return Oo(t)?t:new Rr(t)}function zo(t){return Oo(t)?t:new Rr(t).saturate(.5).darken(.1).hexString()}const Fo=["x","y","borderWidth","radius","tension"],Ro=["color","borderColor","backgroundColor"],Po=new Map;function Yo(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Po.get(n);return i||(i=new Intl.NumberFormat(t,e),Po.set(n,i)),i}(e,n).format(t)}const Uo={values:t=>Ur(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=ho(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Yo(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(ho(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Uo.numeric.call(this,t,e,n):""}};var Wo={formatters:Uo};const Bo=Object.create(null),Zo=Object.create(null);function Ho(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Go(t,e,n){return"string"==typeof e?Kr(Ho(t,e),n):Kr(Ho(t,""),e)}class Vo{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>zo(e.backgroundColor),this.hoverBorderColor=(t,e)=>zo(e.borderColor),this.hoverColor=(t,e)=>zo(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Go(this,t,e)}get(t){return Ho(this,t)}describe(t,e){return Go(Zo,t,e)}override(t,e){return Go(Bo,t,e)}route(t,e,n,i){const r=Ho(this,t),o=Ho(this,n),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[i];return Wr(t)?Object.assign({},e,t):Hr(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Qo=new Vo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Ro},numbers:{type:"number",properties:Fo}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Wo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Jo(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function Xo(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function qo(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ko(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function $o(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ts(t){t.restore()}function es(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function ns(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function is(t,e,n,i,r,o={}){const s=Ur(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Yr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&ns(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Yr(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,i,o.maxWidth)),t.fillText(c,n,i,o.maxWidth),es(t,n,i,c,o),i+=Number(r.lineHeight);t.restore()}function rs(t,e){const{x:n,y:i,w:r,h:o,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*ao,ao,!0),t.lineTo(n,i+o-s.bottomLeft),t.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,ao,uo,!0),t.lineTo(n+r-s.bottomRight,i+o),t.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,uo,0,!0),t.lineTo(n+r,i+s.topRight),t.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-uo,!0),t.lineTo(n+s.topLeft,i)}const os=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ss=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function as(t,e){const n=(""+t).match(os);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function ls(t,e){const n={},i=Wr(e),r=i?Object.keys(e):e,o=Wr(t)?i?n=>Hr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+o(t)||0;return n}function cs(t){return ls(t,{top:"y",right:"x",bottom:"y",left:"x"})}function us(t){const e=cs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ds(t,e){t=t||{},e=e||Qo.font;let n=Hr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Hr(t.style,e.style);i&&!(""+i).match(ss)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Hr(t.family,e.family),lineHeight:as(Hr(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Hr(t.weight,e.weight),string:""};return r.string=function(t){return!t||Yr(t.size)||Yr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function hs(t,e,n,i){let r,o,s,a=!0;for(r=0,o=t.length;r<o;++r)if(s=t[r],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&Ur(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function ps(t,e){return Object.assign(Object.create(t),e)}function fs(t,e=[""],n,i,r=()=>t[0]){const o=n||t;void 0===i&&(i=Ls("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>fs([n,...t],e,o,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>bs(n,i,(()=>function(t,e,n,i){let r;for(const o of e)if(r=Ls(vs(o,t),n),void 0!==r)return ys(t,r)?Cs(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Is(t).includes(e),ownKeys:t=>Is(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function gs(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ms(t,i),setContext:e=>gs(t,e,n,i),override:r=>gs(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>bs(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;let a=i[e];return oo(a)&&s.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,s||i);return a.delete(t),ys(t,l)&&(l=Cs(r._scopes,r,t,l)),l}(e,a,t,n)),Ur(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=n;if(void 0!==o.index&&i(t))return e[o.index%e.length];if(Wr(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Cs(i,r,t,l);e.push(gs(n,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable)),ys(e,a)&&(a=gs(a,r,o&&o[e],s)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function ms(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:oo(n)?n:()=>n,isIndexable:oo(i)?i:()=>i}}const vs=(t,e)=>t?t+io(e):e,ys=(t,e)=>Wr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function bs(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function ws(t,e,n){return oo(t)?t(e,n):t}const As=(t,e)=>!0===t?e:"string"==typeof t?no(e,t):void 0;function xs(t,e,n,i,r){for(const o of e){const e=As(n,o);if(e){t.add(e);const o=ws(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Cs(t,e,n,i){const r=e._rootScopes,o=ws(e._fallback,n,i),s=[...t,...r],a=new Set;a.add(i);let l=Ms(a,s,n,o||n,i);return null!==l&&(void 0===o||o===n||(l=Ms(a,s,o,l,i),null!==l))&&fs(Array.from(a),[""],r,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Ur(r)&&Wr(n)?n:r||{}}(e,n,i)))}function Ms(t,e,n,i,r){for(;n;)n=xs(t,e,n,i,r);return n}function Ls(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Is(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function _s(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ss(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ks(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}Number.EPSILON;const Ts=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Ds=["top","right","bottom","left"];function js(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Ds[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ns(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Ts(n),o="border-box"===r.boxSizing,s=js(r,"padding"),a=js(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let s,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:p,height:f}=e;return o&&(p-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const Os=t=>Math.round(10*t)/10;function Es(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const zs=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};_s()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Fs(t,e){const n=function(t,e){return Ts(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}class Rs{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=_o.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ps=new Rs;const Ys="transparent",Us={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Eo(t||Ys),r=i.valid&&Eo(e||Ys);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Ws{constructor(t,e,n,i){const r=e[n];i=hs([t.to,i,r,t.from]);const o=hs([t.from,r,i]);this._active=!0,this._fn=t.fn||Us[t.type||typeof o],this._easing=No[t.easing]||No.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=hs([t.to,e,i,t.from]),this._from=hs([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Bs{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Wr(t))return;const e=Object.keys(Qo.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Wr(r))return;const o={};for(const t of e)o[t]=r[t];(Ur(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(r[l]=u=new Ws(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Ps.add(this._chart,n),!0):void 0}}function Zs(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function Hs(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Gs(t,e,n,i={}){const r=t.keys,o="single"===i.mode;let s,a,l,c;if(null!==e){for(s=0,a=r.length;s<a;++s){if(l=+r[s],l===n){if(i.all)continue;break}c=t.values[l],Br(c)&&(o||0===e||po(e)===po(c))&&(e+=c)}return e}}function Vs(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Qs(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Js(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Xs(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Qs(r,u,o),h[a]=d,h._top=Js(h,s,!0,i.type),h._bottom=Js(h,s,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function qs(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Ks(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const $s=t=>"reset"===t||"none"===t,ta=(t,e)=>e?t:Object.assign({},t);class ea{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Vs(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=Hr(n.xAxisID,qs(t,"x")),o=e.yAxisID=Hr(n.yAxisID,qs(t,"y")),s=e.rAxisID=Hr(n.rAxisID,qs(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,o,s),c=e.vAxisID=i(a,o,r,s);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Io(this._data,this),t._stacked&&Ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Wr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",o="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[r]:u,[o]:t[u]};return a}(e,t)}else if(n!==e){if(n){Io(n,this);const t=this._cachedMeta;Ks(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Lo.forEach((t=>{const e="_onData"+io(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Vs(e.vScale,e),e.stack!==n.stack&&(i=!0,Ks(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Xs(this,e._parsed),e._stacked=Vs(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,s=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Ur(i[t])?this.parseArrayData(n,i,t,e):Wr(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[s]||d&&l[s]<d[s];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}o&&Xs(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,l=r.getLabels(),c=r===o,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[s]:c||r.parse(l[p],p),[a]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:r.parse(u[0],c),y:o.parse(u[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(no(h,s),d),y:o.parse(no(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return Gs({keys:Hs(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,o=Gs(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,o=i.length,s=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Hs(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(s);let d,h;function p(){h=i[d];const e=h[s.axis];return!Br(h[t.axis])||c>e||u<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,t,h,a),!r));++d);if(r)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i][t.axis],Br(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return Wr(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(Hr(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Zs(t,n),r=Zs(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return ps(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return ps(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,s=r[o],a=this.enableOptionSharing&&ro(n);if(s)return ta(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(Qo.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,e)),u);return p.$shared&&(p.$shared=a,r[o]=Object.freeze(ta(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const l=new Bs(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||$s(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){$s(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!$s(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ks(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function na(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,o,s,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(ro(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),l();return a}function ia(t,e,n,i){return Ur(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function ra(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(s[c],c),l.push(ia(h,d,o,c));return l}function oa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function sa(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[aa(u,s,a,l)]=!0,r=c)),o[aa(r,s,a,l)]=!0,t.borderSkipped=o}function aa(t,e,n,i){var r,o,s;return i?(s=n,t=la(t=(r=t)===(o=e)?s:r===s?o:r,n,e)):t=la(t,e,n),t}function la(t,e,n){return"start"===t?e:"end"===t?n:t}function ca(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class ua extends ea{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return ra(t,e,n,i)}parseArrayData(t,e,n,i){return ra(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?s:a,c="x"===o.axis?s:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(no(f,l),d),u.push(ia(no(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,s=oa(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:o,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,i);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||Yr(e[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[s.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||oa(e._custom)||o===f._top||o===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;sa(g,m,f,o),ca(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(e),a=s&&s[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(Yr(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===r||-1===o.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const s=t.barThickness;return{min:s||na(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:o}}=this,s=r||0,a=this.getParsed(t),l=a._custom,c=oa(l);let u,d,h=a[e.axis],p=0,f=n?this.applyStack(e,a,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&po(h)!==po(l.barEnd)&&(p=0),p+=h);const g=Yr(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?po(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,s)*o,h===s&&(m-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),p=Math.max(t,r);m=Math.max(Math.min(m,p),l),u=m+d,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=po(d)*e.getLineWidthForValue(s)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,o=Hr(i.maxBarThickness,1/0);let s,a;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let o,s;return Yr(r)?(o=e.min*n.categoryPercentage,s=n.barPercentage):(o=r*i,s=1),{chunk:o/i,ratio:s,start:e.pixels[t]-o/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);s=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(o,e.min*e.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}function da(t,e,n,i){const{controller:r,data:o,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&s&&o.length){const t=a._reversePixels?Mo:Co;if(!i)return t(o,e,n);if(r._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(o,e,n-r),s=t(o,e,n+r);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function ha(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=da(o[t],e,s,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function pa(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(ha(t,n,e,(function(n,s,a){(r||Ko(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:s,index:a})}),!0),o):o}function fa(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return ha(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!o&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})})),s}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return ha(t,n,e,(function(t,n,o){const{startAngle:s,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=function(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*ao&&(o+=lo),{angle:o,distance:r}}(t,{x:e.x,y:e.y});(function(t,e,n,i){const r=bo(t),o=bo(e),s=bo(n),a=bo(o-r),l=bo(s-r),c=bo(r-o),u=bo(r-s);return r===o||r===s||i&&o===s||a>l&&c<u})(l,s,a)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function ga(t,e,n,i,r){const o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return ha(t,n,e,((t,i,l)=>{t[s]&&t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:o}var ma={evaluateInteractionItems:ha,modes:{index(t,e,n,i){const r=Ns(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?pa(t,r,o,i,s):fa(t,r,o,!1,i,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=Ns(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?pa(t,r,o,i,s):fa(t,r,o,!1,i,s);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>pa(t,Ns(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=Ns(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return fa(t,r,o,n.intersect,i,s)},x:(t,e,n,i)=>ga(t,Ns(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ga(t,Ns(e,t),"y",n.intersect,i)}};const va=["left","top","right","bottom"];function ya(t,e){return t.filter((t=>t.pos===e))}function ba(t,e){return t.filter((t=>-1===va.indexOf(t.pos)&&t.box.axis===e))}function wa(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Aa(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function xa(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ca(t,e,n,i){const{pos:r,box:o}=n,s=t.maxPadding;if(!Wr(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[r]+=n.size}o.getPadding&&xa(s,o.getPadding());const a=Math.max(0,e.outerWidth-Aa(s,t,"left","right")),l=Math.max(0,e.outerHeight-Aa(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ma(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function La(t,e,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Ma(a.horizontal,e));const{same:s,other:d}=Ca(e,n,a,i);c|=s&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&La(r,e,n,i)||u}function Ia(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function _a(t,e,n,i){const r=n.padding;let{x:o,y:s}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;ro(l.start)&&(s=l.start),t.fullSize?Ia(t,r.left,s,n.outerWidth-r.right-r.left,o):Ia(t,e.left+l.placed,s,i,o),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;ro(l.start)&&(o=l.start),t.fullSize?Ia(t,o,r.top,s,n.outerHeight-r.bottom-r.top):Ia(t,o,e.top+l.placed,s,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=s}var Sa={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=us(t.options.layout.padding),o=Math.max(e-r.width,0),s=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,o,s,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),n=wa(e.filter((t=>t.box.fullSize)),!0),i=wa(ya(e,"left"),!0),r=wa(ya(e,"right")),o=wa(ya(e,"top"),!0),s=wa(ya(e,"bottom")),a=ba(e,"x"),l=ba(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:ya(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Vr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},r);xa(h,us(i));const p=Object.assign({maxPadding:h,w:o,h:s,x:r.left,y:r.top},r),f=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!va.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:s&&e.availableHeight)}return n}(l.concat(c),d);La(a.fullSize,p,d,f),La(l,p,d,f),La(c,p,d,f)&&La(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),_a(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,_a(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Vr(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ka{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Ta extends ka{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Da="$chartjs",ja={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Na=t=>null===t||""===t,Oa=!!zs&&{passive:!0};function Ea(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Oa)}function za(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Fa(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||za(n.addedNodes,i),e=e&&!za(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ra(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||za(n.removedNodes,i),e=e&&!za(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Pa=new Map;let Ya=0;function Ua(){const t=window.devicePixelRatio;t!==Ya&&(Ya=t,Pa.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Wa(t,e,n){const i=t.canvas,r=i&&Ss(i);if(!r)return;const o=So(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return s.observe(r),function(t,e){Pa.size||window.addEventListener("resize",Ua),Pa.set(t,e)}(t,o),s}function Ba(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Pa.delete(t),Pa.size||window.removeEventListener("resize",Ua)}(t)}function Za(t,e,n){const i=t.canvas,r=So((e=>{null!==t.ctx&&n(function(t,e){const n=ja[t.type]||t.type,{x:i,y:r}=Ns(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Oa)}(i,e,r),r}class Ha extends ka{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Da]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Na(r)){const e=Fs(t,"width");void 0!==e&&(t.width=e)}if(Na(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Fs(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Da])return!1;const n=e[Da].initial;["height","width"].forEach((t=>{const i=n[t];Yr(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Da],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Fa,detach:Ra,resize:Wa}[e]||Za;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Ba,detach:Ba,resize:Ba}[e]||Ea)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=Ts(t),o=js(r,"margin"),s=ks(r.maxWidth,t,"clientWidth")||co,a=ks(r.maxHeight,t,"clientHeight")||co,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=t&&Ss(t);if(o){const t=o.getBoundingClientRect(),s=Ts(o),a=js(s,"border","width"),l=js(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=ks(s.maxWidth,o,"clientWidth"),r=ks(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||co,maxHeight:r||co}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=js(r,"border","width"),e=js(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=Os(Math.min(c,s,l.maxWidth)),u=Os(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Os(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=Os(Math.floor(u*i))),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=t&&Ss(t);return!(!e||!e.isConnected)}}class Ga{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return mo(this.x)&&mo(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Va(t,e,n,i,r){const o=Hr(i,0),s=Math.min(Hr(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<s;l++)l===c&&(e.push(t[l]),u++,c=Math.round(o+u*n))}const Qa=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Ja=(t,e)=>Math.min(e||t,t);function Xa(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function qa(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-o,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<o-a||c>s+a)))return c}function Ka(t){return t.drawTicks?t.tickLength:0}function $a(t,e){if(!t.display)return 0;const n=ds(t.font,e),i=us(t.padding);return(Ur(t.text)?t.text.length:1)*n.lineHeight+i.height}function tl(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class el extends Ga{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Zr(t,Number.POSITIVE_INFINITY),e=Zr(e,Number.NEGATIVE_INFINITY),n=Zr(n,Number.POSITIVE_INFINITY),i=Zr(i,Number.NEGATIVE_INFINITY),{min:Zr(t,n),max:Zr(e,i),minDefined:Br(t),maxDefined:Br(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:Zr(n,Zr(i,n)),max:Zr(i,Zr(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Gr(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,o=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),s=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:s(i,-Math.abs(o)),max:s(r,o)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?Xa(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>r)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=n[o*i])}(e,c,o,s/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>r)return e}return Math.max(r,1)}(o,e,r);if(s>0){let t,n;const i=s>1?Math.round((l-a)/(s-1)):null;for(Va(e,c,u,Yr(i)?0:a-i,a),t=0,n=s-1;t<n;t++)Va(e,c,u,o[t],o[t+1]);return Va(e,c,u,l,Yr(i)?e.length:l+i),c}return Va(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Gr(this.options.afterUpdate,[this])}beforeSetDimensions(){Gr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Gr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Gr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Gr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Gr(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Gr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Gr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Ja(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let o,s,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=wo(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),s=this.maxHeight-Ka(t.grid)-e.padding-$a(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(wo((c.highest.height+6)/o,-1,1)),Math.asin(wo(s/a,-1,1))-Math.asin(wo(d/a,-1,1)))*(180/ao),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Gr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Gr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const o=$a(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=Ka(r)+o):(t.height=this.maxHeight,t.width=Ka(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),a=2*n.padding,l=vo(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(s){const e=n.mirror?0:u*r.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Gr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Yr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Xa(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,o=[],s=[],a=Math.floor(e/Ja(e,n));let l,c,u,d,h,p,f,g,m,v,y,b=0,w=0;for(l=0;l<e;l+=a){if(d=t[l].label,h=this._resolveTickFontOptions(l),i.font=p=h.string,f=r[p]=r[p]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Yr(d)||Ur(d)){if(Ur(d))for(c=0,u=d.length;c<u;++c)y=d[c],Yr(y)||Ur(y)||(m=Jo(i,f.data,f.gc,m,y),v+=g)}else m=Jo(i,f.data,f.gc,m,d),v=g;o.push(m),s.push(v),b=Math.max(m,b),w=Math.max(v,w)}!function(t,e){Vr(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const A=o.indexOf(b),x=s.indexOf(w),C=t=>({width:o[t]||0,height:s[t]||0});return{first:C(0),last:C(e-1),widest:C(A),highest:C(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return wo(this._alignToPixels?Xo(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return ps(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ps(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=vo(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,s=r?r.widest.width+o:0,a=r?r.highest.height+o:0;return this.isHorizontal()?a*n>s*i?s/n:a/i:a*i<s*n?a/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:o,border:s}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Ka(r),d=[],h=s.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,g=function(t){return Xo(n,t,p)};let m,v,y,b,w,A,x,C,M,L,I,_;if("top"===o)m=g(this.bottom),A=this.bottom-u,C=m-f,L=g(t.top)+f,_=t.bottom;else if("bottom"===o)m=g(this.top),L=t.top,_=g(t.bottom)-f,A=m+f,C=this.top+u;else if("left"===o)m=g(this.right),w=this.right-u,x=m-f,M=g(t.left)+f,I=t.right;else if("right"===o)m=g(this.left),M=t.left,I=g(t.right)-f,w=m+f,x=this.left+u;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(Wr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}L=t.top,_=t.bottom,A=m+f,C=A+u}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(Wr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-f,x=w-u,M=t.left,I=t.right}const S=Hr(i.ticks.maxTicksLimit,c),k=Math.max(1,Math.ceil(c/S));for(v=0;v<c;v+=k){const t=this.getContext(v),e=r.setContext(t),i=s.setContext(t),o=e.lineWidth,c=e.color,u=i.dash||[],h=i.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=qa(this,v,a),void 0!==y&&(b=Xo(n,y,o),l?w=x=M=I=b:A=C=L=_=b,d.push({tx1:w,ty1:A,tx2:x,ty2:C,x1:M,y1:L,x2:I,y2:_,width:o,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,o=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=Ka(n.grid),h=d+c,p=u?-c:h,f=-vo(this.labelRotation),g=[];let m,v,y,b,w,A,x,C,M,L,I,_,S="middle";if("top"===i)A=this.bottom-p,x=this._getXAxisLabelAlignment();else if("bottom"===i)A=this.top+p,x=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("x"===e){if("center"===i)A=(t.top+t.bottom)/2+h;else if(Wr(i)){const t=Object.keys(i)[0],e=i[t];A=this.chart.scales[t].getPixelForValue(e)+h}x=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)w=(t.left+t.right)/2-h;else if(Wr(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)}x=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?S="top":"end"===a&&(S="bottom"));const k=this._getLabelSizes();for(m=0,v=s.length;m<v;++m){y=s[m],b=y.label;const t=r.setContext(this.getContext(m));C=this.getPixelForTick(m)+r.labelOffset,M=this._resolveTickFontOptions(m),L=M.lineHeight,I=Ur(b)?b.length:1;const e=I/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,h=x;if(o?(w=C,"inner"===x&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),_="top"===i?"near"===l||0!==f?-I*L+L/2:"center"===l?-k.highest.height/2-e*L+L:-k.highest.height+L/2:"near"===l||0!==f?L/2:"center"===l?k.highest.height/2-e*L:k.highest.height-I*L,u&&(_*=-1),0===f||t.showLabelBackdrop||(w+=L/2*Math.sin(f))):(A=C,_=(1-I)*L/2),t.showLabelBackdrop){const e=us(t.backdropPadding),n=k.heights[m],i=k.widths[m];let r=_-e.top,o=0-e.left;switch(S){case"middle":r-=n/2;break;case"bottom":r-=n}switch(x){case"center":o-=i/2;break;case"right":o-=i;break;case"inner":m===v-1?o-=i:m>0&&(o-=i/2)}d={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:b,font:M,textOffset:_,options:{rotation:f,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:S,translation:[w,A],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-vo(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Xo(t,this.left,o)-o/2,c=Xo(t,this.right,s)+s/2,u=d=a):(u=Xo(t,this.top,o)-o/2,d=Xo(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&$o(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;is(e,t.label,0,t.textOffset,i,n)}n&&ts(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=ds(n.font),o=us(n.padding),s=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||Wr(e)?(a+=o.bottom,Ur(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,i){const{top:r,left:o,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const g=s-r,m=a-o;if(t.isHorizontal()){if(h=ko(i,o,a),Wr(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Qa(t,n,e);d=a-o}else{if(Wr(n)){const t=Object.keys(n)[0],i=n[t];h=u[t].getPixelForValue(i)-m+e}else h="center"===n?(c.left+c.right)/2-m+e:Qa(t,n,e);p=ko(i,s,r),f="left"===n?-uo:uo}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,a,e,s);is(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:tl(s,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Hr(t.grid&&t.grid.z,-1),i=Hr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===el.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return ds(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class nl{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=Kr(Object.create(null),[n?Qo.get(n):{},Qo.get(e),t.defaults]);Qo.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Qo.route(o,r,l,a)}))}(e,t.defaultRoutes),t.descriptors&&Qo.describe(e,t.descriptors)}(t,o,n),this.override&&Qo.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Qo[i]&&(delete Qo[i][n],this.override&&delete Bo[n])}}class il{constructor(){this.controllers=new nl(ea,"datasets",!0),this.elements=new nl(Ga,"elements"),this.plugins=new nl(Object,"plugins"),this.scales=new nl(el,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Vr(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=io(t);Gr(n["before"+i],[],n),e[t](n),Gr(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var rl=new il;class ol{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Gr(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){Yr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Hr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(rl.plugins.items);for(let t=0;t<i.length;t++)n.push(rl.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],s=t.getContext();for(const a of e){const e=a.id,l=sl(i[e],r);null!==l&&o.push({plugin:a,options:al(t.config,{plugin:a,local:n[e]},l,s)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function sl(t,e){return e||!1!==t?!0===t?{}:t:null}function al(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ll(t,e){const n=Qo.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function cl(t){if("x"===t||"y"===t||"r"===t)return t}function ul(t,...e){if(cl(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&cl(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function dl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function hl(t){const e=t.options||(t.options={});e.plugins=Hr(e.plugins,{}),e.scales=function(t,e){const n=Bo[t.type]||{scales:{}},i=e.scales||{},r=ll(t.type,e),o=Object.create(null);return Object.keys(i).forEach((e=>{const s=i[e];if(!Wr(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=ul(e,s,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return dl(t,"x",n[0])||dl(t,"y",n[0])}return{}}(e,t),Qo.scales[s.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};o[e]=$r(Object.create(null),[{axis:a},s,c[a],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,s=n.indexAxis||ll(r,e),a=(Bo[r]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),r=n[e+"AxisID"]||e;o[r]=o[r]||Object.create(null),$r(o[r],[{axis:e},i[r],a[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];$r(e,[Qo.scales[e.type],Qo.scale])})),o}(t,e)}function pl(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const fl=new Map,gl=new Set;function ml(t,e){let n=fl.get(t);return n||(n=e(),fl.set(t,n),gl.add(n)),n}const vl=(t,e,n)=>{const i=no(e,n);void 0!==i&&t.add(i)};class yl{constructor(t){this._config=function(t){return(t=t||{}).data=pl(t.data),hl(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=pl(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),hl(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ml(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return ml(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return ml(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return ml(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),s=o.get(e);if(s)return s;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>vl(a,t,e)))),e.forEach((t=>vl(a,i,t))),e.forEach((t=>vl(a,Bo[r]||{},t))),e.forEach((t=>vl(a,Qo,t))),e.forEach((t=>vl(a,Zo,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),gl.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Bo[e]||{},Qo.datasets[e]||{},{type:e},Qo,Zo]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=bl(this._resolverCache,t,i);let a=o;(function(t,e){const{isScriptable:n,isIndexable:i}=ms(t);for(const r of e){const e=n(r),o=i(r),s=(o||e)&&t[r];if(e&&(oo(s)||wl(s))||o&&Ur(s))return!0}return!1})(o,e)&&(r.$shared=!1,a=gs(o,n=oo(n)?n():n,this.createResolver(t,n,s)));for(const t of e)r[t]=a[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=bl(this._resolverCache,t,n);return Wr(e)?gs(r,e,void 0,i):r}}function bl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:fs(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,o)),o}const wl=t=>Wr(t)&&Object.getOwnPropertyNames(t).some((e=>oo(t[e]))),Al=["top","bottom","left","right","chartArea"];function xl(t,e){return"top"===t||"bottom"===t||-1===Al.indexOf(t)&&"x"===e}function Cl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ml(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Gr(n&&n.onComplete,[t],e)}function Ll(t){const e=t.chart,n=e.options.animation;Gr(n&&n.onProgress,[t],e)}function Il(t){return _s()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _l={},Sl=t=>{const e=Il(t);return Object.values(_l).filter((t=>t.canvas===e)).pop()};function kl(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}function Tl(t,e,n){return t.options.clip?t[n]:e[n]}class Dl{static defaults=Qo;static instances=_l;static overrides=Bo;static registry=rl;static version="4.4.5";static getChart=Sl;static register(...t){rl.add(...t),jl()}static unregister(...t){rl.remove(...t),jl()}constructor(t,e){const n=this.config=new yl(e),i=Il(t),r=Sl(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!_s()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ta:Ha}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,o.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;this.id=Pr(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ol,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],_l[this.id]=this,s&&a?(Ps.listen(this,"complete",Ml),Ps.listen(this,"progress",Ll),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return Yr(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return rl}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Es(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qo(this.canvas,this.ctx),this}stop(){return Ps.stop(this),this}resize(t,e){Ps.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Es(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Gr(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Vr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=ul(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),Vr(r,(e=>{const r=e.options,o=r.id,s=ul(o,r),a=Hr(r.type,e.dtype);void 0!==r.position&&xl(r.position,s)===xl(e.dposition)||(r.position=e.dposition),i[o]=!0;let l=null;o in n&&n[o].type===a?l=n[o]:(l=new(rl.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),Vr(i,((t,e)=>{t||delete n[e]})),Vr(n,(t=>{Sa.configure(this,t,t.options),Sa.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Cl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||ll(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=rl.getController(o),{datasetElementType:i,dataElementType:s}=Qo.datasets[o];Object.assign(e,{dataElementType:rl.getElement(s),datasetElementType:i&&rl.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Vr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Vr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Cl("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Vr(this.scales,(t=>{Sa.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);so(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)kl(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!so(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Sa.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Vr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,oo(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ps.has(this)?this.attached&&!Ps.running(this)&&Ps.start(this):(this.draw(),Ml({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Tl(n,e,"left"),right:Tl(n,e,"right"),top:Tl(i,e,"top"),bottom:Tl(i,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&$o(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&ts(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Ko(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=ma.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=ps(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);ro(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ps.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),qo(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete _l[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Vr(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){Vr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Vr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Qr(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,s=this._getActiveElements(t,i,n,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Gr(r.onHover,[t,s,this],this),a&&Gr(r.onClick,[t,s,this],this));const c=!Qr(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function jl(){return Vr(Dl.instances,(t=>t._plugins.invalidate()))}function Nl(t,e){const{x:n,y:i,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Ol(t,e,n,i){return t?0:wo(e,n,i)}function El(t){const e=Nl(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=cs(i);return{t:Ol(r.top,o.top,0,n),r:Ol(r.right,o.right,0,e),b:Ol(r.bottom,o.bottom,0,n),l:Ol(r.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,o=function(t){return ls(t,["topLeft","topRight","bottomLeft","bottomRight"])}(r),s=Math.min(e,n),a=t.borderSkipped,l=i||Wr(r);return{topLeft:Ol(!l||a.top||a.left,o.topLeft,0,s),topRight:Ol(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Ol(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Ol(!l||a.bottom||a.right,o.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}function zl(t,e,n,i){const r=null===e,o=null===n,s=t&&!(r&&o)&&Nl(t,i);return s&&(r||Ao(e,s.left,s.right))&&(o||Ao(n,s.top,s.bottom))}function Fl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Rl(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}class Pl extends Ga{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=El(this),s=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?rs:Fl;var a;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),s(t,Rl(o,e,r)),t.clip(),s(t,Rl(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Rl(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return zl(this,t,e,n)}inXRange(t,e){return zl(this,t,null,e)}inYRange(t,e){return zl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Yl(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}new WeakMap;class Ul extends el{static id="category";static defaults={ticks:{callback:Yl}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Yr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:wo(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,Hr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Yl.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Wl(t,e,{horizontal:n,minRotation:i}){const r=vo(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class Bl extends el{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Yr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,s=t=>r=n?r:t;if(t){const t=po(i),e=po(r);t<0&&e<0?s(0):t>0&&e>0&&o(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);s(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,p=c-1,{min:f,max:g}=e,m=!Yr(o),v=!Yr(s),y=!Yr(l),b=(g-f)/(u+1);let w,A,x,C,M=go((g-f)/p/h)*h;if(M<1e-14&&!m&&!v)return[{value:f},{value:g}];C=Math.ceil(g/M)-Math.floor(f/M),C>p&&(M=go(C*M/p/h)*h),Yr(a)||(w=Math.pow(10,a),M=Math.ceil(M*w)/w),"ticks"===i?(A=Math.floor(f/M)*M,x=Math.ceil(g/M)*M):(A=f,x=g),m&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-o)/r,M/1e3)?(C=Math.round(Math.min((s-o)/M,c)),M=(s-o)/C,A=o,x=s):y?(A=m?o:A,x=v?s:x,C=l-1,M=(x-A)/C):(C=(x-A)/M,C=fo(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const L=Math.max(yo(M),yo(A));w=Math.pow(10,Yr(a)?L:a),A=Math.round(A*w)/w,x=Math.round(x*w)/w;let I=0;for(m&&(d&&A!==o?(n.push({value:o}),A<o&&I++,fo(Math.round((A+I*M)*w)/w,o,Wl(o,b,t))&&I++):A<o&&I++);I<C;++I){const t=Math.round((A+I*M)*w)/w;if(v&&t>s)break;n.push({value:t})}return v&&d&&x!==s?n.length&&fo(n[n.length-1].value,s,Wl(s,b,t))?n[n.length-1].value=s:n.push({value:s}):v&&x!==s||n.push({value:x}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Yo(t,this.chart.options.locale,this.options.ticks.format)}}class Zl extends Bl{static id="linear";static defaults={ticks:{callback:Wo.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Br(t)?t:0,this.max=Br(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=vo(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Wo.formatters.logarithmic,Wo.formatters.numeric;const Hl="dark",Gl="light";function Vl(){return document.querySelector("html")}function Ql(t){const e=Vl();return getComputedStyle(e).getPropertyValue(t)}function Jl(t){Vl().dataset.theme=`theme-${t}`}function Xl(){const t=Vl().dataset.theme.replace("theme-","")===Gl?Hl:Gl;var e;Jl(t),e=t,localStorage.setItem(Ue,e)}class ql extends $i{constructor(){super(".dialog.chart"),this.dataSetColours=[Ql("--colour-primary"),Ql("--colour-secondary"),Ql("--colour-warning")]}_multiplierDescription(t){return{0:"",3:"'000s",6:"millions",9:"billions"}[t]}_chooseMultiplier(t){let e=Math.max(...t.map((t=>Math.abs(Number(t.value()))))),n=0;for(;e>=1e3&&n<9;)e/=1e3,n+=3;return n}dataSetColour(t){return this.dataSetColours[t]}addAspect(t){this._analyseDims.push(t),this._showAnalyseDimensionChart()}removeAspect(t){this._analyseDims=this._analyseDims.filter((e=>e!=t)),this._showAnalyseDimensionChart()}analyseDimension(t,e){this._analyseFact=t,this._analyseDims=e,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const t=this._analyseFact,n=this._analyseDims,i=this.node;e()("canvas",i).remove(),e()("<canvas>").appendTo(e()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=t.report.deduplicate(t.report.getAlignedFacts(t,r)),s=new an,a=new an;for(const t of o)n[0]&&s.add(t.aspect(n[0])),n[1]&&a.add(t.aspect(n[1]));const l=s.uniqueValues(),c=a.uniqueValues(),u=this._chooseMultiplier(o),d=t.unitLabel()+" "+this._multiplierDescription(u),h=[],p=[];for(let e=0;e<(n[0]?l.length:1);e++){h.push(n[0]?He(l[e].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){p[i]=p[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[e].value()),n[1]&&(r[n[1]]=c[i].value());const o=t.report.getAlignedFacts(t,r);o.length>0?p[i].data[e]=o[0].value()/10**u:p[i].data[e]=0}}e()(".other-aspects",i).empty();const f=[];for(const r of t.aspects())if("c"!=r.name()){const t=e()("<button>").addClass("other-aspect").appendTo(e()(".other-aspects",i));n.includes(r.name())?t.addClass("selected").text(r.label()+": *").on("click",(()=>this.removeAspect(r.name()))):("u"!=r.name()&&f.push(r.valueLabel()),t.text(r.label()+": "+r.valueLabel()),n.length<2&&t.addClass("addable").on("click",(()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=f.join(", ")),p[0].label=f.join(", ")),this.setChartSize();const g=e()("canvas",i);Dl.register(ua,Pl,Ul,Zl);const m=new Dl(g,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,title:{display:!0,text:d}},x:{ticks:{autoSkip:!1}}}}});e()(window).on("resize",(()=>{this.setChartSize(),m.resize()})),e()(".other-aspect",i).get(0)?.focus()}setChartSize(){const t=this.node,n=t.height()-e()(".other-aspects",this.node).outerHeight()-16;e()(".chart-container",t).height(n),e()("canvas",t).attr("height",n).height(n)}}class Kl{constructor(t,n){this._elt=t,n=n||{},this.type=n.type||"dropdown",t.find(".menu-title").on("click",(e=>{t.find(".content-container").toggle(),e.stopPropagation()})),e()("html").on("click",(n=>{0===e()(".content",t).find(e()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(t,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>e()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(t)}t.appendTo(this._elt.find(".content"))}addDownloadButton(t,n){const i=this,r=e()("<a></a>").addClass("item").attr({href:n}).text(t).on("click",(()=>i.close()));this._add(r)}addCheckboxItem(t,n,i,r,o){const s=this,a=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(t).data("iv-menu-item-name",i).prepend(e()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(e()(this).prop("checked"),!0),s.close()}))).append(e()("<span></span>").addClass("checkmark"));this._add(a,r),o&&n(!0,!1)}addCheckboxGroup(t,n,i,r,o,s){const a=e()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(a,s);for(const s of t){const t=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[s]).prepend(e()('<input type="radio"></input>').attr({name:o,value:s}).on("change",(function(){r(e()(this).val())}))).append(e()("<span></span>").addClass("checkmark")).appendTo(a);s===i&&t.find("input").prop("checked",!0)}}addLabel(t){const n=e()("<div></div>").addClass("label").text(t);this._add(n)}addLink(t,n){const i=e()("<a></a>").attr("href",n).attr("target","_blank").attr("title",t).attr("aria-label",t).addClass("item").text(t);this._add(i)}}class $l{constructor(t){this._contents=e()('<div class="accordian"></div>'),this.onSelect=e().Callbacks(),this.options=t||{},this.options.onSelect&&this.onSelect.add(t.onSelect)}addCard(t,n,i,r){const o=this,s=e()('<div class="card"></div>').append(e()('<button class="title"></button>').attr("aria-label","Expand section").append(t).on("click",(function(){var t=e()(this).closest(".card");t.hasClass("active")?o.options.alwaysOpen||t.removeClass("active"):(t.closest(".accordian").find(".card").removeClass("active"),t.addClass("active"),o.onSelect.fire(t.data("accordian-card-id")))}))).append(e()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&s.data("accordian-card-id",r),i&&s.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class tc{constructor(t){this.itemMap=new Map;for(const e of t??[])this.add(e)}add(t){this.itemMap.set(t.vuid,t)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const t={},e=this.items().filter((t=>t instanceof cn));for(const i of e){const e=Object.keys(i.dimensions());for(var n=0;n<e.length;n++)t[e[n]]=!0}return Object.keys(t)}minimallyUniqueLabel(t){if(!this._minimallyUniqueLabels){for(var e=this.items().filter((t=>t instanceof cn)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<e.length;r++){var o=e[r];n[o.vuid]=[];for(var s=0;s<i.length;s++){var a=o.aspect(i[s]);n[o.vuid].push(a?a.valueLabel():null)}}var l={};for(s=0;s<i.length;s++){var c={};for(r=0;r<e.length;r++)c[n[e[r].vuid][s]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<e.length;r++){var d=n[p=e[r].vuid][s],h=l[p]||[];null!==d&&h.push(d),h.length>0&&(l[p]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==e.length)break}}if(Object.keys(l).length<e.length)for(r=0;r<e.length;r++){var p=e[r].vuid;(h=l[p]||[]).unshift(n[p][0]),l[p]=h}this.items().filter((t=>t instanceof un)).forEach((t=>{l[t.vuid]=[t.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[t.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const t=this.items().map((t=>ln.fromFact(t)));return ln.intersection(...t)}completeDuplicates(){return this.items().every((t=>t.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const t=this.items().map((t=>ln.fromFact(t)));return void 0!==ln.intersection(...t)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((t,e)=>e.isMorePrecise(t)?e:t))}}class ec extends $i{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(t){const n=this.node.find("tbody");n.empty();for(const i of t)e()("<tr></tr>").append(e()("<td></td>").text(i.sev)).append(e()("<td></td>").text(i.code)).append(e()("<td></td>").text(i.msg)).appendTo(n)}}class nc extends $i{constructor(t){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=t,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(t=>this.displayTextBlock(t.target.checked)))}htmlWrapString(t){return"<!DOCTYPE html><html><head><title></title></head><body>"+t+"</body></html>"}static canRender(t){return t.isTextBlock()&&t.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const t=this.node.find("iframe").get(0),e=t.contentDocument||t.contentWindow.document;if(e.open(),this.textOnly()){const t=document.createElement("div");t.append(document.createTextNode(this.fact.readableValue())),e.write(this.htmlWrapString(t.outerHTML))}else e.write(this.htmlWrapString(this.fact.value()));e.close()}}class ic{constructor(t,e){this.fact=t,this.calc11=e}calculationFacts(){const t=this.fact,e=t.report;if(!this._conceptToFact){const n={};for(const i of[Ee,"calc11"]){const r=e.getChildRelationships(t.conceptName(),i);for(const[o,s]of Object.entries(r))Qe(n,i,{}),n[i][o]={},s.length>0&&e.getAlignedFacts(t,{c:s.map((t=>t.t))}).forEach((t=>Qe(n[i][o],t.conceptName(),new tc).add(t)))}this._conceptToFact=n}return this._conceptToFact}hasCalculations(){const t=this.calculationFacts();return Object.keys(t).length>0}resolvedCalculations(){const t=[],e=this.calculationFacts();for(const[n,i]of Object.entries(e))for(const[e,r]of Object.entries(i))Object.keys(r).length>0&&t.push(this.resolvedCalculation(e,n));return t}bestELRForFactSet(t){const e=this.calculationFacts();let n="",i=-1;for(const[r,o]of Object.entries(e))for(const[e,r]of Object.entries(o)){let o=0;for(const[e,n]of Object.entries(r)){let e=0;for(const i of n.items())t.includes(i.vuid)&&(e=1);o+=e}o/Object.keys(r).length>i&&(i=o/Object.keys(r).length,n=e)}return n}resolvedCalculation(t,e){const n=this.calculationFacts()[e][t],i=this.fact.report,r=i.getChildRelationships(this.fact.conceptName(),e)[t],o=new(this.calc11?sc:ac)(t,this.fact,e);for(const t of r){const e=n[t.t]??new tc;o.addRow(new rc(i.getConcept(t.t),t.w,e))}return o}}class rc{constructor(t,e,n){this.concept=t,this.weight=e,this.facts=n,this.weightSign=1==e?"+":-1==e?"-":e.toString()}contributionInterval(){const t=this.facts.valueIntersection();if(void 0!==t)return t.times(this.weight)}}class oc{constructor(t,e,n){this.totalFact=e,this.totalFactSet=new tc(e.report.getAlignedFacts(e)),this.elr=t,this.rows=[],this.relationshipVersion=n}addRow(t){this.rows.push(t)}binds(){return this.rows.some((t=>!t.facts.isEmpty()))}unchecked(){return!1}}class sc extends oc{calculatedTotalInterval(){let t=new ln(0,0);for(const e of this.rows)if(!e.facts.isEmpty()){const n=e.contributionInterval();if(void 0===n)return;t=t.plus(n)}return t}isConsistent(){const t=this.calculatedTotalInterval(),e=this.totalFactSet.valueIntersection();return void 0!==t&&void 0!==t.intersection(e)}}class ac extends oc{binds(){return this.relationshipVersion==Ee&&super.binds()&&this.rows.every((t=>t.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}uncheckedDueToVersionMismatch(){return this.relationshipVersion!==Ee}calculatedTotal(){let t=new Ne(0);for(const e of this.rows){if(!e.facts.isConsistent())return;e.facts.isEmpty()||(t=t.plus(e.facts.items()[0].roundedValue().times(e.weight)))}return t}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class lc extends $i{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(t){const n=e()("<td></td>").addClass("icons");return t.size()>1&&!t.completeDuplicates()&&(t.isConsistent()?n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.consistent-duplicate-facts-present",{nfacts:t.size()}))):n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.inconsistent-duplicate-facts-present",{nfacts:t.size()})))),n}populateCalc11Table(t,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="",o="",s="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)t="n/a",o="n/a",s="n/a";else{t=e.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();o=e.readableValue(r.a.toNumber()),s=e.readableValue(r.b.toNumber())}}const a=this.duplicateFactIcons(n.facts);r=r||a.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(a).append(e()("<td></td>").addClass("figure").text(o)).append(e()("<td></td>").addClass("figure").text(s)).appendTo(i)}const o=t.totalFact,s=t.calculatedTotalInterval();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.midpoint().toNumber())).addClass("figure")).append(e()("<td></td>").addClass("icons")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.b.toNumber())).addClass("figure")).appendTo(i);const a=t.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(t.totalFactSet);e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.midpoint().toNumber())).addClass("figure")).append(l).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(t,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];t=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?e.readableValue():"Duplicate facts"}const o=this.duplicateFactIcons(n.facts);r=r||o.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(o).appendTo(i)}const o=t.totalFact,s=t.calculatedTotal();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue(s)).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue()).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(t){const e=this.node.find("table.calculation-trace");e.find("tbody").empty(),e.removeClass("has-icons"),t instanceof sc?this.populateCalc11Table(t,e):this.populateLegacyCalcTable(t,e);const n=e.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),t.unchecked()?n.addClass("unchecked").find(".message").text(Q.t("calculation.does-not-bind")):t.isConsistent()?n.addClass("consistent").find(".message").text(Q.t("factDetails.calculationIsConsistent")):n.addClass("inconsistent").find(".message").text(Q.t("factDetails.calculationIsInconsistent"))}}class cc{constructor(t){this._reportSet=t,this.outlines=t.reports.map((t=>new uc(t)))}hasOutline(){return this.outlines.some((t=>Object.keys(t.sections).length>0))}sortedSections(){return this.outlines.flatMap((t=>t.sortedSections()))}groupsForFact(t){return this.outlines.find((e=>e.report==t.report)).groupsForFact(t)}}class uc{constructor(t){this.report=t;const e=t.facts().sort(((t,e)=>t.ixNode.docOrderindex-e.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const s=t.relationshipGroups("pres");for(const t of e)if(!t.isHidden())for(const e of s)this.factInGroup(t,e)?(e in n||(n[e]=0,i[e]=t),n[e]++):e in n&&((!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]),delete n[e],delete i[e]);for(const t in n)(!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]);this.sections=o}factInGroup(t,e){if(0==this.report.getParentRelationshipsInGroup(t.conceptName(),"pres",e).length)return!1;const n=t.dimensions(),i=this.dimensionMap[e];for(const[t,e]of Object.entries(i))if(e.typed){if(!(t in n))return!1}else if(t in n?!(n[t]in e.members):!e.allowDefault)return!1;return!0}_buildDimensionMap(){const t=this.report.relationshipGroups("pres");this.dimensionMap={};for(const e of t){this.dimensionMap[e]={};for(const t of this.report.relationshipGroupRoots("pres",e))this.buildDimensionMapFromSubTree("pres",e,null,t)}}buildDimensionMapFromSubTree(t,e,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[e][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[e][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,t);if(e in o)for(var s of o[e])n&&(this.report.dimensionDefault(n)==s.t?this.dimensionMap[e][n].allowDefault=!0:this.dimensionMap[e][n].members[s.t]=!0),this.buildDimensionMapFromSubTree(t,e,n,s.t)}}groupsForFact(t){const e=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(t,n)&&e.push({elr:n,fact:this.sections[n],report:this.report});return e}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const t=Object.keys(this.sections),e=/\(parenthetical\)\s*$/i;return t.filter((t=>!e.test(this.report.getRoleLabelOrURI(t)))).sort(((t,e)=>this.report.getRoleLabelOrURI(t).localeCompare(this.report.getRoleLabelOrURI(e)))).map((t=>({report:this.report,fact:this.sections[t],elr:t})))}}const dc="dimensions",hc="members",pc="primaryItems",fc="total";class gc{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(t){this._dimensions.add(t)}addMember(t){this._members.add(t)}addPrimaryItem(t){this._primaryItems.add(t)}getCounts(){return{[dc]:this._dimensions.size,[hc]:this._members.size,[pc]:this._primaryItems.size,[fc]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class mc{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(t,e){for(const n of e){if(!(n in this._documentsByType))throw new Error(`Document ${t} with unrecognized type ${n}.`);this._documentsByType[n].add(t)}}getDocuments(){const t={};for(const[e,n]of Object.entries(this._documentsByType))t[e]=[...n].sort();return t}}class vc{constructor(t){this._reportSet=t}_getTagCounter(t,e){const n=e.indexOf(":");if(-1===n)throw new Error(`Element ${e} is not a concept.`);const i=e.substring(0,n);return t.has(i)||t.set(i,new gc),t.get(i)}_buildTagCounts(){const t=new Map;for(const e of this._reportSet.facts()){let n=this._getTagCounter(t,e.conceptName());n.addPrimaryItem(e.conceptName());for(const[i,r]of Object.entries(e.dimensions())){n=this._getTagCounter(t,i),n.addDimension(i);const o=e.report.getConcept(i);if(o.isTypedDimension()){const e=o.typedDomainElement();e&&(n=this._getTagCounter(t,e),n.addMember(e))}else n=this._getTagCounter(t,r),n.addMember(r)}}this._tagCounts=new Map([...t].map((([t,e])=>[t,e.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new mc;for(const[t,e]of this._reportSet.reports.flatMap((t=>Object.entries(t.localDocuments()))))this._localFileSummary.addDocument(t,e)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}hiddenFacts(){return void 0===this._hiddenFacts&&(this._hiddenFacts=this._reportSet.facts().filter((t=>t.isHidden())).length),this._hiddenFacts}mandatoryFacts(){return void 0===this._mandatoryFacts&&(this._mandatoryFacts=this._reportSet.facts().filter((t=>t.isMandatory())).length),this._mandatoryFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}getSoftwareCredits(){return this._reportSet.getSoftwareCredits()}}const yc={periodFilter:"search-filter-period",dimensionTypeFilter:"search-filter-dimension-type",namespacesFilter:"search-filter-namespaces",targetDocumentFilter:"search-filter-target-document",scalesFilter:"search-filter-scales",unitsFilter:"search-filter-units",calculationsFilter:"search-filter-calculations",dataTypesFilter:"search-filter-datatypes"};class bc{constructor(t){this._iv=t,this._viewerOptions=new pn,this._currentItem=null,this._useCalc11=!0}i18nInit(){const t=["translation","referenceParts","currencies","dataTypes","labelRoles","scale","balanceTypes","tooltips"];return Q.init({lng:this.preferredLanguages()[0],reloadOnLanguageChange:!0,returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:Object.fromEntries(["en","cy","es"].map((e=>[e,Object.fromEntries(t.map((t=>[t,n(918)(`./${e}/${t.toLowerCase()}.json`)])))])))}).then((t=>{or().init(Q,e(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(t,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new ql,i._reportSet=t,i.i18nInit().then((r=>{e()(".collapsible-header button:first-of-type").on("click",(function(){const t=e()(this).closest(".collapsible-section");t.toggleClass("collapsed"),t.hasClass("collapsed")?t.find(".collapsible-body").slideUp(250):(t.find(".collapsible-body").slideDown(250),t.hasClass("collapsible-only")&&t.siblings(".collapsible-section:not(.collapsed)").each((function(){const t=e()(this);t.addClass("collapsed"),t.find(".collapsible-body").slideUp(250)})))})),e()("#inspector .controls .search-button").on("click",(()=>i.inspectorMode("search-mode",!0))),e()("#inspector .controls .summary-button").on("click",(()=>i.inspectorMode("summary-mode",!0))),e()("#inspector .controls .outline-button").on("click",(()=>i.inspectorMode("outline-mode",!0))),e()("#inspector .back").on("click",(()=>i.popInspectorMode())),e()(".popup-trigger").on("mouseenter",(function(){e()(this).find(".popup-content").show()})).on("mouseleave",(function(){e()(this).find(".popup-content").hide()})),e()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(e()(this).data("cb-text"))})),i.initializeTooltips(),i._toolbarMenu=new Kl(e()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new Kl(e()("#display-options-menu")),i.buildDisplayOptionsMenu(),i.buildHomeLink(),e()("#ixv").localize(),e()(window).on("message",(t=>i.handleMessage(t))),t.viewerOptions=i._viewerOptions,i.summary=new vc(t),i.createSummary(),i.outline=new cc(t),i.createOutline(),i._iv.setProgress(Q.t("inspector.initializing")).then((()=>{i._search=new lr(t),i.handleFactDeepLink(),i.rebuildViewer(),i.setupValidationReportIcon(),i.initializeViewer(),i.doInitialSelection(),n()}))}))}))}initializeTooltips(){e()("html").on("click",(t=>this.hideTooltip())),e()("#inspector .inspector-body").on("scroll",(t=>this.hideTooltip())),e()(document).on("keyup",(t=>{27==t.keyCode&&this.hideTooltip()})),e()("#ixv").on("click",".tooltip-icon",(t=>{this.toggleTooltip(e()(t.currentTarget)),t.stopPropagation()}));let t=0;e()("#ixv").on("mouseenter",".tooltip-icon",(n=>{t++,setTimeout((i=>{t>0&&this.showTooltip(e()(n.currentTarget),!0)}),250)})),e()("#ixv").on("mouseenter","#tooltip",(e=>t++)),e()("#ixv").on("mouseleave","#tooltip, .tooltip-icon",(e=>{t--,setTimeout((e=>{0==t&&this.hideTooltip(!0)}),500)}))}initializeViewer(){this._viewer.onSelect.add(((t,e,n)=>this.selectItem(t,e,n))),this._viewer.onMouseEnter.add((t=>this.viewerMouseEnter(t))),this._viewer.onMouseLeave.add((t=>this.viewerMouseLeave(t))),e()(".ixbrl-next-tag").on("click",(()=>this._viewer.selectNextTag(this._currentItem))),e()(".ixbrl-prev-tag").on("click",(()=>this._viewer.selectPrevTag(this._currentItem))),e()("#toggle-dark-mode").attr("title",Q.t("toolbar.toggleDarkMode")).attr("aria-label",Q.t("toolbar.toggleDarkMode")).on("click",Xl)}postLoadAsync(){Je(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const t=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==t){const e=Xe(t[1]??0,t[2]);void 0!==this._reportSet.getItemById(e)&&this.selectItem(e)}}doInitialSelection(){!this._currentItem&&this._iv.isFeatureEnabled("search_on_startup")&&this.inspectorMode("search-mode")}handleMessage(t){const e=t.originalEvent.data;let n;try{n=JSON.parse(e)}catch(t){return}if("SHOW_FACT"===n.task){let t=Number(n.docSetId);t||(t=0);const e=Xe(t,n.factId);this.selectItem(e)}else console.log("Not handling unsupported task message: "+e)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const t=this.selectDefaultLanguage(),e=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.documentLanguage")),this._optionsMenu.addCheckboxGroup(e,Object.fromEntries(e.map((t=>[t,n.of(t)]))),t,(t=>{this.setDocumentLanguage(t),this.update()}),"select-language"),this.setDocumentLanguage(t);const i=Q.language.substring(0,2),r=Object.keys(Q.options.resources),o=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.applicationLanguage")),this._optionsMenu.addCheckboxGroup(r,Object.fromEntries(r.map((t=>[t,o.of(t)]))),i,(t=>{this.changeApplicationLanguage(t)}),"select-user-language"),this._reportSet.filingDocuments()&&(this._optionsMenu.addLabel(Q.t("menu.actions")),this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments())),this._optionsMenu.addLabel(Q.t("menu.options")),this._reportSet.usesCalculations()&&this._optionsMenu.addCheckboxItem(Q.t("calculation.useCalculations11"),(t=>this.setCalculationMode(t)),"calculation-mode","select-language",this._useCalc11)}let t={},e=this._iv.getGuideLinkUrl();e&&(t[Q.t("menu.userGuide")]=e);let n=this._iv.getSupportLinkUrl();n&&(t[Q.t("menu.contactUs")]=n);let i=this._iv.getSurveyLinkUrl();if(i&&(t[Q.t("menu.survey")]=i),Object.entries(t).length>0){this._optionsMenu.addLabel(Q.t("menu.help"));for(const[e,n]of Object.entries(t))this._optionsMenu.addLink(e,n)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildHomeLink(){if(e()("#top-bar #home-link").remove(),!this._iv.isStaticFeatureEnabled(Re))return;e()("#top-bar img.header").remove();let t,n=this._iv.getStaticFeatureValue(Re);t=this._iv.isStaticFeatureEnabled(Fe)?this._iv.getStaticFeatureValue(Fe):Q.t("toolbar.homePage");const i=sessionStorage.getItem("ixbrl-viewer-home-link-query");i&&(n.includes("?")?n+="&":n+="?",n+=i);const r=e()("<a></a>").attr("href",n).attr("id","home-link").text(t);e()("#top-bar").prepend(r)}highlightTagsOnStartup(){const t=window.localStorage.getItem(We);return null!==t?JSON.parse(t):this._iv.isFeatureEnabled("highlight_facts_on_startup")}buildToolbarHighlightMenu(){const t=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(Q.t("toolbar.xbrlElements"),((t,e)=>this.highlightAllTags(t,e)),"highlight-tags",null,this.highlightTagsOnStartup()),t.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let t;e()(".highlight-key .items").empty(),t=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups().map((t=>this._reportSet.preferredPrefix(t))),this._iv.callPluginMethod("extendHighlightKey",t);for(const[n,i]of t.entries())e()("<div>").addClass("item").append(e()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(e()("<span></span>").text(i)).appendTo(e()(".highlight-key .items"))}changeApplicationLanguage(t){Q.changeLanguage(t),this.rebuildViewer()}rebuildViewer(){e()("#ixv").localize(),this.buildDisplayOptionsMenu(),this.buildHomeLink(),this.buildToolbarHighlightMenu(),this.buildHighlightKey(),this.update()}inspectorMode(t,n){const i=e()("#inspector").removeClass(["summary-mode","outline-mode","search-mode"].filter((e=>e!==t)));void 0!==t?n?i.toggleClass(t):i.addClass(t):this._prevInspectorMode=void 0}pushInspectorMode(t,e){this._prevInspectorMode=e,this.inspectorMode(t)}popInspectorMode(){this.inspectorMode(this._prevInspectorMode),this._prevInspectorMode=void 0}setCalculationMode(t){this._useCalc11=t,this._currentItem instanceof cn&&this.updateCalculation(this._currentItem)}highlightAllTags(t,e){e&&window.localStorage.setItem(We,JSON.stringify(t)),this._viewer.highlightAllTags(t,this._reportSet.namespaceGroups())}factListRow(t){const n=e()('<button class="fact-list-item"></button>').on("click",(()=>this.selectItem(t.vuid,void 0,void 0,!0))).on("dblclick",(()=>this.selectItem(t.vuid))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).on("mouseenter",(()=>this._viewer.linkedHighlightFact(t))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(t))).data("ivid",t.vuid);e()('<button class="select-icon"></button>').attr("title",Q.t("search.viewFact")).on("click",(()=>{this.selectItem(t.vuid)})).appendTo(n),this._setLabelWithLang(e()('<div class="title"></div>'),t.getLabelOrNameAndLang("std")).appendTo(n);const i=t.concept().dataType();void 0!==i&&e()('<div class="datatype"></div>').text(i.label()).appendTo(n),e()('<div class="dimension"></div>').text(t.period().toString()).appendTo(n);for(const i of t.aspects())i.isTaxonomyDefined()&&!i.isNil()&&this._setLabelWithLang(e()('<div class="dimension"></div>'),i.valueLabelAndLang()).appendTo(n);const r=e()("<div></div>").addClass("block-list-item-tags").appendTo(n);return null!==t.targetDocument()&&e()('<div class="hidden"></div>').text(t.targetDocument()).appendTo(r),t.isHidden()?e()('<div class="hidden"></div>').text(Q.t("search.hiddenFact")).appendTo(r):t.isHTMLHidden()&&e()('<div class="hidden"></div>').text(Q.t("search.concealedFact")).appendTo(r),n}addResults(t,n,i){e()(".more-results",t).remove();for(var r=i;r<n.length;r++){if(r-i>=100){e()('<div class="more-results"></div>').text(Q.t("search.showMoreResults")).on("click",(()=>this.addResults(t,n,r))).appendTo(t);break}this.factListRow(n[r].fact).appendTo(t)}}searchSpec(){const t={};t.searchString=e()("#ixbrl-search").val(),t.visibilityFilter=e()("#search-filter-visibility").val(),t.showMandatoryFacts=e()("#search-mandatory-fact-filter").prop("checked"),t.conceptTypeFilter=e()("#search-filter-concept-type").val();for(const[n,i]of Object.entries(yc))t[n]=e()(`#${i} select`).val();const n=this._reportSet.getUsedConceptDataTypes().filter((e=>t.dataTypesFilter.includes(e.dataType.name)));return"numeric"==t.conceptTypeFilter&&n.some((t=>!t.isNumeric))||"text"==t.conceptTypeFilter&&n.some((t=>t.isNumeric))?e()("#search-filter-datatypes .datatype-conflict-warning").show():e()("#search-filter-datatypes .datatype-conflict-warning").hide(),t.factValueFilter=e()("#search-filter-fact-value").val(),t}hasActiveSearchFilters(t){return Object.keys(yc).some((e=>t[e].length>0))||"*"!==t.visibilityFilter||t.showMandatoryFacts||"*"!==t.conceptTypeFilter||"*"!==t.factValueFilter}setupSearchControls(t){const n=this;e()(".search-controls input, .search-controls select").on("change",(()=>this.search())),e()(".search-controls button.filter-toggle").on("click",(()=>e()(".search-controls").toggleClass("show-filters"))),e()(".search-controls .reset").on("click",(()=>this.resetSearchFilters())),e()(".search-controls .search-filters .reset-multiselect").on("click",(function(){e()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const t of Object.keys(this._search.periods))e()("<option>").attr("value",t).text(this._search.periods[t]).appendTo("#search-filter-period select");for(const t of this._reportSet.getUsedConceptPrefixes())e()("<option>").attr("value",t).text(`${this._reportSet.preferredPrefix(t)} (${this._reportSet.prefixMap()[t]})`).appendTo("#search-filter-namespaces select");if(this._reportSet.getUsedConceptDataTypes().length>0)for(const t of this._reportSet.getUsedConceptDataTypes())e()("<option>").attr("value",t.dataType.name).text(t.dataType.label()).appendTo("#search-filter-datatypes select");else e()("#search-filter-datatypes").hide();const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])e()("#search-filter-target-document").hide();else for(const t of i)e()("<option>").attr("value",t??":default").text(t??`<${Q.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const t of this._reportSet.getUsedUnits())e()("<option>").attr("value",t).text(`${this._reportSet.getUnit(t)?.label()} (${t})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const t of Object.keys(r).sort())e()("<option>").attr("value",t).text(r[t]).appendTo("#search-filter-scales select")}_getScalesOptions(){const t={},e=this._reportSet.getUsedScalesMap();return Object.keys(e).sort().forEach((n=>{const i=Array.from(e[n]).sort();i.length>0?t[n]=i.join(", "):t[n]=n.toString()})),t}resetSearchFilters(t){t=t??{},e()("#search-filter-period select option:selected").prop("selected",!1),e()("#search-filter-visibility").val(t.visibility??"*"),e()("#search-filter-concept-type").val("*"),e()("#search-filter-fact-value").val("*"),e()("#search-mandatory-fact-filter").prop("checked",t.mandatoryFacts??!1);for(const t of Object.values(yc))e()(`#${t} select option:selected`).prop("selected",!1);this.search()}searchReady(){this.setupSearchControls(),e()("#inspector").addClass("search-ready"),e()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const t=this.searchSpec();this.hasActiveSearchFilters(t)?e()("#inspector .search-controls").addClass("active-filters"):e()("#inspector .search-controls").removeClass("active-filters");const n=this._search.search(t);if(void 0===n)return;const i=e()("#inspector .search-results .results");i.empty(),this._viewer.clearRelatedHighlighting();const r=e()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(e()(".title",r).text(Q.t("search.noMatchFound")),e()(".text",r).text(Q.t("search.tryAgainDifferentKeywords")),r.show()),e()("#matching-facts-summary").text(Q.t("search.matchingFactsSummary",{nMatches:n.length,nTotal:this._reportSet.facts().length})),""!=t.searchString&&this._viewer.highlightRelatedFacts(n.map((t=>t.fact)));for(const t of Object.values(yc))this.updateMultiSelectSubheader(t)}updateMultiSelectSubheader(t){const n=e()(`#${t} .collapsible-subheader`),i=e()(`#${t} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=e()(`#${t} select option`).length;n.text(` (${i.length}/${r} ${Q.t("search.selected")})`)}else n.empty()}updateCalculation(t,n){e()(".calculations .tree").empty().append(this._calculationHTML(t))}createSummary(){const t=e()("#inspector .summary .body");this._populateFactSummary(t),this._populateTagSummary(t),this._populateFileSummary(t),this._populateReportCreation(t)}_populateFactSummary(t){const n=this.summary.totalFacts();e()(".total-facts-value",t).text(n).on("click",(()=>{this.resetSearchFilters(),this.pushInspectorMode("search-mode","summary-mode")}));const i=this.summary.hiddenFacts();e()(".hidden-facts-value",t).text(i).on("click",(()=>{this.resetSearchFilters({visibility:"hidden"}),this.pushInspectorMode("search-mode","summary-mode")}));const r=this.summary.mandatoryFacts();r?(e()("#mandatory-facts-row").show(),e()("#mandatory-fact-filter-checkbox").show(),e()(".mandatory-facts-value",t).text(r).on("click",(()=>{this.resetSearchFilters({mandatoryFacts:!0}),this.pushInspectorMode("search-mode","summary-mode")}))):(e()("#mandatory-facts-row").hide(),e()("#mandatory-fact-filter-checkbox").hide())}_populateTagSummary(t){const n=t.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,s=0,a=0;for(const t of i.values())r+=t[pc],o+=t[dc],s+=t[hc],a+=t[fc];function l(t,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,e()("<td></td>").text(n).addClass("figure").append(e()("<sup></sup>").text(o)).appendTo(t)}const c=[...i.entries()].sort(((t,e)=>t[0].localeCompare(e[0])));for(const[t,i]of c){const c=e()("<tr></tr>").appendTo(n);c.append(e()("<th></th>").attr("scope","row").text(this._reportSet.preferredPrefix(t))),l(c,i[pc],r),l(c,i[dc],o),l(c,i[hc],s),l(c,i[fc],a)}const u=t.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,s,s),l(u,a,a)}_populateFileSummary(t){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:s,presLinkbase:a,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=t.find(".files-summary");let d=0;function h(t,n){if(0===t.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of t)i.append(e()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(a,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(s,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}_populateReportCreation(t){const n=this.summary.getSoftwareCredits(),i=t.find(".report-creation");if(n.length>0){const t=i.find("ul");for(const i of n)t.append(e()("<li></li>").text(i))}else i.hide()}createOutline(){if(this.outline.hasOutline()){e()(".outline .no-outline-overlay").hide();const t=e()('<div class="fact-list"></div>').appendTo(e()(".outline .body"));for(const n of this.outline.sortedSections())e()('<button class="fact-list-item"></button>').text(n.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("outline-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).appendTo(t)}}updateOutline(t){e()(".fact-groups").empty();for(const n of this.outline.groupsForFact(t))e()('<button class="fact-list-item"></button>').text(t.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).appendTo(e()(".fact-groups"))}updateFootnotes(t){e()(".footnotes").empty().append(this._footnotesHTML(t)),t.linkedFacts.length>0?e()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(t)):e()("#inspector .footnote-facts-section").hide()}_anchorList(t,n){const i=e()("<ul></ul>");if(n.length>0)for(const r of n){const n=t.report.getAlignedFacts(t,{c:r}),o=t.report.getLabelAndLang(r,"std",!0);e()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else e()("<li></li>").append(e()("<i></i>").text(Q.t("common.none"))).appendTo(i);return i}updateAnchoring(t){this._reportSet.usesAnchoring()?(e()(".anchoring").show(),e()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(t,t.widerConcepts())),e()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(t,t.narrowerConcepts()))):e()(".anchoring").hide()}labelRoleSort([t,e,n],[i,r,o]){const s=["std","doc"].reverse(),a=s.indexOf(t),l=s.indexOf(i);return a!=l?l-a:e.localeCompare(r)}updateLabels(t){const n=e()("div.labels").empty(),i=e()("<dl></dl>").appendTo(n);for(const[n,r,o]of Object.entries(t.concept().labels()).map((([e,n])=>[e,t.report.getLabelRoleLabel(e),n])).sort(this.labelRoleSort))e()("<dt></dt>").text(r).appendTo(i),e()("<dd></dd>").text(o).appendTo(i);return i}_referencesHTML(t){const n=new $l;for(const[i,r]of t.concept().references().entries()){const t=e()("<span></span>").text(r[0].value),o=e()('<table class="fact-properties"><tbody></tbody></table>'),s=o.find("tbody");for(const t of r){const n=e()("<tr>").append(e()("<th></th>").text(Q.t(`referenceParts:${t.part}`,{defaultValue:t.part}))).append(e()("<td></td>").text(t.value)).appendTo(s);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(e()("<a>").attr("href",t.value)))}n.addCard(t,o,0==i)}return n.contents()}_calculationHTML(t,n){const i=new ic(t,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(t),o=i.bestELRForFactSet(r),s=t.report,a=new $l;for(const n of i.resolvedCalculations()){const i=s.getRoleLabelOrURI(n.elr),r=e()("<div></div>"),l=e()("<table></table>").addClass("calculation-table").appendTo(r);for(const t of n.rows){const n=e()("<tr></tr>").addClass("item").append(e()("<td></td>").addClass("weight").text(t.weightSign)).append(e()("<td></td>").addClass("concept-name").text(t.concept.label())).append(e()("<td></td>").addClass("value")).appendTo(l);t.facts.isEmpty()||(n.addClass("calc-fact-link"),n.find(".concept-name").contents().wrap(e()("<button></button>").addClass("inline-button")),n.data("ivids",t.facts.items().map((t=>t.vuid))),n.on("click",(()=>this.selectItem(t.facts.items()[0].vuid))),n.on("mouseenter",(()=>t.facts.items().forEach((t=>this._viewer.linkedHighlightFact(t))))),n.on("mouseleave",(()=>t.facts.items().forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),t.facts.items().forEach((t=>this._viewer.highlightRelatedFact(t))),n.find(".value").text(t.facts.mostPrecise().readableValue()))}e()("<tr></tr>").addClass("item").addClass("total").append(e()("<td></td>").addClass("weight")).append(e()("<td></td>").addClass("concept-name").text(t.concept().label())).append(e()("<td></td>").addClass("value").text(t.readableValue())).appendTo(l);const c=e()("<span></span>"),u=e()("<span></span>").append(c).append(e()("<span></span>").text(i)),d=e()("<span></span>"),h=e()("<button></button>").addClass("calculation-details-link").attr("title",Q.t("factDetails.viewCalculationDetails")).text("details").on("click",(t=>{const e=new lc;e.displayCalculation(n),e.show(),t.stopPropagation()}));e()("<p></p>").append(d).append(e()("<span></span>").text(" (")).append(h).append(e()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",Q.t("factDetails.calculationIsConsistent")),d.text(Q.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",Q.t("factDetails.calculationIsInconsistent")),d.text(Q.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",Q.t("factDetails.calculationUnchecked")),n.uncheckedDueToVersionMismatch()?d.text(Q.t("factDetails.calculationUncheckedIncorrectVersion")):d.text(Q.t("factDetails.calculationUnchecked"))),a.addCard(u,r,n.elr==o)}return a.contents()}_footnotesHTML(t){const n=e()("<div></div>").addClass("fact-list");for(const i of t.footnotes())i instanceof un?e()("<button></button>").addClass("block-list-item").text(Ge(i.textContent(),120)).on("mouseenter",(()=>this._viewer.linkedHighlightFact(i))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(i))).on("click",(()=>this.selectItem(i.vuid))).appendTo(n):i instanceof cn&&n.append(this.factListRow(i));return n}viewerMouseEnter(t){e()(".calculations .item").filter(((n,i)=>(e()(i).data("ivids")??[]).includes(t))).addClass("linked-highlight"),e()("#inspector .search .results tr").filter(((n,i)=>e()(i).data("ivid")==t)).addClass("linked-highlight")}viewerMouseLeave(t){e()(".calculations .item").removeClass("linked-highlight"),e()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(t,e){if(e.value()>0==t.value()>0&&Math.abs(t.value())+Math.abs(e.value())>0){const n=100*(e.value()-t.value())/t.value();let i=0;return i=n>=0?Q.t("factDetails.changePercentageIncrease",{increase:Ze(n,1)}):Q.t("factDetails.changePercentageDecrease",{decrease:Ze(-1*n,1)}),i}return Q.t("factDetails.changeFromIn",{from:t.readableValue()})}factLinkHTML(t,n){const i=e()("<span></span>");return this._setLabelWithLang(i,t),n.length>0&&i.addClass("fact-link").on("click",(()=>this.selectItem(n[0].vuid))).on("mouseenter",(()=>n.forEach((t=>this._viewer.linkedHighlightFact(t))))).on("mouseleave",(()=>n.forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),i}getPeriodIncrease(t){let n="";if(t.isNumeric()){const r=t.report.getAlignedFacts(t,{p:null});var i;if(t.periodTo())for(const e of r)e.periodTo()&&e.periodTo()<t.periodTo()&&(!i||e.periodTo()>i.periodTo())&&t.isEquivalentDuration(e)&&(i=e);if(i){const r=t.report.getAlignedFacts(i);n=e()("<span></span>").text(this.describeChange(i,t)).append(this.factLinkHTML({label:i.periodString()},r))}else n=e()("<i>").text(Q.t("factDetails.noPriorFactInThisReport"))}else n=e()("<i>").text("n/a").attr("title",Q.t("factDetails.nonNumericFact"));e()(".fact-properties tr.change td").html(n)}_updateValue(t,n,i){const r=t.readableValue(),o=e()("tr.value",i);let s=r;if(n)o.removeClass("truncated");else{const e=He(r,120);e.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(t,!0,i)))):o.removeClass("truncated"),s=e[0]}nc.canRender(t)?o.addClass("text-block").find(".expand-text-block").off().on("click",(()=>this.showTextBlock(t))):o.removeClass("text-block");const a=o.find("td .value").empty().text(s);t instanceof cn&&(t.isNil()||t.isInvalidIXValue())&&a.wrapInner("<i></i>")}showTextBlock(t){const e=new nc(t);e.displayTextBlock(),e.show()}_updateDataType(t,n){const i=t.concept()?.dataType();void 0!==i?e()("tr.datatype td",n).text(i.label()):e()("tr.datatype",n).hide()}_updateBalance(t,n){const i=t.concept()?.balance();void 0!==i?e()("tr.balance td",n).text(i.label()):e()("tr.balance",n).hide()}_updateConcept(t,n){e()("tr.concept td",n).find(".text").text(t.conceptDisplayName()).attr("title",t.conceptDisplayName()).end().find(".clipboard-copy").data("cb-text",t.conceptDisplayName()).end()}_updateEntityIdentifier(t,n){e()("tr.entity-identifier td",n).empty().append(rn.readableNameHTML(t.identifier()))}_footnoteFactsHTML(t){const n=e()("<div></div>");return t.linkedFacts.forEach((t=>{n.append(this.factListRow(t))})),n}_setLabelWithLang(t,e){return t.removeAttr("lang"),void 0!==e.label?(t.text(e.label),void 0!==e.lang&&t.attr("lang",e.lang)):t.text(""),t}_selectionSummaryAccordian(){const t=this._currentItem,i=new $l({onSelect:t=>this.switchItem(t),alwaysOpen:!0,dissolveSingle:!0}),r=new tc(this._currentItemList);for(const o of this._currentItemList){let s;const a=r.minimallyUniqueLabel(o);if(o instanceof cn){s=e()(n(793)),this._setLabelWithLang(e()(".std-label",s),o.getLabelOrNameAndLang("std",!0)),this._setLabelWithLang(e()(".documentation",s),o.getLabelAndLang("doc")),this._updateConcept(o,s),e()("tr.period td",s).text(o.periodString()),o.isNumeric()&&e()("tr.period td",s).append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,["p"])))),this._updateDataType(o,s),this._updateBalance(o,s),this._updateEntityIdentifier(o,s),this._updateValue(o,!1,s);const t=e()("tr.accuracy td",s).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||t.wrapInner("<i></i>");const i=e()("tr.scale td",s).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),e()("#dimensions",s).empty();const r=o.aspects().filter((t=>t.isTaxonomyDefined()));0===r.length&&e()("#dimensions-label",s).hide();for(const t of r){const n=this._setLabelWithLang(e()('<div class="dimension"></div>'),t.labelOrNameAndLang()).appendTo(e()("#dimensions",s));o.isNumeric()&&n.append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,[t.name()]))));const i=this._setLabelWithLang(e()('<div class="dimension-value"></div>'),t.valueLabelAndLang()).appendTo(n);t.isNil()&&i.wrapInner("<i></i>")}}else o instanceof un&&(s=e()(n(643)),this._updateValue(o,!1,s));i.addCard(a,s,o.vuid==t.vuid,o.vuid)}return i}analyseDimension(t,e){(new ql).analyseDimension(t,e)}toggleTooltip(t){e()("#tooltip").hasClass("show")?this.hideTooltip():this.showTooltip(t)}showTooltip(t,n){t.closest(".has-tooltip").attr("aria-describedby","tooltip"),e()("#tooltip .tooltip-text").text(Q.t(`tooltips:${t.data("tooltip-name")}`)),e()("#tooltip").addClass(n?"hover-show":"show");const i=t.data("tooltip-glossary-link");if(i){e()("#tooltip").addClass("with-glossary-link");const t=new URL("https://xbrl.org/glossary/");"string"==typeof i&&i.startsWith("#")&&(t.hash=i),e()("#tooltip .glossary-link a").attr("href",t.href)}else e()("#tooltip").removeClass("with-glossary-link");this.positionTooltip(t)}hideTooltip(t){const n=e()("#tooltip");n.removeClass(t?"hover-show":"show"),n.hasClass("hover-show")||n.hasClass("show")||e()(".has-tooltip").removeAttr("aria-describedby")}positionTooltip(t){const n=t.offset(),i=document.documentElement.clientWidth,r=i-Math.min(i-30,n.left+300),o=Math.min(i-300,n.left);e()("#tooltip").css("inset","").css("position","fixed").css("left",o).css("right",r).css("top",n.top+30),e()("#tooltip").get(0).getBoundingClientRect().bottom>document.documentElement.clientHeight&&e()("#tooltip").css("top","").css("bottom",30)}update(){const t=this._currentItem;if(t){if(e()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),e()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof cn){e()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateOutline(t),this.updateFootnotes(t),this.updateAnchoring(t),e()("div.references").empty().append(this._referencesHTML(t)),this.updateLabels(t),e()("#inspector .search-results .fact-list-item").removeClass("selected"),e()("#inspector .search-results .fact-list-item").filter(((n,i)=>e()(i).data("ivid")==t.vuid)).addClass("selected");const i=t.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)t.vuid==i[n].vuid&&(r=n);e()(".duplicates .text").text(Q.t("factDetails.duplicatesCount",{current:r+1,total:o})),e()(".duplicates .prev").off().on("click",(()=>{this.selectItem(i[(r+o-1)%o].vuid),e()(".duplicates .prev").get(0).focus()})),e()(".duplicates .next").off().on("click",(()=>{this.selectItem(i[(r+1)%o].vuid),e()(".duplicates .next").get(0).focus()})),this.getPeriodIncrease(t),t.isHidden()?e()("#inspector").addClass("hidden-fact"):t.isHTMLHidden()&&e()("#inspector").addClass("html-hidden-fact");const s=t.targetDocument();null!==s?e()("#inspector .target-document-tag").text(s).show():e()("#inspector .target-document-tag").hide()}else t instanceof un&&(e()("#inspector").addClass("footnote-mode"),e()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(t)));e()(".fact-details").localize()}else e()("#inspector").removeClass("footnote-mode"),e()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(t,e,n,i){if(void 0===e)this._currentItemList=[this._reportSet.getItemById(t)];else{this._currentItemList=[];for(const t of e)this._currentItemList.push(this._reportSet.getItemById(t))}this.switchItem(t,n),i||this.inspectorMode(void 0)}switchItem(t,e){null!==t?(this._currentItem=this._reportSet.getItemById(t),e||this._viewer.showItemById(t),this._viewer.highlightItem(t)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const t=new URLSearchParams(window.location.search);if(t.has("lang"))return[t.get("lang")];const e=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=e.length&&e[0]?e:["en"]}selectDefaultLanguage(){const t=this._reportSet.availableLanguages();for(const e of this.preferredLanguages())for(const n of t)if(n.toLowerCase()==e.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setDocumentLanguage(t){this._viewerOptions.language=t}showValidationReport(){const t=new ec;t.displayErrors(this._reportSet.validation()),t.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&e()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const t=e()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new tr("Validation errors",t,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}const wc=new Set([void 0,null,"","false",!1]);class Ac{constructor(t){this._staticFeatures={},this._dynamicFeatures={},this._plugins=[],this.inspector=new bc(this),this.viewer=null,t=t||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...t}}registerPlugin(t){this._plugins.push(t)}callPluginMethod(t,...e){for(const n of this._plugins)"function"==typeof n[t]&&n[t](...e)}pluginPromise(t,...e){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[t]&&await n[t](...e)})().then((()=>{n()}))}))}setFeatures(t,e){this._staticFeatures={};for(const[e,n]of Object.entries(t))this._staticFeatures[e]=n;const n=new URLSearchParams(e);this._dynamicFeatures={},n.forEach(((t,e)=>{if(""===t){if(void 0!==this._dynamicFeatures[e])return;t="true"}this._dynamicFeatures[e]=t}))}getStaticFeatureValue(t){return this._staticFeatures[t]}getFeatureValue(t){return this._dynamicFeatures[t]?this._dynamicFeatures[t]:this.getStaticFeatureValue(t)}isFeatureEnabled(t){return!wc.has(this.getFeatureValue(t))}isStaticFeatureEnabled(t){return!wc.has(this.getStaticFeatureValue(t))}isReviewModeEnabled(){return this.isFeatureEnabled("review")}getGuideLinkUrl(){return this.isStaticFeatureEnabled(ze)?this.resolveRelativeUrl(this.getStaticFeatureValue(ze)):null}getSupportLinkUrl(){return this.isStaticFeatureEnabled(Pe)?this.resolveRelativeUrl(this.getStaticFeatureValue(Pe)):null}getSurveyLinkUrl(){return this.isStaticFeatureEnabled(Ye)?this.resolveRelativeUrl(this.getStaticFeatureValue(Ye)):null}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}resolveRelativeUrl(t){return void 0===this.options.configUrl?t:new URL(t,this.options.configUrl.href).href}_loadInspectorHTML(){const t=this.runtimeConfig.skin?.footerLogoHtml??n(523);e()(n(87)).prependTo("body").find("#footer-logo").html(t);const i=n(864).toString();e()('<style id="ixv-style"></style>').prop("type","text/css").text(i).appendTo("head"),void 0!==this.runtimeConfig.skin?.stylesheetUrl&&e()('<link rel="stylesheet" id="ixv-style-skin" />').attr("href",this.resolveRelativeUrl(this.runtimeConfig.skin.stylesheetUrl)).appendTo("head");const r=void 0!==this.runtimeConfig.skin?.faviconUrl?this.resolveRelativeUrl(this.runtimeConfig.skin.faviconUrl):n(285);e()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",r).appendTo("head");try{e()(".inspector-foot .version").text("1.4.46")}catch(t){}}_reparentDocument(){const t=e()("#ixv #iframe-container"),n=e()('<iframe title="iXBRL document view" tabindex="0"/>').data("report-index",0).appendTo(t)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=e()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===e()("html").attr("lang")&&e()("html").attr("lang","en-US"),e()("head").children().not("script, style#ixv-style, link#ixv-style-skin, link#ixv-favicon").appendTo(e()(n).contents().find("head")),e()("<title>").text(r).appendTo(e()("head")),e()("body script").appendTo(e()("body"));const o=e()(n).contents().find("body");e()("body").children().not("script").not("#ixv").not(t).appendTo(o);for(const t of[...e()("body").prop("attributes")])o.attr(t.name,t.value),e()("body").removeAttr(t.name);return e()("body").removeAttr("style"),n}_getTaxonomyData(){for(let t=document.body.children.length-1;t>=0;t--){const e=document.body.children[t];if("SCRIPT"==e.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==e.getAttribute("type"))return e.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}_loadRuntimeConfig(){return new Promise(((t,e)=>{void 0===this.options.configUrl?t({}):fetch(this.options.configUrl).then((t=>404==t.status?Promise.resolve({}):200!=t.status?Promise.reject("Fetch failed: "+t.status):t.json())).then((e=>{t(e)})).catch((e=>{console.log(e),t({})}))}))}load(){const t=this,n=this.inspector;this._loadRuntimeConfig().then((i=>{this.runtimeConfig=i,function(){const t=localStorage.getItem(Ue);Jl(null!==t?t:window.matchMedia(`(prefers-color-scheme: ${Hl})`).matches?Hl:Gl)}();const o=e()("body").hasClass("ixv-stub-viewer");if(!t.isViewerEnabled()&&!o)return;t._loadInspectorHTML();let s=e()();const a=t._getTaxonomyData(),l=a&&JSON.parse(a);let c=l&&l.features;c?Array.isArray(c)&&(c=c.reduce(((t,e)=>(t[e]=!0,t)),{})):c={},void 0!==this.runtimeConfig.features&&(c={...this.runtimeConfig.features,features:c}),t.setFeatures(c,window.location.search);const u=new mn(l);if(u.taxonomyNamer=new fn(new Map(Object.entries(this.runtimeConfig.taxonomyNames??{}))),!t.isViewerEnabled())return void window.location.replace(u.reportFiles()[0].file);if(null===l)return e()("#ixv .loader .text").text("Error: Could not find viewer data"),void e()("#ixv .loader").removeClass("loading");o||(s=e()(t._reparentDocument()));const d=u.reportFiles();let h=!1;for(let t=o?0:1;t<d.length;t++){const n=e()('<iframe tabindex="0" />').attr("src",d[t].file).data("report-index",d[t].index).appendTo("#ixv #iframe-container");s=s.add(n),h=!0}h&&t._checkDocumentSetBrowserSupport();const p=o?"Loading iXBRL Report":"Loading iXBRL Viewer";t.setProgress(p).then((()=>{let i=setInterval((function(){let o=!0;if(s.each((function(t){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==e()(n).contents().find("body").children().length)&&(o=!1)})),o){clearInterval(i);const o=t.viewer=new ir(t,s,u);o.initialize().then((()=>n.initialize(u,o))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>e()("#ixv").css("pointer-events","none"))).on("resizemove",(t=>{const n=t.target,i=100*t.rect.width/e()(n).parent().width();n.style.width=i+"%",e()("#inspector").css("width",100-i+"%")})).on("resizeend",(t=>e()("#ixv").css("pointer-events","auto"))),e()("#ixv .loader").remove(),t.options.showValidationWarningOnStart&&n.showValidationWarning(),o.postLoadAsync(),n.postLoadAsync()})).catch((t=>{if(!(t instanceof er))throw t;e()("#ixv .loader").remove(),e()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(t){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${t} `,"background: #77d1c8; color: black;"),e()("#ixv .loader .text").text(t),window.requestAnimationFrame((()=>n()))}))}))}}const xc=document.currentScript.src;e()((()=>{const t={showValidationWarningOnStart:!0},e=new URL("ixbrlviewer.config.json",xc);"file:"!=e.protocol&&(t.configUrl=e),new Ac(t).load()}))})()})();
2
+ (()=>{var t={918:(t,e,n)=>{var i={"./cy/balancetypes.json":366,"./cy/currencies.json":768,"./cy/datatypes.json":220,"./cy/labelroles.json":800,"./cy/referenceparts.json":10,"./cy/scale.json":407,"./cy/tooltips.json":711,"./cy/translation.json":474,"./en/balancetypes.json":531,"./en/currencies.json":85,"./en/datatypes.json":335,"./en/labelroles.json":113,"./en/referenceparts.json":343,"./en/scale.json":292,"./en/tooltips.json":694,"./en/translation.json":997,"./es/balancetypes.json":746,"./es/currencies.json":476,"./es/datatypes.json":120,"./es/labelroles.json":364,"./es/referenceparts.json":6,"./es/scale.json":3,"./es/tooltips.json":971,"./es/translation.json":702};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=918},987:t=>{t.exports="data:font/woff;charset=utf-8;base64,d09GRgABAAAAABCQAAsAAAAAH4AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAAa8AAAMAQOlEZk9TLzIAAAK4AAAAQQAAAGBW70w3Y21hcAAAAvwAAAG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IsMC4yLTAuNCwwLjJIMTA5LjF6IE0xMTMuNCwxNS45YzAtMC4zLDAtMC42LTAuMS0wLjhjLTAuMS0wLjMtMC4yLTAuNS0wLjQtMC43CgkJYy0wLjItMC4yLTAuNC0wLjMtMC42LTAuNWMtMC4yLTAuMS0wLjUtMC4yLTAuOS0wLjJjLTAuNiwwLTEuMSwwLjItMS41LDAuNWMtMC40LDAuNC0wLjYsMC45LTAuNywxLjZIMTEzLjR6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTE5LjYsMTRjMC4zLTAuNiwwLjYtMSwxLTEuM2MwLjQtMC4zLDAuOS0wLjUsMS40LTAuNWMwLjQsMCwwLjgsMC4xLDEsMC4zbC0wLjEsMS43YzAsMC4xLTAuMSwwLjItMC4xLDAuMgoJCWMtMC4xLDAtMC4xLDAuMS0wLjIsMC4xYy0wLjEsMC0wLjIsMC0wLjQsMGMtMC4yLDAtMC4zLDAtMC41LDBjLTAuMiwwLTAuNSwwLTAuNywwLjFzLTAuNCwwLjItMC41LDAuM2MtMC4yLDAuMS0wLjMsMC4zLTAuNCwwLjUKCQljLTAuMSwwLjItMC4yLDAuNC0wLjMsMC43djUuN2gtMi4ydi05LjJoMS4zYzAuMiwwLDAuNCwwLDAuNSwwLjFjMC4xLDAuMSwwLjIsMC4yLDAuMiwwLjRMMTE5LjYsMTR6Ii8+CjwvZz4KPC9zdmc+Cg=="},864:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`html {\n font-size: 62.5%;\n}\nbody {\n background-color: var(--colour-bg);\n color: var(--colour-foreground);\n margin: 0;\n}\n@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ninput[type="text"],\nselect,\nbutton {\n padding: 7px 5px;\n border: solid 1px var(--colour-border-grey);\n border-radius: 5px;\n color: var(--colour-text);\n background-color: unset;\n box-sizing: border-box;\n}\n.square-button-bare {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n}\n.square-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n.square-button:last-of-type {\n margin-right: 0;\n}\n.square-button:first-of-type {\n margin-left: 0;\n}\n.square-button.primary {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n.wk-checkbox,\nlabel.checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n}\n.wk-checkbox:focus-within,\nlabel.checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n.wk-checkbox input,\nlabel.checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n.wk-checkbox .checkmark,\nlabel.checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n.wk-checkbox input:checked ~ .checkmark::before,\nlabel.checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\ninput:disabled {\n background-color: #eee;\n}\n.inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n.bare-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv .dialog.chart {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n}\n#ixv .dialog.chart .chart-container {\n position: relative;\n width: 100%;\n}\n#ixv .dialog.chart .other-aspects {\n width: 100%;\n position: absolute;\n bottom: 0;\n left: 0;\n padding: 1rem;\n box-sizing: border-box;\n}\n#ixv .dialog.chart .other-aspects .other-aspect {\n display: inline-block;\n padding: 5px 10px;\n margin: 10px;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected,\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n cursor: pointer;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable {\n color: var(--colour-primary);\n}\n#ixv .dialog.chart .other-aspects .other-aspect.addable:hover {\n color: var(--colour-primary) focus;\n text-decoration: underline;\n}\n#ixv .dialog.chart .other-aspects .other-aspect.selected {\n background-color: var(--colour-button-primary-bg);\n border-radius: 0.4rem;\n border: 0.1rem solid var(--colour-button-primary-border);\n /* border: solid 1px #399; */\n color: var(--colour-bg);\n}\n.dialog {\n z-index: 15;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n border: solid 1px #000;\n background-color: var(--colour-bg);\n display: none;\n padding: 0;\n margin: 0;\n}\n.dialog.full-screen {\n width: calc(100vw - 5em);\n height: calc(100vh - 5em);\n}\n.dialog.full-width {\n width: calc(100vw - 5em);\n}\n.dialog.message-box {\n max-width: 800px;\n width: 100%;\n}\n.dialog .contents {\n padding: 2rem;\n position: relative;\n box-sizing: border-box;\n height: 100%;\n width: 100%;\n}\n.dialog .contents > h2:first-child {\n margin-top: 0;\n}\n.dialog .close {\n border: none;\n position: absolute;\n top: 1rem;\n right: 1.4rem;\n padding: 0.3rem;\n font-size: 2.6rem;\n z-index: 20;\n cursor: pointer;\n line-height: 2.2rem;\n color: var(--colour-border-grey);\n}\n.dialog .close::before {\n content: "\\00d7";\n}\n.dialog .close:hover {\n opacity: 1;\n}\n.dialog .buttons button {\n border-radius: 0;\n min-width: 10rem;\n margin-right: 1.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n color: var(--colour-text);\n background-color: var(--colour-button-bg);\n cursor: pointer;\n}\n.dialog .buttons button.dialog-button-primary {\n color: var(--colour-bg);\n background-color: var(--colour-primary);\n border: none;\n}\n#ixv .menu {\n line-height: var(--top-bar-height);\n}\n#ixv .menu .menu-title {\n line-height: var(--top-bar-height);\n padding: 0 2.4rem 0 0.3rem;\n position: relative;\n border: none;\n}\n#ixv .menu .menu-title::after {\n font-family: viewericons;\n content: "\\ea04";\n cursor: pointer;\n font-size: 1.8rem;\n position: absolute;\n right: 0.2rem;\n}\n#ixv .menu .menu-title::before {\n cursor: pointer;\n}\n#ixv .menu .content-container {\n position: fixed;\n top: calc(var(--top-bar-height));\n right: 0;\n bottom: 0;\n display: none;\n z-index: 5;\n}\n#ixv .menu .content-container .content {\n line-height: initial;\n background: var(--colour-bg);\n border: solid 1px var(--colour-border-grey);\n max-height: 100%;\n overflow-y: auto;\n}\n#ixv .menu .content-container .content .group {\n margin-bottom: 1rem;\n}\n#ixv .menu .content-container .content .item {\n position: relative;\n padding: 10px 25px 10px 30px;\n white-space: nowrap;\n text-align: left;\n}\n#ixv .menu .content-container .content .item:hover {\n background: var(--colour-row-hover);\n}\n#ixv .menu .content-container .content .item:focus-within {\n outline: solid 2px var(--colour-foreground);\n outline-offset: -2px;\n}\n#ixv .menu .content-container .content .item.menu-checkbox {\n cursor: pointer;\n user-select: none;\n position: relative;\n display: block;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .menu .content-container .content .item.menu-checkbox input:checked ~ .checkmark::before {\n font-family: viewericons;\n content: "\\ea1d";\n position: absolute;\n top: 1.1rem;\n left: 1rem;\n}\n#ixv .menu .content-container .content a.item {\n display: block;\n color: var(--colour-text);\n}\n#ixv .menu .content-container .content a.item:hover {\n text-decoration: none;\n}\n#ixv .menu .content-container .content .label {\n text-transform: uppercase;\n font-weight: bold;\n font-size: 1.2rem;\n text-align: left;\n padding-top: 1rem;\n color: var(--colour-border-grey);\n border-bottom: solid 1px var(--colour-border-grey);\n padding-left: 1rem;\n}\n#ixv .toolbar-menu .menu-checkbox {\n position: relative;\n padding-left: 2.2rem;\n cursor: pointer;\n user-select: none;\n line-height: 1.6rem;\n margin-left: 1.8rem;\n}\n#ixv .toolbar-menu .menu-checkbox:focus-within {\n outline: solid 0.2rem #000;\n outline-offset: 0.3rem;\n}\n#ixv .toolbar-menu .menu-checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n#ixv .toolbar-menu .menu-checkbox .checkmark {\n position: absolute;\n box-sizing: border-box;\n top: 0;\n left: 0;\n width: 1.6rem;\n height: 1.6rem;\n border-radius: 0.4rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .toolbar-menu .menu-checkbox input:checked ~ .checkmark::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.4rem;\n width: 0.4rem;\n height: 1.1rem;\n border: solid var(--colour-primary);\n border-width: 0 0.2rem 0.2rem 0;\n transform: rotate(45deg);\n}\n.accordian .card {\n margin-top: 0.4rem;\n background-color: var(--colour-button-bg);\n}\n.accordian .card .card-body {\n display: none;\n padding-left: 1.6rem;\n padding-right: 1.6rem;\n padding-bottom: 0.8rem;\n}\n.accordian .card .card-body > h4:first-child {\n margin-top: 0.8rem;\n}\n.accordian .card .title {\n font-size: 1.4rem;\n line-height: 1.8rem;\n padding: 1.2rem 1.6rem;\n border: none;\n width: 100%;\n text-align: left;\n cursor: pointer;\n}\n.accordian .card .title:hover {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active {\n background-color: var(--colour-bg-selected);\n}\n.accordian .card.active .title {\n font-weight: bold;\n}\n.accordian .card.active .card-body {\n display: block;\n}\n#ixv .loader {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.85);\n z-index: 10;\n}\n#ixv .loader .text {\n padding-top: 80px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n color: var(--colour-loader);\n font-size: large;\n font-family: sans-serif;\n}\n#ixv .loader.loading .text::after,\n#ixv .loader.loading .text::before {\n margin: 0 0 0 -30px;\n height: 60px;\n width: 60px;\n position: absolute;\n content: "";\n top: 0;\n left: 50%;\n border-radius: 500rem;\n border-style: solid;\n border-width: 3px;\n box-shadow: 0 0 0 1px transparent;\n}\n#ixv .loader.loading .text::before {\n border: 3px solid rgba(255, 255, 255, 0.1);\n}\n#ixv .loader.loading .text::after {\n -webkit-animation: loader 4s steps(64);\n animation: loader 4s steps(64);\n -webkit-animation-iteration-count: infinite;\n animation-iteration-count: infinite;\n border-color: var(--colour-loader) transparent transparent;\n}\n@keyframes loader {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.tab-area {\n background-color: #e3e3e3;\n width: 100%;\n box-sizing: border-box;\n border-bottom: solid 0.1rem var(--colour-border-grey);\n display: flex;\n}\n.tab-area::after {\n content: "";\n clear: both;\n display: table;\n}\n.tab-area .tab {\n float: left;\n padding: 1.2rem;\n cursor: pointer;\n color: #444;\n border: solid 0.1rem #cbcbcb;\n border-radius: 0.6rem 0.6rem 0 0;\n margin-bottom: -0.1rem;\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n width: 20em;\n text-align: left;\n}\n.tab-area .tab.active {\n padding: 1.2rem;\n border-bottom-color: var(--colour-bg);\n background-color: var(--colour-bg);\n border-top: solid 0.4rem #0085e6;\n}\n.tab-area .tab:not(.active) {\n padding-top: 1.5rem;\n}\n.block-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n.block-list-item > * {\n margin: 0.8rem 0;\n}\n.block-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n.block-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n.block-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .dialog.validation-report {\n width: calc(100vw - 5em);\n}\n#ixv .dialog.validation-report table {\n display: block;\n margin: 2rem 0;\n border-collapse: collapse;\n max-height: calc(90vh - 150px);\n overflow-y: auto;\n}\n#ixv .dialog.validation-report table td,\n#ixv .dialog.validation-report table th {\n padding: 0.5rem;\n border: solid 0.1rem var(--colour-border-grey);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace {\n border-spacing: 1rem 0;\n padding-bottom: 1.5rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace th.value-column {\n width: 8rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td {\n padding: 1rem 0;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.figure {\n text-align: right;\n white-space: nowrap;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.calc11 th.icons {\n border-right: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons td.icons,\n#ixv .dialog.calculation-inspector table.calculation-trace.has-icons th.icons {\n padding-right: 1rem;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.figure,\n#ixv .dialog.calculation-inspector table.calculation-trace tr.total td.line-item {\n border-top: solid 1px;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .message {\n font-style: italic;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status .icon::before {\n position: relative;\n top: 0.1rem;\n padding-right: 0.1rem;\n font-weight: bold;\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.unchecked .icon::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.consistent .icon::before {\n font-family: viewericons;\n content: "\\ea09";\n color: var(--colour-primary);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace td.status.inconsistent .icon::before {\n font-family: viewericons;\n content: "\\ea08";\n color: var(--colour-warning);\n}\n#ixv .dialog.calculation-inspector table.calculation-trace span.duplicate-facts::before {\n font-family: viewericons;\n content: "\\ea14";\n}\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) td.calc11-only,\n#ixv .dialog.calculation-inspector table.calculation-trace:not(.calc11) th.calc11-only {\n display: none;\n}\n#ixv .dialog.text-block-viewer {\n max-width: 120rem;\n width: 90vw;\n height: 90vh;\n}\n#ixv .dialog.text-block-viewer .contents {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .title,\n#ixv .dialog.text-block-viewer .contents .buttons {\n flex-grow: 0;\n}\n#ixv .dialog.text-block-viewer .contents iframe {\n margin: 1.4rem 0;\n border: solid 1px #ccc;\n flex-grow: 1;\n width: 100%;\n height: 100%;\n}\n#ixv .dialog.text-block-viewer .contents .controls {\n height: 3.2rem;\n}\n#inspector .summary .body .total-facts-value,\n#inspector .summary .body .mandatory-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .hidden-facts-value {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#inspector .summary .body .file-summary-container {\n display: flex;\n flex-flow: row wrap;\n}\n#inspector .summary .body .file-summary-container .files {\n flex: 1 1 auto;\n}\n#inspector .summary .body .tag-summary-body {\n overflow-x: auto;\n}\n#inspector .summary .body .tag-summary-body sup {\n font-size: 0.9rem;\n display: block;\n}\n#inspector .summary .body .tag-summary-body table {\n width: 100%;\n border-collapse: collapse;\n}\n#inspector .summary .body .tag-summary-body table td,\n#inspector .summary .body .tag-summary-body table th {\n padding: 0.2rem;\n text-align: left;\n}\n#inspector .summary .body .tag-summary-body table thead tr th {\n white-space: nowrap;\n position: relative;\n height: 10rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.namespace {\n text-align: left;\n vertical-align: bottom;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure {\n width: 5rem;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div {\n position: absolute;\n transform: translate(100px, -50%) rotate(45deg) translate(-50%, 50%);\n text-align: right;\n width: 200px;\n right: 0;\n bottom: 0;\n}\n#inspector .summary .body .tag-summary-body table thead tr th.figure > div.has-tooltip {\n bottom: -0.8rem;\n}\n#inspector .summary .body .tag-summary-body table tbody th {\n font-weight: normal;\n}\n#inspector .summary .body .tag-summary-body table tbody tr,\n#inspector .summary .body .tag-summary-body table tfoot tr {\n transition: background-color 0.25s ease;\n}\n#inspector .summary .body .tag-summary-body table tbody tr:nth-child(odd),\n#inspector .summary .body .tag-summary-body table tfoot tr:nth-child(odd) {\n background-color: var(--colour-row-odd);\n}\n#inspector .summary .body .tag-summary-body table tbody tr:hover,\n#inspector .summary .body .tag-summary-body table tfoot tr:hover {\n background-color: var(--colour-row-hover);\n}\n#inspector .summary .body .tag-summary-body table tbody tr td.figure,\n#inspector .summary .body .tag-summary-body table tfoot tr td.figure {\n text-align: right;\n}\n:root {\n --colour-bg-selected: #f3f3f3;\n --colour-bg-tag: #595959;\n --colour-bg: #ffffff;\n --colour-bg-fade: rgba(0, 0, 0, 0.5);\n --colour-border-grey: #cbcbcb;\n --colour-button-bg: #f8f8f8;\n --colour-button-primary-bg: #005999;\n --colour-button-primary-border: #003b66;\n --colour-foreground: #000000;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #595959;\n --colour-linked-fact: #026dce;\n --colour-loader: #ffffff;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-related-fact: #0eb30e;\n --colour-row-odd: #f8f8f8;\n --colour-row-hover: #e6e6e6;\n --colour-text-form-value: #737373;\n --colour-text-light: #737373;\n --colour-text-title: #444444;\n --colour-text: #595959;\n --colour-warning: #7a4b06;\n --top-bar-height: 3.5rem;\n}\n:root .only-dark {\n display: none;\n}\n:root[data-theme="theme-dark"] {\n --colour-bg-selected: #242424;\n --colour-bg-tag: #ffffff;\n --colour-bg: #000000;\n --colour-bg-fade: rgba(255, 255, 255, 0.5);\n --colour-border-grey: #676767;\n --colour-button-bg: #151515;\n --colour-button-primary-bg: #4fb3fd;\n --colour-button-primary-border: #62bafd;\n --colour-foreground: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffea96;\n --colour-highlight-default: #beea8f;\n --colour-icon-grey: #bcbcbc;\n --colour-linked-fact: #72bafd;\n --colour-loader: #ffffff;\n --colour-primary-focus: #4fb3fd;\n --colour-primary: #72bafd;\n --colour-related-fact: #11dc11;\n --colour-row-odd: #151515;\n --colour-row-hover: #4b4b4b;\n --colour-text-form-value: #a1a1a1;\n --colour-text-light: #797979;\n --colour-text-title: #bcbcbc;\n --colour-text: #bcbcbc;\n --colour-warning: #d8ae15;\n --top-bar-height: 3.5rem;\n}\n:root[data-theme="theme-dark"] .only-dark {\n display: initial;\n}\n:root[data-theme="theme-dark"] .only-light {\n display: none;\n}\n#ixv {\n /* Specify these here, not on body in case the iXBRL document has its own\n * style attribute */\n}\n#ixv,\n#ixv table,\n#ixv dialog {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n color: var(--colour-text);\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv a {\n text-decoration: none;\n color: var(--colour-primary);\n}\n#ixv a:hover {\n text-decoration: underline;\n}\n#ixv #ixv-progress {\n position: fixed;\n top: 20px;\n left: 20px;\n width: 500px;\n height: 200px;\n background-color: var(--colour-bg);\n border: solid #000 1px;\n text-align: center;\n}\n#ixv #viewer-pane {\n width: 75%;\n box-sizing: border-box;\n position: fixed;\n left: 0;\n top: var(--top-bar-height);\n bottom: 0;\n z-index: 0;\n display: flex;\n flex-flow: column;\n /* This spacer stops drag events getting lost to the iframe */\n}\n#ixv #viewer-pane .ixds-tabs {\n display: none;\n flex: 0 1 auto;\n}\n#ixv #viewer-pane #iframe-container {\n background-color: white;\n color: black;\n position: relative;\n flex: 1 1 auto;\n}\n#ixv #viewer-pane #iframe-container > iframe {\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n border: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in,\n#ixv #viewer-pane #iframe-container .zoom-out,\n#ixv #viewer-pane #iframe-container .print {\n position: absolute;\n right: 30px;\n width: 20px;\n height: 20px;\n border: solid 1px #bbb;\n background-color: rgba(225, 225, 225, 0.7);\n justify-content: center;\n display: flex;\n align-items: center;\n color: #777;\n cursor: pointer;\n user-select: none;\n}\n#ixv #viewer-pane #iframe-container .zoom-in {\n top: 15px;\n}\n#ixv #viewer-pane #iframe-container .zoom-out {\n top: 40px;\n}\n#ixv #viewer-pane #iframe-container .print {\n top: 75px;\n}\n#ixv #viewer-pane #iframe-container .print::after {\n font-family: viewericons;\n content: "\\ea16";\n font-size: 20px;\n}\n#ixv #viewer-pane #iframe-container .zoom-in:hover,\n#ixv #viewer-pane #iframe-container .zoom-out:hover,\n#ixv #viewer-pane #iframe-container .print:hover {\n background-color: rgba(128, 128, 128, 0.7);\n}\n#ixv #viewer-pane .resize {\n position: absolute;\n top: 0;\n width: 5px;\n right: -5px;\n bottom: 0;\n z-index: 20;\n}\n#ixv #viewer-pane .resize-spacer {\n position: absolute;\n top: 0;\n width: 3px;\n right: 0;\n bottom: 0;\n z-index: 20;\n}\n#ixv #top-bar {\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 1.4rem;\n line-height: 1.8rem;\n display: flex;\n align-items: center;\n color: var(--colour-text);\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n height: var(--top-bar-height);\n border-bottom: solid 1px #ccc;\n z-index: 5;\n}\n#ixv #top-bar #home-link {\n font-size: 2.2rem;\n font-weight: bold;\n margin-left: 1rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .header {\n height: 100%;\n}\n#ixv #top-bar .document-title {\n box-sizing: border-box;\n padding-right: 1.6rem;\n line-height: var(--top-bar-height);\n border-right: solid 0.1rem #ccc;\n height: var(--top-bar-height);\n overflow: hidden;\n font-size: inherit;\n font-weight: inherit;\n margin: 0;\n}\n#ixv #top-bar .top-bar-controls {\n position: absolute;\n display: flex;\n right: 0;\n top: 0;\n line-height: var(--top-bar-height);\n height: var(--top-bar-height);\n background: var(--colour-bg);\n padding-left: 1.8rem;\n}\n#ixv #top-bar .top-bar-controls > * {\n margin-right: 0.8rem;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu * {\n vertical-align: middle;\n}\n#ixv #top-bar .top-bar-controls .horizontal-menu .content > * {\n position: relative;\n top: -0.1rem;\n margin-right: 0.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key {\n margin-left: 0.6rem;\n margin-right: 1.5rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key::before {\n font-family: viewericons;\n content: "\\ea17";\n font-size: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content {\n position: absolute;\n top: 3.2rem;\n left: -2rem;\n background: white;\n color: black;\n border: solid 1px black;\n border-radius: 0.3rem;\n line-height: 1.6rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .arrow {\n position: absolute;\n top: 0;\n left: 1.1rem;\n width: 1.5rem;\n height: 1.5rem;\n border-top: solid 0.1rem black;\n border-left: solid 0.1rem black;\n transform: translate(50%, -50%) rotate(45deg);\n background: white;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item {\n white-space: nowrap;\n margin: 1rem;\n position: relative;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample {\n display: inline-block;\n width: 3.2rem;\n height: 1.6rem;\n margin-right: 1rem;\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-0 {\n background: var(--colour-highlight-default);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-1 {\n background: var(--colour-highlight-1);\n}\n#ixv #top-bar .top-bar-controls .highlight-key .popup-content .item .sample-2 {\n background: var(--colour-highlight-2);\n}\n#ixv #top-bar .top-bar-controls .validation-warning {\n margin-left: 0.5rem;\n font-size: 1.6rem;\n display: none;\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .validation-warning::before {\n font-family: viewericons;\n content: "\\ea1e";\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode {\n border: none;\n}\n#ixv #top-bar .top-bar-controls #toggle-dark-mode::before {\n font-family: viewericons;\n content: "\\ea0d";\n cursor: pointer;\n}\n#ixv #top-bar .top-bar-controls .menu .menu-title::before {\n font-family: viewericons;\n content: "\\ea0c";\n font-size: 2rem;\n}\n#ixv #inspector {\n display: flex;\n flex-direction: column;\n /* inspector container */\n width: 25%;\n position: absolute;\n top: var(--top-bar-height);\n right: 0;\n bottom: 0;\n box-sizing: border-box;\n overflow: hidden;\n border-left: solid 0.1rem var(--colour-border-grey);\n}\n#ixv #inspector h1,\n#ixv #inspector h2,\n#ixv #inspector h3 {\n font-weight: normal;\n width: 100%;\n box-sizing: border-box;\n color: var(--colour-text-title);\n}\n#ixv #inspector h2 {\n text-align: center;\n font-size: 1.8rem;\n line-height: 3.2rem;\n margin: 0.8rem 0;\n}\n#ixv #inspector h3 {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector h4 {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4em;\n}\n#ixv #inspector #inspector-head {\n padding: 0;\n position: relative;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector #inspector-head .controls {\n position: relative;\n height: 3.2rem;\n padding: 0.8rem 0.9rem;\n display: flex;\n}\n#ixv #inspector #inspector-head .controls > * {\n margin: 0.8rem 0.9rem;\n}\n#ixv #inspector #inspector-head .controls .search-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .search-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .search-button::before {\n font-family: viewericons;\n content: "\\ea18";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .outline-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .outline-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .outline-button::before {\n font-family: viewericons;\n content: "\\ea15";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .summary-button {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .summary-button:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .summary-button::before {\n font-family: viewericons;\n content: "\\ea1a";\n position: relative;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n margin-left: auto;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-prev-tag::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector #inspector-head .controls .ixbrl-next-tag::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .inspector-container {\n flex-grow: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n /* inspector body */\n}\n#ixv #inspector .inspector-container .inspector-title {\n text-align: center;\n position: relative;\n margin: 0.8rem 0;\n}\n#ixv #inspector .inspector-container .inspector-title h2 {\n margin: 0;\n padding: 0;\n}\n#ixv #inspector .inspector-container .inspector-title .back {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n top: 0;\n left: 0.9rem;\n position: absolute;\n}\n#ixv #inspector .inspector-container .inspector-title .back::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .inspector-container .search-controls {\n margin: 0 0 0.8rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input {\n display: flex;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input input#ixbrl-search {\n flex-grow: 1;\n margin-right: 1rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-input .filter-toggle::before {\n font-family: viewericons;\n content: "\\ea11";\n}\n#ixv #inspector .inspector-container .search-controls .filter-info {\n text-align: center;\n font-style: italic;\n margin-top: 0.8rem;\n position: relative;\n}\n#ixv #inspector .inspector-container .search-controls .filter-info .reset {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n position: absolute;\n right: 0.8rem;\n top: -0.3rem;\n}\n#ixv #inspector .inspector-container .search-controls:not(.show-filters) .search-filters {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls.active-filters .filter-toggle {\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .search-controls:not(.active-filters) .reset {\n display: none;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters {\n position: relative;\n max-height: 60vh;\n overflow-y: auto;\n padding: 0 0.9rem;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 {\n border: none;\n font-weight: bold;\n padding-bottom: 0;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters h3 button {\n font-weight: inherit;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n margin-bottom: 0.4em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group .control-label {\n white-space: nowrap;\n margin-right: 2em;\n width: 6em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group input,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group select,\n#ixv #inspector .inspector-container .search-controls .search-filters .filter-group textarea {\n flex-basis: 12em;\n flex-grow: 2;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .control-label {\n font-weight: bold;\n margin-bottom: 0.6em;\n margin-top: 0.8em;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters select {\n width: 100%;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes {\n display: flex;\n flex-wrap: wrap;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div {\n margin: 1.2rem 0;\n flex-grow: 1;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .checkboxes > div input {\n vertical-align: middle;\n}\n#ixv #inspector .inspector-container .search-controls .search-filters .datatype-conflict-warning {\n margin: 1rem 0;\n color: var(--colour-warning);\n display: none;\n}\n#ixv #inspector .inspector-container .inspector-body {\n border-top: solid 1px var(--colour-border-grey);\n width: 100%;\n position: relative;\n overflow-y: auto;\n flex-grow: 1;\n /* search results */\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n width: 80%;\n text-align: center;\n color: var(--colour-text-light);\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-fact-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-fact-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea1b";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .no-outline-overlay-icon::before,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .no-outline-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea15";\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .no-fact-overlay .title,\n#ixv #inspector .inspector-container .inspector-body .no-outline-overlay .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .inspector-body {\n overflow-y: auto;\n height: 100%;\n position: relative;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results {\n overflow-y: auto;\n height: 100%;\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay {\n transform: translate(-50%, -50%);\n position: absolute;\n top: 50%;\n left: 50%;\n color: var(--colour-text-light);\n width: 85%;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon {\n text-align: center;\n font-size: 10rem;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-icon::before {\n font-family: viewericons;\n content: "\\ea18";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text {\n text-align: center;\n font-size: medium;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .search-overlay .search-overlay-text .title {\n font-size: x-large;\n line-height: normal;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon {\n float: right;\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n padding: 0;\n border-radius: 3px;\n border: solid 0.1rem var(--colour-border-grey);\n background-color: var(--colour-button-bg);\n line-height: 3rem;\n margin: 0 0.5rem;\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:last-of-type {\n margin-right: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon:first-of-type {\n margin-left: 0.5rem;\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .select-icon::before {\n font-family: viewericons;\n content: "\\ea19";\n}\n#ixv #inspector .inspector-container .inspector-body .search-results .more-results {\n cursor: pointer;\n color: var(--colour-primary);\n padding: 1rem;\n text-align: center;\n}\n#ixv #inspector .inspector-container .inspector-body .outline {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .summary {\n overflow-y: auto;\n height: 100%;\n}\n#ixv #inspector .inspector-container .inspector-body .body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .std-label {\n margin-left: 30px;\n min-height: 20px;\n position: relative;\n}\n#ixv #inspector .std-label::before {\n color: var(--colour-primary);\n content: "\\2022";\n position: absolute;\n left: -20px;\n font-size: x-large;\n}\n#ixv #inspector dt {\n font-weight: bold;\n color: var(--colour-text-title);\n margin-bottom: 1.4rem;\n margin-top: 1.4rem;\n}\n#ixv #inspector dd {\n margin-inline-start: 2rem;\n}\n#ixv #inspector #concept {\n margin-top: 20px;\n font-size: small;\n min-height: 25px;\n}\n#ixv #inspector #dimensions {\n margin-left: 2rem;\n margin-right: 2rem;\n margin-bottom: 1rem;\n}\n#ixv #inspector #dimensions .dimension {\n position: relative;\n margin: 1.5rem 0 1.5rem 1rem;\n}\n#ixv #inspector #dimensions .dimension::before {\n font-family: viewericons;\n content: "\\ea0e";\n color: var(--colour-primary);\n position: absolute;\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector #dimensions .dimension-value {\n position: relative;\n margin: 1.5rem 0 1.5rem 3.5rem;\n}\n#ixv #inspector #dimensions .dimension-value::before {\n font-family: viewericons;\n content: "\\ea0f";\n position: absolute;\n color: var(--colour-primary);\n top: 0;\n left: -2.3rem;\n font-size: 120%;\n}\n#ixv #inspector .inline-button {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n}\n#ixv #inspector .analyse {\n margin-left: 0.4rem;\n}\n#ixv #inspector .analyse::before {\n font-family: viewericons;\n content: "\\ea12";\n position: relative;\n top: 1px;\n}\n#ixv #inspector .inspector-body .tags {\n position: absolute;\n top: 1.5rem;\n right: 0.9rem;\n}\n#ixv #inspector .target-document-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv #inspector .hidden-fact-tag.html-hidden-fact-tag,\n#ixv #inspector .html-hidden-fact-tag.html-hidden-fact-tag {\n background-color: #c63018;\n}\n#ixv #inspector .duplicates {\n text-align: center;\n width: 100%;\n height: 3.2rem;\n line-height: 3.2rem;\n}\n#ixv #inspector .duplicates > * {\n vertical-align: middle;\n}\n#ixv #inspector .duplicates .text {\n margin: 0 5px;\n}\n#ixv #inspector .duplicates .next,\n#ixv #inspector .duplicates .prev {\n width: 3.2rem;\n height: 3.2rem;\n text-align: center;\n color: var(--colour-icon-grey);\n box-sizing: border-box;\n cursor: pointer;\n padding: 0;\n font-size: 2.2rem;\n line-height: 3.2rem;\n user-select: none;\n border: none;\n position: relative;\n display: inline-block;\n}\n#ixv #inspector .duplicates .prev::before {\n font-family: viewericons;\n content: "\\ea05";\n}\n#ixv #inspector .duplicates .next::before {\n font-family: viewericons;\n content: "\\ea06";\n}\n#ixv #inspector .concept td > div {\n display: flex;\n}\n#ixv #inspector .concept td > div span.text {\n white-space: nowrap;\n position: relative;\n flex-shrink: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n#ixv #inspector .concept td > div span.filler {\n width: 0.7rem;\n display: inline-block;\n flex-shrink: 1000;\n}\n#ixv #inspector .concept td > div span.copy-icon {\n flex-shrink: 0;\n}\n#ixv #inspector .documentation {\n margin-top: 10px;\n margin-left: 30px;\n font-style: italic;\n font-family: serif;\n}\n#ixv #inspector .inspector-section {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-body {\n padding-left: 0.9rem;\n padding-right: 0.9rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header {\n position: relative;\n padding: 0 0 0.5rem 1.2rem;\n cursor: pointer;\n user-select: none;\n white-space: nowrap;\n border-bottom: solid 1px var(--colour-border-grey);\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type {\n font-size: 1.4rem;\n line-height: 1.8rem;\n border: none;\n color: var(--colour-text-title);\n text-align: left;\n position: relative;\n padding: 0.4rem 0.9rem 0.4rem 2.3rem;\n}\n#ixv #inspector .collapsible-section .collapsible-header button:first-of-type::before {\n font-family: viewericons;\n content: "\\ea06";\n font-size: 1.8rem;\n position: absolute;\n top: 0.4rem;\n left: 0;\n transform: rotate(90deg);\n transition: all 0.25s ease;\n display: inline-block;\n}\n#ixv #inspector .collapsible-section .collapsible-header .collapsible-subheader {\n user-select: none;\n font-weight: normal;\n font-style: italic;\n font-size: 1.3rem;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-header button::before {\n transform: rotate(0);\n top: 0.3rem;\n left: -0.2rem;\n}\n#ixv #inspector .collapsible-section.collapsed .collapsible-subheader {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .footnote-details {\n display: none;\n}\n#ixv #inspector .collapsible-section .calculations .card .title {\n position: relative;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-warning);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .inconsistent-flag::before {\n font-family: viewericons;\n content: "\\ea08";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag {\n padding-right: 0.75rem;\n position: relative;\n top: 0.2rem;\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations .card .title .consistent-flag::before {\n font-family: viewericons;\n content: "\\ea09";\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag {\n padding-right: 0.5rem;\n position: relative;\n top: 0.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .card .title .unchecked-flag::before {\n font-family: viewericons;\n content: "\\ea17";\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table {\n width: 100%;\n border-collapse: collapse;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td {\n padding: 0.2rem 0;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.weight {\n text-align: center;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item td.value {\n text-align: right;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link, .total) .concept-name {\n color: #777;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item:not(.calc-fact-link) td.concept-name {\n padding: 0.3rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link {\n cursor: pointer;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value {\n color: var(--colour-primary);\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .concept-name button,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link .value button {\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.linked-highlight,\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.calc-fact-link:hover {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv #inspector .collapsible-section .calculations table.calculation-table tr.item.total td {\n border-top: solid 1px var(--colour-border-grey);\n padding-bottom: 1.2rem;\n}\n#ixv #inspector .collapsible-section .calculations .calculation-details-link {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n font-size: 1.4rem;\n line-height: 1.8rem;\n}\n#ixv #inspector .resetable-multiselect {\n position: relative;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect {\n position: absolute;\n top: -2.5rem;\n right: -0.5rem;\n cursor: pointer;\n border: none;\n padding: 0.3rem;\n}\n#ixv #inspector .resetable-multiselect .reset-multiselect::after {\n font-family: viewericons;\n content: "\\ea0b";\n}\n#ixv #inspector:not(.no-fact-selected) .no-fact-overlay {\n display: none;\n}\n#ixv #inspector.no-fact-selected .fact-selected-only {\n display: none;\n}\n#ixv #inspector:not(.hidden-fact) .hidden-fact-tag {\n display: none;\n}\n#ixv #inspector:not(.html-hidden-fact) .html-hidden-fact-tag {\n display: none;\n}\n#ixv #inspector.search-mode #inspector-head .controls .search-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.outline-mode #inspector-head .controls .outline-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector.summary-mode #inspector-head .controls .summary-button {\n color: var(--colour-bg);\n border-color: var(--colour-button-primary-border);\n background-color: var(--colour-button-primary-bg);\n}\n#ixv #inspector .powered-by {\n font-size: 1.2rem;\n text-align: center;\n flex-shrink: 0;\n background: var(--colour-bg);\n width: 100%;\n height: 3rem;\n margin: 0;\n box-sizing: border-box;\n border-top: solid 0.1rem var(--colour-border-grey);\n position: relative;\n}\n#ixv #inspector .powered-by img {\n box-sizing: border-box;\n height: 3rem;\n padding: 0.5rem;\n}\n#ixv #inspector .powered-by .version {\n position: absolute;\n top: 0;\n right: 5px;\n font-size: small;\n line-height: 3rem;\n color: var(--colour-text-light);\n}\n#ixv #inspector:not(.search-mode) .search-mode-only {\n display: none;\n}\n#ixv #inspector:not(.outline-mode) .outline-mode-only {\n display: none;\n}\n#ixv #inspector:not(.summary-mode) .summary-mode-only {\n display: none;\n}\n#ixv #inspector.search-mode .fact-mode-only,\n#ixv #inspector.summary-mode .fact-mode-only,\n#ixv #inspector.outline-mode .fact-mode-only {\n display: none;\n}\n#ixv #inspector:not(.footnote-mode) .footnote-mode-only {\n display: none;\n}\n#ixv #inspector.footnote-mode .footnote-mode-off {\n display: none;\n}\n#ixv #inspector .failed-to-load-mask {\n display: none;\n}\n#ixv #inspector.failed-to-load .failed-to-load-mask {\n display: block;\n background-color: var(--colour-bg-fade);\n position: absolute;\n width: 100%;\n height: 100%;\n}\n#ixv #inspector.search-ready .search-not-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-ready-only {\n display: none;\n}\n#ixv #inspector:not(.search-ready) .search-results {\n background-color: rgba(0, 0, 0, 0.5);\n}\n#ixv #inspector table.property-table:not(.numeric) {\n table-layout: fixed;\n width: 100%;\n}\n#ixv #inspector table.property-table td,\n#ixv #inspector table.property-table th {\n padding: 0;\n line-height: 2.6rem;\n}\n#ixv #inspector table.property-table th {\n width: 90px;\n text-align: right;\n padding-right: 30px;\n color: var(--colour-text-title);\n}\n#ixv #inspector table.property-table th.has-tooltip {\n padding-right: 10px;\n}\n#ixv #inspector table.property-table tr.value .show-all {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value:not(.truncated) .show-all {\n display: none;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block {\n color: var(--colour-primary);\n cursor: pointer;\n}\n#ixv #inspector table.property-table tr.value.text-block .expand-text-block::before {\n font-family: viewericons;\n content: "\\ea1c";\n}\n#ixv #inspector table.property-table td {\n overflow: clip visible;\n text-overflow: ellipsis;\n color: var(--colour-text-form-value);\n}\n#ixv #inspector table.property-table tr.uri > td {\n white-space: nowrap;\n}\n#ixv #inspector table.property-table.numeric td {\n text-align: right;\n}\n#ixv .fact-link {\n cursor: pointer;\n color: var(--colour-primary);\n}\n#ixv .fact-link:hover {\n outline: solid 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n#ixv .fact-list .fact-list-item {\n margin: 0.5rem 0;\n padding: 0.3rem 0.9rem;\n background-color: var(--colour-button-bg);\n cursor: pointer;\n position: relative;\n border-left: solid 0.4rem var(--colour-button-bg);\n border-right: none;\n border-top: none;\n border-bottom: none;\n border-radius: 0;\n text-align: left;\n width: 100%;\n}\n#ixv .fact-list .fact-list-item > * {\n margin: 0.8rem 0;\n}\n#ixv .fact-list .fact-list-item > .block-list-item-tags {\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item:hover {\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.selected {\n border-left: solid 0.4rem var(--colour-primary);\n background-color: var(--colour-bg-selected);\n}\n#ixv .fact-list .fact-list-item.linked-highlight {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n#ixv .fact-list .fact-list-item .title {\n color: var(--colour-text-title);\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item .dimension {\n color: var(--colour-text);\n margin: 0.6rem 0;\n}\n#ixv .fact-list .fact-list-item .datatype {\n color: var(--colour-text);\n margin: 0.6rem 0;\n font-style: italic;\n}\n#ixv .fact-list .fact-list-item .hidden {\n display: inline-block;\n text-transform: uppercase;\n font-weight: bold;\n background-color: var(--colour-bg-tag);\n padding: 0.15em 0.5em;\n color: var(--colour-bg);\n border-radius: 0.3em;\n margin: 0.2rem 0.3rem 0.2rem 0;\n white-space: nowrap;\n}\n#ixv .fact-list .fact-list-item.selected .title {\n font-weight: bold;\n}\n#ixv .fact-list .fact-list-item.selected .dimension {\n color: var(--colour-text);\n}\n#ixv .dialog-mask {\n background-color: var(--colour-bg-fade);\n position: fixed;\n inset: 0;\n z-index: 10;\n display: none;\n}\n#ixv .popup-content {\n display: none;\n}\n#ixv .copy-icon {\n color: var(--colour-primary);\n border-radius: 0.3rem;\n}\n#ixv .copy-icon:active {\n background-color: var(--colour-primary);\n color: var(--colour-bg);\n}\n#ixv .copy-icon::before {\n font-family: viewericons;\n content: "\\ea0a";\n cursor: pointer;\n}\n#ixv .has-tooltip {\n white-space: nowrap;\n}\n#ixv .has-tooltip > * {\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon {\n display: inline;\n cursor: pointer;\n color: var(--colour-primary);\n padding: 0.3rem;\n border: none;\n cursor: help;\n margin-left: -0.3rem;\n vertical-align: middle;\n}\n#ixv .has-tooltip .tooltip-icon::after {\n content: "\\24d8";\n}\n#ixv .has-tooltip button + .tooltip-icon {\n margin-left: -1rem;\n}\n#ixv .tooltip {\n position: fixed;\n visibility: hidden;\n transition: all 0.5s ease;\n background-color: var(--colour-bg);\n z-index: 1;\n border: solid 0.1rem var(--colour-border-grey);\n border-radius: 0.4rem;\n padding: 0.8rem;\n box-shadow: rgba(0, 0, 0, 0.3) 0.2rem 0.2rem 0.2rem;\n font-weight: normal;\n opacity: 0;\n cursor: default;\n color: var(--colour-text);\n text-align: left;\n}\n#ixv .tooltip.show,\n#ixv .tooltip.hover-show {\n visibility: visible;\n opacity: 1;\n transition: opacity 0.5s ease;\n}\n#ixv .tooltip.with-glossary-link .glossary-link {\n display: block;\n}\n#ixv .tooltip .glossary-link {\n margin-top: 0.8rem;\n font-size: smaller;\n display: none;\n}\n`,""]),t.exports=a},95:(t,e,n)=>{var i=n(758),r=n(935),o=n(62),s=n(987),a=r(i),l=o(s);a.push([t.id,`@font-face {\n font-family: viewericons;\n src: url(${l});\n font-weight: normal;\n font-style: normal;\n}\n/* Styles common to both inspector and highlighting used within iframe */\n.linked-highlight-text {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\n.linked-highlight-cell {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\n:root {\n --colour-bg: #ffffff;\n --colour-highlight-1: #dd73ff;\n --colour-highlight-2: #ffac29;\n --colour-highlight-default: #beea8f;\n --colour-linked-fact: #026dce;\n --colour-primary-focus: #0094ff;\n --colour-primary: #026dce;\n --colour-secondary: #66cc00;\n --colour-related-fact: #0eb30e;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-1) !important;\n}\n.ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-2) !important;\n}\n.review.review-highlight-untagged-numbers .review-untagged-number {\n background-color: var(--colour-highlight-1);\n}\n.review.review-highlight-untagged-dates .review-untagged-date {\n background-color: var(--colour-highlight-2);\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight) {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-1 {\n background-color: var(--colour-highlight-default) !important;\n}\n.review .ixbrl-highlight:not(.ixbrl-no-highlight).ixbrl-highlight-2 {\n background-color: var(--colour-highlight-default) !important;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-selected,\nspan:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\ndiv:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ndiv:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nspan:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus);\n outline-offset: 0.0625em;\n}\n:not(.ixbrl-no-highlight).ixbrl-element,\n:not(.ixbrl-no-highlight).ixbrl-sub-element {\n cursor: pointer;\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related,\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related {\n outline: dashed 0.125em var(--colour-related-fact);\n}\n:not(.ixbrl-no-highlight).ixbrl-element.ixbrl-related:not(td, th),\n:not(.ixbrl-no-highlight).ixbrl-sub-element.ixbrl-related:not(td, th) {\n outline-offset: 0.0625em;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-selected,\nth:not(.ixbrl-no-highlight).ixbrl-selected {\n outline: solid 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-element:hover:not(.ixbrl-selected),\ntd:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected),\nth:not(.ixbrl-no-highlight).ixbrl-sub-element:hover:not(.ixbrl-selected) {\n outline: dashed 0.125em var(--colour-primary-focus) !important;\n outline-offset: -0.0625em !important;\n}\ntd.ixbrl-related,\nth.ixbrl-related {\n outline-offset: -0.0625em !important;\n}\n.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\n.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n}\ntd.ixbrl-related.ixbrl-linked-highlight:not(.ixbrl-no-highlight),\ntd.ixbrl-linked-highlight:not(.ixbrl-no-highlight) {\n outline: dashed 0.125em var(--colour-linked-fact);\n outline-offset: 0.0625em;\n outline-offset: -0.0625em;\n}\ndiv.ixbrl-table-handle {\n position: absolute;\n left: 0;\n cursor: pointer;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-bottom-color: var(--colour-secondary);\n top: -0.8rem;\n}\ndiv.ixbrl-table-handle::after {\n content: "";\n position: absolute;\n left: -0.4rem;\n top: 0.4rem;\n width: 0;\n height: 0;\n border: 0.4rem solid transparent;\n border-top-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle > span {\n display: none;\n white-space: nowrap;\n}\ndiv.ixbrl-table-handle:hover {\n border: none;\n color: var(--colour-bg);\n transition: width 0.3s;\n width: 9rem;\n height: initial;\n left: -0.1rem;\n padding: 0;\n z-index: 1;\n}\ndiv.ixbrl-table-handle:hover::after {\n display: none;\n}\ndiv.ixbrl-table-handle:hover > span {\n border: solid 0.1rem var(--colour-bg);\n font-family: sans-serif;\n display: block;\n padding: 0.7rem 1.5rem 0.7rem 2.5rem;\n background-color: var(--colour-secondary);\n}\ndiv.ixbrl-table-handle:hover > span::before {\n font-family: viewericons;\n content: "\\ea10";\n position: absolute;\n left: 0.8rem;\n font-size: 1.2rem;\n}\n`,""]),t.exports=a},935:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var u=[].concat(t[c]);i&&s[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},62:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},758:t=>{"use strict";t.exports=function(t){return t[1]}},60:function(t,e,n){var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){a(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n.g&&n.g.global===n.g?n.g:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,n,s){var a=o.URL||o.webkitURL,l=document.createElement("a");n=n||t.name||"download",l.download=n,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?r(l):i(l.href)?e(t,n,s):r(l,l.target="_blank")):(l.href=a.createObjectURL(t),setTimeout((function(){a.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,o){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,o),n);else if(i(t))e(t,n,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){r(s)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var a="application/octet-stream"===t.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},u.readAsDataURL(t)}else{var d=o.URL||o.webkitURL,h=d.createObjectURL(t);r?r.location=h:location.href=h,r=null,setTimeout((function(){d.revokeObjectURL(h)}),4e4)}});o.saveAs=a.saveAs=a,t.exports=a})?i.apply(e,[]):i)||(t.exports=r)},793:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div class="fact-details">\n <dl>\n <dt data-i18n="factDetails.concept">Concept</dt>\n <dd>\n <div class="std-label"></div>\n <div class="documentation"></div>\n </dd>\n <dt id="dimensions-label" class="has-tooltip">\n <span data-i18n="factDetails.dimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimension" data-tooltip-glossary-link="true"></button>\n </dt>\n <dd>\n <div id="dimensions"></div>\n </dd>\n <dt data-i18n="factDetails.properties">Properties</dt>\n <dd>\n <table class="property-table fact-properties">\n <tr class="period">\n <th class="has-tooltip">\n <span data-i18n="factDetails.date">Date</span>\n <button class="tooltip-icon" data-tooltip-name="period"></button>\n </th>\n <td></td>\n </tr>\n <tr class="value">\n <th data-i18n="factDetails.factValue">Fact Value</th>\n <td><span class="value"></span> <button class="show-all inline-button" aria-label="Show full text">[...]</button> <span class="expand-text-block"></span></td>\n </tr>\n <tr class="accuracy">\n <th class="has-tooltip">\n <span data-i18n="factDetails.accuracy">Accuracy</span>\n <button class="tooltip-icon" data-tooltip-name="accuracy"></button>\n </th>\n <td></td>\n </tr>\n <tr class="scale">\n <th class="has-tooltip">\n <span data-i18n="factDetails.scale">Scale</span>\n <button class="tooltip-icon" data-tooltip-name="scale"></button>\n </th>\n <td></td>\n </tr>\n <tr class="change">\n <th data-i18n="factDetails.change">Change</th>\n <td></td>\n </tr>\n <tr class="entity-identifier">\n <th data-i18n="factDetails.entity">Entity</th>\n <td></td>\n </tr>\n <tr class="concept">\n <th class="has-tooltip">\n <span data-i18n="factDetails.concept">Concept</span>\n <button class="tooltip-icon" data-tooltip-name="concept" data-tooltip-glossary-link="#concept"></button>\n </th>\n <td><div><span class="text"></span><span class="filler"></span><button class="clipboard-copy copy-icon inline-button" title="Copy concept to clipboard"></button></div></td>\n </tr>\n <tr class="datatype">\n <th data-i18n="factDetails.datatype">Type</th>\n <td></td>\n </tr>\n <tr class="balance">\n <th data-i18n="factDetails.balance">Balance</th>\n <td></td>\n </tr>\n </table>\n </dd>\n </dl>\n <div class="duplicates">\n <button class="prev" title="Show previous duplicate"></button> \n <span class="text"></span> \n <button class="next" title="Show next duplicate"></button>\n </div>\n</div>\n'},523:(t,e,n)=>{var i=`<a href="https://arelle.org" target="_blank" aria-label="Link to Arelle website">\n <img alt="Arelle logo" class="only-light" src="${n(59)}"/>\n <img alt="Arelle logo" class="only-dark" src="${n(600)}"/>\n</a>\n`;t.exports=i},643:t=>{t.exports='\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div>\n <table class="fact-properties">\n <tr class="value">\n <th data-i18n="footnotes.footnote">Footnote</th>\n <td><span class="value"></span> <button class="show-all inline-button">[...]</button></td>\n </tr>\n </table>\n</div>\n'},87:(t,e,n)=>{var i=`\x3c!--\nSee COPYRIGHT.md for copyright information\n--\x3e\n\n<div id="ixv" xmlns="http://www.w3.org/1999/xhtml">\n <div class="loader loading">\n <span class="text" data-i18n="inspector.loadingViewer">Loading iXBRL Viewer</span>\n </div>\n <header id="top-bar">\n <img class="header only-light" alt="Inline Viewer logo" src="${n(778)}"/>\n <img class="header only-dark" alt="Inline Viewer logo" src="${n(587)}"/>\n <h1 class="document-title"></h1>\n <div class="top-bar-controls">\n <div id="toolbar-highlight-menu" class="horizontal-menu">\n <b data-i18n="inspector.highlight">Highlight:</b><span class="highlight-key popup-trigger"><div class="popup-content">\n <div class="arrow"></div>\n <div class="items"></div>\n </div></span><span class="content"></span>\n </div>\n <button id="toggle-dark-mode" data-i18n="[title]toolbar.toggleDarkMode" title="Toggle dark mode"></button>\n <button class="inline-button validation-warning" data-i18n="[aria-label]inspector.validationResults" aria-label="Validation Results" title="Report has validation errors"></button>\n <div class="menu" id="display-options-menu">\n <button data-i18n="[title]inspector.settingsMenu" title="Settings menu" class="menu-title"></button>\n <div class="content-container">\n <div class="content"></div>\n </div>\n </div>\n </div>\n </header>\n <section id="viewer-pane" data-i18n="[aria-label]viewer.ixbrlDocumentView" aria-label="iXBRL Document View">\n <div class="ixds-tabs"><div class="tab-area"></div></div>\n <div id="iframe-container">\n <div class="zoom-in">+</div>\n <div class="zoom-out">-</div>\n <div class="print" title="Print Document" data-i18n="[title]inspector.printDocument"></div>\n </div>\n <div class="resize"></div>\n <div class="resize-spacer"></div>\n </section>\n <section id="inspector" class="no-fact-selected" data-i18n="[aria-label]inspector.ixbrlInspector" aria-label="iXBRL Inspector">\n <div id="inspector-head">\n <nav class="controls">\n <button class="summary-button" data-i18n="[title]inspector.documentSummary" title="Document summary">\n </button>\n <button class="outline-button" data-i18n="[title]inspector.documentOutline" title="Document outline">\n </button>\n <button class="search-button" data-i18n="[title]inspector.searchTitle" title="Search">\n </button>\n <button class="ixbrl-prev-tag" data-i18n="[title]inspector.previousTag" title="Previous tag"></button>\n <button class="ixbrl-next-tag" data-i18n="[title]inspector.nextTag" title="Next tag"></button>\n </nav>\n </div>\n\n <div class="inspector-container fact-mode-only">\n <div class="inspector-title">\n <h2 class="footnote-mode-off" data-i18n="inspector.factProperties">Fact Properties</h2>\n <h2 class="footnote-mode-only" data-i18n="inspector.footnoteProperties">Footnote Properties</h2>\n </div>\n <div class="inspector-body" tabindex="1">\n <div class="no-fact-overlay">\n <div class="no-fact-overlay-icon"></div>\n <p class="title" data-i18n="inspector.noFactSelected">No Fact Selected</p>\n </div>\n <div class="fact-selected-only">\n <div class="tags">\n <div class="target-document-tag"></div>\n <div class="hidden-fact-tag" data-i18n="inspector.hiddenFact">Hidden Fact</div>\n <div class="html-hidden-fact-tag" data-i18n="inspector.concealedFact">Concealed Fact</div>\n </div>\n <div class="collapsible-section">\n <div class="fact-inspector collapsible-body">\n </div>\n </div>\n <div class="footnote-mode-off">\n <div class="collapsible-section anchoring">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.anchoring">Anchoring</button> <button class="tooltip-icon" data-tooltip-name="anchoring" data-tooltip-glossary-link="#anchoring"></button></h3>\n <div class="collapsible-body">\n <h4 data-i18n="inspector.widerAnchor">Wider anchor</h4>\n <div class="anchors-wider">\n </div>\n <h4 data-i18n="inspector.narrowerAnchor">Narrower anchors</h4>\n <div class="anchors-narrower">\n </div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.labels">Labels</button></h3>\n <div class="collapsible-body labels">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.references">References</button> <button class="tooltip-icon" data-tooltip-name="references" data-tooltip-glossary-link="#reference"></button></h3>\n <div class="collapsible-body references">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header has-tooltip"><button data-i18n="inspector.calculations">Calculations</button> <button class="tooltip-icon" data-tooltip-name="calculations" data-tooltip-glossary-link="#calculation-tree"></button></h3>\n <div class="collapsible-body calculations">\n <div class="tree"></div>\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.footnotes">Footnotes</button></h3>\n <div class="collapsible-body footnotes fact-list">\n </div>\n </div>\n <div class="collapsible-section footnote-facts-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated Facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.fact-groups">Sections</button></h3>\n <div class="collapsible-body fact-groups fact-list">\n </div>\n </div>\n </div>\n <div class="footnote-details footnote-mode-only">\n <div class="collapsible-section">\n <h3 class="collapsible-header"><button data-i18n="inspector.associatedFacts">Associated facts</button></h3>\n <div class="collapsible-body footnote-facts fact-list">\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class="inspector-container search-mode-only" role="search">\n <div class="inspector-title">\n <button class="back" title="Back">\n </button>\n <h2 data-i18n="inspector.search">Search</h2>\n </div>\n <div class="search-controls search-mode-only">\n <div class="search-input">\n <input id="ixbrl-search" type="text" data-i18n="[aria-label]inspector.searchReport" aria-label="Search iXBRL report" disabled="disabled"/>\n <button class="filter-toggle" data-i18n="[title]search.toggleFilterControls" title="Toggle filter controls"></button>\n </div>\n <div class="filter-info">\n <span id="matching-facts-summary"></span>\n <button class="reset" data-i18n="inspector.reset">Reset</button>\n </div>\n <div class="search-filters">\n <h3 data-i18n="search.filter">Filter</h3>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.visibility" for="search-filter-visibility">\n Visibility\n </label>\n <select id="search-filter-visibility">\n <option value="*">-</option>\n <option value="visible" data-i18n="inspector.visible">Visible</option>\n <option value="hidden" data-i18n="inspector.hidden">Hidden</option>\n </select>\n </div>\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.conceptType" for="search-filter-concept-type">\n Concept Type\n </label>\n <select id="search-filter-concept-type">\n <option value="*">-</option>\n <option value="numeric" data-i18n="inspector.numericOption">Numeric</option>\n <option value="text" data-i18n="inspector.textOption">Text</option>\n </select>\n </div>\n\n <div class="filter-group">\n <label class="control-label" data-i18n="inspector.factValue" for="search-filter-fact-value">\n Fact Value\n </label>\n <select id="search-filter-fact-value">\n <option value="*">-</option>\n <option value="negative" data-i18n="inspector.negative">Negative</option>\n <option value="positive" data-i18n="inspector.positive">Positive</option>\n </select>\n </div>\n\n <div id="search-filter-period" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-period-multiselect">\n <button data-i18n="inspector.period">Period</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-period-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-namespaces" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-namespace-multiselect">\n <button data-i18n="inspector.namespaces">Namespaces</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body namespaces resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-namespace-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-datatypes" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-datatype-multiselect">\n <button data-i18n="inspector.datatypes">Types</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body datatypes resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-datatype-multiselect">\n </select>\n <div class="datatype-conflict-warning" data-i18n="search.dataTypeConflictWarning">Warning: selection conflicts with Concept Type filter</div>\n </div>\n </div>\n\n <div id="search-filter-target-document" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-target-document-multiselect">\n <button data-i18n="inspector.targetDocument">Target Document</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body target-document resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-target-document-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-units" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-units-multiselect">\n <button data-i18n="inspector.units">Units</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body units resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-units-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-scales" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-scales-multiselect">\n <button data-i18n="inspector.scales">Scales</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body scales resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" id="search-filter-scales-multiselect">\n </select>\n </div>\n </div>\n\n <div id="search-filter-dimension-type" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-dimension-type-multiselect">\n <button data-i18n="inspector.dimensions">Dimension Type</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body dimensions resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-dimension-type-multiselect">\n <option value="explicit" data-i18n="inspector.explicitDimension">Explicit Dimensions</option>\n <option value="typed" data-i18n="inspector.typedDimensions">Typed Dimensions</option>\n </select>\n </div>\n </div>\n\n <div id="search-filter-calculations" class="collapsible-section collapsible-only collapsed">\n <h3 class="collapsible-header">\n <label for="search-filter-calculations-multiselect">\n <button data-i18n="inspector.calculations">Calculations</button>\n </label>\n <span class="collapsible-subheader"></span>\n </h3>\n <div class="collapsible-body calculations resetable-multiselect" style="display: none;">\n <button class="reset-multiselect" title="Reset" data-i18n="[title]search.reset"></button>\n <select multiple="multiple" size="2" id="search-filter-calculations-multiselect">\n <option value="summation" data-i18n="inspector.summation">Summation</option>\n <option value="contributor" data-i18n="inspector.contributor">Contributor</option>\n </select>\n </div>\n </div>\n\n <div class="checkboxes">\n <div id="mandatory-fact-filter-checkbox">\n <label class="checkbox">\n <input id="search-mandatory-fact-filter" type="checkbox" style="display: none;"/> <span data-i18n="inspector.mandatoryFacts">Only Mandatory Facts</span>\n <span class="checkmark"></span>\n </label>\n </div>\n </div>\n\n </div>\n </div> \x3c!-- search controls --\x3e\n\n <div class="inspector-body">\n\n <section class="search-results search-mode-only" data-i18n="[aria-label]inspector.searchResults" aria-label="Search results">\n <div class="results fact-list">\n </div>\n <div class="search-overlay">\n <div class="search-overlay-icon"></div>\n <div class="search-overlay-text search-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please enter some search terms</p></div>\n <div class="search-overlay-text search-not-ready-only"><p class="title" data-i18n="inspector.factSearch">Fact Search</p><p class="text">Please wait - building index...</p></div>\n </div>\n </section>\n </div> \n </div>\n\n <div class="inspector-container summary-mode-only summary">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentSummary">Document Summary</h2>\n </div>\n <div class="inspector-body">\n <div class="body">\n <div class="collapsible-section fact-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.fact.header">Fact Summary</button></h3>\n <div class="collapsible-body">\n <table class="property-table numeric">\n <tr class="hidden-facts">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.hidden">Hidden facts</span>\n <button class="tooltip-icon" data-tooltip-name="hiddenFacts"></button>\n </th>\n <td>\n <button class="hidden-facts-value"></button>\n </td>\n </tr>\n <tr class="mandatory-facts" id="mandatory-facts-row" style="display: none;">\n <th class="has-tooltip">\n <span data-i18n="inspector.summary.fact.mandatory">Mandatory Facts:</span>\n <button class="tooltip-icon" data-tooltip-name="mandatoryFacts"></button>\n <td>\n <button class="mandatory-facts-value"></button>\n </td>\n </th></tr>\n <tr class="total-facts">\n <th>\n <span data-i18n="inspector.summary.fact.total">Total facts</span>\n </th>\n <td>\n <button class="total-facts-value"></button>\n </td>\n </tr>\n </table>\n </div>\n </div>\n <div class="collapsible-section tag-summary">\n <h3 class="collapsible-header"><button data-i18n="inspector.summary.tag.header">Tag Summary</button></h3>\n <div class="collapsible-body">\n <div class="tag-summary-body">\n <table>\n <thead>\n <tr>\n <th scope="col" class="namespace has-tooltip">\n <span data-i18n="inspector.summary.tag.colNamespace">Namespace</span>\n <button class="tooltip-icon" data-tooltip-name="namespace"></button>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colConcepts">Concepts</span>\n <button class="tooltip-icon" data-tooltip-name="conceptsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colDimensions">Dimensions</span>\n <button class="tooltip-icon" data-tooltip-name="dimensionsCount"></button>\n </div>\n </th>\n <th scope="col" class="figure">\n <div class="has-tooltip">\n <span data-i18n="inspector.summary.tag.colMembers">Members</span>\n <button class="tooltip-icon" data-tooltip-name="membersCount"></button>\n </div>\n </th>\n <th scope="col" class="figure"><div data-i18n="inspector.summary.tag.colTotal">Total</div></th>\n </tr>\n </thead>\n <tbody class="tag-summary-table-body">\n </tbody>\n <tfoot>\n <tr class="tag-summary-table-footer-row">\n <th scope="row" data-i18n="inspector.summary.tag.rowTotal">Total</th>\n </tr>\n </tfoot>\n </table>\n </div>\n </div>\n </div>\n <div class="collapsible-section files-summary">\n <h3 class="collapsible-header">\n <div class="has-tooltip">\n <button data-i18n="inspector.summary.file.header">File Summary</button>\n <button class="tooltip-icon" data-tooltip-name="fileSummary"></button>\n </div>\n </h3>\n <div class="collapsible-body">\n <div class="file-summary-container">\n <div class="files inline-docs">\n <span class="files-summary-title" data-i18n="inspector.summary.file.inline">Inline Documents</span>\n <ul></ul>\n </div>\n <div class="files schemas">\n <span class="files-summary-title" data-i18n="inspector.summary.file.schemas">Schemas</span>\n <ul></ul>\n </div>\n <div class="files pres-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.presentation">Presentation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files calc-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.calculations">Calculation Linkbases</span>\n <ul></ul>\n </div>\n <div class="files def-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.definitions">Definition Linkbases</span>\n <ul></ul>\n </div>\n <div class="files label-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.labels">Label Linkbases</span>\n <ul></ul>\n </div>\n <div class="files ref-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.references">Reference Linkbases</span>\n <ul></ul>\n </div>\n <div class="files other-links">\n <span class="files-summary-title" data-i18n="inspector.summary.file.other">Other Linkbases</span>\n <ul></ul>\n </div>\n </div>\n </div>\n </div>\n <div class="collapsible-section report-creation">\n <h3 class="collapsible-header" data-i18n="inspector.summary.reportCreation">Report Creation</h3>\n <div class="collapsible-body">\n <ul></ul>\n </div>\n </div>\n </div>\n </div> \x3c!-- inspector-body --\x3e\n </div> \x3c!-- summary --\x3e\n\n <div class="inspector-container outline-mode-only outline">\n <div class="inspector-title">\n <button class="back" title="Back"></button>\n <h2 data-i18n="inspector.documentOutline">Document Outline</h2>\n </div>\n <div class="inspector-body">\n <div class="no-outline-overlay">\n <div class="no-outline-overlay-icon"></div>\n <p class="title" data-i18n="inspector.outlineUnavailable">Outline Unavailable</p>\n </div>\n <div class="body">\n </div>\n </div>\n </div>\n <footer class="inspector-foot powered-by">\n <div id="footer-logo"></div>\n <div class="version"></div>\n </footer>\n <div class="failed-to-load-mask"></div>\n </section>\n <div id="tooltip" class="tooltip">\n <span class="tooltip-text"></span> \n <div class="glossary-link">\n <a target="_blank" href="#" data-i18n="inspector.xbrlGlossaryOpensInNewTab"></a>\n </div>\n </div>\n <div class="dialog-mask">\n </div>\n <div id="dialog-container"></div>\n <div id="dialog-templates">\n <dialog class="dialog full-screen chart" role="dialog" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents" role="figure" data-i18n="[aria-label]chart.comparisonChart" aria-label="Comparison chart">\n <div class="chart-container"><canvas id="chart-canvas"></canvas></div>\n <div class="other-aspects"></div>\n </div>\n </dialog>\n <dialog class="dialog validation-report" role="dialog" aria-labelledby="validation-results-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="validation-results-title" data-i18n="inspector.validationResults">Validation results</h2>\n <table>\n <thead>\n <th data-i18n="inspector.validationSeverity">Severity</th>\n <th data-i18n="inspector.validationCode">Code</th>\n <th data-i18n="inspector.validationMessage">Message</th>\n </thead>\n <tbody>\n\n </tbody>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog calculation-inspector" role="dialog" aria-labelledby="calculation-inspector-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="calculation-inspector-title" data-i18n="inspector.calculationDetails">Calculation details</h2>\n <table class="calculation-trace">\n <thead>\n <tr>\n <th class="weight"></th>\n <th class="line-item" data-i18n="calculation.concept">Concept</th>\n <th class="value-column" data-i18n="calculation.reported-value">Reported Value</th>\n <th class="icons"></th>\n <th class="value-column calc11-only" data-i18n="calculation.minimum">Minimum</th>\n <th class="value-column calc11-only" data-i18n="calculation.maximum">Maximum</th>\n </tr>\n </thead>\n <tbody>\n </tbody>\n <tfoot>\n <tr>\n <td colspan="6" class="status"><span class="icon"></span> <span class="message"></span></td>\n </tr>\n </tfoot>\n </table>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog text-block-viewer" role="dialog" aria-labelledby="text-block-viewer-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="text-block-viewer-title" class="title"></h2>\n <iframe id="text-block-viewer-iframe"></iframe>\n <div class="controls">\n <label class="checkbox">\n <input id="text-block-viewer-plain-text" type="checkbox"/> <span data-i18n="inspector.showTextOnly">Show text only</span>\n <span class="checkmark"></span>\n </label>\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog>\n <dialog class="dialog message-box" role="dialog" aria-labelledby="message-box-title">\n <button title="Close" data-i18n="[title]dialog.close" class="close"></button>\n <div class="contents">\n <h2 id="message-box-title" class="title"></h2>\n <div class="message">\n </div>\n <div class="buttons">\n </div>\n </div>\n </dialog></div>\n \n</div>\n`;t.exports=i},806:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";function e(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 n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return i="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},i(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function s(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function f(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}var g=function(t){return!(!t||!t.Window)&&t instanceof t.Window},m=void 0,v=void 0;function y(t){m=t;var e=t.document.createTextNode("");e.ownerDocument!==t.document&&"function"==typeof t.wrap&&t.wrap(e)===e&&(t=t.wrap(t)),v=t}function b(t){return g(t)?t:(t.ownerDocument||t).defaultView||v.window}"undefined"!=typeof window&&window&&y(window);var w=function(t){return!!t&&"object"===i(t)},A=function(t){return"function"==typeof t},x=function(t){return t===v||g(t)},C=function(t){return w(t)&&11===t.nodeType},M=w,L=A,I=function(t){return"number"==typeof t},_=function(t){return"boolean"==typeof t},S=function(t){return"string"==typeof t},k=function(t){if(!t||"object"!==i(t))return!1;var e=b(t)||v;return/object|function/.test("undefined"==typeof Element?"undefined":i(Element))?t instanceof Element||t instanceof e.Element:1===t.nodeType&&"string"==typeof t.nodeName},T=function(t){return w(t)&&!!t.constructor&&/function Object\b/.test(t.constructor.toString())},D=function(t){return w(t)&&void 0!==t.length&&A(t.splice)};function j(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.prepared.axis;"x"===n?(e.coords.cur.page.y=e.coords.start.page.y,e.coords.cur.client.y=e.coords.start.client.y,e.coords.velocity.client.y=0,e.coords.velocity.page.y=0):"y"===n&&(e.coords.cur.page.x=e.coords.start.page.x,e.coords.cur.client.x=e.coords.start.client.x,e.coords.velocity.client.x=0,e.coords.velocity.page.x=0)}}function N(t){var e=t.iEvent,n=t.interaction;if("drag"===n.prepared.name){var i=n.prepared.axis;if("x"===i||"y"===i){var r="x"===i?"y":"x";e.page[r]=n.coords.start.page[r],e.client[r]=n.coords.start.client[r],e.delta[r]=0}}}var O={id:"actions/drag",install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.draggable=O.draggable,e.map.drag=O,e.methodDict.drag="draggable",i.actions.drag=O.defaults},listeners:{"interactions:before-action-move":j,"interactions:action-resume":j,"interactions:action-move":N,"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.buttons,r=n.options.drag;if(r&&r.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||i&n.options.drag.mouseButtons))return t.action={name:"drag",axis:"start"===r.lockAxis?r.startAxis:r.lockAxis},!1}},draggable:function(t){return M(t)?(this.options.drag.enabled=!1!==t.enabled,this.setPerAction("drag",t),this.setOnEvents("drag",t),/^(xy|x|y|start)$/.test(t.lockAxis)&&(this.options.drag.lockAxis=t.lockAxis),/^(xy|x|y)$/.test(t.startAxis)&&(this.options.drag.startAxis=t.startAxis),this):_(t)?(this.options.drag.enabled=t,this):this.options.drag},beforeMove:j,move:N,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(t){return 0===t.search("drag")}},E=O,z={init:function(t){var e=t;z.document=e.document,z.DocumentFragment=e.DocumentFragment||F,z.SVGElement=e.SVGElement||F,z.SVGSVGElement=e.SVGSVGElement||F,z.SVGElementInstance=e.SVGElementInstance||F,z.Element=e.Element||F,z.HTMLElement=e.HTMLElement||z.Element,z.Event=e.Event,z.Touch=e.Touch||F,z.PointerEvent=e.PointerEvent||e.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function F(){}var R=z,P={init:function(t){var e=R.Element,n=t.navigator||{};P.supportsTouch="ontouchstart"in t||L(t.DocumentTouch)&&R.document instanceof t.DocumentTouch,P.supportsPointerEvent=!1!==n.pointerEnabled&&!!R.PointerEvent,P.isIOS=/iP(hone|od|ad)/.test(n.platform),P.isIOS7=/iP(hone|od|ad)/.test(n.platform)&&/OS 7[^\d]/.test(n.appVersion),P.isIe9=/MSIE 9/.test(n.userAgent),P.isOperaMobile="Opera"===n.appName&&P.supportsTouch&&/Presto/.test(n.userAgent),P.prefixedMatchesSelector="matches"in e.prototype?"matches":"webkitMatchesSelector"in e.prototype?"webkitMatchesSelector":"mozMatchesSelector"in e.prototype?"mozMatchesSelector":"oMatchesSelector"in e.prototype?"oMatchesSelector":"msMatchesSelector",P.pEventTypes=P.supportsPointerEvent?R.PointerEvent===t.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,P.wheelEvent=R.document&&"onmousewheel"in R.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},Y=P;function U(t,e){if(t.contains)return t.contains(e);for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function W(t,e){for(;k(t);){if(Z(t,e))return t;t=B(t)}return null}function B(t){var e=t.parentNode;if(C(e)){for(;(e=e.host)&&C(e););return e}return e}function Z(t,e){return v!==m&&(e=e.replace(/\/deep\//g," ")),t[Y.prefixedMatchesSelector](e)}var H=function(t){return t.parentNode||t.host};function G(t,e){for(var n,i=[],r=t;(n=H(r))&&r!==e&&n!==r.ownerDocument;)i.unshift(r),r=n;return i}function V(t,e,n){for(;k(t);){if(Z(t,e))return!0;if((t=B(t))===n)return Z(t,e)}return!1}function Q(t){return t.correspondingUseElement||t}function J(t){var e=t instanceof R.SVGElement?t.getBoundingClientRect():t.getClientRects()[0];return e&&{left:e.left,right:e.right,top:e.top,bottom:e.bottom,width:e.width||e.right-e.left,height:e.height||e.bottom-e.top}}function X(t){var e,n=J(t);if(!Y.isIOS7&&n){var i={x:(e=(e=b(t))||v).scrollX||e.document.documentElement.scrollLeft,y:e.scrollY||e.document.documentElement.scrollTop};n.left+=i.x,n.right+=i.x,n.top+=i.y,n.bottom+=i.y}return n}function q(t){for(var e=[];t;)e.push(t),t=B(t);return e}function K(t){return!!S(t)&&(R.document.querySelector(t),!0)}function $(t,e){for(var n in e)t[n]=e[n];return t}function tt(t,e,n){return"parent"===t?B(n):"self"===t?e.getRect(n):W(n,t)}function et(t,e,n,i){var r=t;return S(r)?r=tt(r,e,n):L(r)&&(r=r.apply(void 0,i)),k(r)&&(r=X(r)),r}function nt(t){return t&&{x:"x"in t?t.x:t.left,y:"y"in t?t.y:t.top}}function it(t){return!t||"x"in t&&"y"in t||((t=$({},t)).x=t.left||0,t.y=t.top||0,t.width=t.width||(t.right||0)-t.x,t.height=t.height||(t.bottom||0)-t.y),t}function rt(t,e,n){t.left&&(e.left+=n.x),t.right&&(e.right+=n.x),t.top&&(e.top+=n.y),t.bottom&&(e.bottom+=n.y),e.width=e.right-e.left,e.height=e.bottom-e.top}function ot(t,e,n){var i=n&&t.options[n];return nt(et(i&&i.origin||t.options.origin,t,e,[t&&e]))||{x:0,y:0}}function st(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(t){return!0},i=arguments.length>3?arguments[3]:void 0;if(i=i||{},S(t)&&-1!==t.search(" ")&&(t=at(t)),D(t))return t.forEach((function(t){return st(t,e,n,i)})),i;if(M(t)&&(e=t,t=""),L(e)&&n(t))i[t]=i[t]||[],i[t].push(e);else if(D(e))for(var r=0,o=e;r<o.length;r++){var s=o[r];st(t,s,n,i)}else if(M(e))for(var a in e)st(at(a).map((function(e){return"".concat(t).concat(e)})),e[a],n,i);return i}function at(t){return t.trim().split(/ +/)}var lt=function(t,e){return Math.sqrt(t*t+e*e)},ct=["webkit","moz"];function ut(t,e){t.__set||(t.__set={});var n=function(n){if(ct.some((function(t){return 0===n.indexOf(t)})))return 1;"function"!=typeof t[n]&&"__set"!==n&&Object.defineProperty(t,n,{get:function(){return n in t.__set?t.__set[n]:t.__set[n]=e[n]},set:function(e){t.__set[n]=e},configurable:!0})};for(var i in e)n(i);return t}function dt(t,e){t.page=t.page||{},t.page.x=e.page.x,t.page.y=e.page.y,t.client=t.client||{},t.client.x=e.client.x,t.client.y=e.client.y,t.timeStamp=e.timeStamp}function ht(t){t.page.x=0,t.page.y=0,t.client.x=0,t.client.y=0}function pt(t){return t instanceof R.Event||t instanceof R.Touch}function ft(t,e,n){return t=t||"page",(n=n||{}).x=e[t+"X"],n.y=e[t+"Y"],n}function gt(t,e){return e=e||{x:0,y:0},Y.isOperaMobile&&pt(t)?(ft("screen",t,e),e.x+=window.scrollX,e.y+=window.scrollY):ft("page",t,e),e}function mt(t){return I(t.pointerId)?t.pointerId:t.identifier}function vt(t){var e=[];return D(t)?(e[0]=t[0],e[1]=t[1]):"touchend"===t.type?1===t.touches.length?(e[0]=t.touches[0],e[1]=t.changedTouches[0]):0===t.touches.length&&(e[0]=t.changedTouches[0],e[1]=t.changedTouches[1]):(e[0]=t.touches[0],e[1]=t.touches[1]),e}function yt(t){for(var e={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},n=0;n<t.length;n++){var i=t[n];for(var r in e)e[r]+=i[r]}for(var o in e)e[o]/=t.length;return e}function bt(t){if(!t.length)return null;var e=vt(t),n=Math.min(e[0].pageX,e[1].pageX),i=Math.min(e[0].pageY,e[1].pageY),r=Math.max(e[0].pageX,e[1].pageX),o=Math.max(e[0].pageY,e[1].pageY);return{x:n,y:i,left:n,top:i,right:r,bottom:o,width:r-n,height:o-i}}function wt(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[0][n]-r[1][n],s=r[0][i]-r[1][i];return lt(o,s)}function At(t,e){var n=e+"X",i=e+"Y",r=vt(t),o=r[1][n]-r[0][n],s=r[1][i]-r[0][i];return 180*Math.atan2(s,o)/Math.PI}function xt(t){return S(t.pointerType)?t.pointerType:I(t.pointerType)?[void 0,void 0,"touch","pen","mouse"][t.pointerType]:/touch/.test(t.type||"")||t instanceof R.Touch?"touch":"mouse"}function Ct(t){var e=L(t.composedPath)?t.composedPath():t.path;return[Q(e?e[0]:t.target),Q(t.currentTarget)]}var Mt=function(){function t(e){r(this,t),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=e}return s(t,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),t}();Object.defineProperty(Mt.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Lt=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t.push(i)}return t},It=function(t){return Lt([],t)},_t=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return n;return-1},St=function(t,e){return t[_t(t,e)]},kt=function(t){l(n,t);var e=h(n);function n(t,i,o){var s;r(this,n),(s=e.call(this,i._interaction)).dropzone=void 0,s.dragEvent=void 0,s.relatedTarget=void 0,s.draggable=void 0,s.propagationStopped=!1,s.immediatePropagationStopped=!1;var a="dragleave"===o?t.prev:t.cur,l=a.element,c=a.dropzone;return s.type=o,s.target=l,s.currentTarget=l,s.dropzone=c,s.dragEvent=i,s.relatedTarget=i.target,s.draggable=i.interactable,s.timeStamp=i.timeStamp,s}return s(n,[{key:"reject",value:function(){var t=this,e=this._interaction.dropState;if("dropactivate"===this.type||this.dropzone&&e.cur.dropzone===this.dropzone&&e.cur.element===this.target)if(e.prev.dropzone=this.dropzone,e.prev.element=this.target,e.rejected=!0,e.events.enter=null,this.stopImmediatePropagation(),"dropactivate"===this.type){var i=e.activeDrops,r=_t(i,(function(e){var n=e.dropzone,i=e.element;return n===t.dropzone&&i===t.target}));e.activeDrops.splice(r,1);var o=new n(e,this.dragEvent,"dropdeactivate");o.dropzone=this.dropzone,o.target=this.target,this.dropzone.fire(o)}else this.dropzone.fire(new n(e,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),n}(Mt);function Tt(t,e){for(var n=0,i=t.slice();n<i.length;n++){var r=i[n],o=r.dropzone,s=r.element;e.dropzone=o,e.target=s,o.fire(e),e.propagationStopped=e.immediatePropagationStopped=!1}}function Dt(t,e){for(var n=function(t,e){for(var n=[],i=0,r=t.interactables.list;i<r.length;i++){var o=r[i];if(o.options.drop.enabled){var s=o.options.drop.accept;if(!(k(s)&&s!==e||S(s)&&!Z(e,s)||L(s)&&!s({dropzone:o,draggableElement:e})))for(var a=0,l=o.getAllElements();a<l.length;a++){var c=l[a];c!==e&&n.push({dropzone:o,element:c,rect:o.getRect(c)})}}}return n}(t,e),i=0;i<n.length;i++){var r=n[i];r.rect=r.dropzone.getRect(r.element)}return n}function jt(t,e,n){for(var i=t.dropState,r=t.interactable,o=t.element,s=[],a=0,l=i.activeDrops;a<l.length;a++){var c=l[a],u=c.dropzone,d=c.element,h=c.rect,p=u.dropCheck(e,n,r,o,d,h);s.push(p?d:null)}var f=function(t){for(var e,n,i,r=[],o=0;o<t.length;o++){var s=t[o],a=t[e];if(s&&o!==e)if(a){var l=H(s),c=H(a);if(l!==s.ownerDocument)if(c!==s.ownerDocument)if(l!==c){r=r.length?r:G(a);var u=void 0;if(a instanceof R.HTMLElement&&s instanceof R.SVGElement&&!(s instanceof R.SVGSVGElement)){if(s===c)continue;u=s.ownerSVGElement}else u=s;for(var d=G(u,a.ownerDocument),h=0;d[h]&&d[h]===r[h];)h++;var p=[d[h-1],d[h],r[h]];if(p[0])for(var f=p[0].lastChild;f;){if(f===p[1]){e=o,r=d;break}if(f===p[2])break;f=f.previousSibling}}else i=a,(parseInt(b(n=s).getComputedStyle(n).zIndex,10)||0)>=(parseInt(b(i).getComputedStyle(i).zIndex,10)||0)&&(e=o);else e=o}else e=o}return e}(s);return i.activeDrops[f]||null}function Nt(t,e,n){var i=t.dropState,r={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return"dragstart"===n.type&&(r.activate=new kt(i,n,"dropactivate"),r.activate.target=null,r.activate.dropzone=null),"dragend"===n.type&&(r.deactivate=new kt(i,n,"dropdeactivate"),r.deactivate.target=null,r.deactivate.dropzone=null),i.rejected||(i.cur.element!==i.prev.element&&(i.prev.dropzone&&(r.leave=new kt(i,n,"dragleave"),n.dragLeave=r.leave.target=i.prev.element,n.prevDropzone=r.leave.dropzone=i.prev.dropzone),i.cur.dropzone&&(r.enter=new kt(i,n,"dragenter"),n.dragEnter=i.cur.element,n.dropzone=i.cur.dropzone)),"dragend"===n.type&&i.cur.dropzone&&(r.drop=new kt(i,n,"drop"),n.dropzone=i.cur.dropzone,n.relatedTarget=i.cur.element),"dragmove"===n.type&&i.cur.dropzone&&(r.move=new kt(i,n,"dropmove"),n.dropzone=i.cur.dropzone)),r}function Ot(t,e){var n=t.dropState,i=n.activeDrops,r=n.cur,o=n.prev;e.leave&&o.dropzone.fire(e.leave),e.enter&&r.dropzone.fire(e.enter),e.move&&r.dropzone.fire(e.move),e.drop&&r.dropzone.fire(e.drop),e.deactivate&&Tt(i,e.deactivate),n.prev.dropzone=r.dropzone,n.prev.element=r.element}function Et(t,e){var n=t.interaction,i=t.iEvent,r=t.event;if("dragmove"===i.type||"dragend"===i.type){var o=n.dropState;e.dynamicDrop&&(o.activeDrops=Dt(e,n.element));var s=i,a=jt(n,s,r);o.rejected=o.rejected&&!!a&&a.dropzone===o.cur.dropzone&&a.element===o.cur.element,o.cur.dropzone=a&&a.dropzone,o.cur.element=a&&a.element,o.events=Nt(n,0,s)}}var zt={id:"actions/drop",install:function(t){var e=t.actions,n=t.interactStatic,i=t.Interactable,r=t.defaults;t.usePlugin(E),i.prototype.dropzone=function(t){return function(t,e){if(M(e)){if(t.options.drop.enabled=!1!==e.enabled,e.listeners){var n=st(e.listeners),i=Object.keys(n).reduce((function(t,e){return t[/^(enter|leave)/.test(e)?"drag".concat(e):/^(activate|deactivate|move)/.test(e)?"drop".concat(e):e]=n[e],t}),{}),r=t.options.drop.listeners;r&&t.off(r),t.on(i),t.options.drop.listeners=i}return L(e.ondrop)&&t.on("drop",e.ondrop),L(e.ondropactivate)&&t.on("dropactivate",e.ondropactivate),L(e.ondropdeactivate)&&t.on("dropdeactivate",e.ondropdeactivate),L(e.ondragenter)&&t.on("dragenter",e.ondragenter),L(e.ondragleave)&&t.on("dragleave",e.ondragleave),L(e.ondropmove)&&t.on("dropmove",e.ondropmove),/^(pointer|center)$/.test(e.overlap)?t.options.drop.overlap=e.overlap:I(e.overlap)&&(t.options.drop.overlap=Math.max(Math.min(1,e.overlap),0)),"accept"in e&&(t.options.drop.accept=e.accept),"checker"in e&&(t.options.drop.checker=e.checker),t}return _(e)?(t.options.drop.enabled=e,t):t.options.drop}(this,t)},i.prototype.dropCheck=function(t,e,n,i,r,o){return function(t,e,n,i,r,o,s){var a=!1;if(!(s=s||t.getRect(o)))return!!t.options.drop.checker&&t.options.drop.checker(e,n,a,t,o,i,r);var l=t.options.drop.overlap;if("pointer"===l){var c=ot(i,r,"drag"),u=gt(e);u.x+=c.x,u.y+=c.y;var d=u.x>s.left&&u.x<s.right,h=u.y>s.top&&u.y<s.bottom;a=d&&h}var p=i.getRect(r);if(p&&"center"===l){var f=p.left+p.width/2,g=p.top+p.height/2;a=f>=s.left&&f<=s.right&&g>=s.top&&g<=s.bottom}return p&&I(l)&&(a=Math.max(0,Math.min(s.right,p.right)-Math.max(s.left,p.left))*Math.max(0,Math.min(s.bottom,p.bottom)-Math.max(s.top,p.top))/(p.width*p.height)>=l),t.options.drop.checker&&(a=t.options.drop.checker(e,n,a,t,o,i,r)),a}(this,t,e,n,i,r,o)},n.dynamicDrop=function(e){return _(e)?(t.dynamicDrop=e,n):t.dynamicDrop},$(e.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),e.methodDict.drop="dropzone",t.dynamicDrop=!1,r.actions.drop=zt.defaults},listeners:{"interactions:before-action-start":function(t){var e=t.interaction;"drag"===e.prepared.name&&(e.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(t,e){var n=t.interaction,i=(t.event,t.iEvent);if("drag"===n.prepared.name){var r=n.dropState;r.activeDrops=[],r.events={},r.activeDrops=Dt(e,n.element),r.events=Nt(n,0,i),r.events.activate&&(Tt(r.activeDrops,r.events.activate),e.fire("actions/drop:start",{interaction:n,dragEvent:i}))}},"interactions:action-move":Et,"interactions:after-action-move":function(t,e){var n=t.interaction,i=t.iEvent;if("drag"===n.prepared.name){var r=n.dropState;Ot(n,r.events),e.fire("actions/drop:move",{interaction:n,dragEvent:i}),r.events={}}},"interactions:action-end":function(t,e){if("drag"===t.interaction.prepared.name){var n=t.interaction,i=t.iEvent;Et(t,e),Ot(n,n.dropState.events),e.fire("actions/drop:end",{interaction:n,dragEvent:i})}},"interactions:stop":function(t){var e=t.interaction;if("drag"===e.prepared.name){var n=e.dropState;n&&(n.activeDrops=null,n.events=null,n.cur.dropzone=null,n.cur.element=null,n.prev.dropzone=null,n.prev.element=null,n.rejected=!1)}}},getActiveDrops:Dt,getDrop:jt,getDropEvents:Nt,fireDropEvents:Ot,filterEventType:function(t){return 0===t.search("drag")||0===t.search("drop")},defaults:{enabled:!1,accept:null,overlap:"pointer"}},Ft=zt;function Rt(t){var e=t.interaction,n=t.iEvent,i=t.phase;if("gesture"===e.prepared.name){var r=e.pointers.map((function(t){return t.pointer})),o="start"===i,s="end"===i,a=e.interactable.options.deltaSource;if(n.touches=[r[0],r[1]],o)n.distance=wt(r,a),n.box=bt(r),n.scale=1,n.ds=0,n.angle=At(r,a),n.da=0,e.gesture.startDistance=n.distance,e.gesture.startAngle=n.angle;else if(s||e.pointers.length<2){var l=e.prevEvent;n.distance=l.distance,n.box=l.box,n.scale=l.scale,n.ds=0,n.angle=l.angle,n.da=0}else n.distance=wt(r,a),n.box=bt(r),n.scale=n.distance/e.gesture.startDistance,n.angle=At(r,a),n.ds=n.scale-e.gesture.scale,n.da=n.angle-e.gesture.angle;e.gesture.distance=n.distance,e.gesture.angle=n.angle,I(n.scale)&&n.scale!==1/0&&!isNaN(n.scale)&&(e.gesture.scale=n.scale)}}var Pt={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(t){var e=t.actions,n=t.Interactable,i=t.defaults;n.prototype.gesturable=function(t){return M(t)?(this.options.gesture.enabled=!1!==t.enabled,this.setPerAction("gesture",t),this.setOnEvents("gesture",t),this):_(t)?(this.options.gesture.enabled=t,this):this.options.gesture},e.map.gesture=Pt,e.methodDict.gesture="gesturable",i.actions.gesture=Pt.defaults},listeners:{"interactions:action-start":Rt,"interactions:action-move":Rt,"interactions:action-end":Rt,"interactions:new":function(t){t.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(t){if(!(t.interaction.pointers.length<2)){var e=t.interactable.options.gesture;if(e&&e.enabled)return t.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(t){return 0===t.search("gesture")}},Yt=Pt;function Ut(t,e,n,i,r,o,s){if(!e)return!1;if(!0===e){var a=I(o.width)?o.width:o.right-o.left,l=I(o.height)?o.height:o.bottom-o.top;if(s=Math.min(s,Math.abs(("left"===t||"right"===t?a:l)/2)),a<0&&("left"===t?t="right":"right"===t&&(t="left")),l<0&&("top"===t?t="bottom":"bottom"===t&&(t="top")),"left"===t){var c=a>=0?o.left:o.right;return n.x<c+s}if("top"===t){var u=l>=0?o.top:o.bottom;return n.y<u+s}if("right"===t)return n.x>(a>=0?o.right:o.left)-s;if("bottom"===t)return n.y>(l>=0?o.bottom:o.top)-s}return!!k(i)&&(k(e)?e===i:V(i,e,r))}function Wt(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.resizeAxes){var i=e;n.interactable.options.resize.square?("y"===n.resizeAxes?i.delta.x=i.delta.y:i.delta.y=i.delta.x,i.axes="xy"):(i.axes=n.resizeAxes,"x"===n.resizeAxes?i.delta.y=0:"y"===n.resizeAxes&&(i.delta.x=0))}}var Bt,Zt,Ht={id:"actions/resize",before:["actions/drag"],install:function(t){var e=t.actions,n=t.browser,i=t.Interactable,r=t.defaults;Ht.cursors=function(t){return t.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(n),Ht.defaultMargin=n.supportsTouch||n.supportsPointerEvent?20:10,i.prototype.resizable=function(e){return function(t,e,n){return M(e)?(t.options.resize.enabled=!1!==e.enabled,t.setPerAction("resize",e),t.setOnEvents("resize",e),S(e.axis)&&/^x$|^y$|^xy$/.test(e.axis)?t.options.resize.axis=e.axis:null===e.axis&&(t.options.resize.axis=n.defaults.actions.resize.axis),_(e.preserveAspectRatio)?t.options.resize.preserveAspectRatio=e.preserveAspectRatio:_(e.square)&&(t.options.resize.square=e.square),t):_(e)?(t.options.resize.enabled=e,t):t.options.resize}(this,e,t)},e.map.resize=Ht,e.methodDict.resize="resizable",r.actions.resize=Ht.defaults},listeners:{"interactions:new":function(t){t.interaction.resizeAxes="xy"},"interactions:action-start":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.rect;n._rects={start:$({},r),corrected:$({},r),previous:$({},r),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}}(t),Wt(t)},"interactions:action-move":function(t){!function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e,r=n.interactable.options.resize.invert,o="reposition"===r||"negate"===r,s=n.rect,a=n._rects,l=a.start,c=a.corrected,u=a.delta,d=a.previous;if($(d,c),o){if($(c,s),"reposition"===r){if(c.top>c.bottom){var h=c.top;c.top=c.bottom,c.bottom=h}if(c.left>c.right){var p=c.left;c.left=c.right,c.right=p}}}else c.top=Math.min(s.top,l.bottom),c.bottom=Math.max(s.bottom,l.top),c.left=Math.min(s.left,l.right),c.right=Math.max(s.right,l.left);for(var f in c.width=c.right-c.left,c.height=c.bottom-c.top,c)u[f]=c[f]-d[f];i.edges=n.prepared.edges,i.rect=c,i.deltaRect=u}}(t),Wt(t)},"interactions:action-end":function(t){var e=t.iEvent,n=t.interaction;if("resize"===n.prepared.name&&n.prepared.edges){var i=e;i.edges=n.prepared.edges,i.rect=n._rects.corrected,i.deltaRect=n._rects.delta}},"auto-start:check":function(t){var e=t.interaction,n=t.interactable,i=t.element,r=t.rect,o=t.buttons;if(r){var s=$({},e.coords.cur.page),a=n.options.resize;if(a&&a.enabled&&(!e.pointerIsDown||!/mouse|pointer/.test(e.pointerType)||o&a.mouseButtons)){if(M(a.edges)){var l={left:!1,right:!1,top:!1,bottom:!1};for(var c in l)l[c]=Ut(c,a.edges[c],s,e._latestPointer.eventTarget,i,r,a.margin||Ht.defaultMargin);l.left=l.left&&!l.right,l.top=l.top&&!l.bottom,(l.left||l.right||l.top||l.bottom)&&(t.action={name:"resize",edges:l})}else{var u="y"!==a.axis&&s.x>r.right-Ht.defaultMargin,d="x"!==a.axis&&s.y>r.bottom-Ht.defaultMargin;(u||d)&&(t.action={name:"resize",axes:(u?"x":"")+(d?"y":"")})}return!t.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(t){var e=t.edges,n=t.axis,i=t.name,r=Ht.cursors,o=null;if(n)o=r[i+n];else if(e){for(var s="",a=0,l=["top","bottom","left","right"];a<l.length;a++){var c=l[a];e[c]&&(s+=c)}o=r[s]}return o},filterEventType:function(t){return 0===t.search("resize")},defaultMargin:null},Gt=Ht,Vt={id:"actions",install:function(t){t.usePlugin(Yt),t.usePlugin(Gt),t.usePlugin(E),t.usePlugin(Ft)}},Qt=0,Jt=function(t){return Bt(t)},Xt=function(t){return Zt(t)},qt=function(t){if(Bt=t.requestAnimationFrame,Zt=t.cancelAnimationFrame,!Bt)for(var e=["ms","moz","webkit","o"],n=0;n<e.length;n++){var i=e[n];Bt=t["".concat(i,"RequestAnimationFrame")],Zt=t["".concat(i,"CancelAnimationFrame")]||t["".concat(i,"CancelRequestAnimationFrame")]}Bt=Bt&&Bt.bind(t),Zt=Zt&&Zt.bind(t),Bt||(Bt=function(e){var n=Date.now(),i=Math.max(0,16-(n-Qt)),r=t.setTimeout((function(){e(n+i)}),i);return Qt=n+i,r},Zt=function(t){return clearTimeout(t)})},Kt={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(t){Kt.isScrolling=!0,Xt(Kt.i),t.autoScroll=Kt,Kt.interaction=t,Kt.prevTime=Kt.now(),Kt.i=Jt(Kt.scroll)},stop:function(){Kt.isScrolling=!1,Kt.interaction&&(Kt.interaction.autoScroll=null),Xt(Kt.i)},scroll:function(){var t=Kt.interaction,e=t.interactable,n=t.element,i=t.prepared.name,r=e.options[i].autoScroll,o=$t(r.container,e,n),s=Kt.now(),a=(s-Kt.prevTime)/1e3,l=r.speed*a;if(l>=1){var c={x:Kt.x*l,y:Kt.y*l};if(c.x||c.y){var u=te(o);x(o)?o.scrollBy(c.x,c.y):o&&(o.scrollLeft+=c.x,o.scrollTop+=c.y);var d=te(o),h={x:d.x-u.x,y:d.y-u.y};(h.x||h.y)&&e.fire({type:"autoscroll",target:n,interactable:e,delta:h,interaction:t,container:o})}Kt.prevTime=s}Kt.isScrolling&&(Xt(Kt.i),Kt.i=Jt(Kt.scroll))},check:function(t,e){var n;return null==(n=t.options[e].autoScroll)?void 0:n.enabled},onInteractionMove:function(t){var e=t.interaction,n=t.pointer;if(e.interacting()&&Kt.check(e.interactable,e.prepared.name))if(e.simulation)Kt.x=Kt.y=0;else{var i,r,o,s,a=e.interactable,l=e.element,c=e.prepared.name,u=a.options[c].autoScroll,d=$t(u.container,a,l);if(x(d))s=n.clientX<Kt.margin,i=n.clientY<Kt.margin,r=n.clientX>d.innerWidth-Kt.margin,o=n.clientY>d.innerHeight-Kt.margin;else{var h=J(d);s=n.clientX<h.left+Kt.margin,i=n.clientY<h.top+Kt.margin,r=n.clientX>h.right-Kt.margin,o=n.clientY>h.bottom-Kt.margin}Kt.x=r?1:s?-1:0,Kt.y=o?1:i?-1:0,Kt.isScrolling||(Kt.margin=u.margin,Kt.speed=u.speed,Kt.start(e))}}};function $t(t,e,n){return(S(t)?tt(t,e,n):t)||b(n)}function te(t){return x(t)&&(t=window.document.body),{x:t.scrollLeft,y:t.scrollTop}}var ee={id:"auto-scroll",install:function(t){var e=t.defaults,n=t.actions;t.autoScroll=Kt,Kt.now=function(){return t.now()},n.phaselessTypes.autoscroll=!0,e.perAction.autoScroll=Kt.defaults},listeners:{"interactions:new":function(t){t.interaction.autoScroll=null},"interactions:destroy":function(t){t.interaction.autoScroll=null,Kt.stop(),Kt.interaction&&(Kt.interaction=null)},"interactions:stop":Kt.stop,"interactions:action-move":function(t){return Kt.onInteractionMove(t)}}},ne=ee;function ie(t,e){var n=!1;return function(){return n||(v.console.warn(e),n=!0),t.apply(this,arguments)}}function re(t,e){return t.name=e.name,t.axis=e.axis,t.edges=e.edges,t}function oe(t){return _(t)?(this.options.styleCursor=t,this):null===t?(delete this.options.styleCursor,this):this.options.styleCursor}function se(t){return L(t)?(this.options.actionChecker=t,this):null===t?(delete this.options.actionChecker,this):this.options.actionChecker}var ae={id:"auto-start/interactableMethods",install:function(t){var e=t.Interactable;e.prototype.getAction=function(e,n,i,r){var o=function(t,e,n,i,r){var o=t.getRect(i),s={action:null,interactable:t,interaction:n,element:i,rect:o,buttons:e.buttons||{0:1,1:4,3:8,4:16}[e.button]};return r.fire("auto-start:check",s),s.action}(this,n,i,r,t);return this.options.actionChecker?this.options.actionChecker(e,n,o,this,r,i):o},e.prototype.ignoreFrom=ie((function(t){return this._backCompatOption("ignoreFrom",t)}),"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),e.prototype.allowFrom=ie((function(t){return this._backCompatOption("allowFrom",t)}),"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),e.prototype.actionChecker=se,e.prototype.styleCursor=oe}};function le(t,e,n,i,r){return e.testIgnoreAllow(e.options[t.name],n,i)&&e.options[t.name].enabled&&he(e,n,t,r)?t:null}function ce(t,e,n,i,r,o,s){for(var a=0,l=i.length;a<l;a++){var c=i[a],u=r[a],d=c.getAction(e,n,t,u);if(d){var h=le(d,c,u,o,s);if(h)return{action:h,interactable:c,element:u}}}return{action:null,interactable:null,element:null}}function ue(t,e,n,i,r){var o=[],s=[],a=i;function l(t){o.push(t),s.push(a)}for(;k(a);){o=[],s=[],r.interactables.forEachMatch(a,l);var c=ce(t,e,n,o,s,i,r);if(c.action&&!c.interactable.options[c.action.name].manualStart)return c;a=B(a)}return{action:null,interactable:null,element:null}}function de(t,e,n){var i=e.action,r=e.interactable,o=e.element;i=i||{name:null},t.interactable=r,t.element=o,re(t.prepared,i),t.rect=r&&i.name?r.getRect(o):null,ge(t,n),n.fire("autoStart:prepared",{interaction:t})}function he(t,e,n,i){var r=t.options,o=r[n.name].max,s=r[n.name].maxPerElement,a=i.autoStart.maxInteractions,l=0,c=0,u=0;if(!(o&&s&&a))return!1;for(var d=0,h=i.interactions.list;d<h.length;d++){var p=h[d],f=p.prepared.name;if(p.interacting()){if(++l>=a)return!1;if(p.interactable===t){if((c+=f===n.name?1:0)>=o)return!1;if(p.element===e&&(u++,f===n.name&&u>=s))return!1}}}return a>0}function pe(t,e){return I(t)?(e.autoStart.maxInteractions=t,this):e.autoStart.maxInteractions}function fe(t,e,n){var i=n.autoStart.cursorElement;i&&i!==t&&(i.style.cursor=""),t.ownerDocument.documentElement.style.cursor=e,t.style.cursor=e,n.autoStart.cursorElement=e?t:null}function ge(t,e){var n=t.interactable,i=t.element,r=t.prepared;if("mouse"===t.pointerType&&n&&n.options.styleCursor){var o="";if(r.name){var s=n.options[r.name].cursorChecker;o=L(s)?s(r,n,i,t._interacting):e.actions.map[r.name].getCursor(r)}fe(t.element,o||"",e)}else e.autoStart.cursorElement&&fe(e.autoStart.cursorElement,"",e)}var me={id:"auto-start/base",before:["actions"],install:function(t){var e=t.interactStatic,n=t.defaults;t.usePlugin(ae),n.base.actionChecker=null,n.base.styleCursor=!0,$(n.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),e.maxInteractions=function(e){return pe(e,t)},t.autoStart={maxInteractions:1/0,withinInteractionLimit:he,cursorElement:null}},listeners:{"interactions:down":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.interacting()||de(n,ue(n,i,r,o,e),e)},"interactions:move":function(t,e){!function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;"mouse"!==n.pointerType||n.pointerIsDown||n.interacting()||de(n,ue(n,i,r,o,e),e)}(t,e),function(t,e){var n=t.interaction;if(n.pointerIsDown&&!n.interacting()&&n.pointerWasMoved&&n.prepared.name){e.fire("autoStart:before-start",t);var i=n.interactable,r=n.prepared.name;r&&i&&(i.options[r].manualStart||!he(i,n.element,n.prepared,e)?n.stop():(n.start(n.prepared,i,n.element),ge(n,e)))}}(t,e)},"interactions:stop":function(t,e){var n=t.interaction,i=n.interactable;i&&i.options.styleCursor&&fe(n.element,"",e)}},maxInteractions:pe,withinInteractionLimit:he,validateAction:le},ve=me,ye={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(t,e){var n=t.interaction,i=t.eventTarget,r=t.dx,o=t.dy;if("drag"===n.prepared.name){var s=Math.abs(r),a=Math.abs(o),l=n.interactable.options.drag,c=l.startAxis,u=s>a?"x":s<a?"y":"xy";if(n.prepared.axis="start"===l.lockAxis?u[0]:l.lockAxis,"xy"!==u&&"xy"!==c&&c!==u){n.prepared.name=null;for(var d=i,h=function(t){if(t!==n.interactable){var r=n.interactable.options.drag;if(!r.manualStart&&t.testIgnoreAllow(r,d,i)){var o=t.getAction(n.downPointer,n.downEvent,n,d);if(o&&"drag"===o.name&&function(t,e){if(!e)return!1;var n=e.options.drag.startAxis;return"xy"===t||"xy"===n||n===t}(u,t)&&ve.validateAction(o,t,d,i,e))return t}}};k(d);){var p=e.interactables.forEachMatch(d,h);if(p){n.prepared.name="drag",n.interactable=p,n.element=d;break}d=B(d)}}}}}};function be(t){var e=t.prepared&&t.prepared.name;if(!e)return null;var n=t.interactable.options;return n[e].hold||n[e].delay}var we={id:"auto-start/hold",install:function(t){var e=t.defaults;t.usePlugin(ve),e.perAction.hold=0,e.perAction.delay=0},listeners:{"interactions:new":function(t){t.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(t){var e=t.interaction,n=be(e);n>0&&(e.autoStartHoldTimer=setTimeout((function(){e.start(e.prepared,e.interactable,e.element)}),n))},"interactions:move":function(t){var e=t.interaction,n=t.duplicate;e.autoStartHoldTimer&&e.pointerWasMoved&&!n&&(clearTimeout(e.autoStartHoldTimer),e.autoStartHoldTimer=null)},"autoStart:before-start":function(t){var e=t.interaction;be(e)>0&&(e.prepared.name=null)}},getHoldDuration:be},Ae=we,xe={id:"auto-start",install:function(t){t.usePlugin(ve),t.usePlugin(Ae),t.usePlugin(ye)}},Ce=function(t){return/^(always|never|auto)$/.test(t)?(this.options.preventDefault=t,this):_(t)?(this.options.preventDefault=t?"always":"never",this):this.options.preventDefault};function Me(t){var e=t.interaction,n=t.event;e.interactable&&e.interactable.checkAndPreventDefault(n)}var Le={id:"core/interactablePreventDefault",install:function(t){var e=t.Interactable;e.prototype.preventDefault=Ce,e.prototype.checkAndPreventDefault=function(e){return function(t,e,n){var i=t.options.preventDefault;if("never"!==i)if("always"!==i){if(e.events.supportsPassive&&/^touch(start|move)$/.test(n.type)){var r=b(n.target).document,o=e.getDocOptions(r);if(!o||!o.events||!1!==o.events.passive)return}/^(mouse|pointer|touch)*(down|start)/i.test(n.type)||k(n.target)&&Z(n.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||n.preventDefault()}else n.preventDefault()}(this,t,e)},t.interactions.docEvents.push({type:"dragstart",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++){var r=i[n];if(r.element&&(r.element===e.target||U(r.element,e.target)))return void r.interactable.checkAndPreventDefault(e)}}})},listeners:["down","move","up","cancel"].reduce((function(t,e){return t["interactions:".concat(e)]=Me,t}),{})};function Ie(t,e){if(e.phaselessTypes[t])return!0;for(var n in e.map)if(0===t.indexOf(n)&&t.substr(n.length)in e.phases)return!0;return!1}function _e(t){var e={};for(var n in t){var i=t[n];T(i)?e[n]=_e(i):D(i)?e[n]=It(i):e[n]=i}return e}var Se=function(){function t(e){r(this,t),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=e,this.result=ke(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return s(t,[{key:"start",value:function(t,e){var n,i,r=t.phase,o=this.interaction,s=function(t){var e=t.interactable.options[t.prepared.name],n=e.modifiers;return n&&n.length?n:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map((function(t){var n=e[t];return n&&n.enabled&&{options:n,methods:n._methods}})).filter((function(t){return!!t}))}(o);this.prepareStates(s),this.startEdges=$({},o.edges),this.edges=$({},this.startEdges),this.startOffset=(i=e,(n=o.rect)?{left:i.x-n.left,top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var a=this.fillArg({phase:r,pageCoords:e,preEnd:!1});return this.result=ke(),this.startAll(a),this.result=this.setAll(a)}},{key:"fillArg",value:function(t){var e=this.interaction;return t.interaction=e,t.interactable=e.interactable,t.element=e.element,t.rect||(t.rect=e.rect),t.edges||(t.edges=this.startEdges),t.startOffset=this.startOffset,t}},{key:"startAll",value:function(t){for(var e=0,n=this.states;e<n.length;e++){var i=n[e];i.methods.start&&(t.state=i,i.methods.start(t))}}},{key:"setAll",value:function(t){var e=t.phase,n=t.preEnd,i=t.skipModifiers,r=t.rect,o=t.edges;t.coords=$({},t.pageCoords),t.rect=$({},r),t.edges=$({},o);for(var s=i?this.states.slice(i):this.states,a=ke(t.coords,t.rect),l=0;l<s.length;l++){var c,u=s[l],d=u.options,h=$({},t.coords),p=null;null!=(c=u.methods)&&c.set&&this.shouldDo(d,n,e)&&(t.state=u,p=u.methods.set(t),rt(t.edges,t.rect,{x:t.coords.x-h.x,y:t.coords.y-h.y})),a.eventProps.push(p)}$(this.edges,t.edges),a.delta.x=t.coords.x-t.pageCoords.x,a.delta.y=t.coords.y-t.pageCoords.y,a.rectDelta.left=t.rect.left-r.left,a.rectDelta.right=t.rect.right-r.right,a.rectDelta.top=t.rect.top-r.top,a.rectDelta.bottom=t.rect.bottom-r.bottom;var f=this.result.coords,g=this.result.rect;if(f&&g){var m=a.rect.left!==g.left||a.rect.right!==g.right||a.rect.top!==g.top||a.rect.bottom!==g.bottom;a.changed=m||f.x!==a.coords.x||f.y!==a.coords.y}return a}},{key:"applyToInteraction",value:function(t){var e=this.interaction,n=t.phase,i=e.coords.cur,r=e.coords.start,o=this.result,s=this.startDelta,a=o.delta;"start"===n&&$(this.startDelta,o.delta);for(var l=0,c=[[r,s],[i,a]];l<c.length;l++){var u=c[l],d=u[0],h=u[1];d.page.x+=h.x,d.page.y+=h.y,d.client.x+=h.x,d.client.y+=h.y}var p=this.result.rectDelta,f=t.rect||e.rect;f.left+=p.left,f.right+=p.right,f.top+=p.top,f.bottom+=p.bottom,f.width=f.right-f.left,f.height=f.bottom-f.top}},{key:"setAndApply",value:function(t){var e=this.interaction,n=t.phase,i=t.preEnd,r=t.skipModifiers,o=this.setAll(this.fillArg({preEnd:i,phase:n,pageCoords:t.modifiedCoords||e.coords.cur.page}));if(this.result=o,!o.changed&&(!r||r<this.states.length)&&e.interacting())return!1;if(t.modifiedCoords){var s=e.coords.cur.page,a={x:t.modifiedCoords.x-s.x,y:t.modifiedCoords.y-s.y};o.coords.x+=a.x,o.coords.y+=a.y,o.delta.x+=a.x,o.delta.y+=a.y}this.applyToInteraction(t)}},{key:"beforeEnd",value:function(t){var e=t.interaction,n=t.event,i=this.states;if(i&&i.length){for(var r=!1,o=0;o<i.length;o++){var s=i[o];t.state=s;var a=s.options,l=s.methods,c=l.beforeEnd&&l.beforeEnd(t);if(c)return this.endResult=c,!1;r=r||!r&&this.shouldDo(a,!0,t.phase,!0)}r&&e.move({event:n,preEnd:!0})}}},{key:"stop",value:function(t){var e=t.interaction;if(this.states&&this.states.length){var n=$({states:this.states,interactable:e.interactable,element:e.element,rect:null},t);this.fillArg(n);for(var i=0,r=this.states;i<r.length;i++){var o=r[i];n.state=o,o.methods.stop&&o.methods.stop(n)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(t){this.states=[];for(var e=0;e<t.length;e++){var n=t[e],i=n.options,r=n.methods,o=n.name;this.states.push({options:i,methods:r,index:e,name:o})}return this.states}},{key:"restoreInteractionCoords",value:function(t){var e=t.interaction,n=e.coords,i=e.rect,r=e.modification;if(r.result){for(var o=r.startDelta,s=r.result,a=s.delta,l=s.rectDelta,c=0,u=[[n.start,o],[n.cur,a]];c<u.length;c++){var d=u[c],h=d[0],p=d[1];h.page.x-=p.x,h.page.y-=p.y,h.client.x-=p.x,h.client.y-=p.y}i.left-=l.left,i.right-=l.right,i.top-=l.top,i.bottom-=l.bottom}}},{key:"shouldDo",value:function(t,e,n,i){return!(!t||!1===t.enabled||i&&!t.endOnly||t.endOnly&&!e||"start"===n&&!t.setStart)}},{key:"copyFrom",value:function(t){this.startOffset=t.startOffset,this.startDelta=t.startDelta,this.startEdges=t.startEdges,this.edges=t.edges,this.states=t.states.map((function(t){return _e(t)})),this.result=ke($({},t.result.coords),$({},t.result.rect))}},{key:"destroy",value:function(){for(var t in this)this[t]=null}}]),t}();function ke(t,e){return{rect:e,coords:t,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Te(t,e){var n=t.defaults,i={start:t.start,set:t.set,beforeEnd:t.beforeEnd,stop:t.stop},r=function(t){var r=t||{};for(var o in r.enabled=!1!==r.enabled,n)o in r||(r[o]=n[o]);var s={options:r,methods:i,name:e,enable:function(){return r.enabled=!0,s},disable:function(){return r.enabled=!1,s}};return s};return e&&"string"==typeof e&&(r._defaults=n,r._methods=i),r}function De(t){var e=t.iEvent,n=t.interaction.modification.result;n&&(e.modifiers=n.eventProps)}var je={id:"modifiers/base",before:["actions"],install:function(t){t.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(t){var e=t.interaction;e.modification=new Se(e)},"interactions:before-action-start":function(t){var e=t.interaction,n=t.interaction.modification;n.start(t,e.coords.start.page),e.edges=n.edges,n.applyToInteraction(t)},"interactions:before-action-move":function(t){var e=t.interaction,n=e.modification,i=n.setAndApply(t);return e.edges=n.edges,i},"interactions:before-action-end":function(t){var e=t.interaction,n=e.modification,i=n.beforeEnd(t);return e.edges=n.startEdges,i},"interactions:action-start":De,"interactions:action-move":De,"interactions:action-end":De,"interactions:after-action-start":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-move":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:stop":function(t){return t.interaction.modification.stop(t)}}},Ne=je,Oe={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ee=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l,c){var u;r(this,n),(u=e.call(this,t)).relatedTarget=null,u.screenX=void 0,u.screenY=void 0,u.button=void 0,u.buttons=void 0,u.ctrlKey=void 0,u.shiftKey=void 0,u.altKey=void 0,u.metaKey=void 0,u.page=void 0,u.client=void 0,u.delta=void 0,u.rect=void 0,u.x0=void 0,u.y0=void 0,u.t0=void 0,u.dt=void 0,u.duration=void 0,u.clientX0=void 0,u.clientY0=void 0,u.velocity=void 0,u.speed=void 0,u.swipe=void 0,u.axes=void 0,u.preEnd=void 0,a=a||t.element;var h=t.interactable,p=(h&&h.options||Oe).deltaSource,f=ot(h,a,o),g="start"===s,m="end"===s,v=g?d(u):t.prevEvent,y=g?t.coords.start:m?{page:v.page,client:v.client,timeStamp:t.coords.cur.timeStamp}:t.coords.cur;return u.page=$({},y.page),u.client=$({},y.client),u.rect=$({},t.rect),u.timeStamp=y.timeStamp,m||(u.page.x-=f.x,u.page.y-=f.y,u.client.x-=f.x,u.client.y-=f.y),u.ctrlKey=i.ctrlKey,u.altKey=i.altKey,u.shiftKey=i.shiftKey,u.metaKey=i.metaKey,u.button=i.button,u.buttons=i.buttons,u.target=a,u.currentTarget=a,u.preEnd=l,u.type=c||o+(s||""),u.interactable=h,u.t0=g?t.pointers[t.pointers.length-1].downTime:v.t0,u.x0=t.coords.start.page.x-f.x,u.y0=t.coords.start.page.y-f.y,u.clientX0=t.coords.start.client.x-f.x,u.clientY0=t.coords.start.client.y-f.y,u.delta=g||m?{x:0,y:0}:{x:u[p].x-v[p].x,y:u[p].y-v[p].y},u.dt=t.coords.delta.timeStamp,u.duration=u.timeStamp-u.t0,u.velocity=$({},t.coords.velocity[p]),u.speed=lt(u.velocity.x,u.velocity.y),u.swipe=m||"inertiastart"===s?u.getSwipe():null,u}return s(n,[{key:"getSwipe",value:function(){var t=this._interaction;if(t.prevEvent.speed<600||this.timeStamp-t.prevEvent.timeStamp>150)return null;var e=180*Math.atan2(t.prevEvent.velocityY,t.prevEvent.velocityX)/Math.PI;e<0&&(e+=360);var n=112.5<=e&&e<247.5,i=202.5<=e&&e<337.5;return{up:i,down:!i&&22.5<=e&&e<157.5,left:n,right:!n&&(292.5<=e||e<67.5),angle:e,speed:t.prevEvent.speed,velocity:{x:t.prevEvent.velocityX,y:t.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),n}(Mt);Object.defineProperties(Ee.prototype,{pageX:{get:function(){return this.page.x},set:function(t){this.page.x=t}},pageY:{get:function(){return this.page.y},set:function(t){this.page.y=t}},clientX:{get:function(){return this.client.x},set:function(t){this.client.x=t}},clientY:{get:function(){return this.client.y},set:function(t){this.client.y=t}},dx:{get:function(){return this.delta.x},set:function(t){this.delta.x=t}},dy:{get:function(){return this.delta.y},set:function(t){this.delta.y=t}},velocityX:{get:function(){return this.velocity.x},set:function(t){this.velocity.x=t}},velocityY:{get:function(){return this.velocity.y},set:function(t){this.velocity.y=t}}});var ze=s((function t(e,n,i,o,s){r(this,t),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=e,this.pointer=n,this.event=i,this.downTime=o,this.downTarget=s})),Fe=function(t){return t.interactable="",t.element="",t.prepared="",t.pointerIsDown="",t.pointerWasMoved="",t._proxy="",t}({}),Re=function(t){return t.start="",t.move="",t.end="",t.stop="",t.interacting="",t}({}),Pe=0,Ye=function(){function t(e){var n=this,i=e.pointerType,o=e.scopeFire;r(this,t),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=ie((function(t){this.move(t)}),"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Pe++,this._scopeFire=o,this.pointerType=i;var s=this;this._proxy={};var a=function(t){Object.defineProperty(n._proxy,t,{get:function(){return s[t]}})};for(var l in Fe)a(l);var c=function(t){Object.defineProperty(n._proxy,t,{value:function(){return s[t].apply(s,arguments)}})};for(var u in Re)c(u);this._scopeFire("interactions:new",{interaction:this})}return s(t,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(t,e,n){var i=this.updatePointer(t,e,n,!0),r=this.pointers[i];this._scopeFire("interactions:down",{pointer:t,event:e,eventTarget:n,pointerIndex:i,pointerInfo:r,type:"down",interaction:this})}},{key:"start",value:function(t,e,n){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<("gesture"===t.name?2:1)||!e.options[t.name].enabled)&&(re(this.prepared,t),this.interactable=e,this.element=n,this.rect=e.getRect(n),this.edges=this.prepared.edges?$({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(t,e,n){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(t,e,n,!1);var i,r,o=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(i=this.coords.cur.client.x-this.coords.start.client.x,r=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=lt(i,r)>this.pointerMoveTolerance);var s,a,l,c=this.getPointerIndex(t),u={pointer:t,pointerIndex:c,pointerInfo:this.pointers[c],event:e,type:"move",eventTarget:n,dx:i,dy:r,duplicate:o,interaction:this};o||(s=this.coords.velocity,a=this.coords.delta,l=Math.max(a.timeStamp/1e3,.001),s.page.x=a.page.x/l,s.page.y=a.page.y/l,s.client.x=a.client.x/l,s.client.y=a.client.y/l,s.timeStamp=l),this._scopeFire("interactions:move",u),o||this.simulation||(this.interacting()&&(u.type=null,this.move(u)),this.pointerWasMoved&&dt(this.coords.prev,this.coords.cur))}},{key:"move",value:function(t){t&&t.event||ht(this.coords.delta),(t=$({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},t||{})).phase="move",this._doPhase(t)}},{key:"pointerUp",value:function(t,e,n,i){var r=this.getPointerIndex(t);-1===r&&(r=this.updatePointer(t,e,n,!1));var o=/cancel$/i.test(e.type)?"cancel":"up";this._scopeFire("interactions:".concat(o),{pointer:t,pointerIndex:r,pointerInfo:this.pointers[r],event:e,eventTarget:n,type:o,curEventTarget:i,interaction:this}),this.simulation||this.end(e),this.removePointer(t,e)}},{key:"documentBlur",value:function(t){this.end(t),this._scopeFire("interactions:blur",{event:t,type:"blur",interaction:this})}},{key:"end",value:function(t){var e;this._ending=!0,t=t||this._latestPointer.event,this.interacting()&&(e=this._doPhase({event:t,interaction:this,phase:"end"})),this._ending=!1,!0===e&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(t){var e=mt(t);return"mouse"===this.pointerType||"pen"===this.pointerType?this.pointers.length-1:_t(this.pointers,(function(t){return t.id===e}))}},{key:"getPointerInfo",value:function(t){return this.pointers[this.getPointerIndex(t)]}},{key:"updatePointer",value:function(t,e,n,i){var r,o,s,a=mt(t),l=this.getPointerIndex(t),c=this.pointers[l];return i=!1!==i&&(i||/(down|start)$/i.test(e.type)),c?c.pointer=t:(c=new ze(a,t,e,null,null),l=this.pointers.length,this.pointers.push(c)),function(t,e,n){var i=e.length>1?yt(e):e[0];gt(i,t.page),function(t,e){e=e||{},Y.isOperaMobile&&pt(t)?ft("screen",t,e):ft("client",t,e)}(i,t.client),t.timeStamp=n}(this.coords.cur,this.pointers.map((function(t){return t.pointer})),this._now()),r=this.coords.delta,o=this.coords.prev,s=this.coords.cur,r.page.x=s.page.x-o.page.x,r.page.y=s.page.y-o.page.y,r.client.x=s.client.x-o.client.x,r.client.y=s.client.y-o.client.y,r.timeStamp=s.timeStamp-o.timeStamp,i&&(this.pointerIsDown=!0,c.downTime=this.coords.cur.timeStamp,c.downTarget=n,ut(this.downPointer,t),this.interacting()||(dt(this.coords.start,this.coords.cur),dt(this.coords.prev,this.coords.cur),this.downEvent=e,this.pointerWasMoved=!1)),this._updateLatestPointer(t,e,n),this._scopeFire("interactions:update-pointer",{pointer:t,event:e,eventTarget:n,down:i,pointerInfo:c,pointerIndex:l,interaction:this}),l}},{key:"removePointer",value:function(t,e){var n=this.getPointerIndex(t);if(-1!==n){var i=this.pointers[n];this._scopeFire("interactions:remove-pointer",{pointer:t,event:e,eventTarget:null,pointerIndex:n,pointerInfo:i,interaction:this}),this.pointers.splice(n,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(t,e,n){this._latestPointer.pointer=t,this._latestPointer.event=e,this._latestPointer.eventTarget=n}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(t,e,n,i){return new Ee(this,t,this.prepared.name,e,this.element,n,i)}},{key:"_fireEvent",value:function(t){var e;null==(e=this.interactable)||e.fire(t),(!this.prevEvent||t.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=t)}},{key:"_doPhase",value:function(t){var e=t.event,n=t.phase,i=t.preEnd,r=t.type,o=this.rect;if(o&&"move"===n&&(rt(this.edges,o,this.coords.delta[this.interactable.options.deltaSource]),o.width=o.right-o.left,o.height=o.bottom-o.top),!1===this._scopeFire("interactions:before-action-".concat(n),t))return!1;var s=t.iEvent=this._createPreparedEvent(e,n,i,r);return this._scopeFire("interactions:action-".concat(n),t),"start"===n&&(this.prevEvent=s),this._fireEvent(s),this._scopeFire("interactions:after-action-".concat(n),t),!0}},{key:"_now",value:function(){return Date.now()}}]),t}();function Ue(t){We(t.interaction)}function We(t){if(!function(t){return!(!t.offset.pending.x&&!t.offset.pending.y)}(t))return!1;var e=t.offset.pending;return Ze(t.coords.cur,e),Ze(t.coords.delta,e),rt(t.edges,t.rect,e),e.x=0,e.y=0,!0}function Be(t){var e=t.x,n=t.y;this.offset.pending.x+=e,this.offset.pending.y+=n,this.offset.total.x+=e,this.offset.total.y+=n}function Ze(t,e){var n=t.page,i=t.client,r=e.x,o=e.y;n.x+=r,n.y+=o,i.x+=r,i.y+=o}Re.offsetBy="";var He={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(t){t.Interaction.prototype.offsetBy=Be},listeners:{"interactions:new":function(t){t.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(t){return function(t){t.pointerIsDown&&(Ze(t.coords.cur,t.offset.total),t.offset.pending.x=0,t.offset.pending.y=0)}(t.interaction)},"interactions:before-action-start":Ue,"interactions:before-action-move":Ue,"interactions:before-action-end":function(t){var e=t.interaction;if(We(e))return e.move({offset:!0}),e.end(),!1},"interactions:stop":function(t){var e=t.interaction;e.offset.total.x=0,e.offset.total.y=0,e.offset.pending.x=0,e.offset.pending.y=0}}},Ge=He,Ve=function(){function t(e){r(this,t),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=e}return s(t,[{key:"start",value:function(t){var e=this.interaction,n=Qe(e);if(!n||!n.enabled)return!1;var i=e.coords.velocity.client,r=lt(i.x,i.y),o=this.modification||(this.modification=new Se(e));if(o.copyFrom(e.modification),this.t0=e._now(),this.allowResume=n.allowResume,this.v0=r,this.currentOffset={x:0,y:0},this.startCoords=e.coords.cur.page,this.modifierArg=o.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-e.coords.cur.timeStamp<50&&r>n.minSpeed&&r>n.endSpeed)this.startInertia();else{if(o.result=o.setAll(this.modifierArg),!o.result.changed)return!1;this.startSmoothEnd()}return e.modification.result.rect=null,e.offsetBy(this.targetOffset),e._doPhase({interaction:e,event:t,phase:"inertiastart"}),e.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),e.modification.result.rect=null,this.active=!0,e.simulation=this,!0}},{key:"startInertia",value:function(){var t=this,e=this.interaction.coords.velocity.client,n=Qe(this.interaction),i=n.resistance,r=-Math.log(n.endSpeed/this.v0)/i;this.targetOffset={x:(e.x-r)/i,y:(e.y-r)/i},this.te=r,this.lambda_v0=i/this.v0,this.one_ve_v0=1-n.endSpeed/this.v0;var o=this.modification,s=this.modifierArg;s.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},o.result=o.setAll(s),o.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+o.result.delta.x,y:this.targetOffset.y+o.result.delta.y}),this.onNextFrame((function(){return t.inertiaTick()}))}},{key:"startSmoothEnd",value:function(){var t=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame((function(){return t.smoothEndTick()}))}},{key:"onNextFrame",value:function(t){var e=this;this.timeout=Jt((function(){e.active&&t()}))}},{key:"inertiaTick",value:function(){var t,e,n,i,r,o=this,s=this.interaction,a=Qe(s).resistance,l=(s._now()-this.t0)/1e3;if(l<this.te){var c,u=1-(Math.exp(-a*l)-this.lambda_v0)/this.one_ve_v0;this.isModified?(t=this.targetOffset.x,e=this.targetOffset.y,n=this.modifiedOffset.x,i=this.modifiedOffset.y,c={x:Xe(r=u,0,t,n),y:Xe(r,0,e,i)}):c={x:this.targetOffset.x*u,y:this.targetOffset.y*u};var d={x:c.x-this.currentOffset.x,y:c.y-this.currentOffset.y};this.currentOffset.x+=d.x,this.currentOffset.y+=d.y,s.offsetBy(d),s.move(),this.onNextFrame((function(){return o.inertiaTick()}))}else s.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var t=this,e=this.interaction,n=e._now()-this.t0,i=Qe(e).smoothEndDuration;if(n<i){var r={x:qe(n,0,this.targetOffset.x,i),y:qe(n,0,this.targetOffset.y,i)},o={x:r.x-this.currentOffset.x,y:r.y-this.currentOffset.y};this.currentOffset.x+=o.x,this.currentOffset.y+=o.y,e.offsetBy(o),e.move({skipModifiers:this.modifierCount}),this.onNextFrame((function(){return t.smoothEndTick()}))}else e.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(t){var e=t.pointer,n=t.event,i=t.eventTarget,r=this.interaction;r.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),r.updatePointer(e,n,i,!0),r._doPhase({interaction:r,event:n,phase:"resume"}),dt(r.coords.prev,r.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Xt(this.timeout)}}]),t}();function Qe(t){var e=t.interactable,n=t.prepared;return e&&e.options&&n.name&&e.options[n.name].inertia}var Je={id:"inertia",before:["modifiers","actions"],install:function(t){var e=t.defaults;t.usePlugin(Ge),t.usePlugin(Ne),t.actions.phases.inertiastart=!0,t.actions.phases.resume=!0,e.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(t){var e=t.interaction;e.inertia=new Ve(e)},"interactions:before-action-end":function(t){var e=t.interaction,n=t.event;return(!e._interacting||e.simulation||!e.inertia.start(n))&&null},"interactions:down":function(t){var e=t.interaction,n=t.eventTarget,i=e.inertia;if(i.active)for(var r=n;k(r);){if(r===e.element){i.resume(t);break}r=B(r)}},"interactions:stop":function(t){var e=t.interaction.inertia;e.active&&e.stop()},"interactions:before-action-resume":function(t){var e=t.interaction.modification;e.stop(t),e.start(t,t.interaction.coords.cur.page),e.applyToInteraction(t)},"interactions:before-action-inertiastart":function(t){return t.interaction.modification.setAndApply(t)},"interactions:action-resume":De,"interactions:action-inertiastart":De,"interactions:after-action-inertiastart":function(t){return t.interaction.modification.restoreInteractionCoords(t)},"interactions:after-action-resume":function(t){return t.interaction.modification.restoreInteractionCoords(t)}}};function Xe(t,e,n,i){var r=1-t;return r*r*e+2*r*t*n+t*t*i}function qe(t,e,n,i){return-n*(t/=i)*(t-2)+e}var Ke=Je;function $e(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(t.immediatePropagationStopped)break;i(t)}}var tn=function(){function t(e){r(this,t),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=$({},e||{})}return s(t,[{key:"fire",value:function(t){var e,n=this.global;(e=this.types[t.type])&&$e(t,e),!t.propagationStopped&&n&&(e=n[t.type])&&$e(t,e)}},{key:"on",value:function(t,e){var n=st(t,e);for(t in n)this.types[t]=Lt(this.types[t]||[],n[t])}},{key:"off",value:function(t,e){var n=st(t,e);for(t in n){var i=this.types[t];if(i&&i.length)for(var r=0,o=n[t];r<o.length;r++){var s=o[r],a=i.indexOf(s);-1!==a&&i.splice(a,1)}}}},{key:"getRect",value:function(t){return null}}]),t}(),en=function(){function t(e){r(this,t),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=e,ut(this,e)}return s(t,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),t}();function nn(t){return M(t)?{capture:!!t.capture,passive:!!t.passive}:{capture:!!t,passive:!1}}function rn(t,e){return t===e||("boolean"==typeof t?!!e.capture===t&&0==!!e.passive:!!t.capture==!!e.capture&&!!t.passive==!!e.passive)}var on={id:"events",install:function(t){var e,n=[],i={},r=[],o={add:s,remove:a,addDelegate:function(t,e,n,o,a){var u=nn(a);if(!i[n]){i[n]=[];for(var d=0;d<r.length;d++){var h=r[d];s(h,n,l),s(h,n,c,!0)}}var p=i[n],f=St(p,(function(n){return n.selector===t&&n.context===e}));f||(f={selector:t,context:e,listeners:[]},p.push(f)),f.listeners.push({func:o,options:u})},removeDelegate:function(t,e,n,r,o){var s,u=nn(o),d=i[n],h=!1;if(d)for(s=d.length-1;s>=0;s--){var p=d[s];if(p.selector===t&&p.context===e){for(var f=p.listeners,g=f.length-1;g>=0;g--){var m=f[g];if(m.func===r&&rn(m.options,u)){f.splice(g,1),f.length||(d.splice(s,1),a(e,n,l),a(e,n,c,!0)),h=!0;break}}if(h)break}}},delegateListener:l,delegateUseCapture:c,delegatedEvents:i,documents:r,targets:n,supportsOptions:!1,supportsPassive:!1};function s(t,e,i,r){if(t.addEventListener){var s=nn(r),a=St(n,(function(e){return e.eventTarget===t}));a||(a={eventTarget:t,events:{}},n.push(a)),a.events[e]||(a.events[e]=[]),St(a.events[e],(function(t){return t.func===i&&rn(t.options,s)}))||(t.addEventListener(e,i,o.supportsOptions?s:s.capture),a.events[e].push({func:i,options:s}))}}function a(t,e,i,r){if(t.addEventListener&&t.removeEventListener){var s=_t(n,(function(e){return e.eventTarget===t})),l=n[s];if(l&&l.events)if("all"!==e){var c=!1,u=l.events[e];if(u){if("all"===i){for(var d=u.length-1;d>=0;d--){var h=u[d];a(t,e,h.func,h.options)}return}for(var p=nn(r),f=0;f<u.length;f++){var g=u[f];if(g.func===i&&rn(g.options,p)){t.removeEventListener(e,i,o.supportsOptions?p:p.capture),u.splice(f,1),0===u.length&&(delete l.events[e],c=!0);break}}}c&&!Object.keys(l.events).length&&n.splice(s,1)}else for(e in l.events)l.events.hasOwnProperty(e)&&a(t,e,"all")}}function l(t,e){for(var n=nn(e),r=new en(t),o=i[t.type],s=Ct(t)[0],a=s;k(a);){for(var l=0;l<o.length;l++){var c=o[l],u=c.selector,d=c.context;if(Z(a,u)&&U(d,s)&&U(d,a)){var h=c.listeners;r.currentTarget=a;for(var p=0;p<h.length;p++){var f=h[p];rn(f.options,n)&&f.func(r)}}}a=B(a)}}function c(t){return l(t,!0)}return null==(e=t.document)||e.createElement("div").addEventListener("test",null,{get capture(){return o.supportsOptions=!0},get passive(){return o.supportsPassive=!0}}),t.events=o,o}},sn={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(t){for(var e=0,n=sn.methodOrder;e<n.length;e++){var i=n[e],r=sn[i](t);if(r)return r}return null},simulationResume:function(t){var e=t.pointerType,n=t.eventType,i=t.eventTarget,r=t.scope;if(!/down|start/i.test(n))return null;for(var o=0,s=r.interactions.list;o<s.length;o++){var a=s[o],l=i;if(a.simulation&&a.simulation.allowResume&&a.pointerType===e)for(;l;){if(l===a.element)return a;l=B(l)}}return null},mouseOrPen:function(t){var e,n=t.pointerId,i=t.pointerType,r=t.eventType,o=t.scope;if("mouse"!==i&&"pen"!==i)return null;for(var s=0,a=o.interactions.list;s<a.length;s++){var l=a[s];if(l.pointerType===i){if(l.simulation&&!an(l,n))continue;if(l.interacting())return l;e||(e=l)}}if(e)return e;for(var c=0,u=o.interactions.list;c<u.length;c++){var d=u[c];if(!(d.pointerType!==i||/down/i.test(r)&&d.simulation))return d}return null},hasPointer:function(t){for(var e=t.pointerId,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(an(r,e))return r}return null},idle:function(t){for(var e=t.pointerType,n=0,i=t.scope.interactions.list;n<i.length;n++){var r=i[n];if(1===r.pointers.length){var o=r.interactable;if(o&&(!o.options.gesture||!o.options.gesture.enabled))continue}else if(r.pointers.length>=2)continue;if(!r.interacting()&&e===r.pointerType)return r}return null}};function an(t,e){return t.pointers.some((function(t){return t.id===e}))}var ln=sn,cn=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function un(t,e){return function(n){var i=e.interactions.list,r=xt(n),o=Ct(n),s=o[0],a=o[1],l=[];if(/^touch/.test(n.type)){e.prevTouchTime=e.now();for(var c=0,u=n.changedTouches;c<u.length;c++){var d=u[c],h={pointer:d,pointerId:mt(d),pointerType:r,eventType:n.type,eventTarget:s,curEventTarget:a,scope:e},p=dn(h);l.push([h.pointer,h.eventTarget,h.curEventTarget,p])}}else{var f=!1;if(!Y.supportsPointerEvent&&/mouse/.test(n.type)){for(var g=0;g<i.length&&!f;g++)f="mouse"!==i[g].pointerType&&i[g].pointerIsDown;f=f||e.now()-e.prevTouchTime<500||0===n.timeStamp}if(!f){var m={pointer:n,pointerId:mt(n),pointerType:r,eventType:n.type,curEventTarget:a,eventTarget:s,scope:e},v=dn(m);l.push([m.pointer,m.eventTarget,m.curEventTarget,v])}}for(var y=0;y<l.length;y++){var b=l[y],w=b[0],A=b[1],x=b[2];b[3][t](w,n,A,x)}}}function dn(t){var e=t.pointerType,n=t.scope,i={interaction:ln.search(t),searchDetails:t};return n.fire("interactions:find",i),i.interaction||n.interactions.new({pointerType:e})}function hn(t,e){var n=t.doc,i=t.scope,r=t.options,o=i.interactions.docEvents,s=i.events,a=s[e];for(var l in i.browser.isIOS&&!r.events&&(r.events={passive:!1}),s.delegatedEvents)a(n,l,s.delegateListener),a(n,l,s.delegateUseCapture,!0);for(var c=r&&r.events,u=0;u<o.length;u++){var d=o[u];a(n,d.type,d.listener,c)}}var pn={id:"core/interactions",install:function(t){for(var e={},n=0;n<cn.length;n++){var i=cn[n];e[i]=un(i,t)}var o,a=Y.pEventTypes;function c(){for(var e=0,n=t.interactions.list;e<n.length;e++){var i=n[e];if(i.pointerIsDown&&"touch"===i.pointerType&&!i._interacting)for(var r=function(){var e=s[o];t.documents.some((function(t){return U(t.doc,e.downTarget)}))||i.removePointer(e.pointer,e.event)},o=0,s=i.pointers;o<s.length;o++)r()}}(o=R.PointerEvent?[{type:a.down,listener:c},{type:a.down,listener:e.pointerDown},{type:a.move,listener:e.pointerMove},{type:a.up,listener:e.pointerUp},{type:a.cancel,listener:e.pointerUp}]:[{type:"mousedown",listener:e.pointerDown},{type:"mousemove",listener:e.pointerMove},{type:"mouseup",listener:e.pointerUp},{type:"touchstart",listener:c},{type:"touchstart",listener:e.pointerDown},{type:"touchmove",listener:e.pointerMove},{type:"touchend",listener:e.pointerUp},{type:"touchcancel",listener:e.pointerUp}]).push({type:"blur",listener:function(e){for(var n=0,i=t.interactions.list;n<i.length;n++)i[n].documentBlur(e)}}),t.prevTouchTime=0,t.Interaction=function(e){l(i,e);var n=h(i);function i(){return r(this,i),n.apply(this,arguments)}return s(i,[{key:"pointerMoveTolerance",get:function(){return t.interactions.pointerMoveTolerance},set:function(e){t.interactions.pointerMoveTolerance=e}},{key:"_now",value:function(){return t.now()}}]),i}(Ye),t.interactions={list:[],new:function(e){e.scopeFire=function(e,n){return t.fire(e,n)};var n=new t.Interaction(e);return t.interactions.list.push(n),n},listeners:e,docEvents:o,pointerMoveTolerance:1},t.usePlugin(Le)},listeners:{"scope:add-document":function(t){return hn(t,"add")},"scope:remove-document":function(t){return hn(t,"remove")},"interactable:unset":function(t,e){for(var n=t.interactable,i=e.interactions.list.length-1;i>=0;i--){var r=e.interactions.list[i];r.interactable===n&&(r.stop(),e.fire("interactions:destroy",{interaction:r}),r.destroy(),e.interactions.list.length>2&&e.interactions.list.splice(i,1))}}},onDocSignal:hn,doOnInteractions:un,methodNames:cn},fn=pn,gn=function(t){return t[t.On=0]="On",t[t.Off=1]="Off",t}(gn||{}),mn=function(){function t(e,n,i,o){r(this,t),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new tn,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=n.actions,this.target=e,this._context=n.context||i,this._win=b(K(e)?this._context:e),this._doc=this._win.document,this._scopeEvents=o,this.set(n)}return s(t,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(t,e){return L(e.onstart)&&this.on("".concat(t,"start"),e.onstart),L(e.onmove)&&this.on("".concat(t,"move"),e.onmove),L(e.onend)&&this.on("".concat(t,"end"),e.onend),L(e.oninertiastart)&&this.on("".concat(t,"inertiastart"),e.oninertiastart),this}},{key:"updatePerActionListeners",value:function(t,e,n){var i,r=this,o=null==(i=this._actions.map[t])?void 0:i.filterEventType,s=function(t){return(null==o||o(t))&&Ie(t,r._actions)};(D(e)||M(e))&&this._onOff(gn.Off,t,e,void 0,s),(D(n)||M(n))&&this._onOff(gn.On,t,n,void 0,s)}},{key:"setPerAction",value:function(t,e){var n=this._defaults;for(var i in e){var r=i,o=this.options[t],s=e[r];"listeners"===r&&this.updatePerActionListeners(t,o.listeners,s),D(s)?o[r]=It(s):T(s)?(o[r]=$(o[r]||{},_e(s)),M(n.perAction[r])&&"enabled"in n.perAction[r]&&(o[r].enabled=!1!==s.enabled)):_(s)&&M(n.perAction[r])?o[r].enabled=s:o[r]=s}}},{key:"getRect",value:function(t){return t=t||(k(this.target)?this.target:null),S(this.target)&&(t=t||this._context.querySelector(this.target)),X(t)}},{key:"rectChecker",value:function(t){var e=this;return L(t)?(this.getRect=function(n){var i=$({},t.apply(e,n));return"width"in i||(i.width=i.right-i.left,i.height=i.bottom-i.top),i},this):null===t?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(t,e){if(K(e)||M(e)){for(var n in this.options[t]=e,this._actions.map)this.options[n][t]=e;return this}return this.options[t]}},{key:"origin",value:function(t){return this._backCompatOption("origin",t)}},{key:"deltaSource",value:function(t){return"page"===t||"client"===t?(this.options.deltaSource=t,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var t=this.target;return S(t)?Array.from(this._context.querySelectorAll(t)):L(t)&&t.getAllElements?t.getAllElements():k(t)?[t]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(t){return this._context===t.ownerDocument||U(this._context,t)}},{key:"testIgnoreAllow",value:function(t,e,n){return!this.testIgnore(t.ignoreFrom,e,n)&&this.testAllow(t.allowFrom,e,n)}},{key:"testAllow",value:function(t,e,n){return!t||!!k(n)&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"testIgnore",value:function(t,e,n){return!(!t||!k(n))&&(S(t)?V(n,t,e):!!k(t)&&U(t,n))}},{key:"fire",value:function(t){return this.events.fire(t),this}},{key:"_onOff",value:function(t,e,n,i,r){M(e)&&!D(e)&&(i=n,n=null);var o=st(e,n,r);for(var s in o){"wheel"===s&&(s=Y.wheelEvent);for(var a=0,l=o[s];a<l.length;a++){var c=l[a];Ie(s,this._actions)?this.events[t===gn.On?"on":"off"](s,c):S(this.target)?this._scopeEvents[t===gn.On?"addDelegate":"removeDelegate"](this.target,this._context,s,c,i):this._scopeEvents[t===gn.On?"add":"remove"](this.target,s,c,i)}}return this}},{key:"on",value:function(t,e,n){return this._onOff(gn.On,t,e,n)}},{key:"off",value:function(t,e,n){return this._onOff(gn.Off,t,e,n)}},{key:"set",value:function(t){var e=this._defaults;for(var n in M(t)||(t={}),this.options=_e(e.base),this._actions.methodDict){var i=n,r=this._actions.methodDict[i];this.options[i]={},this.setPerAction(i,$($({},e.perAction),e.actions[i])),this[r](t[i])}for(var o in t)"getRect"!==o?L(this[o])&&this[o](t[o]):this.rectChecker(t.getRect);return this}},{key:"unset",value:function(){if(S(this.target))for(var t in this._scopeEvents.delegatedEvents)for(var e=this._scopeEvents.delegatedEvents[t],n=e.length-1;n>=0;n--){var i=e[n],r=i.selector,o=i.context,s=i.listeners;r===this.target&&o===this._context&&e.splice(n,1);for(var a=s.length-1;a>=0;a--)this._scopeEvents.removeDelegate(this.target,this._context,t,s[a][0],s[a][1])}else this._scopeEvents.remove(this.target,"all")}}]),t}(),vn=function(){function t(e){var n=this;r(this,t),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=e,e.addListeners({"interactable:unset":function(t){var e=t.interactable,i=e.target,r=S(i)?n.selectorMap[i]:i[n.scope.id],o=_t(r,(function(t){return t===e}));r.splice(o,1)}})}return s(t,[{key:"new",value:function(t,e){e=$(e||{},{actions:this.scope.actions});var n=new this.scope.Interactable(t,e,this.scope.document,this.scope.events);return this.scope.addDocument(n._doc),this.list.push(n),S(t)?(this.selectorMap[t]||(this.selectorMap[t]=[]),this.selectorMap[t].push(n)):(n.target[this.scope.id]||Object.defineProperty(t,this.scope.id,{value:[],configurable:!0}),t[this.scope.id].push(n)),this.scope.fire("interactable:new",{target:t,options:e,interactable:n,win:this.scope._win}),n}},{key:"getExisting",value:function(t,e){var n=e&&e.context||this.scope.document,i=S(t),r=i?this.selectorMap[t]:t[this.scope.id];if(r)return St(r,(function(e){return e._context===n&&(i||e.inContext(t))}))}},{key:"forEachMatch",value:function(t,e){for(var n=0,i=this.list;n<i.length;n++){var r=i[n],o=void 0;if((S(r.target)?k(t)&&Z(t,r.target):t===r.target)&&r.inContext(t)&&(o=e(r)),void 0!==o)return o}}}]),t}(),yn=function(){function t(){var e=this;r(this,t),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=Y,this.defaults=_e(Oe),this.Eventable=tn,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(t){var e=function e(n,i){var r=t.interactables.getExisting(n,i);return r||((r=t.interactables.new(n,i)).events.global=e.globalEvents),r};return e.getPointerAverage=yt,e.getTouchBBox=bt,e.getTouchDistance=wt,e.getTouchAngle=At,e.getElementRect=X,e.getElementClientRect=J,e.matchesSelector=Z,e.closest=W,e.globalEvents={},e.version="1.10.27",e.scope=t,e.use=function(t,e){return this.scope.usePlugin(t,e),this},e.isSet=function(t,e){return!!this.scope.interactables.get(t,e&&e.context)},e.on=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.on(o,e,n)}return this}if(M(t)){for(var s in t)this.on(s,t[s],e);return this}return Ie(t,this.scope.actions)?this.globalEvents[t]?this.globalEvents[t].push(e):this.globalEvents[t]=[e]:this.scope.events.add(this.scope.document,t,e,{options:n}),this}),"The interact.on() method is being deprecated"),e.off=ie((function(t,e,n){if(S(t)&&-1!==t.search(" ")&&(t=t.trim().split(/ +/)),D(t)){for(var i=0,r=t;i<r.length;i++){var o=r[i];this.off(o,e,n)}return this}if(M(t)){for(var s in t)this.off(s,t[s],e);return this}var a;return Ie(t,this.scope.actions)?t in this.globalEvents&&-1!==(a=this.globalEvents[t].indexOf(e))&&this.globalEvents[t].splice(a,1):this.scope.events.remove(this.scope.document,t,e,n),this}),"The interact.off() method is being deprecated"),e.debug=function(){return this.scope},e.supportsTouch=function(){return Y.supportsTouch},e.supportsPointerEvent=function(){return Y.supportsPointerEvent},e.stop=function(){for(var t=0,e=this.scope.interactions.list;t<e.length;t++)e[t].stop();return this},e.pointerMoveTolerance=function(t){return I(t)?(this.scope.interactions.pointerMoveTolerance=t,this):this.scope.interactions.pointerMoveTolerance},e.addDocument=function(t,e){this.scope.addDocument(t,e)},e.removeDocument=function(t){this.scope.removeDocument(t)},e}(this),this.InteractEvent=Ee,this.Interactable=void 0,this.interactables=new vn(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(t){return e.removeDocument(t.target)};var n=this;this.Interactable=function(t){l(i,t);var e=h(i);function i(){return r(this,i),e.apply(this,arguments)}return s(i,[{key:"_defaults",get:function(){return n.defaults}},{key:"set",value:function(t){return p(c(i.prototype),"set",this).call(this,t),n.fire("interactable:set",{options:t,interactable:this}),this}},{key:"unset",value:function(){p(c(i.prototype),"unset",this).call(this);var t=n.interactables.list.indexOf(this);t<0||(n.interactables.list.splice(t,1),n.fire("interactable:unset",{interactable:this}))}}]),i}(mn)}return s(t,[{key:"addListeners",value:function(t,e){this.listenerMaps.push({id:e,map:t})}},{key:"fire",value:function(t,e){for(var n=0,i=this.listenerMaps;n<i.length;n++){var r=i[n].map[t];if(r&&!1===r(e,this,t))return!1}}},{key:"init",value:function(t){return this.isInitialized?this:function(t,e){return t.isInitialized=!0,x(e)&&y(e),R.init(e),Y.init(e),qt(e),t.window=e,t.document=e.document,t.usePlugin(fn),t.usePlugin(on),t}(this,t)}},{key:"pluginIsInstalled",value:function(t){var e=t.id;return e?!!this._plugins.map[e]:-1!==this._plugins.list.indexOf(t)}},{key:"usePlugin",value:function(t,e){if(!this.isInitialized)return this;if(this.pluginIsInstalled(t))return this;if(t.id&&(this._plugins.map[t.id]=t),this._plugins.list.push(t),t.install&&t.install(this,e),t.listeners&&t.before){for(var n=0,i=this.listenerMaps.length,r=t.before.reduce((function(t,e){return t[e]=!0,t[bn(e)]=!0,t}),{});n<i;n++){var o=this.listenerMaps[n].id;if(o&&(r[o]||r[bn(o)]))break}this.listenerMaps.splice(n,0,{id:t.id,map:t.listeners})}else t.listeners&&this.listenerMaps.push({id:t.id,map:t.listeners});return this}},{key:"addDocument",value:function(t,e){if(-1!==this.getDocIndex(t))return!1;var n=b(t);e=e?$({},e):{},this.documents.push({doc:t,options:e}),this.events.documents.push(t),t!==this.document&&this.events.add(n,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:t,window:n,scope:this,options:e})}},{key:"removeDocument",value:function(t){var e=this.getDocIndex(t),n=b(t),i=this.documents[e].options;this.events.remove(n,"unload",this.onWindowUnload),this.documents.splice(e,1),this.events.documents.splice(e,1),this.fire("scope:remove-document",{doc:t,window:n,scope:this,options:i})}},{key:"getDocIndex",value:function(t){for(var e=0;e<this.documents.length;e++)if(this.documents[e].doc===t)return e;return-1}},{key:"getDocOptions",value:function(t){var e=this.getDocIndex(t);return-1===e?null:this.documents[e].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),t}();function bn(t){return t&&t.replace(/\/.*$/,"")}var wn=new yn,An=wn.interactStatic,xn="undefined"!=typeof globalThis?globalThis:window;wn.init(xn);var Cn=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(t){var e=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter((function(e){var n=e[0],i=e[1];return n in t||i in t})),n=function(n,i){for(var r=t.range,o=t.limits,s=void 0===o?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:o,a=t.offset,l=void 0===a?{x:0,y:0}:a,c={range:r,grid:t,x:null,y:null},u=0;u<e.length;u++){var d=e[u],h=d[0],p=d[1],f=Math.round((n-l.x)/t[h]),g=Math.round((i-l.y)/t[p]);c[h]=Math.max(s.left,Math.min(s.right,f*t[h]+l.x)),c[p]=Math.max(s.top,Math.min(s.bottom,g*t[p]+l.y))}return c};return n.grid=t,n.coordFields=e,n}}),Mn={id:"snappers",install:function(t){var e=t.interactStatic;e.snappers=$(e.snappers||{},Cn),e.createSnapGrid=e.snappers.grid}},Ln=Mn,In={start:function(t){var e=t.state,i=t.rect,r=t.edges,o=t.pageCoords,s=e.options,a=s.ratio,l=s.enabled,c=e.options,u=c.equalDelta,d=c.modifiers;"preserve"===a&&(a=i.width/i.height),e.startCoords=$({},o),e.startRect=$({},i),e.ratio=a,e.equalDelta=u;var h=e.linkedEdges={top:r.top||r.left&&!r.bottom,left:r.left||r.top&&!r.right,bottom:r.bottom||r.right&&!r.top,right:r.right||r.bottom&&!r.left};if(e.xIsPrimaryAxis=!(!r.left&&!r.right),e.equalDelta){var p=(h.left?1:-1)*(h.top?1:-1);e.edgeSign={x:p,y:p}}else e.edgeSign={x:h.left?-1:1,y:h.top?-1:1};if(!1!==l&&$(r,h),null!=d&&d.length){var f=new Se(t.interaction);f.copyFrom(t.interaction.modification),f.prepareStates(d),e.subModification=f,f.startAll(n({},t))}},set:function(t){var e=t.state,i=t.rect,r=t.coords,o=e.linkedEdges,s=$({},r),a=e.equalDelta?_n:Sn;if($(t.edges,o),a(e,e.xIsPrimaryAxis,r,i),!e.subModification)return null;var l=$({},i);rt(o,l,{x:r.x-s.x,y:r.y-s.y});var c=e.subModification.setAll(n(n({},t),{},{rect:l,edges:o,pageCoords:r,prevCoords:r,prevRect:l})),u=c.delta;return c.changed&&(a(e,Math.abs(u.x)>Math.abs(u.y),c.coords,c.rect),$(r,c.coords)),c.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function _n(t,e,n){var i=t.startCoords,r=t.edgeSign;e?n.y=i.y+(n.x-i.x)*r.y:n.x=i.x+(n.y-i.y)*r.x}function Sn(t,e,n,i){var r=t.startRect,o=t.startCoords,s=t.ratio,a=t.edgeSign;if(e){var l=i.width/s;n.y=o.y+(l-r.height)*a.y}else{var c=i.height*s;n.x=o.x+(c-r.width)*a.x}}var kn=Te(In,"aspectRatio"),Tn=function(){};Tn._defaults={};var Dn=Tn;function jn(t,e,n){return L(t)?et(t,e.interactable,e.element,[n.x,n.y,e]):et(t,e.interactable,e.element)}var Nn={start:function(t){var e=t.rect,n=t.startOffset,i=t.state,r=t.interaction,o=t.pageCoords,s=i.options,a=s.elementRect,l=$({left:0,top:0,right:0,bottom:0},s.offset||{});if(e&&a){var c=jn(s.restriction,r,o);if(c){var u=c.right-c.left-e.width,d=c.bottom-c.top-e.height;u<0&&(l.left+=u,l.right+=u),d<0&&(l.top+=d,l.bottom+=d)}l.left+=n.left-e.width*a.left,l.top+=n.top-e.height*a.top,l.right+=n.right-e.width*(1-a.right),l.bottom+=n.bottom-e.height*(1-a.bottom)}i.offset=l},set:function(t){var e=t.coords,n=t.interaction,i=t.state,r=i.options,o=i.offset,s=jn(r.restriction,n,e);if(s){var a=function(t){return!t||"left"in t&&"top"in t||((t=$({},t)).left=t.x||0,t.top=t.y||0,t.right=t.right||t.left+t.width,t.bottom=t.bottom||t.top+t.height),t}(s);e.x=Math.max(Math.min(a.right-o.right,e.x),a.left+o.left),e.y=Math.max(Math.min(a.bottom-o.bottom,e.y),a.top+o.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},On=Te(Nn,"restrict"),En={top:1/0,left:1/0,bottom:-1/0,right:-1/0},zn={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function Fn(t,e){for(var n=0,i=["top","left","bottom","right"];n<i.length;n++){var r=i[n];r in t||(t[r]=e[r])}return t}var Rn={noInner:En,noOuter:zn,start:function(t){var e,n=t.interaction,i=t.startOffset,r=t.state,o=r.options;o&&(e=nt(jn(o.offset,n,n.coords.start.page))),e=e||{x:0,y:0},r.offset={top:e.y+i.top,left:e.x+i.left,bottom:e.y-i.bottom,right:e.x-i.right}},set:function(t){var e=t.coords,n=t.edges,i=t.interaction,r=t.state,o=r.offset,s=r.options;if(n){var a=$({},e),l=jn(s.inner,i,a)||{},c=jn(s.outer,i,a)||{};Fn(l,En),Fn(c,zn),n.top?e.y=Math.min(Math.max(c.top+o.top,a.y),l.top+o.top):n.bottom&&(e.y=Math.max(Math.min(c.bottom+o.bottom,a.y),l.bottom+o.bottom)),n.left?e.x=Math.min(Math.max(c.left+o.left,a.x),l.left+o.left):n.right&&(e.x=Math.max(Math.min(c.right+o.right,a.x),l.right+o.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Pn=Te(Rn,"restrictEdges"),Yn=$({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(t){}},Nn.defaults),Un=Te({start:Nn.start,set:Nn.set,defaults:Yn},"restrictRect"),Wn={width:-1/0,height:-1/0},Bn={width:1/0,height:1/0},Zn=Te({start:function(t){return Rn.start(t)},set:function(t){var e=t.interaction,n=t.state,i=t.rect,r=t.edges,o=n.options;if(r){var s=it(jn(o.min,e,t.coords))||Wn,a=it(jn(o.max,e,t.coords))||Bn;n.options={endOnly:o.endOnly,inner:$({},Rn.noInner),outer:$({},Rn.noOuter)},r.top?(n.options.inner.top=i.bottom-s.height,n.options.outer.top=i.bottom-a.height):r.bottom&&(n.options.inner.bottom=i.top+s.height,n.options.outer.bottom=i.top+a.height),r.left?(n.options.inner.left=i.right-s.width,n.options.outer.left=i.right-a.width):r.right&&(n.options.inner.right=i.left+s.width,n.options.outer.right=i.left+a.width),Rn.set(t),n.options=o}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Hn={start:function(t){var e,n=t.interaction,i=t.interactable,r=t.element,o=t.rect,s=t.state,a=t.startOffset,l=s.options,c=l.offsetWithOrigin?function(t){var e=t.interaction.element;return nt(et(t.state.options.origin,null,null,[e]))||ot(t.interactable,e,t.interaction.prepared.name)}(t):{x:0,y:0};if("startCoords"===l.offset)e={x:n.coords.start.page.x,y:n.coords.start.page.y};else{var u=et(l.offset,i,r,[n]);(e=nt(u)||{x:0,y:0}).x+=c.x,e.y+=c.y}var d=l.relativePoints;s.offsets=o&&d&&d.length?d.map((function(t,n){return{index:n,relativePoint:t,x:a.left-o.width*t.x+e.x,y:a.top-o.height*t.y+e.y}})):[{index:0,relativePoint:null,x:e.x,y:e.y}]},set:function(t){var e=t.interaction,n=t.coords,i=t.state,r=i.options,o=i.offsets,s=ot(e.interactable,e.element,e.prepared.name),a=$({},n),l=[];r.offsetWithOrigin||(a.x-=s.x,a.y-=s.y);for(var c=0,u=o;c<u.length;c++)for(var d=u[c],h=a.x-d.x,p=a.y-d.y,f=0,g=r.targets.length;f<g;f++){var m,v=r.targets[f];(m=L(v)?v(h,p,e._proxy,d,f):v)&&l.push({x:(I(m.x)?m.x:h)+d.x,y:(I(m.y)?m.y:p)+d.y,range:I(m.range)?m.range:r.range,source:v,index:f,offset:d})}for(var y={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},b=0;b<l.length;b++){var w=l[b],A=w.range,x=w.x-a.x,C=w.y-a.y,M=lt(x,C),_=M<=A;A===1/0&&y.inRange&&y.range!==1/0&&(_=!1),y.target&&!(_?y.inRange&&A!==1/0?M/A<y.distance/y.range:A===1/0&&y.range!==1/0||M<y.distance:!y.inRange&&M<y.distance)||(y.target=w,y.distance=M,y.range=A,y.inRange=_,y.delta.x=x,y.delta.y=C)}return y.inRange&&(n.x=y.target.x,n.y=y.target.y),i.closest=y,y},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Gn=Te(Hn,"snap"),Vn={start:function(t){var e=t.state,n=t.edges,i=e.options;if(!n)return null;t.state={options:{targets:null,relativePoints:[{x:n.left?0:1,y:n.top?0:1}],offset:i.offset||"self",origin:{x:0,y:0},range:i.range}},e.targetFields=e.targetFields||[["width","height"],["x","y"]],Hn.start(t),e.offsets=t.state.offsets,t.state=e},set:function(t){var e=t.interaction,n=t.state,i=t.coords,r=n.options,o=n.offsets,s={x:i.x-o[0].x,y:i.y-o[0].y};n.options=$({},r),n.options.targets=[];for(var a=0,l=r.targets||[];a<l.length;a++){var c=l[a],u=void 0;if(u=L(c)?c(s.x,s.y,e):c){for(var d=0,h=n.targetFields;d<h.length;d++){var p=h[d],f=p[0],g=p[1];if(f in u||g in u){u.x=u[f],u.y=u[g];break}}n.options.targets.push(u)}}var m=Hn.set(t);return n.options=r,m},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Qn=Te(Vn,"snapSize"),Jn={aspectRatio:kn,restrictEdges:Pn,restrict:On,restrictRect:Un,restrictSize:Zn,snapEdges:Te({start:function(t){var e=t.edges;return e?(t.state.targetFields=t.state.targetFields||[[e.left?"left":"right",e.top?"top":"bottom"]],Vn.start(t)):null},set:Vn.set,defaults:$(_e(Vn.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Gn,snapSize:Qn,spring:Dn,avoid:Dn,transform:Dn,rubberband:Dn},Xn={id:"modifiers",install:function(t){var e=t.interactStatic;for(var n in t.usePlugin(Ne),t.usePlugin(Ln),e.modifiers=Jn,Jn){var i=Jn[n],r=i._defaults,o=i._methods;r._methods=o,t.defaults.perAction[n]=r}}},qn=Xn,Kn=function(t){l(n,t);var e=h(n);function n(t,i,o,s,a,l){var c;if(r(this,n),ut(d(c=e.call(this,a)),o),o!==i&&ut(d(c),i),c.timeStamp=l,c.originalEvent=o,c.type=t,c.pointerId=mt(i),c.pointerType=xt(i),c.target=s,c.currentTarget=null,"tap"===t){var u=a.getPointerIndex(i);c.dt=c.timeStamp-a.pointers[u].downTime;var h=c.timeStamp-a.tapTime;c.double=!!a.prevTap&&"doubletap"!==a.prevTap.type&&a.prevTap.target===c.target&&h<500}else"doubletap"===t&&(c.dt=i.timeStamp-a.tapTime,c.double=!0);return c}return s(n,[{key:"_subtractOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX-=e,this.pageY-=n,this.clientX-=e,this.clientY-=n,this}},{key:"_addOrigin",value:function(t){var e=t.x,n=t.y;return this.pageX+=e,this.pageY+=n,this.clientX+=e,this.clientY+=n,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),n}(Mt),$n={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(t){t.pointerEvents=$n,t.defaults.actions.pointerEvents=$n.defaults,$(t.actions.phaselessTypes,$n.types)},listeners:{"interactions:new":function(t){var e=t.interaction;e.prevTap=null,e.tapTime=0},"interactions:update-pointer":function(t){var e=t.down,n=t.pointerInfo;!e&&n.hold||(n.hold={duration:1/0,timeout:null})},"interactions:move":function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;t.duplicate||n.pointerIsDown&&!n.pointerWasMoved||(n.pointerIsDown&&ni(t),ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"move"},e))},"interactions:down":function(t,e){!function(t,e){for(var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.pointerIndex,a=n.pointers[s].hold,l=q(o),c={interaction:n,pointer:i,event:r,eventTarget:o,type:"hold",targets:[],path:l,node:null},u=0;u<l.length;u++){var d=l[u];c.node=d,e.fire("pointerEvents:collect-targets",c)}if(c.targets.length){for(var h=1/0,p=0,f=c.targets;p<f.length;p++){var g=f[p].eventable.options.holdDuration;g<h&&(h=g)}a.duration=h,a.timeout=setTimeout((function(){ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"hold"},e)}),h)}}(t,e),ti(t,e)},"interactions:up":function(t,e){ni(t),ti(t,e),function(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget;n.pointerWasMoved||ti({interaction:n,eventTarget:o,pointer:i,event:r,type:"tap"},e)}(t,e)},"interactions:cancel":function(t,e){ni(t),ti(t,e)}},PointerEvent:Kn,fire:ti,collectEventTargets:ei,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=t.targets,l=void 0===a?ei(t,e):a,c=new Kn(s,i,r,o,n,e.now());e.fire("pointerEvents:new",{pointerEvent:c});for(var u={interaction:n,pointer:i,event:r,eventTarget:o,targets:l,type:s,pointerEvent:c},d=0;d<l.length;d++){var h=l[d];for(var p in h.props||{})c[p]=h.props[p];var f=ot(h.eventable,h.node);if(c._subtractOrigin(f),c.eventable=h.eventable,c.currentTarget=h.node,h.eventable.fire(c),c._addOrigin(f),c.immediatePropagationStopped||c.propagationStopped&&d+1<l.length&&l[d+1].node!==c.currentTarget)break}if(e.fire("pointerEvents:fired",u),"tap"===s){var g=c.double?ti({interaction:n,pointer:i,event:r,eventTarget:o,type:"doubletap"},e):c;n.prevTap=g,n.tapTime=g.timeStamp}return c}function ei(t,e){var n=t.interaction,i=t.pointer,r=t.event,o=t.eventTarget,s=t.type,a=n.getPointerIndex(i),l=n.pointers[a];if("tap"===s&&(n.pointerWasMoved||!l||l.downTarget!==o))return[];for(var c=q(o),u={interaction:n,pointer:i,event:r,eventTarget:o,type:s,path:c,targets:[],node:null},d=0;d<c.length;d++){var h=c[d];u.node=h,e.fire("pointerEvents:collect-targets",u)}return"hold"===s&&(u.targets=u.targets.filter((function(t){var e,i;return t.eventable.options.holdDuration===(null==(e=n.pointers[a])||null==(i=e.hold)?void 0:i.duration)}))),u.targets}function ni(t){var e=t.interaction,n=t.pointerIndex,i=e.pointers[n].hold;i&&i.timeout&&(clearTimeout(i.timeout),i.timeout=null)}var ii=Object.freeze({__proto__:null,default:$n});function ri(t){var e=t.interaction;e.holdIntervalHandle&&(clearInterval(e.holdIntervalHandle),e.holdIntervalHandle=null)}var oi={id:"pointer-events/holdRepeat",install:function(t){t.usePlugin($n);var e=t.pointerEvents;e.defaults.holdRepeatInterval=0,e.types.holdrepeat=t.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce((function(t,e){return t["pointerEvents:".concat(e)]=ri,t}),{"pointerEvents:new":function(t){var e=t.pointerEvent;"hold"===e.type&&(e.count=(e.count||0)+1)},"pointerEvents:fired":function(t,e){var n=t.interaction,i=t.pointerEvent,r=t.eventTarget,o=t.targets;if("hold"===i.type&&o.length){var s=o[0].eventable.options.holdRepeatInterval;s<=0||(n.holdIntervalHandle=setTimeout((function(){e.pointerEvents.fire({interaction:n,eventTarget:r,type:"hold",pointer:i,event:i},e)}),s))}}})},si=oi,ai={id:"pointer-events/interactableTargets",install:function(t){var e=t.Interactable;e.prototype.pointerEvents=function(t){return $(this.events.options,t),this};var n=e.prototype._backCompatOption;e.prototype._backCompatOption=function(t,e){var i=n.call(this,t,e);return i===this&&(this.events.options[t]=e),i}},listeners:{"pointerEvents:collect-targets":function(t,e){var n=t.targets,i=t.node,r=t.type,o=t.eventTarget;e.interactables.forEachMatch(i,(function(t){var e=t.events,s=e.options;e.types[r]&&e.types[r].length&&t.testIgnoreAllow(s,i,o)&&n.push({node:i,eventable:e,props:{interactable:t}})}))},"interactable:new":function(t){var e=t.interactable;e.events.getRect=function(t){return e.getRect(t)}},"interactable:set":function(t,e){var n=t.interactable,i=t.options;$(n.events.options,e.pointerEvents.defaults),$(n.events.options,i.pointerEvents||{})}}},li=ai,ci={id:"pointer-events",install:function(t){t.usePlugin(ii),t.usePlugin(si),t.usePlugin(li)}},ui=ci,di={id:"reflow",install:function(t){var e=t.Interactable;t.actions.phases.reflow=!0,e.prototype.reflow=function(e){return function(t,e,n){for(var i=t.getAllElements(),r=n.window.Promise,o=r?[]:null,s=function(){var s=i[a],l=t.getRect(s);if(!l)return 1;var c,u=St(n.interactions.list,(function(n){return n.interacting()&&n.interactable===t&&n.element===s&&n.prepared.name===e.name}));if(u)u.move(),o&&(c=u._reflowPromise||new r((function(t){u._reflowResolve=t})));else{var d=it(l),h=function(t){return{coords:t,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:d.x,y:d.y},client:{x:d.x,y:d.y},timeStamp:n.now()});c=function(t,e,n,i,r){var o=t.interactions.new({pointerType:"reflow"}),s={interaction:o,event:r,pointer:r,eventTarget:n,phase:"reflow"};o.interactable=e,o.element=n,o.prevEvent=r,o.updatePointer(r,r,n,!0),ht(o.coords.delta),re(o.prepared,i),o._doPhase(s);var a=t.window.Promise,l=a?new a((function(t){o._reflowResolve=t})):void 0;return o._reflowPromise=l,o.start(i,e,n),o._interacting?(o.move(s),o.end(r)):(o.stop(),o._reflowResolve()),o.removePointer(r,r),l}(n,t,s,e,h)}o&&o.push(c)},a=0;a<i.length&&!s();a++);return o&&r.all(o).then((function(){return t}))}(this,e,t)}},listeners:{"interactions:stop":function(t,e){var n=t.interaction;"reflow"===n.pointerType&&(n._reflowResolve&&n._reflowResolve(),function(t,e){t.splice(t.indexOf(e),1)}(e.interactions.list,n))}}},hi=di;if(An.use(Le),An.use(Ge),An.use(ui),An.use(Ke),An.use(qn),An.use(xe),An.use(Vt),An.use(ne),An.use(hi),An.default=An,"object"===i(t)&&t)try{t.exports=An}catch(e){}return An.default=An,An}()},194:(t,e)=>{"use strict";var n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},i={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};e.default={init:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function o(e,i,o){if(0!==i.length){var s="text";if(0===i.indexOf("[")){var a=i.split("]");i=a[1],s=a[0].substr(1,a[0].length-1)}if(i.indexOf(";")===i.length-1&&(i=i.substr(0,i.length-2)),"html"===s)e.html(t.t(i,u(o,e.html())));else if("text"===s)e.text(t.t(i,u(o,e.text())));else if("prepend"===s)e.prepend(t.t(i,u(o,e.html())));else if("append"===s)e.append(t.t(i,u(o,e.html())));else if(0===s.indexOf("data-")){var l=s.substr(5),c=t.t(i,u(o,e.data(l)));e.data(l,c),e.attr(s,c)}else e.attr(s,t.t(i,u(o,e.attr(s))))}function u(t,e){return r.parseDefaultValueFromContent?n({},t,{defaultValue:e}):t}}function s(t,i){var s=t.attr(r.selectorAttr);if(s||void 0===s||!1===s||(s=t.text()||t.val()),s){var a=t,l=t.data(r.targetAttr);if(l&&(a=t.find(l)||t),i||!0!==r.useOptionsAttr||(i=t.data(r.optionsAttr)),i=i||{},s.indexOf(";")>=0){var c=s.split(";");e.each(c,(function(t,e){""!==e&&o(a,e.trim(),i)}))}else o(a,s,i);if(!0===r.useOptionsAttr){var u={};delete(u=n({clone:u},i)).lng,t.data(r.optionsAttr,u)}}}r=n({},i,r),e[r.tName]=t.t.bind(t),e[r.i18nName]=t,e.fn[r.handleName]=function(t){return this.each((function(){s(e(this),t),e(this).find("["+r.selectorAttr+"]").each((function(){s(e(this),t)}))}))}}}},790:(t,e,n)=>{t.exports=n(194).default},651: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,u=o.indexOf,d={},h=d.toString,p=d.hasOwnProperty,f=p.toString,g=f.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 A(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 x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?d[h.call(t)]||"object":typeof t}var C="3.7.1",M=/HTML$/i,L=function(t,e){return new L.fn.init(t,e)};function I(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!v(t)&&!y(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}L.fn=L.prototype={jquery:C,constructor:L,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=L.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return L.each(this,t)},map:function(t){return this.pushStack(L.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(L.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(L.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},L.extend=L.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&&(L.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[e],o=r&&!Array.isArray(n)?[]:r||L.isPlainObject(n)?n:{},r=!1,s[e]=L.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},L.extend({expando:"jQuery"+(C+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]"!==h.call(t)||(e=s(t))&&("function"!=typeof(n=p.call(e,"constructor")&&e.constructor)||f.call(n)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){A(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(I(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+=L.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&&(I(Object(t))?L.merge(n,"string"==typeof t?[t]:t):c.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:u.call(e,t,n)},isXMLDoc:function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!M.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(I(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&&(L.fn[Symbol.iterator]=o[Symbol.iterator]),L.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){d["[object "+e+"]"]=e.toLowerCase()}));var S=o.pop,k=o.sort,T=o.splice,D="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+D+"+|((?:^|[^\\\\])(?:\\\\.)*)"+D+"+$","g");L.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 N=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function O(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}L.escapeSelector=function(t){return(t+"").replace(N,O)};var E=b,z=c;!function(){var t,e,n,r,s,l,c,d,h,f,g=z,v=L.expando,y=0,b=0,w=tt(),A=tt(),x=tt(),C=tt(),M=function(t,e){return t===e&&(s=!0),0},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",O="\\["+D+"*("+N+")(?:"+D+"*([*^$|!~]?=)"+D+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+D+"*\\]",F=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",R=new RegExp(D+"+","g"),P=new RegExp("^"+D+"*,"+D+"*"),Y=new RegExp("^"+D+"*([>+~]|"+D+")"+D+"*"),U=new RegExp(D+"|>"),W=new RegExp(F),B=new RegExp("^"+N+"$"),Z={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),X=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))},q=function(){lt()},K=ht((function(t){return!0===t.disabled&&_(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(o=a.call(E.childNodes),E.childNodes),o[E.childNodes.length].nodeType}catch(t){g={apply:function(t,e){z.apply(t,a.call(e))},call:function(t){z.apply(t,a.call(arguments,1))}}}function $(t,e,n,i){var r,o,s,a,c,u,p,f=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,d)){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(f&&(s=f.getElementById(r))&&$.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(!(C[t+" "]||h&&h.test(t))){if(p=t,f=e,1===y&&(U.test(t)||Y.test(t))){for((f=Q.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=L.escapeSelector(a):e.setAttribute("id",a=v)),o=(u=ut(t)).length;o--;)u[o]=(a?"#"+a:":scope")+" "+dt(u[o]);p=u.join(",")}try{return g.apply(n,f.querySelectorAll(p)),n}catch(e){C(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return yt(t.replace(j,"$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 _(e,"input")&&e.type===t}}function rt(t){return function(e){return(_(e,"input")||_(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:E;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!L.isXMLDoc(l),f=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&E!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",q),m.getById=nt((function(t){return c.appendChild(t).id=L.expando,!l.getElementsByName||!l.getElementsByName(L.expando).length})),m.disconnectedMatch=nt((function(t){return f.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(J,X);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(J,X);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&&d){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&&d)return e.getElementsByClassName(t)},h=[],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||h.push("\\["+D+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+v+"-]").length||h.push("~="),t.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),t.querySelectorAll(":checked").length||h.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&&h.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||h.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),M=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==E&&$.contains(E,t)?-1:e===l||e.ownerDocument==E&&$.contains(E,e)?1:r?u.call(r,t)-u.call(r,e):0:4&n?-1:1)},l):l}for(t in $.matches=function(t,e){return $(t,null,null,e)},$.matchesSelector=function(t,e){if(lt(t),d&&!C[e+" "]&&(!h||!h.test(e)))try{var n=f.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){C(e,!0)}return $(e,l,null,[t]).length>0},$.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),L.contains(t,e)},$.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,!d):void 0;return void 0!==r?r:t.getAttribute(n)},$.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},L.uniqueSort=function(t){var e,n=[],i=0,o=0;if(s=!m.sortStable,r=!m.sortStable&&a.call(t,0),k.call(t,M),s){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)T.call(t,n[i],1)}return r=null,t},L.fn.uniqueSort=function(){return this.pushStack(L.uniqueSort(a.apply(this)))},e=L.expr={cacheLength:50,createPseudo:et,match:Z,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(J,X),t[3]=(t[3]||t[4]||t[5]||"").replace(J,X),"~="===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]||$.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]&&$.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Z.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=ut(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,X).toLowerCase();return"*"===t?function(){return!0}:function(t){return _(t,e)}},CLASS:function(t){var e=w[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&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=$.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(R," ")+" ").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,u,d,h,p,f=o!==s?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(o){for(;f;){for(d=e;d=d[f];)if(a?_(d,m):1===d.nodeType)return!1;p=f="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?g.firstChild:g.lastChild],s&&b){for(w=(h=(c=(u=g[v]||(g[v]={}))[t]||[])[0]===y&&c[1])&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[f]||(w=h=0)||p.pop();)if(1===d.nodeType&&++w&&d===e){u[t]=[y,h,w];break}}else if(b&&(w=h=(c=(u=e[v]||(e[v]={}))[t]||[])[0]===y&&c[1]),!1===w)for(;(d=++h&&d&&d[f]||(w=h=0)||p.pop())&&(!(a?_(d,m):1===d.nodeType)||!++w||(b&&((u=d[v]||(d[v]={}))[t]=[y,w]),d!==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()]||$.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=u.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(j,"$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 $(t,e).length>0}})),contains:et((function(t){return t=t.replace(J,X),function(e){return(e.textContent||L.text(e)).indexOf(t)>-1}})),lang:et((function(t){return B.test(t||"")||$.error("unsupported lang: "+t),t=t.replace(J,X).toLowerCase(),function(e){var n;do{if(n=d?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 _(t,"input")&&!!t.checked||_(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return _(t,"input")&&"button"===t.type||_(t,"button")},text:function(t){var e;return _(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first: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 ut(t,n){var i,r,o,s,a,l,c,u=A[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=e.preFilter;a;){for(s in i&&!(r=P.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),i=!1,(r=Y.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(j," ")}),a=a.slice(i.length)),e.filter)!(r=Z[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?$.error(t):A(t,l).slice(0)}function dt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ht(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,u,d=[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(u=e[v]||(e[v]={}),r&&_(e,r))e=e[i]||e;else{if((c=u[o])&&c[0]===y&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[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 ft(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,d,h,p,f=[],m=[],v=s.length,y=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)$(t,e[i],n);return n}(e||"*",a.nodeType?[a]:a,[]),b=!t||!o&&e?y:ft(y,f,t,a,l);if(n?n(b,p=r||(o?t:v||i)?[]:s,a,l):p=b,i)for(c=ft(p,m),i(c,[],a,l),d=c.length;d--;)(h=c[d])&&(p[m[d]]=!(b[m[d]]=h));if(o){if(r||t){if(r){for(c=[],d=p.length;d--;)(h=p[d])&&c.push(b[d]=h);r(null,p=[],c,l)}for(d=p.length;d--;)(h=p[d])&&(c=r?u.call(o,h):f[d])>-1&&(o[c]=!(s[c]=h))}}else p=ft(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,d=ht((function(t){return t===i}),l,!0),h=ht((function(t){return u.call(i,t)>-1}),l,!0),p=[function(t,e,r){var o=!a&&(r||e!=n)||((i=e).nodeType?d(t,e,r):h(t,e,r));return i=null,o}];c<s;c++)if(r=e.relative[t[c].type])p=[ht(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&&dt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(j,"$1"),r,c<o&&mt(t.slice(c,o)),o<s&&mt(t=t.slice(o)),o<s&&dt(t))}p.push(r)}return pt(p)}function vt(t,i){var r,o=[],s=[],a=x[t+" "];if(!a){for(i||(i=ut(t)),r=i.length;r--;)(a=mt(i[r]))[v]?o.push(a):s.push(a);a=x(t,function(t,i){var r=i.length>0,o=t.length>0,s=function(s,a,c,u,h){var p,f,m,v=0,b="0",w=s&&[],A=[],x=n,C=s||o&&e.find.TAG("*",h),M=y+=null==x?1:Math.random()||.1,I=C.length;for(h&&(n=a==l||a||h);b!==I&&null!=(p=C[b]);b++){if(o&&p){for(f=0,a||p.ownerDocument==l||(lt(p),c=!d);m=t[f++];)if(m(p,a||l,c)){g.call(u,p);break}h&&(y=M)}r&&((p=!m&&p)&&v--,s&&w.push(p))}if(v+=b,r&&b!==v){for(f=0;m=i[f++];)m(w,A,a,c);if(s){if(v>0)for(;b--;)w[b]||A[b]||(A[b]=S.call(u));A=ft(A)}g.apply(u,A),h&&!s&&A.length>0&&v+i.length>1&&L.uniqueSort(u)}return h&&(y=M,n=x),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,u="function"==typeof t&&t,h=!r&&ut(t=u.selector||t);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&d&&e.relative[s[1].type]){if(!(n=(e.find.ID(a.matches[0].replace(J,X),n)||[])[0]))return i;u&&(n=n.parentNode),t=t.slice(s.shift().value.length)}for(o=Z.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(J,X),Q.test(s[0].type)&&at(n.parentNode)||n))){if(s.splice(o,1),!(t=r.length&&dt(s)))return g.apply(i,r),i;break}}return(u||vt(t,h))(r,n,!d,i,!n||Q.test(t)&&at(n.parentNode)||n),i}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=v.split("").sort(M).join("")===v,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),L.find=$,L.expr[":"]=L.expr.pseudos,L.unique=L.uniqueSort,$.compile=vt,$.select=yt,$.setDocument=lt,$.tokenize=ut,$.escape=L.escapeSelector,$.getText=L.text,$.isXML=L.isXMLDoc,$.selectors=L.expr,$.support=L.support,$.uniqueSort=L.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&&L(t).is(n))break;i.push(t)}return i},R=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=L.expr.match.needsContext,Y=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function U(t,e,n){return v(e)?L.grep(t,(function(t,i){return!!e.call(t,i,t)!==n})):e.nodeType?L.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?L.grep(t,(function(t){return u.call(e,t)>-1!==n})):L.filter(e,t,n)}L.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?L.find.matchesSelector(i,t)?[i]:[]:L.find.matches(t,L.grep(e,(function(t){return 1===t.nodeType})))},L.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(L(t).filter((function(){for(e=0;e<i;e++)if(L.contains(r[e],this))return!0})));for(n=this.pushStack([]),e=0;e<i;e++)L.find(t,r[e],n);return i>1?L.uniqueSort(n):n},filter:function(t){return this.pushStack(U(this,t||[],!1))},not:function(t){return this.pushStack(U(this,t||[],!0))},is:function(t){return!!U(this,"string"==typeof t&&P.test(t)?L(t):t||[],!1).length}});var W,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(L.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||W,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:B.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 L?e[0]:e,L.merge(this,L.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:b,!0)),Y.test(i[1])&&L.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(L):L.makeArray(t,this)}).prototype=L.fn,W=L(b);var Z=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}L.fn.extend({has:function(t){var e=L(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(L.contains(this,e[t]))return!0}))},closest:function(t,e){var n,i=0,r=this.length,o=[],s="string"!=typeof t&&L(t);if(!P.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&&L.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?L.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?u.call(L(t),this[0]):u.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(L.uniqueSort(L.merge(this.get(),L(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),L.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 R((t.parentNode||{}).firstChild,t)},children:function(t){return R(t.firstChild)},contents:function(t){return null!=t.contentDocument&&s(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),L.merge([],t.childNodes))}},(function(t,e){L.fn[t]=function(n,i){var r=L.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=L.filter(i,r)),this.length>1&&(H[t]||L.uniqueSort(r),Z.test(t)&&r.reverse()),this.pushStack(r)}}));var V=/[^\x20\t\r\n\f]+/g;function Q(t){return t}function J(t){throw t}function X(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])}}L.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return L.each(t.match(V)||[],(function(t,n){e[n]=!0})),e}(t):L.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){L.each(n,(function(n,i){v(i)?t.unique&&c.has(i)||o.push(i):i&&i.length&&"string"!==x(i)&&e(i)}))}(arguments),n&&!e&&l()),this},remove:function(){return L.each(arguments,(function(t,e){for(var n;(n=L.inArray(e,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(t){return t?L.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},L.extend({Deferred:function(t){var e=[["notify","progress",L.Callbacks("memory"),L.Callbacks("memory"),2],["resolve","done",L.Callbacks("once memory"),L.Callbacks("once memory"),0,"resolved"],["reject","fail",L.Callbacks("once memory"),L.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 L.Deferred((function(n){L.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,Q,r),s(o,e,J,r)):(o++,c.call(i,s(o,e,Q,r),s(o,e,J,r),s(o,e,Q,e.notifyWith))):(n!==Q&&(a=void 0,l=[i]),(r||e.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(i){L.Deferred.exceptionHook&&L.Deferred.exceptionHook(i,u.error),t+1>=o&&(n!==J&&(a=void 0,l=[i]),e.rejectWith(a,l))}};t?u():(L.Deferred.getErrorHook?u.error=L.Deferred.getErrorHook():L.Deferred.getStackHook&&(u.error=L.Deferred.getStackHook()),i.setTimeout(u))}}return L.Deferred((function(i){e[0][3].add(s(0,i,v(r)?r:Q,i.notifyWith)),e[1][3].add(s(0,i,v(t)?t:Q)),e[2][3].add(s(0,i,v(n)?n:J))})).promise()},promise:function(t){return null!=t?L.extend(t,r):r}},o={};return L.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=L.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&&(X(t,o.done(s(n)).resolve,o.reject,!e),"pending"===o.state()||v(r[n]&&r[n].then)))return o.then();for(;n--;)X(r[n],s(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;L.Deferred.exceptionHook=function(t,e){i.console&&i.console.warn&&t&&q.test(t.name)&&i.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},L.readyException=function(t){i.setTimeout((function(){throw t}))};var K=L.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),i.removeEventListener("load",$),L.ready()}L.fn.ready=function(t){return K.then(t).catch((function(t){L.readyException(t)})),this},L.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--L.readyWait:L.isReady)||(L.isReady=!0,!0!==t&&--L.readyWait>0||K.resolveWith(b,[L]))}}),L.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(L.ready):(b.addEventListener("DOMContentLoaded",$),i.addEventListener("load",$));var tt=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===x(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(L(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=L.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||L.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&&!L.isEmptyObject(e)}};var at=new st,lt=new st,ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ut=/[A-Z]/g;function dt(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ct.test(t)?JSON.parse(t):t)}(n)}catch(t){}lt.set(t,e,n)}else n=void 0;return n}L.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)}}),L.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)),dt(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=dt(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)}))}}),L.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,L.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=L.queue(t,e),i=n.length,r=n.shift(),o=L._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,(function(){L.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:L.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",n])}))})}}),L.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?L.queue(this[0],t):void 0===e?this:this.each((function(){var n=L.queue(this,t,e);L._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&L.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){L.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=L.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 ht=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pt=new RegExp("^(?:([+-])=|)("+ht+")([a-z%]*)$","i"),ft=["Top","Right","Bottom","Left"],gt=b.documentElement,mt=function(t){return L.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return L.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"===L.css(t,"display")};function bt(t,e,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return L.css(t,e,"")},l=a(),c=n&&n[3]||(L.cssNumber[e]?"":"px"),u=t.nodeType&&(L.cssNumber[e]||"px"!==c&&+l)&&pt.exec(L.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)L.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),u/=o;u*=2,L.style(t,e,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var wt={};function At(t){var e,n=t.ownerDocument,i=t.nodeName,r=wt[i];return r||(e=n.body.appendChild(n.createElement(i)),r=L.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),wt[i]=r,r)}function xt(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]=At(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}L.fn.extend({show:function(){return xt(this,!0)},hide:function(){return xt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){yt(this)?L(this).show():L(this).hide()}))}});var Ct,Mt,Lt=/^(?:checkbox|radio)$/i,It=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_t=/^$|^module$|\/(?:java|ecma)script/i;Ct=b.createDocumentFragment().appendChild(b.createElement("div")),(Mt=b.createElement("input")).setAttribute("type","radio"),Mt.setAttribute("checked","checked"),Mt.setAttribute("name","t"),Ct.appendChild(Mt),m.checkClone=Ct.cloneNode(!0).cloneNode(!0).lastChild.checked,Ct.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ct.cloneNode(!0).lastChild.defaultValue,Ct.innerHTML="<option></option>",m.option=!!Ct.lastChild;var St={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 kt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?L.merge([t],n):n}function Tt(t,e){for(var n=0,i=t.length;n<i;n++)at.set(t[n],"globalEval",!e||at.get(e[n],"globalEval"))}St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td,m.option||(St.optgroup=St.option=[1,"<select multiple='multiple'>","</select>"]);var Dt=/<|&#?\w+;/;function jt(t,e,n,i,r){for(var o,s,a,l,c,u,d=e.createDocumentFragment(),h=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===x(o))L.merge(h,o.nodeType?[o]:o);else if(Dt.test(o)){for(s=s||d.appendChild(e.createElement("div")),a=(It.exec(o)||["",""])[1].toLowerCase(),l=St[a]||St._default,s.innerHTML=l[1]+L.htmlPrefilter(o)+l[2],u=l[0];u--;)s=s.lastChild;L.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",p=0;o=h[p++];)if(i&&L.inArray(o,i)>-1)r&&r.push(o);else if(c=mt(o),s=kt(d.appendChild(o),"script"),c&&Tt(s),n)for(u=0;o=s[u++];)_t.test(o.type||"")&&n.push(o);return d}var Nt=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function Et(){return!1}function zt(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)zt(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=Et;else if(!r)return t;return 1===o&&(s=r,r=function(t){return L().off(t),s.apply(this,arguments)},r.guid=s.guid||(s.guid=L.guid++)),t.each((function(){L.event.add(this,e,r,i,n)}))}function Ft(t,e,n){n?(at.set(t,e,!1),L.event.add(t,e,{namespace:!1,handler:function(t){var n,i=at.get(this,e);if(1&t.isTrigger&&this[e]){if(i)(L.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,L.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ot)}})):void 0===at.get(t,e)&&L.event.add(t,e,Ot)}L.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=at.get(t);if(ot(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&L.find.matchesSelector(gt,r),n.guid||(n.guid=L.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==L&&L.event.triggered!==e.type?L.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(V)||[""]).length;c--;)p=g=(a=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=L.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=L.event.special[p]||{},u=L.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&L.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,f,s)||t.addEventListener&&t.addEventListener(p,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),L.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,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=Nt.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=L.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||L.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)L.event.remove(t,p+e[c],n,i,!0);L.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,s,a=new Array(arguments.length),l=L.event.fix(t),c=(at.get(this,"events")||Object.create(null))[l.type]||[],u=L.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=L.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=((L.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.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?L(r,this).index(c)>-1:L.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(L.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[L.expando]?t:new L.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click",!0),!1},trigger:function(t){var e=this||t;return Lt.test(e.type)&&e.click&&_(e,"input")&&Ft(e,"click"),!0},_default:function(t){var e=t.target;return Lt.test(e.type)&&e.click&&_(e,"input")&&at.get(e,"click")||_(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},L.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},L.Event=function(t,e){if(!(this instanceof L.Event))return new L.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ot:Et,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&&L.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[L.expando]=!0},L.Event.prototype={constructor:L.Event,isDefaultPrevented:Et,isPropagationStopped:Et,isImmediatePropagationStopped:Et,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ot,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ot,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ot,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},L.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},L.event.addProp),L.each({focus:"focusin",blur:"focusout"},(function(t,e){function n(t){if(b.documentMode){var n=at.get(this,"handle"),i=L.event.fix(t);i.type="focusin"===t.type?"focus":"blur",i.isSimulated=!0,n(t),i.target===i.currentTarget&&n(i)}else L.event.simulate(e,t.target,L.event.fix(t))}L.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},L.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))}}})),L.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){L.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||L.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}})),L.fn.extend({on:function(t,e,n,i){return zt(this,t,e,n,i)},one:function(t,e,n,i){return zt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,L(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=Et),this.each((function(){L.event.remove(this,t,n,e)}))}});var Rt=/<script|<style|<link/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ut(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&L(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Bt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Zt(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++)L.event.add(e,r,a[r][n]);lt.hasData(t)&&(o=lt.access(t),s=L.extend({},o),lt.set(e,s))}}function Ht(t,e){var n=e.nodeName.toLowerCase();"input"===n&&Lt.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,u,d=0,h=t.length,p=h-1,f=e[0],g=v(f);if(g||h>1&&"string"==typeof f&&!m.checkClone&&Pt.test(f))return t.each((function(r){var o=t.eq(r);g&&(e[0]=f.call(this,r,o.html())),Gt(o,e,n,i)}));if(h&&(o=(r=jt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(a=(s=L.map(kt(r,"script"),Wt)).length;d<h;d++)c=r,d!==p&&(c=L.clone(c,!0,!0),a&&L.merge(s,kt(c,"script"))),n.call(t[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,L.map(s,Bt),d=0;d<a;d++)c=s[d],_t.test(c.type||"")&&!at.access(c,"globalEval")&&L.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?L._evalUrl&&!c.noModule&&L._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):A(c.textContent.replace(Yt,""),c,u))}return t}function Vt(t,e,n){for(var i,r=e?L.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||L.cleanData(kt(i)),i.parentNode&&(n&&mt(i)&&Tt(kt(i,"script")),i.parentNode.removeChild(i));return t}L.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||L.isXMLDoc(t)))for(s=kt(a),i=0,r=(o=kt(t)).length;i<r;i++)Ht(o[i],s[i]);if(e)if(n)for(o=o||kt(t),s=s||kt(a),i=0,r=o.length;i<r;i++)Zt(o[i],s[i]);else Zt(t,a);return(s=kt(a,"script")).length>0&&Tt(s,!l&&kt(t,"script")),a},cleanData:function(t){for(var e,n,i,r=L.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]?L.event.remove(n,i):L.removeEvent(n,i,e.handle);n[at.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),L.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?L.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||Ut(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Ut(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&&(L.cleanData(kt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return L.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&&!Rt.test(t)&&!St[(It.exec(t)||["",""])[1].toLowerCase()]){t=L.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(L.cleanData(kt(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;L.inArray(this,t)<0&&(L.cleanData(kt(this)),n&&n.replaceChild(e,this))}),t)}}),L.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){L.fn[t]=function(t){for(var n,i=[],r=L(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),L(r[s])[e](n),c.apply(i,n.get());return this.pushStack(i)}}));var Qt=new RegExp("^("+ht+")(?!px)[a-z%]+$","i"),Jt=/^--/,Xt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=i),e.getComputedStyle(t)},qt=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(ft.join("|"),"i");function $t(t,e,n){var i,r,o,s,a=Jt.test(e),l=t.style;return(n=n||Xt(t))&&(s=n.getPropertyValue(e)||n[e],a&&s&&(s=s.replace(j,"$1")||void 0),""!==s||mt(t)||(s=L.style(t,e)),!m.pixelBoxStyles()&&Qt.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(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(c).appendChild(u);var t=i.getComputedStyle(u);n="1%"!==t.top,l=12===e(t.marginLeft),u.style.right="60%",s=36===e(t.right),r=36===e(t.width),u.style.position="absolute",o=12===e(u.offsetWidth/3),gt.removeChild(c),u=null}}function e(t){return Math.round(parseFloat(t))}var n,r,o,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,L.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){return L.cssProps[t]||ie[t]||(t in ne?t:ie[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=ee.length;n--;)if((t=ee[n]+e)in ne)return t}(t)||t)}var 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+=L.css(t,n+ft[s],!0,r)),i?("content"===n&&(l-=L.css(t,"padding"+ft[s],!0,r)),"margin"!==n&&(l-=L.css(t,"border"+ft[s]+"Width",!0,r))):(l+=L.css(t,"padding"+ft[s],!0,r),"padding"!==n?l+=L.css(t,"border"+ft[s]+"Width",!0,r):a+=L.css(t,"border"+ft[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 ue(t,e,n){var i=Xt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===L.css(t,"boxSizing",!1,i),o=r,s=$t(t,e,i),a="offset"+e[0].toUpperCase()+e.slice(1);if(Qt.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&_(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===L.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===L.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 de(t,e,n,i,r){return new de.prototype.init(t,e,n,i,r)}L.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=$t(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=Jt.test(e),c=t.style;if(l||(e=re(a)),s=L.cssHooks[e]||L.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]||(L.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 Jt.test(e)||(e=re(a)),(s=L.cssHooks[e]||L.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=$t(t,e,i)),"normal"===r&&e in ae&&(r=ae[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),L.each(["height","width"],(function(t,e){L.cssHooks[e]={get:function(t,n,i){if(n)return!oe.test(L.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ue(t,e,i):qt(t,se,(function(){return ue(t,e,i)}))},set:function(t,n,i){var r,o=Xt(t),s=!m.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===L.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=L.css(t,e)),le(0,n,l)}}})),L.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),L.each({margin:"",padding:"",border:"Width"},(function(t,e){L.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+ft[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(L.cssHooks[t+e].set=le)})),L.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=Xt(t),r=e.length;s<r;s++)o[e[s]]=L.css(t,e[s],!1,i);return o}return void 0!==n?L.style(t,e,n):L.css(t,e)}),t,e,arguments.length>1)}}),L.Tween=de,de.prototype={constructor:de,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||L.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(L.cssNumber[n]?"":"px")},cur:function(){var t=de.propHooks[this.prop];return t&&t.get?t.get(this):de.propHooks._default.get(this)},run:function(t){var e,n=de.propHooks[this.prop];return this.options.duration?this.pos=e=L.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):de.propHooks._default.set(this),this}},de.prototype.init.prototype=de.prototype,de.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=L.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){L.fx.step[t.prop]?L.fx.step[t.prop](t):1!==t.elem.nodeType||!L.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:L.style(t.elem,t.prop,t.now+t.unit)}}},de.propHooks.scrollTop=de.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},L.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},L.fx=de.prototype.init,L.fx.step={};var he,pe,fe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){pe&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(me):i.setTimeout(me,L.fx.interval),L.fx.tick())}function ve(){return i.setTimeout((function(){he=void 0})),he=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=ft[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=L.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=he||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:L.extend({},e),opts:L.extend(!0,{specialEasing:{},easing:L.easing._default},n),originalProperties:e,originalOptions:n,startTime:he||ve(),duration:n.duration,tweens:[],createTween:function(e,n){var i=L.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}}),u=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=L.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}(u,c.opts.specialEasing);o<s;o++)if(i=we.prefilters[o].call(c,t,u,c.opts))return v(i.stop)&&(L._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return L.map(u,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),L.fx.timer(L.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}L.Animation=L.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,u,d="width"in e||"height"in e,h=this,p={},f=t.style,g=t.nodeType&&yt(t),m=at.get(t,"fxshow");for(i in n.queue||(null==(s=L._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,L.queue(t,"fx").length||s.empty.fire()}))}))),e)if(r=e[i],fe.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]||L.style(t,i)}if((l=!L.isEmptyObject(e))||!L.isEmptyObject(p))for(i in d&&1===t.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=at.get(t,"display")),"none"===(u=L.css(t,"display"))&&(c?u=c:(xt([t],!0),c=t.style.display||c,u=L.css(t,"display"),xt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===L.css(t,"float")&&(l||(h.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.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&&xt([t],!0),h.done((function(){for(i in g||xt([t]),at.remove(t,"fxshow"),p)L.style(t,i,p[i])}))),l=be(g?m[i]:0,i,h),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)}}),L.speed=function(t,e,n){var i=t&&"object"==typeof t?L.extend({},t):{complete:n||!n&&e||v(t)&&t,duration:t,easing:n&&e||e&&!v(e)&&e};return L.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in L.fx.speeds?i.duration=L.fx.speeds[i.duration]:i.duration=L.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&&L.dequeue(this,i.queue)},i},L.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=L.isEmptyObject(t),o=L.speed(e,n,i),s=function(){var e=we(this,L.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=L.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||L.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=L.timers,s=i?i.length:0;for(n.finish=!0,L.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}))}}),L.each(["toggle","show","hide"],(function(t,e){var n=L.fn[e];L.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(ye(e,!0),t,i,r)}})),L.each({slideDown:ye("show"),slideUp:ye("hide"),slideToggle:ye("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){L.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}})),L.timers=[],L.fx.tick=function(){var t,e=0,n=L.timers;for(he=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||L.fx.stop(),he=void 0},L.fx.timer=function(t){L.timers.push(t),L.fx.start()},L.fx.interval=13,L.fx.start=function(){pe||(pe=!0,me())},L.fx.stop=function(){pe=null},L.fx.speeds={slow:600,fast:200,_default:400},L.fn.delay=function(t,e){return t=L.fx&&L.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 Ae,xe=L.expr.attrHandle;L.fn.extend({attr:function(t,e){return tt(this,L.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){L.removeAttr(this,t)}))}}),L.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?L.prop(t,e,n):(1===o&&L.isXMLDoc(t)||(r=L.attrHooks[e.toLowerCase()]||(L.expr.match.bool.test(e)?Ae:void 0)),void 0!==n?null===n?void L.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=L.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&_(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(V);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),Ae={set:function(t,e,n){return!1===e?L.removeAttr(t,n):t.setAttribute(n,n),n}},L.each(L.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||L.find.attr;xe[e]=function(t,e,i){var r,o,s=e.toLowerCase();return i||(o=xe[s],xe[s]=r,r=null!=n(t,e,i)?s:null,xe[s]=o),r}}));var Ce=/^(?:input|select|textarea|button)$/i,Me=/^(?:a|area)$/i;function Le(t){return(t.match(V)||[]).join(" ")}function Ie(t){return t.getAttribute&&t.getAttribute("class")||""}function _e(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(V)||[]}L.fn.extend({prop:function(t,e){return tt(this,L.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[L.propFix[t]||t]}))}}),L.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&L.isXMLDoc(t)||(e=L.propFix[e]||e,r=L.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=L.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||Me.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(L.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)}}),L.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){L.propFix[this.toLowerCase()]=this})),L.fn.extend({addClass:function(t){var e,n,i,r,o,s;return v(t)?this.each((function(e){L(this).addClass(t.call(this,e,Ie(this)))})):(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)r=e[o],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=Le(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){L(this).removeClass(t.call(this,e,Ie(this)))})):arguments.length?(e=_e(t)).length?this.each((function(){if(i=Ie(this),n=1===this.nodeType&&" "+Le(i)+" "){for(o=0;o<e.length;o++)for(r=e[o];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=Le(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){L(this).toggleClass(t.call(this,n,Ie(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(n=_e(t),this.each((function(){if(a)for(o=L(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=Ie(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&&(" "+Le(Ie(n))+" ").indexOf(e)>-1)return!0;return!1}});var Se=/\r/g;L.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,L(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=L.map(r,(function(t){return null==t?"":t+""}))),(e=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=L.valHooks[r.type]||L.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),L.extend({valHooks:{option:{get:function(t){var e=L.find.attr(t,"value");return null!=e?e:Le(L.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||!_(n.parentNode,"optgroup"))){if(e=L(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,r=t.options,o=L.makeArray(e),s=r.length;s--;)((i=r[s]).selected=L.inArray(L.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),L.each(["radio","checkbox"],(function(){L.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=L.inArray(L(t).val(),e)>-1}},m.checkOn||(L.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var ke=i.location,Te={guid:Date.now()},De=/\?/;L.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||L.error("Invalid XML: "+(n?L.map(n.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var je=/^(?:focusinfocus|focusoutblur)$/,Ne=function(t){t.stopPropagation()};L.extend(L.event,{trigger:function(t,e,n,r){var o,s,a,l,c,u,d,h,f=[n||b],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!je.test(g+L.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[L.expando]?t:new L.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]:L.makeArray(e,[t]),d=L.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,e))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||g,je.test(l+g)||(s=s.parentNode);s;s=s.parentNode)f.push(s),a=s;a===(n.ownerDocument||b)&&f.push(a.defaultView||a.parentWindow||i)}for(o=0;(s=f[o++])&&!t.isPropagationStopped();)h=s,t.type=o>1?l:d.bindType||g,(u=(at.get(s,"events")||Object.create(null))[t.type]&&at.get(s,"handle"))&&u.apply(s,e),(u=c&&s[c])&&u.apply&&ot(s)&&(t.result=u.apply(s,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),e)||!ot(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),L.event.triggered=g,t.isPropagationStopped()&&h.addEventListener(g,Ne),n[g](),t.isPropagationStopped()&&h.removeEventListener(g,Ne),L.event.triggered=void 0,a&&(n[c]=a)),t.result}},simulate:function(t,e,n){var i=L.extend(new L.Event,n,{type:t,isSimulated:!0});L.event.trigger(i,null,e)}}),L.fn.extend({trigger:function(t,e){return this.each((function(){L.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return L.event.trigger(t,e,n,!0)}});var Oe=/\[\]$/,Ee=/\r?\n/g,ze=/^(?:submit|button|image|reset|file)$/i,Fe=/^(?:input|select|textarea|keygen)/i;function Re(t,e,n,i){var r;if(Array.isArray(e))L.each(e,(function(e,r){n||Oe.test(t)?i(t,r):Re(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)}));else if(n||"object"!==x(e))i(t,e);else for(r in e)Re(t+"["+r+"]",e[r],n,i)}L.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&&!L.isPlainObject(t))L.each(t,(function(){r(this.name,this.value)}));else for(n in t)Re(n,t[n],e,r);return i.join("&")},L.fn.extend({serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=L.prop(this,"elements");return t?L.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!L(this).is(":disabled")&&Fe.test(this.nodeName)&&!ze.test(t)&&(this.checked||!Lt.test(t))})).map((function(t,e){var n=L(this).val();return null==n?null:Array.isArray(n)?L.map(n,(function(t){return{name:e.name,value:t.replace(Ee,"\r\n")}})):{name:e.name,value:n.replace(Ee,"\r\n")}})).get()}});var Pe=/%20/g,Ye=/#.*$/,Ue=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,Be=/^(?:GET|HEAD)$/,Ze=/^\/\//,He={},Ge={},Ve="*/".concat("*"),Qe=b.createElement("a");function Je(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 Xe(t,e,n,i){var r={},o=t===Ge;function s(a){var l;return r[a]=!0,L.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 qe(t,e){var n,i,r=L.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&L.extend(!0,t,i),t}Qe.href=ke.href,L.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ke.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ke.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":L.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?qe(qe(t,L.ajaxSettings),e):qe(L.ajaxSettings,t)},ajaxPrefilter:Je(He),ajaxTransport:Je(Ge),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,r,o,s,a,l,c,u,d,h,p=L.ajaxSetup({},e),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?L(f):L.event,m=L.Deferred(),v=L.Callbacks("once memory"),y=p.statusCode||{},w={},A={},x="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=We.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=A[t.toLowerCase()]=A[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)C.always(t[C.status]);else for(e in t)y[e]=[y[e],t[e]];return this},abort:function(t){var e=t||x;return n&&n.abort(e),M(0,e),this}};if(m.promise(C),p.url=((t||p.url||ke.href)+"").replace(Ze,ke.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=Qe.protocol+"//"+Qe.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=L.param(p.data,p.traditional)),Xe(He,p,e,C),c)return C;for(d in(u=L.event&&p.global)&&0==L.active++&&L.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Be.test(p.type),r=p.url.replace(Ye,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pe,"+")):(h=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=(De.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Ue,"$1"),h=(De.test(r)?"&":"?")+"_="+Te.guid+++h),p.url=r+h),p.ifModified&&(L.lastModified[r]&&C.setRequestHeader("If-Modified-Since",L.lastModified[r]),L.etag[r]&&C.setRequestHeader("If-None-Match",L.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.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)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(f,C,p)||c))return C.abort();if(x="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),n=Xe(Ge,p,e,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(a=i.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,n.send(w,M)}catch(t){if(c)throw t;M(-1,t)}}else M(-1,"No Transport");function M(t,e,s,l){var d,h,b,w,A,x=e;c||(c=!0,a&&i.clearTimeout(a),n=void 0,o=l||"",C.readyState=t>0?4:0,d=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,C,s)),!d&&L.inArray("script",p.dataTypes)>-1&&L.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.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],u.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,C,d),d?(p.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(L.lastModified[r]=A),(A=C.getResponseHeader("etag"))&&(L.etag[r]=A)),204===t||"HEAD"===p.type?x="nocontent":304===t?x="notmodified":(x=w.state,h=w.data,d=!(b=w.error))):(b=x,!t&&x||(x="error",t<0&&(t=0))),C.status=t,C.statusText=(e||x)+"",d?m.resolveWith(f,[h,x,C]):m.rejectWith(f,[C,x,b]),C.statusCode(y),y=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:b]),v.fireWith(f,[C,x]),u&&(g.trigger("ajaxComplete",[C,p]),--L.active||L.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,n){return L.get(t,e,n,"json")},getScript:function(t,e){return L.get(t,void 0,e,"script")}}),L.each(["get","post"],(function(t,e){L[e]=function(t,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),L.ajax(L.extend({url:t,type:e,dataType:r,data:n,success:i},L.isPlainObject(t)&&t))}})),L.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),L._evalUrl=function(t,e,n){return L.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){L.globalEval(t,e,n)}})},L.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=L(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){L(this).wrapInner(t.call(this,e))})):this.each((function(){var e=L(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(n){L(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){L(this).replaceWith(this.childNodes)})),this}}),L.expr.pseudos.hidden=function(t){return!L.expr.pseudos.visible(t)},L.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},L.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},$e=L.ajaxSettings.xhr();m.cors=!!$e&&"withCredentials"in $e,m.ajax=$e=!!$e,L.ajaxTransport((function(t){var e,n;if(m.cors||$e&&!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()}}})),L.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),L.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 L.globalEval(t),t}}}),L.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),L.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=L("<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=/(=)\?(?=&|$)|\?\?/;L.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=en.pop()||L.expando+"_"+Te.guid++;return this[t]=!0,t}}),L.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+=(De.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||L.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?L(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),L.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=Y.exec(t))?[e.createElement(r[1])]:(r=jt([t],e,o),o&&o.length&&L(o).remove(),L.merge([],r.childNodes)));var i,r,o},L.fn.load=function(t,e,n){var i,r,o,s=this,a=t.indexOf(" ");return a>-1&&(i=Le(t.slice(a)),t=t.slice(0,a)),v(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),s.length>0&&L.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){o=arguments,s.html(i?L("<div>").append(L.parseHTML(t)).find(i):t)})).always(n&&function(t,e){s.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},L.expr.pseudos.animated=function(t){return L.grep(L.timers,(function(e){return t===e.elem})).length},L.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=L.css(t,"position"),u=L(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=L.css(t,"top"),l=L.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,n,L.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},L.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){L.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"===L.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"===L.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=L(t).offset()).top+=L.css(t,"borderTopWidth",!0),r.left+=L.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-L.css(i,"marginTop",!0),left:e.left-r.left-L.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===L.css(t,"position");)t=t.offsetParent;return t||gt}))}}),L.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;L.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)}})),L.each(["top","left"],(function(t,e){L.cssHooks[e]=te(m.pixelPosition,(function(t,n){if(n)return n=$t(t,e),Qt.test(n)?L(t).position()[e]+"px":n}))})),L.each({Height:"height",Width:"width"},(function(t,e){L.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,i){L.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?L.css(e,n,a):L.style(e,n,r,a)}),e,s?r:void 0,s)}}))})),L.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){L.fn[e]=function(t){return this.on(e,t)}})),L.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)}}),L.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){L.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;L.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||L.guid++,r},L.holdReady=function(t){t?L.readyWait++:L.ready(!0)},L.isArray=Array.isArray,L.parseJSON=JSON.parse,L.nodeName=_,L.isFunction=v,L.isWindow=y,L.camelCase=rt,L.type=x,L.now=Date.now,L.isNumeric=function(t){var e=L.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},L.trim=function(t){return null==t?"":(t+"").replace(rn,"$1")},void 0===(n=function(){return L}.apply(e,[]))||(t.exports=n);var on=i.jQuery,sn=i.$;return L.noConflict=function(t){return i.$===L&&(i.$=sn),t&&i.jQuery===L&&(i.jQuery=on),L},void 0===r&&(i.jQuery=i.$=L),L}))},461:(t,e,n)=>{t.exports=function t(e,n,i){function r(s,a){if(!n[s]){if(!e[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};e[s][0].call(c.exports,(function(t){return r(e[s][1][t]||t)}),c,c.exports,t,e,n,i)}return n[s].exports}for(var o=void 0,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,r,s,a,l,c,u=[],d=0,h=t.length,p=h,f="string"!==i.getTypeOf(t);d<t.length;)p=h-d,r=f?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),s=e>>2,a=(3&e)<<4|n>>4,l=1<p?(15&n)<<2|r>>6:64,c=2<p?63&r:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},n.decode=function(t){var e,n,i,s,a,l,c=0,u=0,d="data:";if(t.substr(0,5)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=r.uint8array?new Uint8Array(0|p):new Array(0|p);c<t.length;)e=o.indexOf(t.charAt(c++))<<2|(s=o.indexOf(t.charAt(c++)))>>4,n=(15&s)<<4|(a=o.indexOf(t.charAt(c++)))>>2,i=(3&a)<<6|(l=o.indexOf(t.charAt(c++))),h[u++]=e,64!==a&&(h[u++]=n),64!==l&&(h[u++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),r=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),s=t("./stream/DataLengthProbe");function a(t,e,n,i,r){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var t=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new r(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,n){return t.pipe(new o).pipe(new s("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),r=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e[s])];return~t}(0|e,t,t.length):function(t,e,n){var i=r,o=0+n;t^=-1;for(var s=0;s<o;s++)t=t>>>8^i[255&(t^e.charCodeAt(s))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,r=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),a=i?"uint8array":"array";function l(t,e){s.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,t.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new r[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function r(t,e,n,r,s,u){var d,h,p=t.file,f=t.compression,g=u!==a.utf8encode,m=o.transformTo("string",u(p.name)),v=o.transformTo("string",a.utf8encode(p.name)),y=p.comment,b=o.transformTo("string",u(y)),w=o.transformTo("string",a.utf8encode(y)),A=v.length!==p.name.length,x=w.length!==y.length,C="",M="",L="",I=p.dir,_=p.date,S={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(S.crc32=t.crc32,S.compressedSize=t.compressedSize,S.uncompressedSize=t.uncompressedSize);var k=0;e&&(k|=8),g||!A&&!x||(k|=2048);var T=0,D=0;I&&(T|=16),"UNIX"===s?(D=798,T|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(p.unixPermissions,I)):(D=20,T|=function(t){return 63&(t||0)}(p.dosPermissions)),d=_.getUTCHours(),d<<=6,d|=_.getUTCMinutes(),d<<=5,d|=_.getUTCSeconds()/2,h=_.getUTCFullYear()-1980,h<<=4,h|=_.getUTCMonth()+1,h<<=5,h|=_.getUTCDate(),A&&(M=i(1,1)+i(l(m),4)+v,C+="up"+i(M.length,2)+M),x&&(L=i(1,1)+i(l(b),4)+w,C+="uc"+i(L.length,2)+L);var j="";return j+="\n\0",j+=i(k,2),j+=f.magic,j+=i(d,2),j+=i(h,2),j+=i(S.crc32,4),j+=i(S.compressedSize,4),j+=i(S.uncompressedSize,4),j+=i(m.length,2),j+=i(C.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+m+C,dirRecord:c.CENTRAL_FILE_HEADER+i(D,2)+j+i(b.length,2)+"\0\0\0\0"+i(T,4)+i(r,4)+m+C+b}}var o=t("../utils"),s=t("../stream/GenericWorker"),a=t("../utf8"),l=t("../crc32"),c=t("../signature");function u(t,e,n,i){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,s.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},u.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=r(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=r(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return c.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,r=function(t,e,n,r,s){var a=o.transformTo("string",s(r));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(a.length,2)+a}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:r,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(t){var e=this._sources;if(!s.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),r=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var o=new r(e.streamFiles,n,e.platform,e.encodeFileName),s=0;try{t.forEach((function(t,n){s++;var r=function(t,e){var n=t||e,r=i[n];if(!r)throw new Error(n+" is not a valid compression method !");return r}(n.options.compression,e.compression),a=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,c=n.date;n._compressWorker(r,a).withStreamInfo("file",{name:t,dir:l,date:c,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=s}catch(t){o.error(t)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.10.1",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),r=t("./external"),o=t("./utf8"),s=t("./zipEntries"),a=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function c(t){return new r.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new a);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(t)?r.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new s(e);return n.load(t),n})).then((function(t){var n=[r.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var o=0;o<i.length;o++)n.push(c(i[o]));return r.Promise.all(n)})).then((function(t){for(var r=t.shift(),o=r.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=i.resolve(a.fileNameStr);n.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders}),a.dir||(n.file(c).unsafeOriginalName=l)}return r.zipComment.length&&(n.comment=r.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../stream/GenericWorker");function o(t,e){r.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(o,r),o.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},o.prototype.pause=function(){return!!r.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function r(t,e,n){i.call(this,e),this._helper=t;var r=this;t.on("data",(function(t,e){r.push(t)||r._helper.pause(),n&&n(e)})).on("error",(function(t){r.emit("error",t)})).on("end",(function(){r.push(null)}))}t("../utils").inherits(r,i),r.prototype._read=function(){this._helper.resume()},e.exports=r},{"../utils":32,"readable-stream":16}],14:[function(t,e,n){"use strict";e.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(t,e){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(t,e);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new Buffer(t,e)},allocBuffer:function(t){if(Buffer.alloc)return Buffer.alloc(t);var e=new Buffer(t);return e.fill(0),e},isBuffer:function(t){return Buffer.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,r=o.getTypeOf(e),a=o.extend(n||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(t=g(t)),a.createFolders&&(i=f(t))&&m.call(this,i,!0);var d="string"===r&&!1===a.binary&&!1===a.base64;n&&void 0!==n.binary||(a.binary=!d),(e instanceof c&&0===e.uncompressedSize||a.dir||!e||0===e.length)&&(a.base64=!1,a.binary=!0,e="",a.compression="STORE",r="string");var v;v=e instanceof c||e instanceof s?e:h.isNode&&h.isStream(e)?new p(t,e):o.prepareContent(t,e,a.binary,a.optimizedBinaryString,a.base64);var y=new u(t,v,a);this.files[t]=y}var r=t("./utf8"),o=t("./utils"),s=t("./stream/GenericWorker"),a=t("./stream/StreamHelper"),l=t("./defaults"),c=t("./compressedObject"),u=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),p=t("./nodejs/NodejsStreamInputAdapter"),f=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},g=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},m=function(t,e){return e=void 0!==e?e:l.createFolders,t=g(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function v(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i)},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(v(t)){var r=t;return this.filter((function(t,e){return!e.dir&&r.test(t)}))}var o=this.files[this.root+t];return o&&!o.dir?o:null},folder:function(t){if(!t)return this;if(v(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=m.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=o.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:r.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");o.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new s("error")).error(t)}return new a(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=y},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){"use strict";e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data[this.zero+t]},r.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===e&&this.data[o+1]===n&&this.data[o+2]===i&&this.data[o+3]===r)return o-this.zero;return-1},r.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),r=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&n===o[1]&&i===o[2]&&r===o[3]},r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function r(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}r.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=r},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},r.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},r.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},r.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function r(t){i.call(this,t)}t("../utils").inherits(r,i),r.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=r},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),r=t("../support"),o=t("./ArrayReader"),s=t("./StringReader"),a=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||r.uint8array?"nodebuffer"===e?new a(t):r.uint8array?new l(i.transformTo("uint8array",t)):new o(i.transformTo("array",t)):new s(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK",n.CENTRAL_FILE_HEADER="PK",n.CENTRAL_DIRECTORY_END="PK",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",n.ZIP64_CENTRAL_DIRECTORY_END="PK",n.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../utils");function o(t){i.call(this,"ConvertWorker to "+t),this.destType=t}r.inherits(o,i),o.prototype.processChunk=function(t){this.push({data:r.transformTo(this.destType,t.data),meta:t.meta})},e.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),r=t("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(o,i),o.prototype.processChunk=function(t){this.streamInfo.crc32=r(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(o,r),o.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}r.prototype.processChunk.call(this,t)},e.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./GenericWorker");function o(t){r.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(o,r),o.prototype.cleanUp=function(){r.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!r.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,e,n){"use strict";var i=t("../utils"),r=t("./ConvertWorker"),o=t("./GenericWorker"),s=t("../base64"),a=t("../support"),l=t("../external"),c=null;if(a.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function u(t,e,n){var s=e;switch(e){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=e,this._mimeType=n,i.checkSupport(s),this._worker=t.pipe(new r(s)),t.lock()}catch(t){this._worker=new o("error"),this._worker.error(t)}}u.prototype={accumulate:function(t){return function(t,e){return new l.Promise((function(n,r){var o=[],a=t._internalType,l=t._outputType,c=t._mimeType;t.on("data",(function(t,n){o.push(t),e&&e(n)})).on("error",(function(t){o=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return i.newBlob(i.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return i.transformTo(t,e)}}(l,function(t,e){var n,i=0,r=null,o=0;for(n=0;n<e.length;n++)o+=e[n].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(r=new Uint8Array(o),n=0;n<e.length;n++)r.set(e[n],i),i+=e[n].length;return r;case"nodebuffer":return Buffer.concat(e);default:throw new Error("concat : unsupported type '"+t+"'")}}(a,o),c);n(t)}catch(t){r(t)}o=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){i.delay(e,arguments,n)})),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(i.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},e.exports=u},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,e,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof Buffer,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var i=new ArrayBuffer(0);try{n.blob=0===new Blob([i],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),n.blob=0===r.getBlob("application/zip").size}catch(t){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(t){n.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),r=t("./support"),o=t("./nodejsUtils"),s=t("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,n.utf8encode=function(t){return r.nodebuffer?o.newBufferFrom(t,"utf-8"):function(t){var e,n,i,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=r.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e}(t)},n.utf8decode=function(t){return r.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,r,o,s=t.length,l=new Array(2*s);for(e=n=0;e<s;)if((r=t[e++])<128)l[n++]=r;else if(4<(o=a[r]))l[n++]=65533,e+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&e<s;)r=r<<6|63&t[e++],o--;1<o?l[n++]=65533:r<65536?l[n++]=r:(r-=65536,l[n++]=55296|r>>10&1023,l[n++]=56320|1023&r)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(r.uint8array?"uint8array":"array",t))},i.inherits(c,s),c.prototype.processChunk=function(t){var e=i.transformTo(r.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=e;(e=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),e.set(o,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var s=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}(e),l=e;s!==e.length&&(r.uint8array?(l=e.subarray(0,s),this.leftOver=e.subarray(s,e.length)):(l=e.slice(0,s),this.leftOver=e.slice(s,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=c,i.inherits(u,s),u.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),r=t("./base64"),o=t("./nodejsUtils"),s=t("./external");function a(t){return t}function l(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}t("setimmediate"),n.newBlob=function(t,e){n.checkSupport("blob");try{return new Blob([t],{type:e})}catch(n){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(e)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],r=0,o=t.length;if(o<=n)return String.fromCharCode.apply(null,t);for(;r<o;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(r,Math.min(r+n,o)))):i.push(String.fromCharCode.apply(null,t.subarray(r,Math.min(r+n,o)))),r+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(t){return!1}}()}};function u(t){var e=65536,i=n.getTypeOf(t),r=!0;if("uint8array"===i?r=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(r=c.applyCanBeUsed.nodebuffer),r)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function d(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=u;var h={};h.string={string:a,array:function(t){return l(t,new Array(t.length))},arraybuffer:function(t){return h.string.uint8array(t).buffer},uint8array:function(t){return l(t,new Uint8Array(t.length))},nodebuffer:function(t){return l(t,o.allocBuffer(t.length))}},h.array={string:u,array:a,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(t)}},h.arraybuffer={string:function(t){return u(new Uint8Array(t))},array:function(t){return d(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:a,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return o.newBufferFrom(new Uint8Array(t))}},h.uint8array={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:a,nodebuffer:function(t){return o.newBufferFrom(t)}},h.nodebuffer={string:u,array:function(t){return d(t,new Array(t.length))},arraybuffer:function(t){return h.nodebuffer.uint8array(t).buffer},uint8array:function(t){return d(t,new Uint8Array(t.length))},nodebuffer:a},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return h[i][t](e)},n.resolve=function(t){for(var e=t.split("/"),n=[],i=0;i<e.length;i++){var r=e[i];"."===r||""===r&&0!==i&&i!==e.length-1||(".."===r?n.pop():n.push(r))}return n.join("/")},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&o.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){setImmediate((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,o,a,c){return s.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var u=n.getTypeOf(e);return u?("arraybuffer"===u?e=n.transformTo("uint8array",e):"string"===u&&(c?e=r.decode(e):o&&!0!==a&&(e=function(t){return l(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./signature"),s=t("./zipEntry"),a=t("./support");function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+r.pretty(e)+", expected "+r.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=a.uint8array?"uint8array":"array",n=r.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(t=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===r.MAX_VALUE_16BITS||this.diskWithCentralDirStart===r.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===r.MAX_VALUE_16BITS||this.centralDirRecords===r.MAX_VALUE_16BITS||this.centralDirSize===r.MAX_VALUE_32BITS||this.centralDirOffset===r.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,o.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),r=t("./utils"),o=t("./compressedObject"),s=t("./crc32"),a=t("./utf8"),l=t("./compressions"),c=t("./support");function u(t,e){this.options=t,this.loadOptions=e}u.prototype={isEncrypted:function(){return!(1&~this.bitFlag)},useUTF8:function(){return!(2048&~this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(Object.prototype.hasOwnProperty.call(l,e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(t){var e,n,i,r=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<r;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(r)},handleUTF8:function(){var t=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=r.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileName)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||s(this.fileComment)!==e.readInt(4)?null:a.utf8decode(e.readData(t.length-5))}return null}},e.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var r=t("./stream/StreamHelper"),o=t("./stream/DataWorker"),s=t("./utf8"),a=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var o=!this._dataBinary;o&&!i&&(e=e.pipe(new s.Utf8EncodeWorker)),!o&&i&&(e=e.pipe(new s.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new r(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof a&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)i.prototype[c[d]]=u;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,r=t.MutationObserver||t.WebKitMutationObserver;if(r){var o=0,s=new r(u),a=t.document.createTextNode("");s.observe(a,{characterData:!0}),n=function(){a.data=o=++o%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){u(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(u,0)};else{var l=new t.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var t,e;i=!0;for(var n=c.length;n;){for(e=c,c=[],t=-1;++t<n;)e[t]();n=c.length}i=!1}e.exports=function(t){1!==c.push(t)||i||n()}}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function r(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==r&&p(this,t)}function u(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return o.reject(t,i)}i===t?o.reject(t,new TypeError("Cannot resolve promise with itself")):o.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function p(t,e){var n=!1;function i(e){n||(n=!0,o.reject(t,e))}function r(e){n||(n=!0,o.resolve(t,e))}var s=f((function(){e(r,i)}));"error"===s.status&&i(s.value)}function f(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=c).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},c.prototype.catch=function(t){return this.then(null,t)},c.prototype.then=function(t,e){if("function"!=typeof t&&this.state===a||"function"!=typeof e&&this.state===s)return this;var n=new this.constructor(r);return this.state!==l?d(n,this.state===a?t:e,this.outcome):this.queue.push(new u(n,t,e)),n},u.prototype.callFulfilled=function(t){o.resolve(this.promise,t)},u.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},u.prototype.callRejected=function(t){o.reject(this.promise,t)},u.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},o.resolve=function(t,e){var n=f(h,e);if("error"===n.status)return o.reject(t,n.value);var i=n.value;if(i)p(t,i);else{t.state=a,t.outcome=e;for(var r=-1,s=t.queue.length;++r<s;)t.queue[r].callFulfilled(e)}return t},o.reject=function(t,e){t.state=s,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},c.resolve=function(t){return t instanceof this?t:o.resolve(new this(r),t)},c.reject=function(t){var e=new this(r);return o.reject(e,t)},c.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var s=new Array(n),a=0,l=-1,c=new this(r);++l<n;)u(t[l],l);return c;function u(t,r){e.resolve(t).then((function(t){s[r]=t,++a!==n||i||(i=!0,o.resolve(c,s))}),(function(t){i||(i=!0,o.reject(c,t))}))}},c.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,s=-1,a=new this(r);++s<e;)i=t[s],this.resolve(i).then((function(t){n||(n=!0,o.resolve(a,t))}),(function(t){n||(n=!0,o.reject(a,t))}));return a}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/messages"),a=t("./zlib/zstream"),l=Object.prototype.toString;function c(t){if(!(this instanceof c))return new c(t);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(s[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var u;if(u="string"==typeof e.dictionary?o.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,u)))throw new Error(s[n]);this._dict_set=!0}}function u(t,e){var n=new c(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}c.prototype.push=function(t,e){var n,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=e===~~e?e:!0===e?4:0,"string"==typeof t?a.input=o.string2buf(t):"[object ArrayBuffer]"===l.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(c),a.next_out=0,a.avail_out=c),1!==(n=i.deflate(a,s))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==n);return 4===s?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==s||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(t){this.chunks.push(t)},c.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=c,n.deflate=u,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,u(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,u(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),r=t("./utils/common"),o=t("./utils/strings"),s=t("./zlib/constants"),a=t("./zlib/messages"),l=t("./zlib/zstream"),c=t("./zlib/gzheader"),u=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&!(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==s.Z_OK)throw new Error(a[n]);this.header=new c,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}d.prototype.push=function(t,e){var n,a,l,c,d,h,p=this.strm,f=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;a=e===~~e?e:!0===e?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof t?p.input=o.binstring2buf(t):"[object ArrayBuffer]"===u.call(t)?p.input=new Uint8Array(t):p.input=t,p.next_in=0,p.avail_in=p.input.length;do{if(0===p.avail_out&&(p.output=new r.Buf8(f),p.next_out=0,p.avail_out=f),(n=i.inflate(p,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&g&&(h="string"==typeof g?o.string2buf(g):"[object ArrayBuffer]"===u.call(g)?new Uint8Array(g):g,n=i.inflateSetDictionary(this.strm,h)),n===s.Z_BUF_ERROR&&!0===m&&(n=s.Z_OK,m=!1),n!==s.Z_STREAM_END&&n!==s.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(0!==p.avail_out&&n!==s.Z_STREAM_END&&(0!==p.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(p.output,p.next_out),c=p.next_out-l,d=o.buf2string(p.output,l),p.next_out=c,p.avail_out=f-c,c&&r.arraySet(p.output,p.output,l,c,0),this.onData(d)):this.onData(r.shrinkBuf(p.output,p.next_out)))),0===p.avail_in&&0===p.avail_out&&(m=!0)}while((0<p.avail_in||0===p.avail_out)&&n!==s.Z_STREAM_END);return n===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var r={arraySet:function(t,e,n,i,r){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),r);else for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){var e,n,i,r,o,s;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(s=new Uint8Array(i),e=r=0,n=t.length;e<n;e++)o=t[e],s.set(o,r),r+=o.length;return s}},o={arraySet:function(t,e,n,i,r){for(var o=0;o<i;o++)t[r+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,r)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),r=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(t){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){o=!1}for(var s=new i.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(t,e){if(e<65537&&(t.subarray&&o||!t.subarray&&r))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",s=0;s<e;s++)n+=String.fromCharCode(t[s]);return n}s[254]=s[254]=1,n.string2buf=function(t){var e,n,r,o,s,a=t.length,l=0;for(o=0;o<a;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),o=s=0;s<l;o++)55296==(64512&(n=t.charCodeAt(o)))&&o+1<a&&56320==(64512&(r=t.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(r-56320),o++),n<128?e[s++]=n:(n<2048?e[s++]=192|n>>>6:(n<65536?e[s++]=224|n>>>12:(e[s++]=240|n>>>18,e[s++]=128|n>>>12&63),e[s++]=128|n>>>6&63),e[s++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,r=e.length;n<r;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,r,o,a=e||t.length,c=new Array(2*a);for(n=i=0;n<a;)if((r=t[n++])<128)c[i++]=r;else if(4<(o=s[r]))c[i++]=65533,n+=o-1;else{for(r&=2===o?31:3===o?15:7;1<o&&n<a;)r=r<<6|63&t[n++],o--;1<o?c[i++]=65533:r<65536?c[i++]=r:(r-=65536,c[i++]=55296|r>>10&1023,c[i++]=56320|1023&r)}return l(c,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var r=65535&t,o=t>>>16&65535,s=0;0!==n;){for(n-=s=2e3<n?2e3:n;o=o+(r=r+e[i++]|0)|0,--s;);r%=65521,o%=65521}return r|o<<16}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,r){var o=i,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return~t}},{}],46:[function(t,e,n){"use strict";var i,r=t("../utils/common"),o=t("./trees"),s=t("./adler32"),a=t("./crc32"),l=t("./messages"),c=-2,u=258,d=262,h=113;function p(t,e){return t.msg=l[e],e}function f(t){return(t<<1)-(4<t?9:0)}function g(t){for(var e=t.length;0<=--e;)t[e]=0}function m(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(r.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function v(t,e){o._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,m(t.strm)}function y(t,e){t.pending_buf[t.pending++]=e}function b(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function w(t,e){var n,i,r=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,c=t.window,h=t.w_mask,p=t.prev,f=t.strstart+u,g=c[o+s-1],m=c[o+s];t.prev_length>=t.good_match&&(r>>=2),a>t.lookahead&&(a=t.lookahead);do{if(c[(n=e)+s]===m&&c[n+s-1]===g&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(i=u-(f-o),o=f-u,s<i){if(t.match_start=e,a<=(s=i))break;g=c[o+s-1],m=c[o+s]}}}while((e=p[e&h])>l&&0!=--r);return s<=t.lookahead?s:t.lookahead}function A(t){var e,n,i,o,l,c,u,h,p,f,g=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=g+(g-d)){for(r.arraySet(t.window,t.window,g,g,0),t.match_start-=g,t.strstart-=g,t.block_start-=g,e=n=t.hash_size;i=t.head[--e],t.head[e]=g<=i?i-g:0,--n;);for(e=n=g;i=t.prev[--e],t.prev[e]=g<=i?i-g:0,--n;);o+=g}if(0===t.strm.avail_in)break;if(c=t.strm,u=t.window,h=t.strstart+t.lookahead,f=void 0,(p=o)<(f=c.avail_in)&&(f=p),n=0===f?0:(c.avail_in-=f,r.arraySet(u,c.input,c.next_in,f,h),1===c.state.wrap?c.adler=s(c.adler,u,f,h):2===c.state.wrap&&(c.adler=a(c.adler,u,f,h)),c.next_in+=f,c.total_in+=f,f),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function x(t,e){for(var n,i;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n)),t.match_length>=3)if(i=o._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function C(t,e){for(var n,i,r;;){if(t.lookahead<d){if(A(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=w(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(r=t.strstart+t.lookahead-3,i=o._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=r&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(v(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=o._tr_tally(t,0,t.window[t.strstart-1]))&&v(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=o._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}function M(t,e,n,i,r){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=r}function L(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),g(this.dyn_ltree),g(this.dyn_dtree),g(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),g(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),g(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,o._tr_init(e),0):p(t,c)}function _(t){var e=I(t);return 0===e&&function(t){t.window_size=2*t.w_size,g(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function S(t,e,n,i,o,s){if(!t)return c;var a=1;if(-1===e&&(e=6),i<0?(a=0,i=-i):15<i&&(a=2,i-=16),o<1||9<o||8!==n||i<8||15<i||e<0||9<e||s<0||4<s)return p(t,c);8===i&&(i=9);var l=new L;return(t.state=l).strm=t,l.wrap=a,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=s,l.method=n,_(t)}i=[new M(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(A(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,v(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(v(t,!1),t.strm.avail_out),1)})),new M(4,4,8,4,x),new M(4,5,16,8,x),new M(4,6,32,32,x),new M(4,4,16,16,C),new M(8,16,32,32,C),new M(8,16,128,128,C),new M(8,32,128,256,C),new M(32,128,258,1024,C),new M(32,258,258,4096,C)],n.deflateInit=function(t,e){return S(t,e,8,15,8,0)},n.deflateInit2=S,n.deflateReset=_,n.deflateResetKeep=I,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?c:(t.state.gzhead=e,0):c},n.deflate=function(t,e){var n,r,s,l;if(!t||!t.state||5<e||e<0)return t?p(t,c):c;if(r=t.state,!t.output||!t.input&&0!==t.avail_in||666===r.status&&4!==e)return p(t,0===t.avail_out?-5:c);if(r.strm=t,n=r.last_flush,r.last_flush=e,42===r.status)if(2===r.wrap)t.adler=0,y(r,31),y(r,139),y(r,8),r.gzhead?(y(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),y(r,255&r.gzhead.time),y(r,r.gzhead.time>>8&255),y(r,r.gzhead.time>>16&255),y(r,r.gzhead.time>>24&255),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(y(r,255&r.gzhead.extra.length),y(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(t.adler=a(t.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(y(r,0),y(r,0),y(r,0),y(r,0),y(r,0),y(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),y(r,3),r.status=h);else{var d=8+(r.w_bits-8<<4)<<8;d|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(d|=32),d+=31-d%31,r.status=h,b(r,d),0!==r.strstart&&(b(r,t.adler>>>16),b(r,65535&t.adler)),t.adler=1}if(69===r.status)if(r.gzhead.extra){for(s=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending!==r.pending_buf_size));)y(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){s=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),m(t),s=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,y(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>s&&(t.adler=a(t.adler,r.pending_buf,r.pending-s,s)),0===l&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&m(t),r.pending+2<=r.pending_buf_size&&(y(r,255&t.adler),y(r,t.adler>>8&255),t.adler=0,r.status=h)):r.status=h),0!==r.pending){if(m(t),0===t.avail_out)return r.last_flush=-1,0}else if(0===t.avail_in&&f(e)<=f(n)&&4!==e)return p(t,-5);if(666===r.status&&0!==t.avail_in)return p(t,-5);if(0!==t.avail_in||0!==r.lookahead||0!==e&&666!==r.status){var w=2===r.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(A(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):3===r.strategy?function(t,e){for(var n,i,r,s,a=t.window;;){if(t.lookahead<=u){if(A(t),t.lookahead<=u&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=a[r=t.strstart-1])===a[++r]&&i===a[++r]&&i===a[++r]){s=t.strstart+u;do{}while(i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&i===a[++r]&&r<s);t.match_length=u-(s-r),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=o._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=o._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(v(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(v(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(v(t,!1),0===t.strm.avail_out)?1:2}(r,e):i[r.level].func(r,e);if(3!==w&&4!==w||(r.status=666),1===w||3===w)return 0===t.avail_out&&(r.last_flush=-1),0;if(2===w&&(1===e?o._tr_align(r):5!==e&&(o._tr_stored_block(r,0,0,!1),3===e&&(g(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),m(t),0===t.avail_out))return r.last_flush=-1,0}return 4!==e?0:r.wrap<=0?1:(2===r.wrap?(y(r,255&t.adler),y(r,t.adler>>8&255),y(r,t.adler>>16&255),y(r,t.adler>>24&255),y(r,255&t.total_in),y(r,t.total_in>>8&255),y(r,t.total_in>>16&255),y(r,t.total_in>>24&255)):(b(r,t.adler>>>16),b(r,65535&t.adler)),m(t),0<r.wrap&&(r.wrap=-r.wrap),0!==r.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?p(t,c):(t.state=null,e===h?p(t,-3):0):c},n.deflateSetDictionary=function(t,e){var n,i,o,a,l,u,d,h,p=e.length;if(!t||!t.state)return c;if(2===(a=(n=t.state).wrap)||1===a&&42!==n.status||n.lookahead)return c;for(1===a&&(t.adler=s(t.adler,e,p,0)),n.wrap=0,p>=n.w_size&&(0===a&&(g(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new r.Buf8(n.w_size),r.arraySet(h,e,p-n.w_size,n.w_size,0),e=h,p=n.w_size),l=t.avail_in,u=t.next_in,d=t.input,t.avail_in=p,t.next_in=0,t.input=e,A(n);n.lookahead>=3;){for(i=n.strstart,o=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--o;);n.strstart=i,n.lookahead=2,A(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=u,t.input=d,t.avail_in=l,n.wrap=a,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I;n=t.state,i=t.next_in,L=t.input,r=i+(t.avail_in-5),o=t.next_out,I=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,g=n.lencode,m=n.distcode,v=(1<<n.lenbits)-1,y=(1<<n.distbits)-1;t:do{f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=g[p&v];e:for(;;){if(p>>>=w=b>>>24,f-=w,0==(w=b>>>16&255))I[o++]=65535&b;else{if(!(16&w)){if(!(64&w)){b=g[(65535&b)+(p&(1<<w)-1)];continue e}if(32&w){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}A=65535&b,(w&=15)&&(f<w&&(p+=L[i++]<<f,f+=8),A+=p&(1<<w)-1,p>>>=w,f-=w),f<15&&(p+=L[i++]<<f,f+=8,p+=L[i++]<<f,f+=8),b=m[p&y];n:for(;;){if(p>>>=w=b>>>24,f-=w,!(16&(w=b>>>16&255))){if(!(64&w)){b=m[(65535&b)+(p&(1<<w)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,f<(w&=15)&&(p+=L[i++]<<f,(f+=8)<w&&(p+=L[i++]<<f,f+=8)),l<(x+=p&(1<<w)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(p>>>=w,f-=w,(w=o-s)<x){if(u<(w=x-w)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(M=h,(C=0)===d){if(C+=c-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}}else if(d<w){if(C+=c+d-w,(w-=d)<A){for(A-=w;I[o++]=h[C++],--w;);if(C=0,d<A){for(A-=w=d;I[o++]=h[C++],--w;);C=o-x,M=I}}}else if(C+=d-w,w<A){for(A-=w;I[o++]=h[C++],--w;);C=o-x,M=I}for(;2<A;)I[o++]=M[C++],I[o++]=M[C++],I[o++]=M[C++],A-=3;A&&(I[o++]=M[C++],1<A&&(I[o++]=M[C++]))}else{for(C=o-x;I[o++]=I[C++],I[o++]=I[C++],I[o++]=I[C++],2<(A-=3););A&&(I[o++]=I[C++],1<A&&(I[o++]=I[C++]))}break}}break}}while(i<r&&o<a);i-=A=f>>3,p&=(1<<(f-=A<<3))-1,t.next_in=i,t.next_out=o,t.avail_in=i<r?r-i+5:5-(i-r),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=p,n.bits=f}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),r=t("./adler32"),o=t("./crc32"),s=t("./inffast"),a=t("./inftrees"),l=-2;function c(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function p(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function f(t,e){var n,i;return t?(i=new u,(t.state=i).window=null,0!==(n=p(t,e))&&(t.state=null),n):l}var g,m,v=!0;function y(t){if(v){var e;for(g=new i.Buf32(512),m=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(a(1,t.lens,0,288,g,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;a(2,t.lens,0,32,m,0,t.work,{bits:5}),v=!1}t.lencode=g,t.lenbits=9,t.distcode=m,t.distbits=5}function b(t,e,n,r){var o,s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new i.Buf8(s.wsize)),r>=s.wsize?(i.arraySet(s.window,e,n-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(r<(o=s.wsize-s.wnext)&&(o=r),i.arraySet(s.window,e,n-r,o,s.wnext),(r-=o)?(i.arraySet(s.window,e,n-r,r,0),s.wnext=r,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}n.inflateReset=h,n.inflateReset2=p,n.inflateResetKeep=d,n.inflateInit=function(t){return f(t,15)},n.inflateInit2=f,n.inflate=function(t,e){var n,u,d,h,p,f,g,m,v,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=0,z=new i.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,w=f,A=g,j=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(2&n.wrap&&35615===m){z[n.check=0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0),v=m=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){t.msg="unknown compression method",n.mode=30;break}if(v-=4,D=8+(15&(m>>>=4)),0===n.wbits)n.wbits=D;else if(D>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<D,t.adler=n.check=1,n.mode=512&m?10:12,v=m=0;break;case 2:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.flags=m,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=3;case 3:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.time=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,z[2]=m>>>16&255,z[3]=m>>>24&255,n.check=o(n.check,z,4,0)),v=m=0,n.mode=4;case 4:for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0,n.mode=5;case 5:if(1024&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(z[0]=255&m,z[1]=m>>>8&255,n.check=o(n.check,z,2,0)),v=m=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(f<(x=n.length)&&(x=f),x&&(n.head&&(D=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,u,h,x,D)),512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,n.length-=x),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.name+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===f)break t;for(x=0;D=u[h+x++],n.head&&D&&n.length<65536&&(n.head.comment+=String.fromCharCode(D)),D&&x<f;);if(512&n.flags&&(n.check=o(n.check,u,x,h)),f-=x,h+=x,D)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;v<16;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}v=m=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}t.adler=n.check=c(m),v=m=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){m>>>=7&v,v-=7&v,n.mode=27;break}for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}switch(n.last=1&m,v-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6!==e)break;m>>>=2,v-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}m>>>=2,v-=2;break;case 14:for(m>>>=7&v,v-=7&v;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if((65535&m)!=(m>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,v=m=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(x=n.length){if(f<x&&(x=f),g<x&&(x=g),0===x)break t;i.arraySet(d,u,h,x,p),f-=x,h+=x,g-=x,p+=x,n.length-=x;break}n.mode=12;break;case 17:for(;v<14;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(n.nlen=257+(31&m),m>>>=5,v-=5,n.ndist=1+(31&m),m>>>=5,v-=5,n.ncode=4+(15&m),m>>>=4,v-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;v<3;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.lens[F[n.have++]]=7&m,m>>>=3,v-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},j=a(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(_<16)m>>>=L,v-=L,n.lens[n.have++]=_;else{if(16===_){for(O=L+2;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m>>>=L,v-=L,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}D=n.lens[n.have-1],x=3+(3&m),m>>>=2,v-=2}else if(17===_){for(O=L+3;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=3+(7&(m>>>=L)),m>>>=3,v-=3}else{for(O=L+7;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}v-=L,D=0,x=11+(127&(m>>>=L)),m>>>=7,v-=7}if(n.have+x>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=D}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,N={bits:n.lenbits},j=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,j){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},j=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,j){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=f&&258<=g){t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,s(t,A),p=t.next_out,d=t.output,g=t.avail_out,h=t.next_in,u=t.input,f=t.avail_in,m=n.hold,v=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(E=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(I&&!(240&I)){for(S=L,k=I,T=_;I=(E=n.lencode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,n.length=_,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(E=n.distcode[m&(1<<n.distbits)-1])>>>16&255,_=65535&E,!((L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(!(240&I)){for(S=L,k=I,T=_;I=(E=n.distcode[T+((m&(1<<S+k)-1)>>S)])>>>16&255,_=65535&E,!(S+(L=E>>>24)<=v);){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}m>>>=S,v-=S,n.back+=S}if(m>>>=L,v-=L,n.back+=L,64&I){t.msg="invalid distance code",n.mode=30;break}n.offset=_,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(O=n.extra;v<O;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,v-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===g)break t;if(x=A-g,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}C=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),M=n.window}else M=d,C=p-n.offset,x=n.length;for(g<x&&(x=g),g-=x,n.length-=x;d[p++]=M[C++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===g)break t;d[p++]=n.length,g--,n.mode=21;break;case 27:if(n.wrap){for(;v<32;){if(0===f)break t;f--,m|=u[h++]<<v,v+=8}if(A-=g,t.total_out+=A,n.total+=A,A&&(t.adler=n.check=n.flags?o(n.check,d,A,p-A):r(n.check,d,A,p-A)),A=g,(n.flags?m:c(m))!==n.check){t.msg="incorrect data check",n.mode=30;break}v=m=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;v<32;){if(0===f)break t;f--,m+=u[h++]<<v,v+=8}if(m!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}v=m=0}n.mode=29;case 29:j=1;break t;case 30:j=-3;break t;case 31:return-4;default:return l}return t.next_out=p,t.avail_out=g,t.next_in=h,t.avail_in=f,n.hold=m,n.bits=v,(n.wsize||A!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&b(t,t.output,t.next_out,A-t.avail_out)?(n.mode=31,-4):(w-=t.avail_in,A-=t.avail_out,t.total_in+=w,t.total_out+=A,n.total+=A,n.wrap&&A&&(t.adler=n.check=n.flags?o(n.check,d,A,t.next_out-A):r(n.check,d,A,t.next_out-A)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==w&&0===A||4===e)&&0===j&&(j=-5),j)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state&&2&(n=t.state).wrap?((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&r(1,e,i,0)!==n.check?-3:b(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),r=[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],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[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,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,c,u,d,h){var p,f,g,m,v,y,b,w,A,x=h.bits,C=0,M=0,L=0,I=0,_=0,S=0,k=0,T=0,D=0,j=0,N=null,O=0,E=new i.Buf16(16),z=new i.Buf16(16),F=null,R=0;for(C=0;C<=15;C++)E[C]=0;for(M=0;M<l;M++)E[e[n+M]]++;for(_=x,I=15;1<=I&&0===E[I];I--);if(I<_&&(_=I),0===I)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(L=1;L<I&&0===E[L];L++);for(_<L&&(_=L),C=T=1;C<=15;C++)if(T<<=1,(T-=E[C])<0)return-1;if(0<T&&(0===t||1!==I))return-1;for(z[1]=0,C=1;C<15;C++)z[C+1]=z[C]+E[C];for(M=0;M<l;M++)0!==e[n+M]&&(d[z[e[n+M]]++]=M);if(y=0===t?(N=F=d,19):1===t?(N=r,O-=257,F=o,R-=257,256):(N=s,F=a,-1),C=L,v=u,k=M=j=0,g=-1,m=(D=1<<(S=_))-1,1===t&&852<D||2===t&&592<D)return 1;for(;;){for(b=C-k,A=d[M]<y?(w=0,d[M]):d[M]>y?(w=F[R+d[M]],N[O+d[M]]):(w=96,0),p=1<<C-k,L=f=1<<S;c[v+(j>>k)+(f-=p)]=b<<24|w<<16|A,0!==f;);for(p=1<<C-1;j&p;)p>>=1;if(0!==p?(j&=p-1,j+=p):j=0,M++,0==--E[C]){if(C===I)break;C=e[n+d[M]]}if(_<C&&(j&m)!==g){for(0===k&&(k=_),v+=L,T=1<<(S=C-k);S+k<I&&!((T-=E[S+k])<=0);)S++,T<<=1;if(D+=1<<S,1===t&&852<D||2===t&&592<D)return 1;c[g=j&m]=_<<24|S<<16|v-u}}return 0!==j&&(c[v+j]=C-k<<24|64<<16),h.bits=_,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function r(t){for(var e=t.length;0<=--e;)t[e]=0}var o=256,s=286,a=30,l=15,c=[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],u=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);r(p);var f=new Array(60);r(f);var g=new Array(512);r(g);var m=new Array(256);r(m);var v=new Array(29);r(v);var y,b,w,A=new Array(a);function x(t,e,n,i,r){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=r,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function M(t){return t<256?g[t]:g[256+(t>>>7)]}function L(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function I(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,L(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function _(t,e,n){I(t,n[2*e],n[2*e+1])}function S(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function k(t,e,n){var i,r,o=new Array(16),s=0;for(i=1;i<=l;i++)o[i]=s=s+n[i-1]<<1;for(r=0;r<=e;r++){var a=t[2*r+1];0!==a&&(t[2*r]=S(o[a]++,a))}}function T(t){var e;for(e=0;e<s;e++)t.dyn_ltree[2*e]=0;for(e=0;e<a;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function D(t){8<t.bi_valid?L(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function j(t,e,n,i){var r=2*e,o=2*n;return t[r]<t[o]||t[r]===t[o]&&i[e]<=i[n]}function N(t,e,n){for(var i=t.heap[n],r=n<<1;r<=t.heap_len&&(r<t.heap_len&&j(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!j(e,i,t.heap[r],t.depth));)t.heap[n]=t.heap[r],n=r,r<<=1;t.heap[n]=i}function O(t,e,n){var i,r,s,a,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],r=t.pending_buf[t.l_buf+l],l++,0===i?_(t,r,e):(_(t,(s=m[r])+o+1,e),0!==(a=c[s])&&I(t,r-=v[s],a),_(t,s=M(--i),n),0!==(a=u[s])&&I(t,i-=A[s],a)),l<t.last_lit;);_(t,256,e)}function E(t,e){var n,i,r,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,c=e.stat_desc.elems,u=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(t.heap[++t.heap_len]=u=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)o[2*(r=t.heap[++t.heap_len]=u<2?++u:0)]=1,t.depth[r]=0,t.opt_len--,a&&(t.static_len-=s[2*r+1]);for(e.max_code=u,n=t.heap_len>>1;1<=n;n--)N(t,o,n);for(r=c;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],N(t,o,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,o[2*r]=o[2*n]+o[2*i],t.depth[r]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,o[2*n+1]=o[2*i+1]=r,t.heap[1]=r++,N(t,o,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,r,o,s,a,c=e.dyn_tree,u=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,g=e.stat_desc.max_length,m=0;for(o=0;o<=l;o++)t.bl_count[o]=0;for(c[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)g<(o=c[2*c[2*(i=t.heap[n])+1]+1]+1)&&(o=g,m++),c[2*i+1]=o,u<i||(t.bl_count[o]++,s=0,f<=i&&(s=p[i-f]),a=c[2*i],t.opt_len+=a*(o+s),h&&(t.static_len+=a*(d[2*i+1]+s)));if(0!==m){do{for(o=g-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(i=t.bl_count[o];0!==i;)u<(r=t.heap[--n])||(c[2*r+1]!==o&&(t.opt_len+=(o-c[2*r+1])*c[2*r],c[2*r+1]=o),i--)}}(t,e),k(o,u,t.bl_count)}function z(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)r=s,s=e[2*(i+1)+1],++a<l&&r===s||(a<c?t.bl_tree[2*r]+=a:0!==r?(r!==o&&t.bl_tree[2*r]++,t.bl_tree[32]++):a<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4))}function F(t,e,n){var i,r,o=-1,s=e[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),i=0;i<=n;i++)if(r=s,s=e[2*(i+1)+1],!(++a<l&&r===s)){if(a<c)for(;_(t,r,t.bl_tree),0!=--a;);else 0!==r?(r!==o&&(_(t,r,t.bl_tree),a--),_(t,16,t.bl_tree),I(t,a-3,2)):a<=10?(_(t,17,t.bl_tree),I(t,a-3,3)):(_(t,18,t.bl_tree),I(t,a-11,7));o=r,c=(a=0)===s?(l=138,3):r===s?(l=6,3):(l=7,4)}}r(A);var R=!1;function P(t,e,n,r){I(t,0+(r?1:0),3),function(t,e,n){D(t),L(t,n),L(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){R||(function(){var t,e,n,i,r,o=new Array(16);for(i=n=0;i<28;i++)for(v[i]=n,t=0;t<1<<c[i];t++)m[n++]=i;for(m[n-1]=i,i=r=0;i<16;i++)for(A[i]=r,t=0;t<1<<u[i];t++)g[r++]=i;for(r>>=7;i<a;i++)for(A[i]=r<<7,t=0;t<1<<u[i]-7;t++)g[256+r++]=i;for(e=0;e<=l;e++)o[e]=0;for(t=0;t<=143;)p[2*t+1]=8,t++,o[8]++;for(;t<=255;)p[2*t+1]=9,t++,o[9]++;for(;t<=279;)p[2*t+1]=7,t++,o[7]++;for(;t<=287;)p[2*t+1]=8,t++,o[8]++;for(k(p,287,o),t=0;t<a;t++)f[2*t+1]=5,f[2*t]=S(t,5);y=new x(p,c,257,s,l),b=new x(f,u,0,a,l),w=new x(new Array(0),d,0,19,7)}(),R=!0),t.l_desc=new C(t.dyn_ltree,y),t.d_desc=new C(t.dyn_dtree,b),t.bl_desc=new C(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,T(t)},n._tr_stored_block=P,n._tr_flush_block=function(t,e,n,i){var r,s,a=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<o;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),E(t,t.l_desc),E(t,t.d_desc),a=function(t){var e;for(z(t,t.dyn_ltree,t.l_desc.max_code),z(t,t.dyn_dtree,t.d_desc.max_code),E(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),r=t.opt_len+3+7>>>3,(s=t.static_len+3+7>>>3)<=r&&(r=s)):r=s=n+5,n+4<=r&&-1!==e?P(t,e,n,i):4===t.strategy||s===r?(I(t,2+(i?1:0),3),O(t,p,f)):(I(t,4+(i?1:0),3),function(t,e,n,i){var r;for(I(t,e-257,5),I(t,n-1,5),I(t,i-4,4),r=0;r<i;r++)I(t,t.bl_tree[2*h[r]+1],3);F(t,t.dyn_ltree,e-1),F(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),O(t,t.dyn_ltree,t.dyn_dtree)),T(t),i&&D(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(m[n]+o+1)]++,t.dyn_dtree[2*M(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){I(t,2,3),_(t,256,p),function(t){16===t.bi_valid?(L(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,i){(function(t){!function(t){"use strict";if(!t.setImmediate){var e,n,i,r,o=1,s={},a=!1,l=t.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(t);c=c&&c.setTimeout?c:t,e="[object process]"==={}.toString.call(t.process)?function(t){process.nextTick((function(){d(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?(r="setImmediate$"+Math.random()+"$",t.addEventListener?t.addEventListener("message",h,!1):t.attachEvent("onmessage",h),function(e){t.postMessage(r+e,"*")}):t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){i.port2.postMessage(t)}):l&&"onreadystatechange"in l.createElement("script")?(n=l.documentElement,function(t){var e=l.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,n.removeChild(e),e=null},n.appendChild(e)}):function(t){setTimeout(d,0,t)},c.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var n=new Array(arguments.length-1),i=0;i<n.length;i++)n[i]=arguments[i+1];var r={callback:t,args:n};return s[o]=r,e(o),o++},c.clearImmediate=u}function u(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var e=s[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(undefined,n)}}(e)}finally{u(t),a=!1}}}}function h(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(r)&&d(+e.data.slice(r.length))}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,void 0!==n.g?n.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},998:(t,e,n)=>{var i,r;!function(){var o,s,a,l,c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k,T,D,j,N,O,E=function(t){var e=new E.Builder;return e.pipeline.add(E.trimmer,E.stopWordFilter,E.stemmer),e.searchPipeline.add(E.stemmer),t.call(e,e),e.build()};E.version="2.3.9",E.utils={},E.utils.warn=(o=this,function(t){o.console&&console.warn&&console.warn(t)}),E.utils.asString=function(t){return null==t?"":t.toString()},E.utils.clone=function(t){if(null==t)return t;for(var e=Object.create(null),n=Object.keys(t),i=0;i<n.length;i++){var r=n[i],o=t[r];if(Array.isArray(o))e[r]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");e[r]=o}}return e},E.FieldRef=function(t,e,n){this.docRef=t,this.fieldName=e,this._stringValue=n},E.FieldRef.joiner="/",E.FieldRef.fromString=function(t){var e=t.indexOf(E.FieldRef.joiner);if(-1===e)throw"malformed field ref string";var n=t.slice(0,e),i=t.slice(e+1);return new E.FieldRef(i,n,t)},E.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+E.FieldRef.joiner+this.docRef),this._stringValue},E.Set=function(t){if(this.elements=Object.create(null),t){this.length=t.length;for(var e=0;e<this.length;e++)this.elements[t[e]]=!0}else this.length=0},E.Set.complete={intersect:function(t){return t},union:function(){return this},contains:function(){return!0}},E.Set.empty={intersect:function(){return this},union:function(t){return t},contains:function(){return!1}},E.Set.prototype.contains=function(t){return!!this.elements[t]},E.Set.prototype.intersect=function(t){var e,n,i,r=[];if(t===E.Set.complete)return this;if(t===E.Set.empty)return t;this.length<t.length?(e=this,n=t):(e=t,n=this),i=Object.keys(e.elements);for(var o=0;o<i.length;o++){var s=i[o];s in n.elements&&r.push(s)}return new E.Set(r)},E.Set.prototype.union=function(t){return t===E.Set.complete?E.Set.complete:t===E.Set.empty?this:new E.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},E.idf=function(t,e){var n=0;for(var i in t)"_index"!=i&&(n+=Object.keys(t[i]).length);var r=(e-n+.5)/(n+.5);return Math.log(1+Math.abs(r))},E.Token=function(t,e){this.str=t||"",this.metadata=e||{}},E.Token.prototype.toString=function(){return this.str},E.Token.prototype.update=function(t){return this.str=t(this.str,this.metadata),this},E.Token.prototype.clone=function(t){return t=t||function(t){return t},new E.Token(t(this.str,this.metadata),this.metadata)},E.tokenizer=function(t,e){if(null==t||null==t)return[];if(Array.isArray(t))return t.map((function(t){return new E.Token(E.utils.asString(t).toLowerCase(),E.utils.clone(e))}));for(var n=t.toString().toLowerCase(),i=n.length,r=[],o=0,s=0;o<=i;o++){var a=o-s;if(n.charAt(o).match(E.tokenizer.separator)||o==i){if(a>0){var l=E.utils.clone(e)||{};l.position=[s,a],l.index=r.length,r.push(new E.Token(n.slice(s,o),l))}s=o+1}}return r},E.tokenizer.separator=/[\s\-]+/,E.Pipeline=function(){this._stack=[]},E.Pipeline.registeredFunctions=Object.create(null),E.Pipeline.registerFunction=function(t,e){e in this.registeredFunctions&&E.utils.warn("Overwriting existing registered function: "+e),t.label=e,E.Pipeline.registeredFunctions[t.label]=t},E.Pipeline.warnIfFunctionNotRegistered=function(t){t.label&&t.label in this.registeredFunctions||E.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},E.Pipeline.load=function(t){var e=new E.Pipeline;return t.forEach((function(t){var n=E.Pipeline.registeredFunctions[t];if(!n)throw new Error("Cannot load unregistered function: "+t);e.add(n)})),e},E.Pipeline.prototype.add=function(){Array.prototype.slice.call(arguments).forEach((function(t){E.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)}),this)},E.Pipeline.prototype.after=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");n+=1,this._stack.splice(n,0,e)},E.Pipeline.prototype.before=function(t,e){E.Pipeline.warnIfFunctionNotRegistered(e);var n=this._stack.indexOf(t);if(-1==n)throw new Error("Cannot find existingFn");this._stack.splice(n,0,e)},E.Pipeline.prototype.remove=function(t){var e=this._stack.indexOf(t);-1!=e&&this._stack.splice(e,1)},E.Pipeline.prototype.run=function(t){for(var e=this._stack.length,n=0;n<e;n++){for(var i=this._stack[n],r=[],o=0;o<t.length;o++){var s=i(t[o],o,t);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)r.push(s[a]);else r.push(s)}t=r}return t},E.Pipeline.prototype.runString=function(t,e){var n=new E.Token(t,e);return this.run([n]).map((function(t){return t.toString()}))},E.Pipeline.prototype.reset=function(){this._stack=[]},E.Pipeline.prototype.toJSON=function(){return this._stack.map((function(t){return E.Pipeline.warnIfFunctionNotRegistered(t),t.label}))},E.Vector=function(t){this._magnitude=0,this.elements=t||[]},E.Vector.prototype.positionForIndex=function(t){if(0==this.elements.length)return 0;for(var e=0,n=this.elements.length/2,i=n-e,r=Math.floor(i/2),o=this.elements[2*r];i>1&&(o<t&&(e=r),o>t&&(n=r),o!=t);)i=n-e,r=e+Math.floor(i/2),o=this.elements[2*r];return o==t||o>t?2*r:o<t?2*(r+1):void 0},E.Vector.prototype.insert=function(t,e){this.upsert(t,e,(function(){throw"duplicate index"}))},E.Vector.prototype.upsert=function(t,e,n){this._magnitude=0;var i=this.positionForIndex(t);this.elements[i]==t?this.elements[i+1]=n(this.elements[i+1],e):this.elements.splice(i,0,t,e)},E.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var t=0,e=this.elements.length,n=1;n<e;n+=2){var i=this.elements[n];t+=i*i}return this._magnitude=Math.sqrt(t)},E.Vector.prototype.dot=function(t){for(var e=0,n=this.elements,i=t.elements,r=n.length,o=i.length,s=0,a=0,l=0,c=0;l<r&&c<o;)(s=n[l])<(a=i[c])?l+=2:s>a?c+=2:s==a&&(e+=n[l+1]*i[c+1],l+=2,c+=2);return e},E.Vector.prototype.similarity=function(t){return this.dot(t)/this.magnitude()||0},E.Vector.prototype.toArray=function(){for(var t=new Array(this.elements.length/2),e=1,n=0;e<this.elements.length;e+=2,n++)t[n]=this.elements[e];return t},E.Vector.prototype.toJSON=function(){return this.elements},E.stemmer=(s={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},a={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},d="^("+(c="[^aeiou][^aeiouy]*")+")?"+(u=(l="[aeiouy]")+"[aeiou]*")+c+"("+u+")?$",h="^("+c+")?"+u+c+u+c,p="^("+c+")?"+l,f=new RegExp("^("+c+")?"+u+c),g=new RegExp(h),m=new RegExp(d),v=new RegExp(p),y=/^(.+?)(ss|i)es$/,b=/^(.+?)([^s])s$/,w=/^(.+?)eed$/,A=/^(.+?)(ed|ing)$/,x=/.$/,C=/(at|bl|iz)$/,M=new RegExp("([^aeiouylsz])\\1$"),L=new RegExp("^"+c+l+"[^aeiouwxy]$"),I=/^(.+?[^aeiou])y$/,_=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,S=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,k=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,T=/^(.+?)(s|t)(ion)$/,D=/^(.+?)e$/,j=/ll$/,N=new RegExp("^"+c+l+"[^aeiouwxy]$"),O=function(t){var e,n,i,r,o,l,c;if(t.length<3)return t;if("y"==(i=t.substr(0,1))&&(t=i.toUpperCase()+t.substr(1)),o=b,(r=y).test(t)?t=t.replace(r,"$1$2"):o.test(t)&&(t=t.replace(o,"$1$2")),o=A,(r=w).test(t)){var u=r.exec(t);(r=f).test(u[1])&&(r=x,t=t.replace(r,""))}else o.test(t)&&(e=(u=o.exec(t))[1],(o=v).test(e)&&(l=M,c=L,(o=C).test(t=e)?t+="e":l.test(t)?(r=x,t=t.replace(r,"")):c.test(t)&&(t+="e")));return(r=I).test(t)&&(t=(e=(u=r.exec(t))[1])+"i"),(r=_).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+s[n])),(r=S).test(t)&&(e=(u=r.exec(t))[1],n=u[2],(r=f).test(e)&&(t=e+a[n])),o=T,(r=k).test(t)?(e=(u=r.exec(t))[1],(r=g).test(e)&&(t=e)):o.test(t)&&(e=(u=o.exec(t))[1]+u[2],(o=g).test(e)&&(t=e)),(r=D).test(t)&&(e=(u=r.exec(t))[1],o=m,l=N,((r=g).test(e)||o.test(e)&&!l.test(e))&&(t=e)),o=g,(r=j).test(t)&&o.test(t)&&(r=x,t=t.replace(r,"")),"y"==i&&(t=i.toLowerCase()+t.substr(1)),t},function(t){return t.update(O)}),E.Pipeline.registerFunction(E.stemmer,"stemmer"),E.generateStopWordFilter=function(t){var e=t.reduce((function(t,e){return t[e]=e,t}),{});return function(t){if(t&&e[t.toString()]!==t.toString())return t}},E.stopWordFilter=E.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),E.Pipeline.registerFunction(E.stopWordFilter,"stopWordFilter"),E.trimmer=function(t){return t.update((function(t){return t.replace(/^\W+/,"").replace(/\W+$/,"")}))},E.Pipeline.registerFunction(E.trimmer,"trimmer"),E.TokenSet=function(){this.final=!1,this.edges={},this.id=E.TokenSet._nextId,E.TokenSet._nextId+=1},E.TokenSet._nextId=1,E.TokenSet.fromArray=function(t){for(var e=new E.TokenSet.Builder,n=0,i=t.length;n<i;n++)e.insert(t[n]);return e.finish(),e.root},E.TokenSet.fromClause=function(t){return"editDistance"in t?E.TokenSet.fromFuzzyString(t.term,t.editDistance):E.TokenSet.fromString(t.term)},E.TokenSet.fromFuzzyString=function(t,e){for(var n=new E.TokenSet,i=[{node:n,editsRemaining:e,str:t}];i.length;){var r=i.pop();if(r.str.length>0){var o,s=r.str.charAt(0);s in r.node.edges?o=r.node.edges[s]:(o=new E.TokenSet,r.node.edges[s]=o),1==r.str.length&&(o.final=!0),i.push({node:o,editsRemaining:r.editsRemaining,str:r.str.slice(1)})}if(0!=r.editsRemaining){if("*"in r.node.edges)var a=r.node.edges["*"];else a=new E.TokenSet,r.node.edges["*"]=a;if(0==r.str.length&&(a.final=!0),i.push({node:a,editsRemaining:r.editsRemaining-1,str:r.str}),r.str.length>1&&i.push({node:r.node,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)}),1==r.str.length&&(r.node.final=!0),r.str.length>=1){if("*"in r.node.edges)var l=r.node.edges["*"];else l=new E.TokenSet,r.node.edges["*"]=l;1==r.str.length&&(l.final=!0),i.push({node:l,editsRemaining:r.editsRemaining-1,str:r.str.slice(1)})}if(r.str.length>1){var c,u=r.str.charAt(0),d=r.str.charAt(1);d in r.node.edges?c=r.node.edges[d]:(c=new E.TokenSet,r.node.edges[d]=c),1==r.str.length&&(c.final=!0),i.push({node:c,editsRemaining:r.editsRemaining-1,str:u+r.str.slice(2)})}}}return n},E.TokenSet.fromString=function(t){for(var e=new E.TokenSet,n=e,i=0,r=t.length;i<r;i++){var o=t[i],s=i==r-1;if("*"==o)e.edges[o]=e,e.final=s;else{var a=new E.TokenSet;a.final=s,e.edges[o]=a,e=a}}return n},E.TokenSet.prototype.toArray=function(){for(var t=[],e=[{prefix:"",node:this}];e.length;){var n=e.pop(),i=Object.keys(n.node.edges),r=i.length;n.node.final&&(n.prefix.charAt(0),t.push(n.prefix));for(var o=0;o<r;o++){var s=i[o];e.push({prefix:n.prefix.concat(s),node:n.node.edges[s]})}}return t},E.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var t=this.final?"1":"0",e=Object.keys(this.edges).sort(),n=e.length,i=0;i<n;i++){var r=e[i];t=t+r+this.edges[r].id}return t},E.TokenSet.prototype.intersect=function(t){for(var e=new E.TokenSet,n=void 0,i=[{qNode:t,output:e,node:this}];i.length;){n=i.pop();for(var r=Object.keys(n.qNode.edges),o=r.length,s=Object.keys(n.node.edges),a=s.length,l=0;l<o;l++)for(var c=r[l],u=0;u<a;u++){var d=s[u];if(d==c||"*"==c){var h=n.node.edges[d],p=n.qNode.edges[c],f=h.final&&p.final,g=void 0;d in n.output.edges?(g=n.output.edges[d]).final=g.final||f:((g=new E.TokenSet).final=f,n.output.edges[d]=g),i.push({qNode:p,output:g,node:h})}}}return e},E.TokenSet.Builder=function(){this.previousWord="",this.root=new E.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},E.TokenSet.Builder.prototype.insert=function(t){var e,n=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var i=0;i<t.length&&i<this.previousWord.length&&t[i]==this.previousWord[i];i++)n++;for(this.minimize(n),e=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child,i=n;i<t.length;i++){var r=new E.TokenSet,o=t[i];e.edges[o]=r,this.uncheckedNodes.push({parent:e,char:o,child:r}),e=r}e.final=!0,this.previousWord=t},E.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},E.TokenSet.Builder.prototype.minimize=function(t){for(var e=this.uncheckedNodes.length-1;e>=t;e--){var n=this.uncheckedNodes[e],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}},E.Index=function(t){this.invertedIndex=t.invertedIndex,this.fieldVectors=t.fieldVectors,this.tokenSet=t.tokenSet,this.fields=t.fields,this.pipeline=t.pipeline},E.Index.prototype.search=function(t){return this.query((function(e){new E.QueryParser(t,e).parse()}))},E.Index.prototype.query=function(t){for(var e=new E.Query(this.fields),n=Object.create(null),i=Object.create(null),r=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)i[this.fields[a]]=new E.Vector;for(t.call(e,e),a=0;a<e.clauses.length;a++){var l,c=e.clauses[a],u=E.Set.empty;l=c.usePipeline?this.pipeline.runString(c.term,{fields:c.fields}):[c.term];for(var d=0;d<l.length;d++){var h=l[d];c.term=h;var p=E.TokenSet.fromClause(c),f=this.tokenSet.intersect(p).toArray();if(0===f.length&&c.presence===E.Query.presence.REQUIRED){for(var g=0;g<c.fields.length;g++)o[D=c.fields[g]]=E.Set.empty;break}for(var m=0;m<f.length;m++){var v=f[m],y=this.invertedIndex[v],b=y._index;for(g=0;g<c.fields.length;g++){var w=y[D=c.fields[g]],A=Object.keys(w),x=v+"/"+D,C=new E.Set(A);if(c.presence==E.Query.presence.REQUIRED&&(u=u.union(C),void 0===o[D]&&(o[D]=E.Set.complete)),c.presence!=E.Query.presence.PROHIBITED){if(i[D].upsert(b,c.boost,(function(t,e){return t+e})),!r[x]){for(var M=0;M<A.length;M++){var L,I=A[M],_=new E.FieldRef(I,D),S=w[I];void 0===(L=n[_])?n[_]=new E.MatchData(v,D,S):L.add(v,D,S)}r[x]=!0}}else void 0===s[D]&&(s[D]=E.Set.empty),s[D]=s[D].union(C)}}}if(c.presence===E.Query.presence.REQUIRED)for(g=0;g<c.fields.length;g++)o[D=c.fields[g]]=o[D].intersect(u)}var k=E.Set.complete,T=E.Set.empty;for(a=0;a<this.fields.length;a++){var D;o[D=this.fields[a]]&&(k=k.intersect(o[D])),s[D]&&(T=T.union(s[D]))}var j=Object.keys(n),N=[],O=Object.create(null);if(e.isNegated())for(j=Object.keys(this.fieldVectors),a=0;a<j.length;a++){_=j[a];var z=E.FieldRef.fromString(_);n[_]=new E.MatchData}for(a=0;a<j.length;a++){var F=(z=E.FieldRef.fromString(j[a])).docRef;if(k.contains(F)&&!T.contains(F)){var R,P=this.fieldVectors[z],Y=i[z.fieldName].similarity(P);if(void 0!==(R=O[F]))R.score+=Y,R.matchData.combine(n[z]);else{var U={ref:F,score:Y,matchData:n[z]};O[F]=U,N.push(U)}}}return N.sort((function(t,e){return e.score-t.score}))},E.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map((function(t){return[t,this.invertedIndex[t]]}),this),e=Object.keys(this.fieldVectors).map((function(t){return[t,this.fieldVectors[t].toJSON()]}),this);return{version:E.version,fields:this.fields,fieldVectors:e,invertedIndex:t,pipeline:this.pipeline.toJSON()}},E.Index.load=function(t){var e={},n={},i=t.fieldVectors,r=Object.create(null),o=t.invertedIndex,s=new E.TokenSet.Builder,a=E.Pipeline.load(t.pipeline);t.version!=E.version&&E.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+E.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<i.length;l++){var c=(d=i[l])[0],u=d[1];n[c]=new E.Vector(u)}for(l=0;l<o.length;l++){var d,h=(d=o[l])[0],p=d[1];s.insert(h),r[h]=p}return s.finish(),e.fields=t.fields,e.fieldVectors=n,e.invertedIndex=r,e.tokenSet=s.root,e.pipeline=a,new E.Index(e)},E.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=E.tokenizer,this.pipeline=new E.Pipeline,this.searchPipeline=new E.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},E.Builder.prototype.ref=function(t){this._ref=t},E.Builder.prototype.field=function(t,e){if(/\//.test(t))throw new RangeError("Field '"+t+"' contains illegal character '/'");this._fields[t]=e||{}},E.Builder.prototype.b=function(t){this._b=t<0?0:t>1?1:t},E.Builder.prototype.k1=function(t){this._k1=t},E.Builder.prototype.add=function(t,e){var n=t[this._ref],i=Object.keys(this._fields);this._documents[n]=e||{},this.documentCount+=1;for(var r=0;r<i.length;r++){var o=i[r],s=this._fields[o].extractor,a=s?s(t):t[o],l=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(l),u=new E.FieldRef(n,o),d=Object.create(null);this.fieldTermFrequencies[u]=d,this.fieldLengths[u]=0,this.fieldLengths[u]+=c.length;for(var h=0;h<c.length;h++){var p=c[h];if(null==d[p]&&(d[p]=0),d[p]+=1,null==this.invertedIndex[p]){var f=Object.create(null);f._index=this.termIndex,this.termIndex+=1;for(var g=0;g<i.length;g++)f[i[g]]=Object.create(null);this.invertedIndex[p]=f}null==this.invertedIndex[p][o][n]&&(this.invertedIndex[p][o][n]=Object.create(null));for(var m=0;m<this.metadataWhitelist.length;m++){var v=this.metadataWhitelist[m],y=p.metadata[v];null==this.invertedIndex[p][o][n][v]&&(this.invertedIndex[p][o][n][v]=[]),this.invertedIndex[p][o][n][v].push(y)}}}},E.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),e=t.length,n={},i={},r=0;r<e;r++){var o=E.FieldRef.fromString(t[r]),s=o.fieldName;i[s]||(i[s]=0),i[s]+=1,n[s]||(n[s]=0),n[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(r=0;r<a.length;r++){var l=a[r];n[l]=n[l]/i[l]}this.averageFieldLength=n},E.Builder.prototype.createFieldVectors=function(){for(var t={},e=Object.keys(this.fieldTermFrequencies),n=e.length,i=Object.create(null),r=0;r<n;r++){for(var o=E.FieldRef.fromString(e[r]),s=o.fieldName,a=this.fieldLengths[o],l=new E.Vector,c=this.fieldTermFrequencies[o],u=Object.keys(c),d=u.length,h=this._fields[s].boost||1,p=this._documents[o.docRef].boost||1,f=0;f<d;f++){var g,m,v,y=u[f],b=c[y],w=this.invertedIndex[y]._index;void 0===i[y]?(g=E.idf(this.invertedIndex[y],this.documentCount),i[y]=g):g=i[y],m=g*((this._k1+1)*b)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+b),m*=h,m*=p,v=Math.round(1e3*m)/1e3,l.insert(w,v)}t[o]=l}this.fieldVectors=t},E.Builder.prototype.createTokenSet=function(){this.tokenSet=E.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},E.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new E.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},E.Builder.prototype.use=function(t){var e=Array.prototype.slice.call(arguments,1);e.unshift(this),t.apply(this,e)},E.MatchData=function(t,e,n){for(var i=Object.create(null),r=Object.keys(n||{}),o=0;o<r.length;o++){var s=r[o];i[s]=n[s].slice()}this.metadata=Object.create(null),void 0!==t&&(this.metadata[t]=Object.create(null),this.metadata[t][e]=i)},E.MatchData.prototype.combine=function(t){for(var e=Object.keys(t.metadata),n=0;n<e.length;n++){var i=e[n],r=Object.keys(t.metadata[i]);null==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var o=0;o<r.length;o++){var s=r[o],a=Object.keys(t.metadata[i][s]);null==this.metadata[i][s]&&(this.metadata[i][s]=Object.create(null));for(var l=0;l<a.length;l++){var c=a[l];null==this.metadata[i][s][c]?this.metadata[i][s][c]=t.metadata[i][s][c]:this.metadata[i][s][c]=this.metadata[i][s][c].concat(t.metadata[i][s][c])}}}},E.MatchData.prototype.add=function(t,e,n){if(!(t in this.metadata))return this.metadata[t]=Object.create(null),void(this.metadata[t][e]=n);if(e in this.metadata[t])for(var i=Object.keys(n),r=0;r<i.length;r++){var o=i[r];o in this.metadata[t][e]?this.metadata[t][e][o]=this.metadata[t][e][o].concat(n[o]):this.metadata[t][e][o]=n[o]}else this.metadata[t][e]=n},E.Query=function(t){this.clauses=[],this.allFields=t},E.Query.wildcard=new String("*"),E.Query.wildcard.NONE=0,E.Query.wildcard.LEADING=1,E.Query.wildcard.TRAILING=2,E.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},E.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=E.Query.wildcard.NONE),t.wildcard&E.Query.wildcard.LEADING&&t.term.charAt(0)!=E.Query.wildcard&&(t.term="*"+t.term),t.wildcard&E.Query.wildcard.TRAILING&&t.term.slice(-1)!=E.Query.wildcard&&(t.term=t.term+"*"),"presence"in t||(t.presence=E.Query.presence.OPTIONAL),this.clauses.push(t),this},E.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=E.Query.presence.PROHIBITED)return!1;return!0},E.Query.prototype.term=function(t,e){if(Array.isArray(t))return t.forEach((function(t){this.term(t,E.utils.clone(e))}),this),this;var n=e||{};return n.term=t.toString(),this.clause(n),this},E.QueryParseError=function(t,e,n){this.name="QueryParseError",this.message=t,this.start=e,this.end=n},E.QueryParseError.prototype=new Error,E.QueryLexer=function(t){this.lexemes=[],this.str=t,this.length=t.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},E.QueryLexer.prototype.run=function(){for(var t=E.QueryLexer.lexText;t;)t=t(this)},E.QueryLexer.prototype.sliceString=function(){for(var t=[],e=this.start,n=this.pos,i=0;i<this.escapeCharPositions.length;i++)n=this.escapeCharPositions[i],t.push(this.str.slice(e,n)),e=n+1;return t.push(this.str.slice(e,this.pos)),this.escapeCharPositions.length=0,t.join("")},E.QueryLexer.prototype.emit=function(t){this.lexemes.push({type:t,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},E.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},E.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return E.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},E.QueryLexer.prototype.width=function(){return this.pos-this.start},E.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},E.QueryLexer.prototype.backup=function(){this.pos-=1},E.QueryLexer.prototype.acceptDigitRun=function(){var t,e;do{e=(t=this.next()).charCodeAt(0)}while(e>47&&e<58);t!=E.QueryLexer.EOS&&this.backup()},E.QueryLexer.prototype.more=function(){return this.pos<this.length},E.QueryLexer.EOS="EOS",E.QueryLexer.FIELD="FIELD",E.QueryLexer.TERM="TERM",E.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",E.QueryLexer.BOOST="BOOST",E.QueryLexer.PRESENCE="PRESENCE",E.QueryLexer.lexField=function(t){return t.backup(),t.emit(E.QueryLexer.FIELD),t.ignore(),E.QueryLexer.lexText},E.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(E.QueryLexer.TERM)),t.ignore(),t.more())return E.QueryLexer.lexText},E.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.EDIT_DISTANCE),E.QueryLexer.lexText},E.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(E.QueryLexer.BOOST),E.QueryLexer.lexText},E.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(E.QueryLexer.TERM)},E.QueryLexer.termSeparator=E.tokenizer.separator,E.QueryLexer.lexText=function(t){for(;;){var e=t.next();if(e==E.QueryLexer.EOS)return E.QueryLexer.lexEOS;if(92!=e.charCodeAt(0)){if(":"==e)return E.QueryLexer.lexField;if("~"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexEditDistance;if("^"==e)return t.backup(),t.width()>0&&t.emit(E.QueryLexer.TERM),E.QueryLexer.lexBoost;if("+"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if("-"==e&&1===t.width())return t.emit(E.QueryLexer.PRESENCE),E.QueryLexer.lexText;if(e.match(E.QueryLexer.termSeparator))return E.QueryLexer.lexTerm}else t.escapeCharacter()}},E.QueryParser=function(t,e){this.lexer=new E.QueryLexer(t),this.query=e,this.currentClause={},this.lexemeIdx=0},E.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=E.QueryParser.parseClause;t;)t=t(this);return this.query},E.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},E.QueryParser.prototype.consumeLexeme=function(){var t=this.peekLexeme();return this.lexemeIdx+=1,t},E.QueryParser.prototype.nextClause=function(){var t=this.currentClause;this.query.clause(t),this.currentClause={}},E.QueryParser.parseClause=function(t){var e=t.peekLexeme();if(null!=e)switch(e.type){case E.QueryLexer.PRESENCE:return E.QueryParser.parsePresence;case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+e.type;throw e.str.length>=1&&(n+=" with value '"+e.str+"'"),new E.QueryParseError(n,e.start,e.end)}},E.QueryParser.parsePresence=function(t){var e=t.consumeLexeme();if(null!=e){switch(e.str){case"-":t.currentClause.presence=E.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=E.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+e.str+"'";throw new E.QueryParseError(n,e.start,e.end)}var i=t.peekLexeme();if(null==i)throw n="expecting term or field, found nothing",new E.QueryParseError(n,e.start,e.end);switch(i.type){case E.QueryLexer.FIELD:return E.QueryParser.parseField;case E.QueryLexer.TERM:return E.QueryParser.parseTerm;default:throw n="expecting term or field, found '"+i.type+"'",new E.QueryParseError(n,i.start,i.end)}}},E.QueryParser.parseField=function(t){var e=t.consumeLexeme();if(null!=e){if(-1==t.query.allFields.indexOf(e.str)){var n=t.query.allFields.map((function(t){return"'"+t+"'"})).join(", "),i="unrecognised field '"+e.str+"', possible fields: "+n;throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.fields=[e.str];var r=t.peekLexeme();if(null==r)throw i="expecting term, found nothing",new E.QueryParseError(i,e.start,e.end);if(r.type===E.QueryLexer.TERM)return E.QueryParser.parseTerm;throw i="expecting term, found '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}},E.QueryParser.parseTerm=function(t){var e=t.consumeLexeme();if(null!=e){t.currentClause.term=e.str.toLowerCase(),-1!=e.str.indexOf("*")&&(t.currentClause.usePipeline=!1);var n=t.peekLexeme();if(null!=n)switch(n.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new E.QueryParseError(i,n.start,n.end)}else t.nextClause()}},E.QueryParser.parseEditDistance=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.editDistance=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},E.QueryParser.parseBoost=function(t){var e=t.consumeLexeme();if(null!=e){var n=parseInt(e.str,10);if(isNaN(n)){var i="boost must be numeric";throw new E.QueryParseError(i,e.start,e.end)}t.currentClause.boost=n;var r=t.peekLexeme();if(null!=r)switch(r.type){case E.QueryLexer.TERM:return t.nextClause(),E.QueryParser.parseTerm;case E.QueryLexer.FIELD:return t.nextClause(),E.QueryParser.parseField;case E.QueryLexer.EDIT_DISTANCE:return E.QueryParser.parseEditDistance;case E.QueryLexer.BOOST:return E.QueryParser.parseBoost;case E.QueryLexer.PRESENCE:return t.nextClause(),E.QueryParser.parsePresence;default:throw i="Unexpected lexeme type '"+r.type+"'",new E.QueryParseError(i,r.start,r.end)}else t.nextClause()}},void 0===(r="function"==typeof(i=function(){return E})?i.call(e,n,e,t):i)||(t.exports=r)}()},420:function(t,e,n){(t=n.nmd(t)).exports=function(){"use strict";var e,n;function i(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function l(t){return void 0===t}function c(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function h(t,e){for(var n in e)s(e,n)&&(t[n]=e[n]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,i){return Ne(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function g(t){var e=null,i=!1,r=t._d&&!isNaN(t._d.getTime());return r&&(e=f(t),i=n.call(e.parsedDateParts,(function(t){return null!=t})),r=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?r:(t._isValid=r,t._isValid)}function m(t){var e=p(NaN);return null!=t?h(f(e),t):f(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function b(t,e){var n,i,r,o=v.length;if(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=f(e)),l(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)l(r=e[i=v[n]])||(t[i]=r);return t}function w(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function A(t){return t instanceof w||null!=t&&null!=t._isAMomentObject}function x(t){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,a,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"==typeof arguments[o]){for(a in r+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(r+=a+": "+arguments[0][a]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}x(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var M,L={};function I(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),L[t]||(x(e),L[t]=!0)}function _(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t,e){var n,i=h({},t);for(n in e)s(e,n)&&(o(t[n])&&o(e[n])?(i[n]={},h(i[n],t[n]),h(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)s(t,n)&&!s(e,n)&&o(t[n])&&(i[n]=h({},i[n]));return i}function k(t){null!=t&&this.set(t)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)s(t,e)&&n.push(e);return n};function T(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},O={};function E(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(O[t]=r),e&&(O[e[0]]=function(){return T(r.apply(this,arguments),e[1],e[2])}),n&&(O[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function z(t,e){return t.isValid()?(e=F(e,t.localeData()),N[e]=N[e]||function(t){var e,n,i,r=t.match(D);for(e=0,n=r.length;e<n;e++)O[r[e]]?r[e]=O[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=_(r[i])?r[i].call(e,t):r[i];return o}}(e),N[e](t)):t.localeData().invalidDate()}function F(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(j.lastIndex=0;n>=0&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var R={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function P(t){return"string"==typeof t?R[t]||R[t.toLowerCase()]:void 0}function Y(t){var e,n,i={};for(n in t)s(t,n)&&(e=P(n))&&(i[e]=t[n]);return i}var U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var W,B=/\d/,Z=/\d\d/,H=/\d{3}/,G=/\d{4}/,V=/[+-]?\d{6}/,Q=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,q=/\d{1,3}/,K=/\d{1,4}/,$=/[+-]?\d{1,6}/,tt=/\d+/,et=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/Z|[+-]\d\d(?::?\d\d)?/gi,rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ot=/^[1-9]\d?/,st=/^([1-9]\d|\d)/;function at(t,e,n){W[t]=_(e)?e:function(t,i){return t&&n?n:e}}function lt(t,e){return s(W,t)?W[t](e._strict,e._locale):new RegExp(ct(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function ct(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ut(e)),n}W={};var ht={};function pt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),c(e)&&(r=function(t,n){n[e]=dt(t)}),i=t.length,n=0;n<i;n++)ht[t[n]]=r}function ft(t,e){pt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function gt(t,e,n){null!=e&&s(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return t%4==0&&t%100!=0||t%400==0}var vt=0,yt=1,bt=2,wt=3,At=4,xt=5,Ct=6,Mt=7,Lt=8;function It(t){return mt(t)?366:365}E("Y",0,0,(function(){var t=this.year();return t<=9999?T(t,4):"+"+t})),E(0,["YY",2],0,(function(){return this.year()%100})),E(0,["YYYY",4],0,"year"),E(0,["YYYYY",5],0,"year"),E(0,["YYYYYY",6,!0],0,"year"),at("Y",et),at("YY",Q,Z),at("YYYY",K,G),at("YYYYY",$,V),at("YYYYYY",$,V),pt(["YYYYY","YYYYYY"],vt),pt("YYYY",(function(t,e){e[vt]=2===t.length?i.parseTwoDigitYear(t):dt(t)})),pt("YY",(function(t,e){e[vt]=i.parseTwoDigitYear(t)})),pt("Y",(function(t,e){e[vt]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var _t,St=kt("FullYear",!0);function kt(t,e){return function(n){return null!=n?(Dt(this,t,n),i.updateOffset(this,e),this):Tt(this,t)}}function Tt(t,e){if(!t.isValid())return NaN;var n=t._d,i=t._isUTC;switch(e){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Dt(t,e,n){var i,r,o,s,a;if(t.isValid()&&!isNaN(n)){switch(i=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}o=n,s=t.month(),a=29!==(a=t.date())||1!==s||mt(o)?a:28,r?i.setUTCFullYear(o,s,a):i.setFullYear(o,s,a)}}function jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?mt(t)?29:28:31-i%7%2}_t=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},E("M",["MM",2],"Mo",(function(){return this.month()+1})),E("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),E("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),at("M",Q,ot),at("MM",Q,Z),at("MMM",(function(t,e){return e.monthsShortRegex(t)})),at("MMMM",(function(t,e){return e.monthsRegex(t)})),pt(["M","MM"],(function(t,e){e[yt]=dt(t)-1})),pt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[yt]=r:f(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Et=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zt=rt,Ft=rt;function Rt(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=_t.call(this._shortMonthsParse,s))||-1!==(r=_t.call(this._longMonthsParse,s))?r:null:-1!==(r=_t.call(this._longMonthsParse,s))||-1!==(r=_t.call(this._shortMonthsParse,s))?r:null}function Pt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!c(e=t.localeData().monthsParse(e)))return t;var n=e,i=t.date();return i=i<29?i:Math.min(i,jt(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,i):t._d.setMonth(n,i),t}function Yt(t){return null!=t?(Pt(this,t),i.updateOffset(this,!0),this):Tt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,n,i,r,o=[],s=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),i=ct(this.monthsShort(n,"")),r=ct(this.months(n,"")),o.push(i),s.push(r),a.push(r),a.push(i);o.sort(t),s.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Wt(t,e,n,i,r,o,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,r,o,s),a}function Bt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Zt(t,e,n){var i=7+e-n;return-(7+Bt(t,0,i).getUTCDay()-e)%7+i-1}function Ht(t,e,n,i,r){var o,s,a=1+7*(e-1)+(7+n-i)%7+Zt(t,i,r);return a<=0?s=It(o=t-1)+a:a>It(t)?(o=t+1,s=a-It(t)):(o=t,s=a),{year:o,dayOfYear:s}}function Gt(t,e,n){var i,r,o=Zt(t.year(),e,n),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?i=s+Vt(r=t.year()-1,e,n):s>Vt(t.year(),e,n)?(i=s-Vt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=s),{week:i,year:r}}function Vt(t,e,n){var i=Zt(t,e,n),r=Zt(t+1,e,n);return(It(t)-i+r)/7}E("w",["ww",2],"wo","week"),E("W",["WW",2],"Wo","isoWeek"),at("w",Q,ot),at("ww",Q,Z),at("W",Q,ot),at("WW",Q,Z),ft(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=dt(t)}));function Qt(t,e){return t.slice(e,7).concat(t.slice(0,e))}E("d",0,"do","day"),E("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),E("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),E("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),E("e",0,0,"weekday"),E("E",0,0,"isoWeekday"),at("d",Q),at("e",Q),at("E",Q),at("dd",(function(t,e){return e.weekdaysMinRegex(t)})),at("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),at("dddd",(function(t,e){return e.weekdaysRegex(t)})),ft(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t})),ft(["d","e","E"],(function(t,e,n,i){e[i]=dt(t)}));var Jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kt=rt,$t=rt,te=rt;function ee(t,e,n){var i,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=_t.call(this._shortWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._minWeekdaysParse,s))?r:null:-1!==(r=_t.call(this._minWeekdaysParse,s))||-1!==(r=_t.call(this._weekdaysParse,s))||-1!==(r=_t.call(this._shortWeekdaysParse,s))?r:null}function ne(){function t(t,e){return e.length-t.length}var e,n,i,r,o,s=[],a=[],l=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),i=ct(this.weekdaysMin(n,"")),r=ct(this.weekdaysShort(n,"")),o=ct(this.weekdays(n,"")),s.push(i),a.push(r),l.push(o),c.push(i),c.push(r),c.push(o);s.sort(t),a.sort(t),l.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function ie(){return this.hours()%12||12}function re(t,e){E(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function oe(t,e){return e._meridiemParse}E("H",["HH",2],0,"hour"),E("h",["hh",2],0,ie),E("k",["kk",2],0,(function(){return this.hours()||24})),E("hmm",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)})),E("hmmss",0,0,(function(){return""+ie.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)})),E("Hmm",0,0,(function(){return""+this.hours()+T(this.minutes(),2)})),E("Hmmss",0,0,(function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)})),re("a",!0),re("A",!1),at("a",oe),at("A",oe),at("H",Q,st),at("h",Q,ot),at("k",Q,ot),at("HH",Q,Z),at("hh",Q,Z),at("kk",Q,Z),at("hmm",J),at("hmmss",X),at("Hmm",J),at("Hmmss",X),pt(["H","HH"],wt),pt(["k","kk"],(function(t,e,n){var i=dt(t);e[wt]=24===i?0:i})),pt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),pt(["h","hh"],(function(t,e,n){e[wt]=dt(t),f(n).bigHour=!0})),pt("hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i)),f(n).bigHour=!0})),pt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r)),f(n).bigHour=!0})),pt("Hmm",(function(t,e,n){var i=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i))})),pt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[wt]=dt(t.substr(0,i)),e[At]=dt(t.substr(i,2)),e[xt]=dt(t.substr(r))}));var se=kt("Hours",!0);var ae,le={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Nt,monthsShort:Ot,week:{dow:0,doy:6},weekdays:Jt,weekdaysMin:qt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},ce={},ue={};function de(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function he(t){return t?t.toLowerCase().replace("_","-"):t}function pe(e){var n=null;if(void 0===ce[e]&&t&&t.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(e))try{n=ae._abbr,Object(function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}()),fe(n)}catch(t){ce[e]=null}return ce[e]}function fe(t,e){var n;return t&&((n=l(e)?me(t):ge(t,e))?ae=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ae._abbr}function ge(t,e){if(null!==e){var n,i=le;if(e.abbr=t,null!=ce[t])I("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ce[t]._config;else if(null!=e.parentLocale)if(null!=ce[e.parentLocale])i=ce[e.parentLocale]._config;else{if(null==(n=pe(e.parentLocale)))return ue[e.parentLocale]||(ue[e.parentLocale]=[]),ue[e.parentLocale].push({name:t,config:e}),null;i=n._config}return ce[t]=new k(S(i,e)),ue[t]&&ue[t].forEach((function(t){ge(t.name,t.config)})),fe(t),ce[t]}return delete ce[t],null}function me(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ae;if(!r(t)){if(e=pe(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=he(t[o]).split("-")).length,n=(n=he(t[o+1]))?n.split("-"):null;e>0;){if(i=pe(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&de(r,n)>=e-1)break;e--}o++}return ae}(t)}function ve(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[yt]<0||n[yt]>11?yt:n[bt]<1||n[bt]>jt(n[vt],n[yt])?bt:n[wt]<0||n[wt]>24||24===n[wt]&&(0!==n[At]||0!==n[xt]||0!==n[Ct])?wt:n[At]<0||n[At]>59?At:n[xt]<0||n[xt]>59?xt:n[Ct]<0||n[Ct]>999?Ct:-1,f(t)._overflowDayOfYear&&(e<vt||e>bt)&&(e=bt),f(t)._overflowWeeks&&-1===e&&(e=Mt),f(t)._overflowWeekday&&-1===e&&(e=Lt),f(t).overflow=e),t}var ye=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,be=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/Z|[+-]\d\d(?::?\d\d)?/,Ae=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ce=/^\/?Date\((-?\d+)/i,Me=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Le={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ie(t){var e,n,i,r,o,s,a=t._i,l=ye.exec(a)||be.exec(a),c=Ae.length,u=xe.length;if(l){for(f(t).iso=!0,e=0,n=c;e<n;e++)if(Ae[e][1].exec(l[1])){r=Ae[e][0],i=!1!==Ae[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=u;e<n;e++)if(xe[e][1].exec(l[3])){o=(l[2]||" ")+xe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!we.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),De(t)}else t._isValid=!1}function _e(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Se(t){var e,n,i,r,o,s,a,l,c=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],i=c[3],r=c[2],o=c[5],s=c[6],a=c[7],l=[_e(n),Ot.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(s,10)],a&&l.push(parseInt(a,10)),e=l,!function(t,e,n){return!t||Xt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Le[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(c[8],c[9],c[10]),t._d=Bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function ke(t,e,n){return null!=t?t:null!=e?e:n}function Te(t){var e,n,r,o,s,a=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[bt]&&null==t._a[yt]&&function(t){var e,n,i,r,o,s,a,l,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=ke(e.GG,t._a[vt],Gt(Oe(),1,4).year),i=ke(e.W,1),((r=ke(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,s=t._locale._week.doy,c=Gt(Oe(),o,s),n=ke(e.gg,t._a[vt],c.year),i=ke(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o),i<1||i>Vt(n,o,s)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(a=Ht(n,i,r,o,s),t._a[vt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=ke(t._a[vt],r[vt]),(t._dayOfYear>It(s)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),n=Bt(s,0,t._dayOfYear),t._a[yt]=n.getUTCMonth(),t._a[bt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[wt]&&0===t._a[At]&&0===t._a[xt]&&0===t._a[Ct]&&(t._nextDay=!0,t._a[wt]=0),t._d=(t._useUTC?Bt:Wt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function De(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],f(t).empty=!0;var e,n,r,o,s,a,l,c=""+t._i,u=c.length,d=0;for(l=(r=F(t._f,t._locale).match(D)||[]).length,e=0;e<l;e++)o=r[e],(n=(c.match(lt(o,t))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&f(t).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),d+=n.length),O[o]?(n?f(t).empty=!1:f(t).unusedTokens.push(o),gt(o,n,t)):t._strict&&!n&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-d,c.length>0&&f(t).unusedInput.push(c),t._a[wt]<=12&&!0===f(t).bigHour&&t._a[wt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[wt]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[wt],t._meridiem),null!==(a=f(t).era)&&(t._a[vt]=t._locale.erasConvertYear(a,t._a[vt])),Te(t),ve(t)}else Se(t);else Ie(t)}function je(t){var e=t._i,n=t._f;return t._locale=t._locale||me(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new w(ve(e)):(u(e)?t._d=e:r(n)?function(t){var e,n,i,r,o,s,a=!1,l=t._f.length;if(0===l)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<l;r++)o=0,s=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],De(e),g(e)&&(s=!0),o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,a?o<i&&(i=o,n=e):(null==i||o<i||s)&&(i=o,n=e,s&&(a=!0));h(t,n||e)}(t):n?De(t):function(t){var e=t._i;l(e)?t._d=new Date(i.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Ce.exec(t._i);null===e?(Ie(t),!1===t._isValid&&(delete t._isValid,Se(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):r(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Te(t)):o(e)?function(t){if(!t._d){var e=Y(t._i),n=void 0===e.day?e.date:e.day;t._a=d([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Te(t)}}(t):c(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),g(t)||(t._d=null),t))}function Ne(t,e,n,i,s){var l,c={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(t)&&a(t)||r(t)&&0===t.length)&&(t=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=t,c._f=e,c._strict=i,(l=new w(ve(je(c))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Oe(t,e,n,i){return Ne(t,e,n,i,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Ee=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()})),ze=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}));function Fe(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Oe();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Re=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Pe(t){var e=Y(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1,r=Re.length;for(e in t)if(s(t,e)&&(-1===_t.call(Re,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Re[n]]){if(i)return!1;parseFloat(t[Re[n]])!==dt(t[Re[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+a+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=me(),this._bubble()}function Ye(t){return t instanceof Pe}function Ue(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function We(t,e){E(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+T(~~(t/60),2)+e+T(~~t%60,2)}))}We("Z",":"),We("ZZ",""),at("Z",it),at("ZZ",it),pt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=Ze(it,t)}));var Be=/([\+\-]|\d\d)/gi;function Ze(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Be)||["-",0,0])[1]+dt(n[2]))?0:"+"===n[0]?i:-i}function He(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(A(t)||u(t)?t.valueOf():Oe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Oe(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function Ve(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Je=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Xe(t,e){var n,i,r,o,a,l,u=t,d=null;return Ye(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:c(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=Qe.exec(t))?(n="-"===d[1]?-1:1,u={y:0,d:dt(d[bt])*n,h:dt(d[wt])*n,m:dt(d[At])*n,s:dt(d[xt])*n,ms:dt(Ue(1e3*d[Ct]))*n}):(d=Je.exec(t))?(n="-"===d[1]?-1:1,u={y:qe(d[2],n),M:qe(d[3],n),w:qe(d[4],n),d:qe(d[5],n),h:qe(d[6],n),m:qe(d[7],n),s:qe(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Oe(u.from),a=Oe(u.to),r=o.isValid()&&a.isValid()?(a=He(a,o),o.isBefore(a)?l=Ke(o,a):((l=Ke(a,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new Pe(u),Ye(t)&&s(t,"_locale")&&(i._locale=t._locale),Ye(t)&&s(t,"_isValid")&&(i._isValid=t._isValid),i}function qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ke(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function $e(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(I(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),tn(this,Xe(n,i),t),this}}function tn(t,e,n,r){var o=e._milliseconds,s=Ue(e._days),a=Ue(e._months);t.isValid()&&(r=null==r||r,a&&Pt(t,Tt(t,"Month")+a*n),s&&Dt(t,"Date",Tt(t,"Date")+s*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,s||a))}Xe.fn=Pe.prototype,Xe.invalid=function(){return Xe(NaN)};var en=$e(1,"add"),nn=$e(-1,"subtract");function rn(t){return"string"==typeof t||t instanceof String}function on(t){return A(t)||u(t)||rn(t)||c(t)||function(t){var e=r(t),n=!1;return e&&(n=0===t.filter((function(e){return!c(e)&&rn(t)})).length),e&&n}(t)||function(t){var e,n,i=o(t)&&!a(t),r=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=l.length;for(e=0;e<c;e+=1)n=l[e],r=r||s(t,n);return i&&r}(t)||null==t}function sn(t,e){if(t.date()<e.date())return-sn(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function an(t){var e;return void 0===t?this._locale._abbr:(null!=(e=me(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ln=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function cn(){return this._locale}var un=1e3,dn=6e4,hn=36e5,pn=126227808e5;function fn(t,e){return(t%e+e)%e}function gn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-pn:new Date(t,e,n).valueOf()}function mn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-pn:Date.UTC(t,e,n)}function vn(t,e){return e.erasAbbrRegex(t)}function yn(){var t,e,n,i,r,o=[],s=[],a=[],l=[],c=this.eras();for(t=0,e=c.length;t<e;++t)n=ct(c[t].name),i=ct(c[t].abbr),r=ct(c[t].narrow),s.push(n),o.push(i),a.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function bn(t,e){E(0,[t,t.length],0,e)}function wn(t,e,n,i,r){var o;return null==t?Gt(this,i,r).year:(e>(o=Vt(t,i,r))&&(e=o),An.call(this,t,e,n,i,r))}function An(t,e,n,i,r){var o=Ht(t,e,n,i,r),s=Bt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}E("N",0,0,"eraAbbr"),E("NN",0,0,"eraAbbr"),E("NNN",0,0,"eraAbbr"),E("NNNN",0,0,"eraName"),E("NNNNN",0,0,"eraNarrow"),E("y",["y",1],"yo","eraYear"),E("y",["yy",2],0,"eraYear"),E("y",["yyy",3],0,"eraYear"),E("y",["yyyy",4],0,"eraYear"),at("N",vn),at("NN",vn),at("NNN",vn),at("NNNN",(function(t,e){return e.erasNameRegex(t)})),at("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),pt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t})),at("y",tt),at("yy",tt),at("yyy",tt),at("yyyy",tt),at("yo",(function(t,e){return e._eraYearOrdinalRegex||tt})),pt(["y","yy","yyy","yyyy"],vt),pt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[vt]=n._locale.eraYearOrdinalParse(t,r):e[vt]=parseInt(t,10)})),E(0,["gg",2],0,(function(){return this.weekYear()%100})),E(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),bn("gggg","weekYear"),bn("ggggg","weekYear"),bn("GGGG","isoWeekYear"),bn("GGGGG","isoWeekYear"),at("G",et),at("g",et),at("GG",Q,Z),at("gg",Q,Z),at("GGGG",K,G),at("gggg",K,G),at("GGGGG",$,V),at("ggggg",$,V),ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=dt(t)})),ft(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),E("Q",0,"Qo","quarter"),at("Q",B),pt("Q",(function(t,e){e[yt]=3*(dt(t)-1)})),E("D",["DD",2],"Do","date"),at("D",Q,ot),at("DD",Q,Z),at("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),pt(["D","DD"],bt),pt("Do",(function(t,e){e[bt]=dt(t.match(Q)[0])}));var xn=kt("Date",!0);E("DDD",["DDDD",3],"DDDo","dayOfYear"),at("DDD",q),at("DDDD",H),pt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=dt(t)})),E("m",["mm",2],0,"minute"),at("m",Q,st),at("mm",Q,Z),pt(["m","mm"],At);var Cn=kt("Minutes",!1);E("s",["ss",2],0,"second"),at("s",Q,st),at("ss",Q,Z),pt(["s","ss"],xt);var Mn,Ln,In=kt("Seconds",!1);for(E("S",0,0,(function(){return~~(this.millisecond()/100)})),E(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),E(0,["SSS",3],0,"millisecond"),E(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),E(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),E(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),E(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),E(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),E(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),at("S",q,B),at("SS",q,Z),at("SSS",q,H),Mn="SSSS";Mn.length<=9;Mn+="S")at(Mn,tt);function _n(t,e){e[Ct]=dt(1e3*("0."+t))}for(Mn="S";Mn.length<=9;Mn+="S")pt(Mn,_n);Ln=kt("Milliseconds",!1),E("z",0,0,"zoneAbbr"),E("zz",0,0,"zoneName");var Sn=w.prototype;function kn(t){return t}Sn.add=en,Sn.calendar=function(t,e){1===arguments.length&&(arguments[0]?on(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=o(t)&&!a(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||s(t,r[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Oe(),r=He(n,this).startOf("day"),l=i.calendarFormat(this,r)||"sameElse",c=e&&(_(e[l])?e[l].call(this,n):e[l]);return this.format(c||this.localeData().calendar(l,this,Oe(n)))},Sn.clone=function(){return new w(this)},Sn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=He(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=P(e)){case"year":o=sn(this,i)/12;break;case"month":o=sn(this,i);break;case"quarter":o=sn(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:ut(o)},Sn.endOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hn-fn(e+(this._isUTC?0:this.utcOffset()*dn),hn)-1;break;case"minute":e=this._d.valueOf(),e+=dn-fn(e,dn)-1;break;case"second":e=this._d.valueOf(),e+=un-fn(e,un)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=z(this,t);return this.localeData().postformat(e)},Sn.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.fromNow=function(t){return this.from(Oe(),t)},Sn.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||Oe(t).isValid())?Xe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Sn.toNow=function(t){return this.to(Oe(),t)},Sn.get=function(t){return _(this[t=P(t)])?this[t]():this},Sn.invalidAt=function(){return f(this).overflow},Sn.isAfter=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Sn.isBefore=function(t,e){var n=A(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Sn.isBetween=function(t,e,n,i){var r=A(t)?t:Oe(t),o=A(e)?e:Oe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},Sn.isSame=function(t,e){var n,i=A(t)?t:Oe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=P(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Sn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Sn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Sn.isValid=function(){return g(this)},Sn.lang=ln,Sn.locale=an,Sn.localeData=cn,Sn.max=ze,Sn.min=Ee,Sn.parsingFlags=function(){return h({},f(this))},Sn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)s(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=Y(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(_(this[t=P(t)]))return this[t](e);return this},Sn.startOf=function(t){var e,n;if(void 0===(t=P(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mn:gn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=fn(e+(this._isUTC?0:this.utcOffset()*dn),hn);break;case"minute":e=this._d.valueOf(),e-=fn(e,dn);break;case"second":e=this._d.valueOf(),e-=fn(e,un)}return this._d.setTime(e),i.updateOffset(this,!0),this},Sn.subtract=nn,Sn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Sn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Sn.toDate=function(){return new Date(this.valueOf())},Sn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):_(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Sn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Sn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Sn.toJSON=function(){return this.isValid()?this.toISOString():null},Sn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Sn.unix=function(){return Math.floor(this.valueOf()/1e3)},Sn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Sn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Sn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Sn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Sn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Sn.eraYear=function(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()},Sn.year=St,Sn.isLeapYear=function(){return mt(this.year())},Sn.weekYear=function(t){return wn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Sn.isoWeekYear=function(t){return wn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Sn.quarter=Sn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Sn.month=Yt,Sn.daysInMonth=function(){return jt(this.year(),this.month())},Sn.week=Sn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Sn.isoWeek=Sn.isoWeeks=function(t){var e=Gt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Sn.weeksInYear=function(){var t=this.localeData()._week;return Vt(this.year(),t.dow,t.doy)},Sn.weeksInWeekYear=function(){var t=this.localeData()._week;return Vt(this.weekYear(),t.dow,t.doy)},Sn.isoWeeksInYear=function(){return Vt(this.year(),1,4)},Sn.isoWeeksInISOWeekYear=function(){return Vt(this.isoWeekYear(),1,4)},Sn.date=xn,Sn.day=Sn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Tt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Sn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Sn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Sn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Sn.hour=Sn.hours=se,Sn.minute=Sn.minutes=Cn,Sn.second=Sn.seconds=In,Sn.millisecond=Sn.milliseconds=Ln,Sn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ze(it,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=Ge(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?tn(this,Xe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ge(this)},Sn.utc=function(t){return this.utcOffset(0,t)},Sn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},Sn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ze(nt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Sn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Oe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Sn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Sn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Sn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Sn.isUtc=Ve,Sn.isUTC=Ve,Sn.zoneAbbr=function(){return this._isUTC?"UTC":""},Sn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Sn.dates=C("dates accessor is deprecated. Use date instead.",xn),Sn.months=C("months accessor is deprecated. Use month instead",Yt),Sn.years=C("years accessor is deprecated. Use year instead",St),Sn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Sn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=je(e))._a?(t=e._isUTC?p(e._a):Oe(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&dt(t[i])!==dt(e[i]))&&s++;return s+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Tn=k.prototype;function Dn(t,e,n,i){var r=me(),o=p().set(i,e);return r[n](o,t)}function jn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return Dn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(t,i,n,"month");return r}function Nn(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,o=me(),s=t?o._week.dow:0,a=[];if(null!=n)return Dn(e,(n+s)%7,i,"day");for(r=0;r<7;r++)a[r]=Dn(e,(r+s)%7,i,"day");return a}Tn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return _(i)?i.call(e,n):i},Tn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(t){return this._ordinal.replace("%d",t)},Tn.preparse=kn,Tn.postformat=kn,Tn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return _(r)?r(t,e,n,i):r.replace(/%d/i,t)},Tn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return _(n)?n(e):n.replace(/%s/i,e)},Tn.set=function(t){var e,n;for(n in t)s(t,n)&&(_(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Tn.eras=function(t,e){var n,r,o,s=this._eras||me("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"==typeof s[n].since&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s},Tn.erasParse=function(t,e,n){var i,r,o,s,a,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),s=l[i].abbr.toUpperCase(),a=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(a===t)return l[i]}else if([o,s,a].indexOf(t)>=0)return l[i]},Tn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},Tn.erasAbbrRegex=function(t){return s(this,"_erasAbbrRegex")||yn.call(this),t?this._erasAbbrRegex:this._erasRegex},Tn.erasNameRegex=function(t){return s(this,"_erasNameRegex")||yn.call(this),t?this._erasNameRegex:this._erasRegex},Tn.erasNarrowRegex=function(t){return s(this,"_erasNarrowRegex")||yn.call(this),t?this._erasNarrowRegex:this._erasRegex},Tn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Et).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Et.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return Rt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Tn.monthsRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(t){return this._monthsParseExact?(s(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(t){return Gt(t,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Qt(n,this._week.dow):t?n[t.day()]:n},Tn.weekdaysMin=function(t){return!0===t?Qt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Tn.weekdaysShort=function(t){return!0===t?Qt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Tn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return ee.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Tn.weekdaysRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||ne.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=te),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Tn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},fe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",fe),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",me);var On=Math.abs;function En(t,e,n,i){var r=Xe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function zn(t){return t<0?Math.floor(t):Math.ceil(t)}function Fn(t){return 4800*t/146097}function Rn(t){return 146097*t/4800}function Pn(t){return function(){return this.as(t)}}var Yn=Pn("ms"),Un=Pn("s"),Wn=Pn("m"),Bn=Pn("h"),Zn=Pn("d"),Hn=Pn("w"),Gn=Pn("M"),Vn=Pn("Q"),Qn=Pn("y"),Jn=Yn;function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var qn=Xn("milliseconds"),Kn=Xn("seconds"),$n=Xn("minutes"),ti=Xn("hours"),ei=Xn("days"),ni=Xn("months"),ii=Xn("years");var ri=Math.round,oi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function si(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var ai=Math.abs;function li(t){return(t>0)-(t<0)||+t}function ci(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,s,a,l=ai(this._milliseconds)/1e3,c=ai(this._days),u=ai(this._months),d=this.asSeconds();return d?(t=ut(l/60),e=ut(t/60),l%=60,t%=60,n=ut(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=li(this._months)!==li(d)?"-":"",s=li(this._days)!==li(d)?"-":"",a=li(this._milliseconds)!==li(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(u?o+u+"M":"")+(c?s+c+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+i+"S":"")):"P0D"}var ui=Pe.prototype;return ui.isValid=function(){return this._isValid},ui.abs=function(){var t=this._data;return this._milliseconds=On(this._milliseconds),this._days=On(this._days),this._months=On(this._months),t.milliseconds=On(t.milliseconds),t.seconds=On(t.seconds),t.minutes=On(t.minutes),t.hours=On(t.hours),t.months=On(t.months),t.years=On(t.years),this},ui.add=function(t,e){return En(this,t,e,1)},ui.subtract=function(t,e){return En(this,t,e,-1)},ui.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=P(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Fn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Rn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ui.asMilliseconds=Yn,ui.asSeconds=Un,ui.asMinutes=Wn,ui.asHours=Bn,ui.asDays=Zn,ui.asWeeks=Hn,ui.asMonths=Gn,ui.asQuarters=Vn,ui.asYears=Qn,ui.valueOf=Jn,ui._bubble=function(){var t,e,n,i,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*zn(Rn(a)+s),s=0,a=0),l.milliseconds=o%1e3,t=ut(o/1e3),l.seconds=t%60,e=ut(t/60),l.minutes=e%60,n=ut(e/60),l.hours=n%24,s+=ut(n/24),a+=r=ut(Fn(s)),s-=zn(Rn(r)),i=ut(a/12),a%=12,l.days=s,l.months=a,l.years=i,this},ui.clone=function(){return Xe(this)},ui.get=function(t){return t=P(t),this.isValid()?this[t+"s"]():NaN},ui.milliseconds=qn,ui.seconds=Kn,ui.minutes=$n,ui.hours=ti,ui.days=ei,ui.weeks=function(){return ut(this.days()/7)},ui.months=ni,ui.years=ii,ui.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=oi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},oi,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=Xe(t).abs(),o=ri(r.as("s")),s=ri(r.as("m")),a=ri(r.as("h")),l=ri(r.as("d")),c=ri(r.as("M")),u=ri(r.as("w")),d=ri(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,si.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ui.toISOString=ci,ui.toString=ci,ui.toJSON=ci,ui.locale=an,ui.localeData=cn,ui.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ci),ui.lang=ln,E("X",0,0,"unix"),E("x",0,0,"valueOf"),at("x",et),at("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),pt("x",(function(t,e,n){n._d=new Date(dt(t))})),i.version="2.30.1",e=Oe,i.fn=Sn,i.min=function(){return Fe("isBefore",[].slice.call(arguments,0))},i.max=function(){return Fe("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=p,i.unix=function(t){return Oe(1e3*t)},i.months=function(t,e){return jn(t,e,"months")},i.isDate=u,i.locale=fe,i.invalid=m,i.duration=Xe,i.isMoment=A,i.weekdays=function(t,e,n){return Nn(t,e,n,"weekdays")},i.parseZone=function(){return Oe.apply(null,arguments).parseZone()},i.localeData=me,i.isDuration=Ye,i.monthsShort=function(t,e){return jn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return Nn(t,e,n,"weekdaysMin")},i.defineLocale=ge,i.updateLocale=function(t,e){if(null!=e){var n,i,r=le;null!=ce[t]&&null!=ce[t].parentLocale?ce[t].set(S(ce[t]._config,e)):(null!=(i=pe(t))&&(r=i._config),e=S(r,e),null==i&&(e.abbr=t),(n=new k(e)).parentLocale=ce[t],ce[t]=n),fe(t)}else null!=ce[t]&&(null!=ce[t].parentLocale?(ce[t]=ce[t].parentLocale,t===fe()&&fe(t)):null!=ce[t]&&delete ce[t]);return ce[t]},i.locales=function(){return M(ce)},i.weekdaysShort=function(t,e,n){return Nn(t,e,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(t){return void 0===t?ri:"function"==typeof t&&(ri=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==oi[t]&&(void 0===e?oi[t]:(oi[t]=e,"s"===t&&(oi.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Sn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},366:t=>{"use strict";t.exports={}},768:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"UD$","unitFormatEUR":"€","unitFormatMXN":"MXN$","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"ceiniogau"}')},220:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"Llinyn","monetaryItemType":"Arianol","decimalItemType":"Degol","pureItemType":"Pur","sharesItemType":"Cyfranddaliadau"}')},800:t=>{"use strict";t.exports=JSON.parse('{"label":"Label Safonol","documentation":"Label Dogfennaeth","terseLabel":"Label tense","verboseLabel":"Label Verbose","positiveLabel":"Label Cadarnhaol","positiveTerseLabel":"Label Terse Positif","positiveVerboseLabel":"Label Verbose positif","negativeLabel":"Label negyddol","negativeTerseLabel":"Label Terse negyddol","negativeVerboseLabel":"Label Verbose negyddol","zeroLabel":"Label sero","zeroTerseLabel":"Label Sero Terse","zeroVerboseLabel":"Label Verbose Sero","totalLabel":"Label Cyfanswm","periodStartLabel":"Label Dechrau Cyfnod","periodEndLabel":"Label Diwedd Cyfnod","definitionGuidance":"Arweiniad Diffiniad","disclosureGuidance":"Canllawiau Datgelu","presentationGuidance":"Arweiniad Cyflwyno","measurementGuidance":"Canllawiau Mesur","commentaryGuidance":"Arweiniad Sylwadau","exampleGuidance":"Arweiniad Enghreifftiol"}')},10:t=>{"use strict";t.exports=JSON.parse('{"Name":"Enw","Number":"Rhif","IssueDate":"Dyddiad Cyhoeddi","Paragraph":"Paragraff","Subparagraph":"Is-baragraff","URI":"URI","URIDate":"Dyddiad URI","Note":"Nodyn"}')},407:t=>{"use strict";t.exports=JSON.parse('{"0":"rhai","1":"degau","2":"cannoedd","3":"miloedd","4":"deg mil","5":"can miloedd","6":"miliynau","7":"deg miliwn","8":"can miliynau","9":"biliynau","-3":"miloedd","-2":"canfedau","-1":"degfedau"}')},711:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Mae perthnasoedd angori yn darparu cysylltiadau rhwng cysyniadau ymestyn cwmni-benodol a chysyniadau safonol a ddiffinnir yn y tacsonomeg sylfaenol.","dimension":"Mae dimensiwn yn nodwedd gymhwyso a ddefnyddir i ddiffinio pwynt data yn unigryw.","conceptsCount":"Nifer y cysyniadau unigryw a ddefnyddiwyd yn yr adroddiad hwn.","dimensionsCount":"Nifer y dimensiynau unigryw a ddefnyddir yn yr adroddiad hwn.","fileSummary":"Rhestr o\'r ffeiliau sydd yn y ffeilio.","membersCount":"Nifer yr aelodau dimensiwn unigryw a ddefnyddiwyd yn yr adroddiad hwn.","scale":"Ar gyfer ffeithiau rhifol, y swm a ddefnyddir i raddio\'r gwerth a gyflwynir.","accuracy":"Y cywirdeb yr adroddir ffaith rifol iddo.","concept":"Elfen sy\'n diffinio ystyr ffaith yw cysyniad.","period":"Y cyfnod yr adroddir y ffaith hon yn ei erbyn. Gall hyn fod yn amrantiad neu\'n hyd, yn dibynnu ar natur y cysyniad.","references":"Gwybodaeth am y diffiniad awdurdodol o gysyniad. Mae cyfeiriadau fel arfer yn cyfeirio at safon gyfrifyddu.","calculations":"Perthnasoedd cyfrifo rhwng ffeithiau rhifol mewn adroddiad. Gellir defnyddio cydberthnasau cyfrifo i olrhain sut mae ffigurau mewn adroddiad treigl, a gellir eu defnyddio hefyd i wirio cysondeb y niferoedd a adroddir.","hiddenFacts":"Nifer y ffeithiau cudd yn yr adroddiad hwn. Mae ffeithiau cudd yn ffeithiau a adroddir fel data XBRL, ond nad ydynt yn cael eu dangos yn yr adroddiad a gyflwynir.","mandatoryFacts":"Nifer y ffeithiau gorfodol yn yr adroddiad hwn. Mae ffeithiau gorfodol yn ffeithiau y mae\'n ofynnol i\'r awdurdodaeth ffeilio adrodd arnynt.","namespace":"Defnyddir bylchau enw i rannu cysyniad, dimensiwn a diffiniadau aelodau. Os bydd adroddiad yn defnyddio unrhyw gysyniadau, dimensiynau neu aelodau sy\'n benodol i gwmni, caiff y rhain eu diffinio mewn gofod enw ar wahân. Gellir defnyddio bylchau enw hefyd i rannu tacsonomegau mawr."}')},474:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Wedi\'i gyfrifo","concept":"Cysyniad","consistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg cyson yn bresennol","does-not-bind":"Nid yw cyfrifo yn rhwymo","inconsistent-duplicate-facts-present":"{{nfacts}} ffeithiau dyblyg anghyson yn bresennol","maximum":"Uchafswm","minimum":"Isafswm","reported-total":"Adroddwyd","reported-value":"Gwerth a adroddwyd","useCalculations11":"Defnyddiwch Gyfrifiadau v1.1"},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Anfeidrol drachywiredd","none":"Dim","notApplicable":"n/a","unscaled":"Heb raddfa","unspecified":"Amhenodol"},"dialog":{"close":""},"factDetails":{"accuracy":"Cywirdeb","balance":"","calculationIsConsistent":"Mae\'r cyfrifiad yn gyson","calculationIsInconsistent":"Mae\'r cyfrifiad yn anghyson","calculationUnchecked":"Nid yw\'r cyfrifiad wedi\'i wirio oherwydd presenoldeb ffeithiau dyblyg","calculationUncheckedIncorrectVersion":"Cyfrifiad 1.1 perthnasau heb eu gwirio yn y modd cyfrifo etifeddiaeth","change":"Newid","changeFromIn":"Oddiwrth {{from}} mewn ","changePercentageDecrease":"{{decrease}}gostyngiad % ar ","changePercentageIncrease":"{{increase}}cynnydd % ar ","concept":"Cysyniad","datatype":"Math","date":"Dyddiad","dimensions":"Dimensiynau","duplicatesCount":"{{current}} o {{total}}","entity":"Endid","factValue":"Gwerth Ffaith","nonNumericFact":"ffaith nad yw\'n rhifol","noPriorFactInThisReport":"Dim ffaith flaenorol yn yr adroddiad hwn","noUnit":"<NOUNIT>","properties":"Priodweddau","scale":"Graddfa","viewCalculationDetails":"Gweld manylion y cyfrifiad"},"footnotes":{"footnote":"Troednodyn"},"inspector":{"anchoring":"Angori","associatedFacts":"Ffeithiau cysylltiedig","calculationDetails":"Manylion cyfrifo","calculations":"Cyfrifiadau","concealedFact":"Ffaith guddiedig","conceptType":"Math o Gysyniad","contributor":"Cyfranwr","datatypes":"Mathau data","dimensions":"Math Dimensiwn","documentOutline":"Amlinelliad o\'r ddogfen","documentSummary":"Crynodeb o\'r ddogfen","explicitDimension":"Dimensiynau Penodol","fact-groups":"Adrannau","factProperties":"Priodweddau Ffaith","factSearch":"Chwiliad Ffeithiau","factValue":"Gwerth Ffaith","footnoteProperties":"Priodweddau Troednodyn","footnotes":"Troednodiadau","hidden":"Gudd","hiddenFact":"Ffaith Gudd","highlight":"Uchafbwynt","initializing":"Cychwyn","ixbrlInspector":"","labels":"","loadingViewer":"Wrthi\'n llwytho Gwyliwr iXBRL","mandatoryFacts":"Dim ond Ffeithiau Gorfodol","namespaces":"Gofodau Enw","narrowerAnchor":"Angorau culach","negative":"Negyddol","nextTag":"Tag nesaf","noFactSelected":"Dim Ffaith wedi\'i Dewis","numericOption":"Rhifol","outlineUnavailable":"Amlinelliad Ddim ar gael","period":"Cyfnod","positive":"Cadarnhaol","previousTag":"Tag blaenorol","printDocument":"Argraffu Dogfen","references":"Cyfeiriadau","reset":"Ailosod","scales":"Graddfeydd","search":"Chwiliwch","searchReport":"","searchResults":"","searchTitle":"Chwiliwch","settingsMenu":"","showAnalysisChart":"","showTextOnly":"Dangos testun yn unig","summary":{"fact":{"header":"Crynodeb o Ffeithiau","hidden":"Ffeithiau cudd","mandatory":"Ffeithiau Gorfodol","total":"Cyfanswm y Ffeithiau"},"file":{"calculations":"Cronfeydd Cyswllt Cyfrifo","definitions":"Diffiniad Basau Cyswllt","header":"Crynodeb Ffeil","inline":"Dogfennau Mewnol","labels":"Label Linkbases","other":"Cronfeydd Cyswllt Eraill","presentation":"Basau Cyswllt Cyflwyniad","references":"Basau Cyswllt Cyfeiriad","schemas":"Sgemâu"},"reportCreation":"Creu Adroddiad","tag":{"colConcepts":"Cysyniadau","colDimensions":"Dimensiynau","colMembers":"Aelodau","colNamespace":"Gofod Enw","colTotal":"Cyfanswm","header":"Crynodeb Tag","rowTotal":"Cyfanswm"}},"summation":"Crynhoad","targetDocument":"Dogfen Darged","textOption":"Testun","typedDimensions":"Dimensiynau wedi\'u Teipio","units":"Unedau","validationCode":"Cod","validationMessage":"Neges","validationResults":"Canlyniadau dilysu","validationSeverity":"Difrifoldeb","visibility":"Gwelededd","visible":"Gweladwy","widerAnchor":"Angor ehangach","xbrlGlossaryOpensInNewTab":"Geirfa XBRL (yn agor mewn tab newydd)"},"menu":{"actions":"Gweithredoedd","applicationLanguage":"Iaith Cais","documentLanguage":"Iaith Dogfen","help":"Cymorth","options":"Opsiynau","contactUs":"Cysylltwch â Ni","survey":"Arolwg","userGuide":"Canllaw Defnyddiwr"},"search":{"concealedFact":"Ffaith guddiedig","dataTypeConflictWarning":"","default":"rhagosodedig","filter":"Hidlo","hiddenFact":"Ffaith gudd","matchingFactsSummary":"","noMatchFound":"Heb ganfod cyfatebiaeth","reset":"","selected":"dethol","showMoreResults":"Dangos mwy o ganlyniadau","toggleFilterControls":"","tryAgainDifferentKeywords":"Ceisiwch eto gyda geiriau allweddol gwahanol","viewFact":""},"toolbar":{"homePage":"Hafan","toggleDarkMode":"Toggle modd tywyll","xbrlElements":"Elfennau XBRL"},"viewer":{"ixbrlDocumentView":""}}')},531:t=>{"use strict";t.exports=JSON.parse('{"debit":"Debit","credit":"Credit"}')},85:t=>{"use strict";t.exports=JSON.parse('{"unitFormatGBP":"£","unitFormatUSD":"US $","unitFormatEUR":"€","unitFormatMXN":"MXN $","unitFormatUAH":"₴","centsUSD":"cents","centsEUR":"cents","centsAUD":"cents","centsZAR":"cents","centsMXN":"cents","centsGBP":"pence"}')},335:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"Boolean","dateItemType":"Date","stringItemType":"String","monetaryItemType":"Monetary","decimalItemType":"Decimal","pureItemType":"Pure","sharesItemType":"Shares"}')},113:t=>{"use strict";t.exports=JSON.parse('{"label":"Standard Label","documentation":"Documentation Label"}')},343:t=>{"use strict";t.exports=JSON.parse('{"Name":"Name","Number":"Number","IssueDate":"IssueDate","Paragraph":"Paragraph","Subparagraph":"Subparagraph","URI":"URI","URIDate":"URIDate","Note":"Note"}')},292:t=>{"use strict";t.exports=JSON.parse('{"0":"ones","1":"tens","2":"hundreds","3":"thousands","4":"ten thousands","5":"hundred thousands","6":"millions","7":"ten millions","8":"hundred millions","9":"billions","-3":"thousandths","-2":"hundredths","-1":"tenths"}')},694:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Anchoring relationships provide links between company-specific extension concepts and standard concepts defined in the base taxonomy.","dimension":"A dimension is a qualifying characteristic that is used to uniquely define a data point.","conceptsCount":"The number of unique concepts used in this report.","dimensionsCount":"The number of unique dimensions used in this report.","fileSummary":"A list of the files that are in the filing.","membersCount":"The number of unique dimension members used in this report.","scale":"For numeric facts, the amount by which the presented value is scaled.","accuracy":"The accuracy to which a numeric fact is reported.","concept":"A concept is an element that defines the meaning of a fact.","period":"The period against which this fact is reported. This can be either an instant or a duration, depending on the nature of the concept.","references":"Information about the authoritative definition of a concept. References typically refer to an accounting standard.","calculations":"Calculation relationships between numeric facts in a report. Calculation relationships can be used to trace how figures in a report roll-up, and can also be used to check the consistency of the reported numbers.","hiddenFacts":"The number of hidden facts in this report. Hidden facts are facts that are reported as XBRL data, but are not shown in the presented report.","mandatoryFacts":"The number of mandatory facts in this report. Mandatory facts are facts that are required to be reported by the filing jurisdiction.","namespace":"Namespaces are used to partition concept, dimension and member definitions. If a report uses any company-specific concepts, dimensions or members, these will be defined in a separate namespace. Namespaces can also be used to partition large taxonomies."}')},997:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"Calculated","concept":"Concept","consistent-duplicate-facts-present":"{{nfacts}} consistent duplicate facts present","does-not-bind":"Calculation does not bind","inconsistent-duplicate-facts-present":"{{nfacts}} inconsistent duplicate facts present","maximum":"Maximum","minimum":"Minimum","reported-total":"Reported","reported-value":"Reported value","useCalculations11":"Use Calculations v1.1"},"chart":{"comparisonChart":"Comparison chart"},"common":{"accuracyInfinite":"Infinite precision","none":"None","notApplicable":"n/a","unscaled":"Unscaled","unspecified":"Unspecified"},"dialog":{"close":"close"},"factDetails":{"accuracy":"Accuracy","balance":"Balance","calculationIsConsistent":"Calculation is consistent","calculationIsInconsistent":"Calculation is inconsistent","calculationUnchecked":"Calculation not checked due to presence of duplicate facts","calculationUncheckedIncorrectVersion":"Calculation 1.1 relationships not checked in legacy calculation mode","change":"Change","changeFromIn":"From {{from}} in ","changePercentageDecrease":"{{decrease}}% decrease on ","changePercentageIncrease":"{{increase}}% increase on ","concept":"Concept","datatype":"Type","date":"Date","dimensions":"Dimensions","duplicatesCount":"{{current}} of {{total}}","entity":"Entity","factValue":"Fact Value","nonNumericFact":"non-numeric fact","noPriorFactInThisReport":"No prior fact in this report","noUnit":"<NOUNIT>","properties":"Properties","scale":"Scale","viewCalculationDetails":"View calculation details"},"footnotes":{"footnote":"Footnote"},"inspector":{"anchoring":"Anchoring","associatedFacts":"Associated facts","calculationDetails":"Calculation details","calculations":"Calculations","concealedFact":"Concealed fact","conceptType":"Concept Type","contributor":"Contributor","datatypes":"Types","dimensions":"Dimension Type","documentOutline":"Document outline","documentSummary":"Document summary","explicitDimension":"Explicit Dimensions","fact-groups":"Sections","factProperties":"Fact Properties","factSearch":"Fact Search","factValue":"Fact Value","footnoteProperties":"Footnote Properties","footnotes":"Footnotes","hidden":"Hidden","hiddenFact":"Hidden Fact","highlight":"Highlight","initializing":"Initializing","ixbrlInspector":"iXBRL Inspector","labels":"","loadingViewer":"Loading iXBRL Viewer","mandatoryFacts":"Only Mandatory Facts","namespaces":"Namespaces","narrowerAnchor":"Narrower anchors","negative":"Negative","nextTag":"Next tag","noFactSelected":"No Fact Selected","numericOption":"Numeric","outlineUnavailable":"Outline Unavailable","period":"Period","positive":"Positive","previousTag":"Previous tag","printDocument":"Print Document","references":"References","reset":"Reset","scales":"Scales","search":"Search","searchReport":"Search iXBRL Report","searchResults":"Search Results","searchTitle":"Search","settingsMenu":"Settings Menu","showAnalysisChart":"Show analysis chart","showTextOnly":"Show text only","summary":{"fact":{"header":"Fact Summary","hidden":"Hidden facts","mandatory":"Mandatory facts","total":"Total facts"},"file":{"calculations":"Calculation Linkbases","definitions":"Definition Linkbases","header":"File Summary","inline":"Inline Documents","labels":"Label Linkbases","other":"Other Linkbases","presentation":"Presentation Linkbases","references":"Reference Linkbases","schemas":"Schemas"},"reportCreation":"Report creation","tag":{"colConcepts":"Concepts","colDimensions":"Dimensions","colMembers":"Members","colNamespace":"Namespace","colTotal":"Total","header":"Tag Summary","rowTotal":"Total"}},"summation":"Summation","targetDocument":"Target Document","textOption":"Text","typedDimensions":"Typed Dimensions","units":"Units","validationCode":"Code","validationMessage":"Message","validationResults":"Validation results","validationSeverity":"Severity","visibility":"Visibility","visible":"Visible","widerAnchor":"Wider anchor","xbrlGlossaryOpensInNewTab":"XBRL Glossary (opens in new tab)"},"menu":{"actions":"Actions","applicationLanguage":"Application Language","documentLanguage":"Document Language","help":"Help","options":"Options","contactUs":"Contact Us","survey":"Survey","userGuide":"User Guide"},"search":{"concealedFact":"Concealed fact","dataTypeConflictWarning":"Warning: selection conflicts with Concept Type filter","default":"default","filter":"Filter","hiddenFact":"Hidden fact","matchingFactsSummary":"Showing {{nMatches}} of {{nTotal}} facts","noMatchFound":"No match found","reset":"Reset","selected":"selected","showMoreResults":"Show more results","toggleFilterControls":"Toggler filter controls","tryAgainDifferentKeywords":"Try again with different keywords","viewFact":"View fact"},"toolbar":{"homePage":"Home","toggleDarkMode":"Toggle dark mode","xbrlElements":"XBRL Elements"},"viewer":{"ixbrlDocumentView":"iXBRL Document View"}}')},746:t=>{"use strict";t.exports=JSON.parse('{"debit":"","credit":""}')},476:t=>{"use strict";t.exports=JSON.parse('{"centsUSD":"centavos","centsEUR":"centavos","centsAUD":"centavos","centsZAR":"centavos","centsMXN":"centavos","centsGBP":"centavos"}')},120:t=>{"use strict";t.exports=JSON.parse('{"booleanItemType":"","dateItemType":"","stringItemType":"","monetaryItemType":"","decimalItemType":"","pureItemType":"","sharesItemType":""}')},364:t=>{"use strict";t.exports=JSON.parse('{"label":"Etiqueta estándar","documentation":"Etiqueta de documentación","terseLabel":"Etiqueta concisa","verboseLabel":"Etiqueta verbosa","positiveLabel":"Etiqueta positiva","positiveTerseLabel":"Etiqueta concisa positiva","positiveVerboseLabel":"Etiqueta verbosa positiva","negativeLabel":"Etiqueta negativa","negativeTerseLabel":"Etiqueta concisa negativa","negativeVerboseLabel":"Etiqueta verbosa negativa","zeroLabel":"Etiqueta cero","zeroTerseLabel":"Etiqueta Zero Terse","zeroVerboseLabel":"Etiqueta de verbosidad cero","totalLabel":"Etiqueta total","periodStartLabel":"Etiqueta de inicio del período","periodEndLabel":"Etiqueta de fin de período","definitionGuidance":"Orientación sobre la definición","disclosureGuidance":"Guía de divulgación","presentationGuidance":"Guía de presentación","measurementGuidance":"Guía de medición","commentaryGuidance":"Guía de comentarios","exampleGuidance":"Ejemplo de orientación"}')},6:t=>{"use strict";t.exports=JSON.parse('{"Name":"Nombre","Number":"Número","IssueDate":"Fecha de Emisión","Paragraph":"Párrafo","Subparagraph":"Subpárrafo","URI":"URI","URIDate":"Fecha de URI","Note":"Nota"}')},3:t=>{"use strict";t.exports=JSON.parse('{"0":"unidades","1":"décimos","2":"cientos","3":"miles","4":"diez miles","5":"cien miles","6":"millones","7":"diez millones","8":"cien millones","9":"billones","-3":"milésimos","-2":"centésimos","-1":"décimas"}')},971:t=>{"use strict";t.exports=JSON.parse('{"anchoring":"Las relaciones de anclaje proporcionan vínculos entre los conceptos de extensión específicos de la empresa y los conceptos estándar definidos en la taxonomía base.","dimension":"Una dimensión es una característica calificativa que se utiliza para definir de forma única un punto de datos.","conceptsCount":"TEl número de conceptos únicos utilizados en este informe.","dimensionsCount":"El número de dimensiones únicas utilizadas en este informe.","fileSummary":"Una lista de los archivos que se encuentran en el archivo.","membersCount":"El número de miembros de dimensión únicos utilizados en este informe.","scale":"Para hechos numéricos, la cantidad por la cual se escala el valor presentado.","accuracy":"La precisión con la que se informa un hecho numérico.","concept":"Un concepto es un elemento que define el significado de un hecho.","period":"El período en el que se informa sobre este hecho. Puede ser un instante o una duración, según la naturaleza del concepto.","references":"Información sobre la definición autorizada de un concepto. Las referencias suelen hacer referencia a una norma contable.","calculations":"Relaciones de cálculo entre hechos numéricos en un informe. Las relaciones de cálculo se pueden utilizar para rastrear cómo se acumulan las cifras en un informe y también se pueden utilizar para verificar la coherencia de los números informados.","hiddenFacts":"La cantidad de datos ocultos en este informe. Los datos ocultos son aquellos que se informan como datos XBRL, pero que no se muestran en el informe presentado.","mandatoryFacts":"Número de hechos obligatorios en este informe. Los hechos obligatorios son hechos que la jurisdicción que presenta la solicitud debe informar.","namespace":"Los espacios de nombres se utilizan para dividir definiciones de conceptos, dimensiones y miembros. Si un informe utiliza conceptos, dimensiones o miembros específicos de la empresa, estos se definirán en un espacio de nombres independiente. Los espacios de nombres también se pueden utilizar para dividir taxonomías grandes."}')},702:t=>{"use strict";t.exports=JSON.parse('{"calculation":{"calculated-total":"","concept":"","consistent-duplicate-facts-present":"","does-not-bind":"","inconsistent-duplicate-facts-present":"","maximum":"","minimum":"","reported-total":"","reported-value":"","useCalculations11":""},"chart":{"comparisonChart":""},"common":{"accuracyInfinite":"Precisió infinita","none":"Ninguno","notApplicable":"n/d","unscaled":"Sin escala","unspecified":"Sin especificar"},"dialog":{"close":""},"factDetails":{"accuracy":"Precisión","balance":"","calculationIsConsistent":"","calculationIsInconsistent":"","calculationUnchecked":"","calculationUncheckedIncorrectVersion":"","change":"Cambio","changeFromIn":"Anteriormente {{from}} en ","changePercentageDecrease":"{{decrease}}% menos que en ","changePercentageIncrease":"{{increase}}% más que en ","concept":"Concepto","datatype":"","date":"Fecha","dimensions":"Dimensiones","duplicatesCount":"{{current}} de {{total}}","entity":"Entidad","factValue":"Valor del hecho","nonNumericFact":"","noPriorFactInThisReport":"No hay un hecho previo","noUnit":"Sin unidad","properties":"Características","scale":"Escala","viewCalculationDetails":""},"footnotes":{"footnote":"Nota al pie de página"},"inspector":{"anchoring":"Anclaje","associatedFacts":"Hechos asociados","calculationDetails":"","calculations":"Cálculos","concealedFact":"","conceptType":"Tipo de concepto","contributor":"","datatypes":"Tipos de datos","dimensions":"Tipo de dimensión","documentOutline":"Esquema del documento","documentSummary":"Resumen del documento","explicitDimension":"","fact-groups":"","factProperties":"Propiedades del hecho","factSearch":"Búsqueda de hechos","factValue":"","footnoteProperties":"Propiedades de la nota al pie de página","footnotes":"Notas al pie de página","hidden":"Oculto","hiddenFact":"Hecho oculto","highlight":"Destacar","initializing":"","ixbrlInspector":"","labels":"","loadingViewer":"Preparando el visor iXBRL","mandatoryFacts":"Sólo hechos obligatorios","namespaces":"Espacios de nombres","narrowerAnchor":"Anclaje angosto","negative":"Negativo","nextTag":"","noFactSelected":"Ningún hecho seleccionado","numericOption":"Numérico","outlineUnavailable":"","period":"Periodo","positive":"Positivo","previousTag":"","printDocument":"","references":"Referencias","reset":"Limpiar","scales":"Escalas","search":"Buscar","searchReport":"","searchResults":"","searchTitle":"Búsqueda de hechos","settingsMenu":"","showAnalysisChart":"","showTextOnly":"","summary":{"fact":{"header":"Resumen de los hechos","hidden":"Hechos ocultos","mandatory":"Hechos obligatorios","total":"Hechos totales"},"file":{"calculations":"","definitions":"","header":"Resumen del archivo","inline":"Documentos en línea","labels":"","other":"","presentation":"","references":"","schemas":""},"reportCreation":"","tag":{"colConcepts":"Conceptos","colDimensions":"Dimensiones","colMembers":"Miembros","colNamespace":"Espacio de nombres","colTotal":"Total","header":"Resumen de la etiqueta","rowTotal":"Total"}},"summation":"","targetDocument":"","textOption":"Texto","typedDimensions":"","units":"Unidads","validationCode":"","validationMessage":"","validationResults":"","validationSeverity":"","visibility":"Visibilidad","visible":"Visible","widerAnchor":"Anclaje amplio","xbrlGlossaryOpensInNewTab":"Glosario XBRL (se abre en una pestaña nueva)"},"menu":{"actions":"Comportamientos","applicationLanguage":"Idioma de Aplicación","documentLanguage":"Idioma del Documento","help":"Ayuda","options":"Opciones","contactUs":"Contacta con nosotros","survey":"Encuesta","userGuide":"Guía del Usuario"},"search":{"concealedFact":"","dataTypeConflictWarning":"","default":"","filter":"Filtro","hiddenFact":"Hecho oculto","matchingFactsSummary":"","noMatchFound":"No se encontró ninguna coincidencia","reset":"","selected":"seleccionados","showMoreResults":"Mostrar más resultados","toggleFilterControls":"","tryAgainDifferentKeywords":"Intente nuevamente con palabras clave diferentes","viewFact":""},"toolbar":{"homePage":"Inicio","toggleDarkMode":"Alternar modo oscuro","xbrlElements":"Elementos XBRL"},"viewer":{"ixbrlDocumentView":""}}')}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";var t=n(651),e=n.n(t),i=n(806),r=n.n(i);const o=t=>"string"==typeof t,s=()=>{let t,e;const n=new Promise(((n,i)=>{t=n,e=i}));return n.resolve=t,n.reject=e,n},a=t=>null==t?"":""+t,l=/###/g,c=t=>t&&t.indexOf("###")>-1?t.replace(l,"."):t,u=t=>!t||o(t),d=(t,e,n)=>{const i=o(e)?e.split("."):e;let r=0;for(;r<i.length-1;){if(u(t))return{};const e=c(i[r]);!t[e]&&n&&(t[e]=new n),t=Object.prototype.hasOwnProperty.call(t,e)?t[e]:{},++r}return u(t)?{}:{obj:t,k:c(i[r])}},h=(t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);if(void 0!==i||1===e.length)return void(i[r]=n);let o=e[e.length-1],s=e.slice(0,e.length-1),a=d(t,s,Object);for(;void 0===a.obj&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=d(t,s,Object),a&&a.obj&&void 0!==a.obj[`${a.k}.${o}`]&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=n},p=(t,e)=>{const{obj:n,k:i}=d(t,e);if(n)return n[i]},f=(t,e,n)=>{for(const i in e)"__proto__"!==i&&"constructor"!==i&&(i in t?o(t[i])||t[i]instanceof String||o(e[i])||e[i]instanceof String?n&&(t[i]=e[i]):f(t[i],e[i],n):t[i]=e[i]);return t},g=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const v=t=>o(t)?t.replace(/[&<>"'\/]/g,(t=>m[t])):t,y=[" ",",","?","!",";"],b=new class{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const e=this.regExpMap.get(t);if(void 0!==e)return e;const n=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,n),this.regExpQueue.push(t),n}}(20),w=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!t)return;if(t[e])return t[e];const i=e.split(n);let r=t;for(let t=0;t<i.length;){if(!r||"object"!=typeof r)return;let e,o="";for(let s=t;s<i.length;++s)if(s!==t&&(o+=n),o+=i[s],e=r[o],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&s<i.length-1)continue;t+=s-t+1;break}r=e}return r},A=t=>t&&t.replace("_","-"),x={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class C{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,e)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||x,this.options=e,this.debug=e.debug}log(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}warn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}error(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}deprecate(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(t,e,n,i){return i&&!this.debug?null:(o(t[0])&&(t[0]=`${n}${this.prefix} ${t[0]}`),this.logger[e](t))}create(t){return new C(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new C(this.logger,t)}}var M=new C;class L{constructor(){this.observers={}}on(t,e){return t.split(" ").forEach((t=>{this.observers[t]||(this.observers[t]=new Map);const n=this.observers[t].get(e)||0;this.observers[t].set(e,n+1)})),this}off(t,e){this.observers[t]&&(e?this.observers[t].delete(e):delete this.observers[t])}emit(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.observers[t]&&Array.from(this.observers[t].entries()).forEach((t=>{let[e,i]=t;for(let t=0;t<i;t++)e(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((e=>{let[i,r]=e;for(let e=0;e<r;e++)i.apply(i,[t,...n])}))}}class I extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,s=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,e],n&&(Array.isArray(n)?a.push(...n):o(n)&&r?a.push(...n.split(r)):a.push(n)));const l=p(this.data,a);return!l&&!e&&!n&&t.indexOf(".")>-1&&(t=a[0],e=a[1],n=a.slice(2).join(".")),!l&&s&&o(n)?w(this.data&&this.data[t]&&this.data[t][e],n,r):l}addResource(t,e,n,i){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator;let s=[t,e];n&&(s=s.concat(o?n.split(o):n)),t.indexOf(".")>-1&&(s=t.split("."),i=e,e=s[1]),this.addNamespaces(e),h(this.data,s,i),r.silent||this.emit("added",t,e,n,i)}addResources(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const i in n)(o(n[i])||Array.isArray(n[i]))&&this.addResource(t,e,i,n[i],{silent:!0});i.silent||this.emit("added",t,e,n)}addResourceBundle(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},s=[t,e];t.indexOf(".")>-1&&(s=t.split("."),i=n,n=e,e=s[1]),this.addNamespaces(e);let a=p(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?f(a,n,r):a={...a,...n},h(this.data,s,a),o.silent||this.emit("added",t,e,n)}removeResourceBundle(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}hasResourceBundle(t,e){return void 0!==this.getResource(t,e)}getResourceBundle(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(t,e)}:this.getResource(t,e)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const e=this.getDataByLanguage(t);return!!(e&&Object.keys(e)||[]).find((t=>e[t]&&Object.keys(e[t]).length>0))}toJSON(){return this.data}}var _={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,i,r){return t.forEach((t=>{this.processors[t]&&(e=this.processors[t].process(e,n,i,r))})),e}};const S={};class k extends L{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,i;super(),n=t,i=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((t=>{n[t]&&(i[t]=n[t])})),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=M.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==t)return!1;const n=this.resolve(t,e);return n&&void 0!==n.res}extractFromKey(t,e){let n=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let r=e.ns||this.options.defaultNS||[];const s=n&&t.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||((t,e,n)=>{e=e||"",n=n||"";const i=y.filter((t=>e.indexOf(t)<0&&n.indexOf(t)<0));if(0===i.length)return!0;const r=b.getRegExp(`(${i.map((t=>"?"===t?"\\?":t)).join("|")})`);let o=!r.test(t);if(!o){const e=t.indexOf(n);e>0&&!r.test(t.substring(0,e))&&(o=!0)}return o})(t,n,i));if(s&&!a){const e=t.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:t,namespaces:r};const o=t.split(n);(n!==i||n===i&&this.options.ns.indexOf(o[0])>-1)&&(r=o.shift()),t=o.join(i)}return o(r)&&(r=[r]),{key:t,namespaces:r}}translate(t,e,n){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==t)return"";Array.isArray(t)||(t=[String(t)]);const i=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,r=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(t[t.length-1],e),l=a[a.length-1],c=e.lng||this.language,u=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){const t=e.nsSeparator||this.options.nsSeparator;return i?{res:`${l}${t}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:`${l}${t}${s}`}return i?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(e)}:s}const d=this.resolve(t,e);let h=d&&d.res;const p=d&&d.usedKey||s,f=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(h),m=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!o(h)&&"boolean"!=typeof h&&"number"!=typeof h;if(!(v&&h&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0)||o(m)&&Array.isArray(h))if(v&&o(m)&&Array.isArray(h))h=h.join(m),h&&(h=this.extendTranslation(h,t,e,n));else{let i=!1,a=!1;const u=void 0!==e.count&&!o(e.count),p=k.hasDefaultValue(e),f=u?this.pluralResolver.getSuffix(c,e.count,e):"",g=e.ordinal&&u?this.pluralResolver.getSuffix(c,e.count,{ordinal:!1}):"",m=u&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),v=m&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${f}`]||e[`defaultValue${g}`]||e.defaultValue;!this.isValidLookup(h)&&p&&(i=!0,h=v),this.isValidLookup(h)||(a=!0,h=s);const y=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,b=p&&v!==h&&this.options.updateMissing;if(a||i||b){if(this.logger.log(b?"updateKey":"missingKey",c,l,s,b?v:h),r){const t=this.resolve(s,{...e,keySeparator:!1});t&&t.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let t=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let e=0;e<n.length;e++)t.push(n[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(e.lng||this.language):t.push(e.lng||this.language);const i=(t,n,i)=>{const r=p&&i!==h?i:y;this.options.missingKeyHandler?this.options.missingKeyHandler(t,l,n,r,b,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(t,l,n,r,b,e),this.emit("missingKey",t,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?t.forEach((t=>{const n=this.pluralResolver.getSuffixes(t,e);m&&e[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{i([t],s+n,e[`defaultValue${n}`]||v)}))})):i(t,s,v))}h=this.extendTranslation(h,t,e,d,n),a&&h===s&&this.options.appendNamespaceToMissingKey&&(h=`${l}:${s}`),(a||i)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,i?h:void 0):this.options.parseMissingKeyHandler(h))}else{if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...e,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return i?(d.res=t,d.usedParams=this.getUsedParamsDetails(e),d):t}if(r){const t=Array.isArray(h),n=t?[]:{},i=t?f:p;for(const t in h)if(Object.prototype.hasOwnProperty.call(h,t)){const o=`${i}${r}${t}`;n[t]=this.translate(o,{...e,joinArrays:!1,ns:a}),n[t]===o&&(n[t]=h[t])}h=n}}return i?(d.res=h,d.usedParams=this.getUsedParamsDetails(e),d):h}extendTranslation(t,e,n,i,r){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=o(t)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let l;if(a){const e=t.match(this.interpolator.nestingRegexp);l=e&&e.length}let c=n.replace&&!o(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),t=this.interpolator.interpolate(t,c,n.lng||this.language||i.usedLng,n),a){const e=t.match(this.interpolator.nestingRegexp);l<(e&&e.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(t=this.interpolator.nest(t,(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(s.logger.warn(`It seems you are nesting recursively key: ${i[0]} in key: ${e[0]}`),null):s.translate(...i,e)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,l=o(a)?[a]:a;return null!=t&&l&&l.length&&!1!==n.applyPostProcessor&&(t=_.handle(l,t,e,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),t}resolve(t){let e,n,i,r,s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(t)&&(t=[t]),t.forEach((t=>{if(this.isValidLookup(e))return;const l=this.extractFromKey(t,a),c=l.key;n=c;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const d=void 0!==a.count&&!o(a.count),h=d&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),p=void 0!==a.context&&(o(a.context)||"number"==typeof a.context)&&""!==a.context,f=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);u.forEach((t=>{this.isValidLookup(e)||(s=t,!S[`${f[0]}-${t}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(S[`${f[0]}-${t}`]=!0,this.logger.warn(`key "${n}" for languages "${f.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((n=>{if(this.isValidLookup(e))return;r=n;const o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,n,t,a);else{let t;d&&(t=this.pluralResolver.getSuffix(n,a.count,a));const e=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(o.push(c+t),a.ordinal&&0===t.indexOf(i)&&o.push(c+t.replace(i,this.options.pluralSeparator)),h&&o.push(c+e)),p){const n=`${c}${this.options.contextSeparator}${a.context}`;o.push(n),d&&(o.push(n+t),a.ordinal&&0===t.indexOf(i)&&o.push(n+t.replace(i,this.options.pluralSeparator)),h&&o.push(n+e))}}let s;for(;s=o.pop();)this.isValidLookup(e)||(i=s,e=this.getResource(n,t,s,a))})))}))})),{res:e,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:s}}isValidLookup(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}getResource(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,i):this.resourceStore.getResource(t,e,n,i)}getUsedParamsDetails(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=t.replace&&!o(t.replace);let i=n?t.replace:t;if(n&&void 0!==t.count&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!n){i={...i};for(const t of e)delete i[t]}return i}static hasDefaultValue(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)&&"defaultValue"===e.substring(0,12)&&void 0!==t[e])return!0;return!1}}const T=t=>t.charAt(0).toUpperCase()+t.slice(1);class D{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=M.create("languageUtils")}getScriptPartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return null;const e=t.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(t){if(!(t=A(t))||t.indexOf("-")<0)return t;const e=t.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(t){if(o(t)&&t.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let e=Intl.getCanonicalLocales(t)[0];if(e&&this.options.lowerCaseLng&&(e=e.toLowerCase()),e)return e}catch(t){}const e=["hans","hant","latn","cyrl","cans","mong","arab"];let n=t.split("-");return this.options.lowerCaseLng?n=n.map((t=>t.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),e.indexOf(n[1].toLowerCase())>-1&&(n[1]=T(n[1].toLowerCase())),e.indexOf(n[2].toLowerCase())>-1&&(n[2]=T(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let e;return t.forEach((t=>{if(e)return;const n=this.formatLanguageCode(t);this.options.supportedLngs&&!this.isSupportedCode(n)||(e=n)})),!e&&this.options.supportedLngs&&t.forEach((t=>{if(e)return;const n=this.getLanguagePartFromCode(t);if(this.isSupportedCode(n))return e=n;e=this.options.supportedLngs.find((t=>t===n?t:t.indexOf("-")<0&&n.indexOf("-")<0?void 0:t.indexOf("-")>0&&n.indexOf("-")<0&&t.substring(0,t.indexOf("-"))===n||0===t.indexOf(n)&&n.length>1?t:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(t,e){if(!t)return[];if("function"==typeof t&&(t=t(e)),o(t)&&(t=[t]),Array.isArray(t))return t;if(!e)return t.default||[];let n=t[e];return n||(n=t[this.getScriptPartFromCode(e)]),n||(n=t[this.formatLanguageCode(e)]),n||(n=t[this.getLanguagePartFromCode(e)]),n||(n=t.default),n||[]}toResolveHierarchy(t,e){const n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=t=>{t&&(this.isSupportedCode(t)?i.push(t):this.logger.warn(`rejecting language code not found in supportedLngs: ${t}`))};return o(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):o(t)&&r(this.formatLanguageCode(t)),n.forEach((t=>{i.indexOf(t)<0&&r(this.formatLanguageCode(t))})),i}}let j=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:t=>Number(t>1),2:t=>Number(1!=t),3:t=>0,4:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),5:t=>Number(0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5),6:t=>Number(1==t?0:t>=2&&t<=4?1:2),7:t=>Number(1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2),8:t=>Number(1==t?0:2==t?1:8!=t&&11!=t?2:3),9:t=>Number(t>=2),10:t=>Number(1==t?0:2==t?1:t<7?2:t<11?3:4),11:t=>Number(1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3),12:t=>Number(t%10!=1||t%100==11),13:t=>Number(0!==t),14:t=>Number(1==t?0:2==t?1:3==t?2:3),15:t=>Number(t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2),16:t=>Number(t%10==1&&t%100!=11?0:0!==t?1:2),17:t=>Number(1==t||t%10==1&&t%100!=11?0:1),18:t=>Number(0==t?0:1==t?1:2),19:t=>Number(1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3),20:t=>Number(1==t?0:0==t||t%100>0&&t%100<20?1:2),21:t=>Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0),22:t=>Number(1==t?0:2==t?1:(t<0||t>10)&&t%10==0?2:3)};const O=["v1","v2","v3"],E=["v4"],z={zero:0,one:1,two:2,few:3,many:4,other:5};class F{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=e,this.logger=M.create("pluralResolver"),this.options.compatibilityJSON&&!E.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const t={};return j.forEach((e=>{e.lngs.forEach((n=>{t[n]={numbers:e.nr,plurals:N[e.fc]}}))})),t})(),this.pluralRulesCache={}}addRule(t,e){this.rules[t]=e}clearCache(){this.pluralRulesCache={}}getRule(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{const n=A("dev"===t?"en":t),i=e.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:n,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];const o=new Intl.PluralRules(n,{type:i});return this.pluralRulesCache[r]=o,o}catch(t){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(t,n).map((t=>`${e}${t}`))}getSuffixes(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(t,e);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((t,e)=>z[t]-z[e])).map((t=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${t}`)):n.numbers.map((n=>this.getSuffix(t,n,e))):[]}getSuffix(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=this.getRule(t,n);return i?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(e)}`:this.getSuffixRetroCompatible(i,e):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,e){const n=t.noAbs?t.plurals(e):t.plurals(Math.abs(e));let i=t.numbers[n];this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]&&(2===i?i="plural":1===i&&(i=""));const r=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?`_plural_${i.toString()}`:r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===t.numbers.length&&1===t.numbers[0]?r():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!O.includes(this.options.compatibilityJSON)}}const R=function(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=((t,e,n)=>{const i=p(t,n);return void 0!==i?i:p(e,n)})(t,e,n);return!s&&r&&o(n)&&(s=w(t,n,i),void 0===s&&(s=w(e,n,i))),s},P=t=>t.replace(/\$/g,"$$$$");class Y{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(t=>t),this.init(t)}init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:e,escapeValue:n,useRawValueToEscape:i,prefix:r,prefixEscaped:o,suffix:s,suffixEscaped:a,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:p,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=void 0!==e?e:v,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?g(r):o||"{{",this.suffix=s?g(s):a||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?g(d):h||g("$t("),this.nestingSuffix=p?g(p):f||g(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(t,e)=>t&&t.source===e?(t.lastIndex=0,t):new RegExp(e,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,e,n,i){let r,s,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=t=>{if(t.indexOf(this.formatSeparator)<0){const r=R(e,c,t,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...i,...e,interpolationkey:t}):r}const r=t.split(this.formatSeparator),o=r.shift().trim(),s=r.join(this.formatSeparator).trim();return this.format(R(e,c,o,this.options.keySeparator,this.options.ignoreJSONStructure),s,n,{...i,...e,interpolationkey:o})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,h=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:t=>P(t)},{regex:this.regexp,safeValue:t=>this.escapeValue?P(this.escape(t)):P(t)}].forEach((e=>{for(l=0;r=e.regex.exec(t);){const n=r[1].trim();if(s=u(n),void 0===s)if("function"==typeof d){const e=d(t,r,i);s=o(e)?e:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))s="";else{if(h){s=r[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${t}`),s=""}else o(s)||this.useRawValueToEscape||(s=a(s));const c=e.safeValue(s);if(t=t.replace(r[0],c),h?(e.regex.lastIndex+=s.length,e.regex.lastIndex-=r[0].length):e.regex.lastIndex=0,l++,l>=this.maxReplaces)break}})),t}nest(t,e){let n,i,r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=(t,e)=>{const n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;const i=t.split(new RegExp(`${n}[ ]*{`));let o=`{${i[1]}`;t=i[0],o=this.interpolate(o,r);const s=o.match(/'/g),a=o.match(/"/g);(s&&s.length%2==0&&!a||a.length%2!=0)&&(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),e&&(r={...e,...r})}catch(e){return this.logger.warn(`failed parsing options string in nesting for key ${t}`,e),`${t}${n}${o}`}return r.defaultValue&&r.defaultValue.indexOf(this.prefix)>-1&&delete r.defaultValue,t};for(;n=this.nestingRegexp.exec(t);){let c=[];r={...s},r=r.replace&&!o(r.replace)?r.replace:r,r.applyPostProcessor=!1,delete r.defaultValue;let u=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const t=n[1].split(this.formatSeparator).map((t=>t.trim()));n[1]=t.shift(),c=t,u=!0}if(i=e(l.call(this,n[1].trim(),r),r),i&&n[0]===t&&!o(i))return i;o(i)||(i=a(i)),i||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${t}`),i=""),u&&(i=c.reduce(((t,e)=>this.format(t,e,s.lng,{...s,interpolationkey:n[1].trim()})),i.trim())),t=t.replace(n[0],i),this.regexp.lastIndex=0}return t}}const U=t=>{const e={};return(n,i,r)=>{let o=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(o={...o,[r.interpolationkey]:void 0});const s=i+JSON.stringify(o);let a=e[s];return a||(a=t(A(i),r),e[s]=a),a(n)}};class W{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=M.create("formatter"),this.options=t,this.formats={number:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e});return t=>n.format(t)})),currency:U(((t,e)=>{const n=new Intl.NumberFormat(t,{...e,style:"currency"});return t=>n.format(t)})),datetime:U(((t,e)=>{const n=new Intl.DateTimeFormat(t,{...e});return t=>n.format(t)})),relativetime:U(((t,e)=>{const n=new Intl.RelativeTimeFormat(t,{...e});return t=>n.format(t,e.range||"day")})),list:U(((t,e)=>{const n=new Intl.ListFormat(t,{...e});return t=>n.format(t)}))},this.init(t)}init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=e.interpolation.formatSeparator||","}add(t,e){this.formats[t.toLowerCase().trim()]=e}addCached(t,e){this.formats[t.toLowerCase().trim()]=U(e)}format(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const r=e.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find((t=>t.indexOf(")")>-1))){const t=r.findIndex((t=>t.indexOf(")")>-1));r[0]=[r[0],...r.splice(1,t)].join(this.formatSeparator)}return r.reduce(((t,e)=>{const{formatName:r,formatOptions:o}=(t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const i=t.split("(");e=i[0].toLowerCase().trim();const r=i[1].substring(0,i[1].length-1);"currency"===e&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===e&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((t=>{if(t){const[e,...i]=t.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),o=e.trim();n[o]||(n[o]=r),"false"===r&&(n[o]=!1),"true"===r&&(n[o]=!0),isNaN(r)||(n[o]=parseInt(r,10))}}))}return{formatName:e,formatOptions:n}})(e);if(this.formats[r]){let e=t;try{const s=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},a=s.locale||s.lng||i.locale||i.lng||n;e=this.formats[r](t,a,{...o,...i,...s})}catch(t){this.logger.warn(t)}return e}return this.logger.warn(`there was no format function for ${r}`),t}),t)}}class B extends L{constructor(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=t,this.store=e,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=M.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,i.backend,i)}queueLoad(t,e,n,i){const r={},o={},s={},a={};return t.forEach((t=>{let i=!0;e.forEach((e=>{const s=`${t}|${e}`;!n.reload&&this.store.hasResourceBundle(t,e)?this.state[s]=2:this.state[s]<0||(1===this.state[s]?void 0===o[s]&&(o[s]=!0):(this.state[s]=1,i=!1,void 0===o[s]&&(o[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===a[e]&&(a[e]=!0)))})),i||(s[t]=!0)})),(Object.keys(r).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(a)}}loaded(t,e,n){const i=t.split("|"),r=i[0],o=i[1];e&&this.emit("failedLoading",r,o,e),!e&&n&&this.store.addResourceBundle(r,o,n,void 0,void 0,{skipCopy:!0}),this.state[t]=e?-1:2,e&&n&&(this.state[t]=0);const s={};this.queue.forEach((n=>{((t,e,n)=>{const{obj:i,k:r}=d(t,e,Object);i[r]=i[r]||[],i[r].push(n)})(n.loaded,[r],o),((t,e)=>{void 0!==t.pending[e]&&(delete t.pending[e],t.pendingCount--)})(n,t),e&&n.errors.push(e),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((t=>{s[t]||(s[t]={});const e=n.loaded[t];e.length&&e.forEach((e=>{void 0===s[t][e]&&(s[t][e]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",s),this.queue=this.queue.filter((t=>!t.done))}read(t,e,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:t,ns:e,fcName:n,tried:i,wait:r,callback:o});this.readingCalls++;const s=(s,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const t=this.waitingReads.shift();this.read(t.lng,t.ns,t.fcName,t.tried,t.wait,t.callback)}s&&a&&i<this.maxRetries?setTimeout((()=>{this.read.call(this,t,e,n,i+1,2*r,o)}),r):o(s,a)},a=this.backend[n].bind(this.backend);if(2!==a.length)return a(t,e,s);try{const n=a(t,e);n&&"function"==typeof n.then?n.then((t=>s(null,t))).catch(s):s(null,n)}catch(t){s(t)}}prepareLoading(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();o(t)&&(t=this.languageUtils.toResolveHierarchy(t)),o(e)&&(e=[e]);const r=this.queueLoad(t,e,n,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach((t=>{this.loadOne(t)}))}load(t,e,n){this.prepareLoading(t,e,{},n)}reload(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}loadOne(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=t.split("|"),i=n[0],r=n[1];this.read(i,r,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${e}loading namespace ${r} for language ${i} failed`,n),!n&&o&&this.logger.log(`${e}loaded namespace ${r} for language ${i}`,o),this.loaded(t,n,o)}))}saveMissing(t,e,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${n}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const a={...o,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;r=5===l.length?l(t,e,n,i,a):l(t,e,n,i),r&&"function"==typeof r.then?r.then((t=>s(null,t))).catch(s):s(null,r)}catch(t){s(t)}else l(t,e,n,i,s,a)}t&&t[0]&&this.store.addResource(t[0],e,n,i)}}}const Z=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if("object"==typeof t[1]&&(e=t[1]),o(t[1])&&(e.defaultValue=t[1]),o(t[2])&&(e.tDescription=t[2]),"object"==typeof t[2]||"object"==typeof t[3]){const n=t[3]||t[2];Object.keys(n).forEach((t=>{e[t]=n[t]}))}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),H=t=>(o(t.ns)&&(t.ns=[t.ns]),o(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),o(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),G=()=>{};class V extends L{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=H(t),this.services={},this.logger=M,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((t=>{"function"==typeof n[t]&&(n[t]=n[t].bind(n))})),e&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,e),this;setTimeout((()=>{this.init(t,e)}),0)}}init(){var t=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(n=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&(o(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const i=Z();this.options={...i,...this.options,...H(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=t=>t?"function"==typeof t?new t:t:null;if(!this.options.isClone){let e;this.modules.logger?M.init(r(this.modules.logger),this.options):M.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=W);const n=new D(this.options);this.store=new I(this.options.resources,this.options);const o=this.services;o.logger=M,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new F(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(o.formatter=r(e),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new Y(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new B(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new k(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.emit(e,...i)})),this.modules.external.forEach((t=>{t.init&&t.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=G),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const t=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);t.length>0&&"dev"!==t[0]&&(this.options.lng=t[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return t.store[e](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return t.store[e](...arguments),t}}));const a=s(),l=()=>{const t=(t,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(e),n(t,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return t(null,this.t.bind(this));this.changeLanguage(this.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),a}loadResources(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=o(t)?t:this.language;if("function"==typeof t&&(e=t),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const t=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&t.indexOf(e)<0&&t.push(e)}))};n?i(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((t=>i(t))),this.options.preload&&this.options.preload.forEach((t=>i(t))),this.services.backendConnector.load(t,this.options.ns,(t=>{t||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(t)}))}else e(null)}reloadResources(t,e,n){const i=s();return"function"==typeof t&&(n=t,t=void 0),"function"==typeof e&&(n=e,e=void 0),t||(t=this.languages),e||(e=this.options.ns),n||(n=G),this.services.backendConnector.reload(t,e,(t=>{i.resolve(),n(t)})),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&_.addPostProcessor(t),"formatter"===t.type&&(this.modules.formatter=t),"3rdParty"===t.type&&this.modules.external.push(t),this}setResolvedLanguage(t){if(t&&this.languages&&!(["cimode","dev"].indexOf(t)>-1))for(let t=0;t<this.languages.length;t++){const e=this.languages[t];if(!(["cimode","dev"].indexOf(e)>-1)&&this.store.hasLanguageSomeTranslations(e)){this.resolvedLanguage=e;break}}}changeLanguage(t,e){var n=this;this.isLanguageChangingTo=t;const i=s();this.emit("languageChanging",t);const r=t=>{this.language=t,this.languages=this.services.languageUtils.toResolveHierarchy(t),this.resolvedLanguage=void 0,this.setResolvedLanguage(t)},a=(t,o)=>{o?(r(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,i.resolve((function(){return n.t(...arguments)})),e&&e(t,(function(){return n.t(...arguments)}))},l=e=>{t||e||!this.services.languageDetector||(e=[]);const n=o(e)?e:this.services.languageUtils.getBestMatchFromCodes(e);n&&(this.language||r(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(t=>{a(t,n)}))};return t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t):l(this.services.languageDetector.detect()),i}getFixedT(t,e,n){var i=this;const r=function(t,e){let o;if("object"!=typeof e){for(var s=arguments.length,a=new Array(s>2?s-2:0),l=2;l<s;l++)a[l-2]=arguments[l];o=i.options.overloadTranslationOptionHandler([t,e].concat(a))}else o={...e};o.lng=o.lng||r.lng,o.lngs=o.lngs||r.lngs,o.ns=o.ns||r.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||r.keyPrefix);const c=i.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(t)?t.map((t=>`${o.keyPrefix}${c}${t}`)):o.keyPrefix?`${o.keyPrefix}${c}${t}`:t,i.t(u,o)};return o(t)?r.lng=t:r.lngs=t,r.ns=e,r.keyPrefix=n,r}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=e.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(t,e)=>{const n=this.services.backendConnector.state[`${t}|${e}`];return-1===n||0===n||2===n};if(e.precheck){const t=e.precheck(this,o);if(void 0!==t)return t}return!(!this.hasResourceBundle(n,t)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,t)||i&&!o(r,t)))}loadNamespaces(t,e){const n=s();return this.options.ns?(o(t)&&(t=[t]),t.forEach((t=>{this.options.ns.indexOf(t)<0&&this.options.ns.push(t)})),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}loadLanguages(t,e){const n=s();o(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter((t=>i.indexOf(t)<0&&this.services.languageUtils.isSupportedCode(t)));return r.length?(this.options.preload=i.concat(r),this.loadResources((t=>{n.resolve(),e&&e(t)})),n):(e&&e(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const e=this.services&&this.services.languageUtils||new D(Z());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;const n=t.forkResourceStore;n&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new V(i);return void 0===t.debug&&void 0===t.prefix||(r.logger=r.logger.clone(t)),["store","services","language"].forEach((t=>{r[t]=this[t]})),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new I(this.store.data,i),r.services.resourceStore=r.store),r.translator=new k(r.services,i),r.translator.on("*",(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];r.emit(t,...n)})),r.init(i,e),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Q=V.createInstance();Q.createInstance=V.createInstance,Q.createInstance,Q.dir,Q.init,Q.loadResources,Q.reloadResources,Q.use,Q.changeLanguage,Q.getFixedT,Q.t,Q.exists,Q.setDefaultNamespace,Q.hasLoadedNamespace,Q.loadNamespaces,Q.loadLanguages;var J,X,q=n(420),K=n.n(q),$=9e15,tt=1e9,et="0123456789abcdef",nt="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",it="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",rt={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$,maxE:$,crypto:!1},ot=!0,st="[DecimalError] ",at=st+"Invalid argument: ",lt=st+"Precision limit exceeded",ct=st+"crypto unavailable",ut="[object Decimal]",dt=Math.floor,ht=Math.pow,pt=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ft=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,gt=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,mt=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,vt=1e7,yt=nt.length-1,bt=it.length-1,wt={toStringTag:ut};function At(t){var e,n,i,r=t.length-1,o="",s=t[0];if(r>0){for(o+=s,e=1;e<r;e++)(n=7-(i=t[e]+"").length)&&(o+=jt(n)),o+=i;(n=7-(i=(s=t[e])+"").length)&&(o+=jt(n))}else if(0===s)return"0";for(;s%10==0;)s/=10;return o+s}function xt(t,e,n){if(t!==~~t||t<e||t>n)throw Error(at+t)}function Ct(t,e,n,i){var r,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,r=0):(r=Math.ceil((e+1)/7),e%=7),o=ht(10,7-e),a=t[r]%o|0,null==i?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[r+1]/o/100|0)==ht(10,e-2)-1||(a==o/2||0==a)&&!(t[r+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(i||n<4)&&9999==a||!i&&n>3&&4999==a):s=((i||n<4)&&a+1==o||!i&&n>3&&a+1==o/2)&&(t[r+1]/o/1e3|0)==ht(10,e-3)-1,s}function Mt(t,e,n){for(var i,r,o=[0],s=0,a=t.length;s<a;){for(r=o.length;r--;)o[r]*=e;for(o[0]+=et.indexOf(t.charAt(s++)),i=0;i<o.length;i++)o[i]>n-1&&(void 0===o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}wt.absoluteValue=wt.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),It(t)},wt.ceil=function(){return It(new this.constructor(this),this.e+1,2)},wt.clampedTo=wt.clamp=function(t,e){var n=this,i=n.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(at+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new i(n)},wt.comparedTo=wt.cmp=function(t){var e,n,i,r,o=this,s=o.d,a=(t=new o.constructor(t)).d,l=o.s,c=t.s;if(!s||!a)return l&&c?l!==c?l:s===a?0:!s^l<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?l:a[0]?-c:0;if(l!==c)return l;if(o.e!==t.e)return o.e>t.e^l<0?1:-1;for(e=0,n=(i=s.length)<(r=a.length)?i:r;e<n;++e)if(s[e]!==a[e])return s[e]>a[e]^l<0?1:-1;return i===r?0:i>r^l<0?1:-1},wt.cosine=wt.cos=function(){var t,e,n=this,i=n.constructor;return n.d?n.d[0]?(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i,r;if(e.isZero())return e;(i=e.d.length)<32?r=(1/Wt(4,n=Math.ceil(i/3))).toString():(n=16,r="2.3283064365386962890625e-10"),t.precision+=n,e=Ut(t,1,e.times(r),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(i,Bt(i,n)),i.precision=t,i.rounding=e,It(2==X||3==X?n.neg():n,t,e,!0)):new i(1):new i(NaN)},wt.cubeRoot=wt.cbrt=function(){var t,e,n,i,r,o,s,a,l,c,u=this,d=u.constructor;if(!u.isFinite()||u.isZero())return new d(u);for(ot=!1,(o=u.s*ht(u.s*u,1/3))&&Math.abs(o)!=1/0?i=new d(o.toString()):(n=At(u.d),(o=((t=u.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=ht(n,1/3),t=dt((t+1)/3)-(t%3==(t<0?-1:2)),(i=new d(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=u.s),s=(t=d.precision)+3;;)if(c=(l=(a=i).times(a).times(a)).plus(u),i=Lt(c.plus(u).times(a),c.plus(l),s+2,1),At(a.d).slice(0,s)===(n=At(i.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(r||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(It(i,t+1,1),e=!i.times(i).times(i).eq(u));break}if(!r&&(It(a,t+1,0),a.times(a).times(a).eq(u))){i=a;break}s+=4,r=1}return ot=!0,It(i,t,d.rounding,e)},wt.decimalPlaces=wt.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-dt(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},wt.dividedBy=wt.div=function(t){return Lt(this,new this.constructor(t))},wt.dividedToIntegerBy=wt.divToInt=function(t){var e=this.constructor;return It(Lt(this,new e(t),0,1,1),e.precision,e.rounding)},wt.equals=wt.eq=function(t){return 0===this.cmp(t)},wt.floor=function(){return It(new this.constructor(this),this.e+1,3)},wt.greaterThan=wt.gt=function(t){return this.cmp(t)>0},wt.greaterThanOrEqualTo=wt.gte=function(t){var e=this.cmp(t);return 1==e||0===e},wt.hyperbolicCosine=wt.cosh=function(){var t,e,n,i,r,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,i=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(r=o.d.length)<32?e=(1/Wt(4,t=Math.ceil(r/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Ut(s,1,o.times(e),new s(1),!0);for(var l,c=t,u=new s(8);c--;)l=o.times(o),o=a.minus(l.times(u.minus(l.times(u))));return It(o,s.precision=n,s.rounding=i,!0)},wt.hyperbolicSine=wt.sinh=function(){var t,e,n,i,r=this,o=r.constructor;if(!r.isFinite()||r.isZero())return new o(r);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(r.e,r.sd())+4,o.rounding=1,(i=r.d.length)<3)r=Ut(o,2,r,r,!0);else{t=(t=1.4*Math.sqrt(i))>16?16:0|t,r=Ut(o,2,r=r.times(1/Wt(5,t)),r,!0);for(var s,a=new o(5),l=new o(16),c=new o(20);t--;)s=r.times(r),r=r.times(a.plus(s.times(l.times(s).plus(c))))}return o.precision=e,o.rounding=n,It(r,e,n,!0)},wt.hyperbolicTangent=wt.tanh=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+7,i.rounding=1,Lt(n.sinh(),n.cosh(),i.precision=t,i.rounding=e)):new i(n.s)},wt.inverseCosine=wt.acos=function(){var t,e=this,n=e.constructor,i=e.abs().cmp(1),r=n.precision,o=n.rounding;return-1!==i?0===i?e.isNeg()?Tt(n,r,o):new n(0):new n(NaN):e.isZero()?Tt(n,r+4,o).times(.5):(n.precision=r+6,n.rounding=1,e=e.asin(),t=Tt(n,r+4,o).times(.5),n.precision=r,n.rounding=o,t.minus(e))},wt.inverseHyperbolicCosine=wt.acosh=function(){var t,e,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(t=i.precision,e=i.rounding,i.precision=t+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,ot=!1,n=n.times(n).minus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln()):new i(n)},wt.inverseHyperbolicSine=wt.asinh=function(){var t,e,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,ot=!1,n=n.times(n).plus(1).sqrt().plus(n),ot=!0,i.precision=t,i.rounding=e,n.ln())},wt.inverseHyperbolicTangent=wt.atanh=function(){var t,e,n,i,r=this,o=r.constructor;return r.isFinite()?r.e>=0?new o(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(t=o.precision,e=o.rounding,i=r.sd(),Math.max(i,t)<2*-r.e-1?It(new o(r),t,e,!0):(o.precision=n=i-r.e,r=Lt(r.plus(1),new o(1).minus(r),n+t,1),o.precision=t+4,o.rounding=1,r=r.ln(),o.precision=t,o.rounding=e,r.times(.5))):new o(NaN)},wt.inverseSine=wt.asin=function(){var t,e,n,i,r=this,o=r.constructor;return r.isZero()?new o(r):(e=r.abs().cmp(1),n=o.precision,i=o.rounding,-1!==e?0===e?((t=Tt(o,n+4,i).times(.5)).s=r.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,r=r.div(new o(1).minus(r.times(r)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=i,r.times(2)))},wt.inverseTangent=wt.atan=function(){var t,e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(c.isFinite()){if(c.isZero())return new u(c);if(c.abs().eq(1)&&d+4<=bt)return(s=Tt(u,d+4,h).times(.25)).s=c.s,s}else{if(!c.s)return new u(NaN);if(d+4<=bt)return(s=Tt(u,d+4,h).times(.5)).s=c.s,s}for(u.precision=a=d+10,u.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(ot=!1,e=Math.ceil(a/7),i=1,l=c.times(c),s=new u(c),r=c;-1!==t;)if(r=r.times(l),o=s.minus(r.div(i+=2)),r=r.times(l),void 0!==(s=o.plus(r.div(i+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<<n-1)),ot=!0,It(s,u.precision=d,u.rounding=h,!0)},wt.isFinite=function(){return!!this.d},wt.isInteger=wt.isInt=function(){return!!this.d&&dt(this.e/7)>this.d.length-2},wt.isNaN=function(){return!this.s},wt.isNegative=wt.isNeg=function(){return this.s<0},wt.isPositive=wt.isPos=function(){return this.s>0},wt.isZero=function(){return!!this.d&&0===this.d[0]},wt.lessThan=wt.lt=function(t){return this.cmp(t)<0},wt.lessThanOrEqualTo=wt.lte=function(t){return this.cmp(t)<1},wt.logarithm=wt.log=function(t){var e,n,i,r,o,s,a,l,c=this,u=c.constructor,d=u.precision,h=u.rounding;if(null==t)t=new u(10),e=!0;else{if(n=(t=new u(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new u(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new u(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(ot=!1,s=Ft(c,a=d+5),i=e?kt(u,a+10):Ft(t,a),Ct((l=Lt(s,i,a,1)).d,r=d,h))do{if(s=Ft(c,a+=10),i=e?kt(u,a+10):Ft(t,a),l=Lt(s,i,a,1),!o){+At(l.d).slice(r+1,r+15)+1==1e14&&(l=It(l,d+1,0));break}}while(Ct(l.d,r+=10,h));return ot=!0,It(l,d,h)},wt.minus=wt.sub=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.constructor;if(t=new f(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new f(t.d||p.s!==t.s?p:NaN):t=new f(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(c=p.d,h=t.d,a=f.precision,l=f.rounding,!c[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!c[0])return new f(3===l?-0:0);t=new f(p)}return ot?It(t,a,l):t}if(n=dt(t.e/7),u=dt(p.e/7),c=c.slice(),o=u-n){for((d=o<0)?(e=c,o=-o,s=h.length):(e=h,n=u,s=c.length),o>(i=Math.max(Math.ceil(a/7),s)+2)&&(o=i,e.length=1),e.reverse(),i=o;i--;)e.push(0);e.reverse()}else{for((d=(i=c.length)<(s=h.length))&&(s=i),i=0;i<s;i++)if(c[i]!=h[i]){d=c[i]<h[i];break}o=0}for(d&&(e=c,c=h,h=e,t.s=-t.s),s=c.length,i=h.length-s;i>0;--i)c[s++]=0;for(i=h.length;i>o;){if(c[--i]<h[i]){for(r=i;r&&0===c[--r];)c[r]=vt-1;--c[r],c[i]+=vt}c[i]-=h[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=St(c,n),ot?It(t,a,l):t):new f(3===l?-0:0)},wt.modulo=wt.mod=function(t){var e,n=this,i=n.constructor;return t=new i(t),!n.d||!t.s||t.d&&!t.d[0]?new i(NaN):!t.d||n.d&&!n.d[0]?It(new i(n),i.precision,i.rounding):(ot=!1,9==i.modulo?(e=Lt(n,t.abs(),0,3,1)).s*=t.s:e=Lt(n,t,0,i.modulo,1),e=e.times(t),ot=!0,n.minus(e))},wt.naturalExponential=wt.exp=function(){return zt(this)},wt.naturalLogarithm=wt.ln=function(){return Ft(this)},wt.negated=wt.neg=function(){var t=new this.constructor(this);return t.s=-t.s,It(t)},wt.plus=wt.add=function(t){var e,n,i,r,o,s,a,l,c,u,d=this,h=d.constructor;if(t=new h(t),!d.d||!t.d)return d.s&&t.s?d.d||(t=new h(t.d||d.s===t.s?d:NaN)):t=new h(NaN),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(c=d.d,u=t.d,a=h.precision,l=h.rounding,!c[0]||!u[0])return u[0]||(t=new h(d)),ot?It(t,a,l):t;if(o=dt(d.e/7),i=dt(t.e/7),c=c.slice(),r=o-i){for(r<0?(n=c,r=-r,s=u.length):(n=u,i=o,s=c.length),r>(s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(r=s,n.length=1),n.reverse();r--;)n.push(0);n.reverse()}for((s=c.length)-(r=u.length)<0&&(r=s,n=u,u=c,c=n),e=0;r;)e=(c[--r]=c[r]+u[r]+e)/vt|0,c[r]%=vt;for(e&&(c.unshift(e),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=St(c,i),ot?It(t,a,l):t},wt.precision=wt.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(at+t);return n.d?(e=Dt(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},wt.round=function(){var t=this,e=t.constructor;return It(new e(t),t.e+1,e.rounding)},wt.sine=wt.sin=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+Math.max(n.e,n.sd())+7,i.rounding=1,n=function(t,e){var n,i=e.d.length;if(i<3)return e.isZero()?e:Ut(t,2,e,e);n=(n=1.4*Math.sqrt(i))>16?16:0|n,e=Ut(t,2,e=e.times(1/Wt(5,n)),e);for(var r,o=new t(5),s=new t(16),a=new t(20);n--;)r=e.times(e),e=e.times(o.plus(r.times(s.times(r).minus(a))));return e}(i,Bt(i,n)),i.precision=t,i.rounding=e,It(X>2?n.neg():n,t,e,!0)):new i(NaN)},wt.squareRoot=wt.sqrt=function(){var t,e,n,i,r,o,s=this,a=s.d,l=s.e,c=s.s,u=s.constructor;if(1!==c||!a||!a[0])return new u(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);for(ot=!1,0==(c=Math.sqrt(+s))||c==1/0?(((e=At(a)).length+l)%2==0&&(e+="0"),c=Math.sqrt(e),l=dt((l+1)/2)-(l<0||l%2),i=new u(e=c==1/0?"5e"+l:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+l)):i=new u(c.toString()),n=(l=u.precision)+3;;)if(i=(o=i).plus(Lt(s,o,n+2,1)).times(.5),At(o.d).slice(0,n)===(e=At(i.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(r||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(It(i,l+1,1),t=!i.times(i).eq(s));break}if(!r&&(It(o,l+1,0),o.times(o).eq(s))){i=o;break}n+=4,r=1}return ot=!0,It(i,l,u.rounding,t)},wt.tangent=wt.tan=function(){var t,e,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(t=i.precision,e=i.rounding,i.precision=t+10,i.rounding=1,(n=n.sin()).s=1,n=Lt(n,new i(1).minus(n.times(n)).sqrt(),t+10,0),i.precision=t,i.rounding=e,It(2==X||4==X?n.neg():n,t,e,!0)):new i(NaN)},wt.times=wt.mul=function(t){var e,n,i,r,o,s,a,l,c,u=this,d=u.constructor,h=u.d,p=(t=new d(t)).d;if(t.s*=u.s,!(h&&h[0]&&p&&p[0]))return new d(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=dt(u.e/7)+dt(t.e/7),(l=h.length)<(c=p.length)&&(o=h,h=p,p=o,s=l,l=c,c=s),o=[],i=s=l+c;i--;)o.push(0);for(i=c;--i>=0;){for(e=0,r=l+i;r>i;)a=o[r]+p[i]*h[r-i-1]+e,o[r--]=a%vt|0,e=a/vt|0;o[r]=(o[r]+e)%vt|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=St(o,n),ot?It(t,d.precision,d.rounding):t},wt.toBinary=function(t,e){return Zt(this,2,t,e)},wt.toDecimalPlaces=wt.toDP=function(t,e){var n=this,i=n.constructor;return n=new i(n),void 0===t?n:(xt(t,0,tt),void 0===e?e=i.rounding:xt(e,0,8),It(n,t+n.e+1,e))},wt.toExponential=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,!0):(xt(t,0,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t+1,e),!0,t+1)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toFixed=function(t,e){var n,i,r=this,o=r.constructor;return void 0===t?n=_t(r):(xt(t,0,tt),void 0===e?e=o.rounding:xt(e,0,8),n=_t(i=It(new o(r),t+r.e+1,e),!1,t+i.e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},wt.toFraction=function(t){var e,n,i,r,o,s,a,l,c,u,d,h,p=this,f=p.d,g=p.constructor;if(!f)return new g(p);if(c=n=new g(1),i=l=new g(0),s=(o=(e=new g(i)).e=Dt(f)-p.e-1)%7,e.d[0]=ht(10,s<0?7+s:s),null==t)t=o>0?e:c;else{if(!(a=new g(t)).isInt()||a.lt(c))throw Error(at+a);t=a.gt(e)?o>0?e:c:a}for(ot=!1,a=new g(At(f)),u=g.precision,g.precision=o=7*f.length*2;d=Lt(a,e,0,1,1),1!=(r=n.plus(d.times(i))).cmp(t);)n=i,i=r,r=c,c=l.plus(d.times(r)),l=r,r=e,e=a.minus(d.times(r)),a=r;return r=Lt(t.minus(n),i,0,1,1),l=l.plus(r.times(c)),n=n.plus(r.times(i)),l.s=c.s=p.s,h=Lt(c,i,o,1).minus(p).abs().cmp(Lt(l,n,o,1).minus(p).abs())<1?[c,i]:[l,n],g.precision=u,ot=!0,h},wt.toHexadecimal=wt.toHex=function(t,e){return Zt(this,16,t,e)},wt.toNearest=function(t,e){var n=this,i=n.constructor;if(n=new i(n),null==t){if(!n.d)return n;t=new i(1),e=i.rounding}else{if(t=new i(t),void 0===e?e=i.rounding:xt(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(ot=!1,n=Lt(n,t,0,e,1).times(t),ot=!0,It(n)):(t.s=n.s,n=t),n},wt.toNumber=function(){return+this},wt.toOctal=function(t,e){return Zt(this,8,t,e)},wt.toPower=wt.pow=function(t){var e,n,i,r,o,s,a=this,l=a.constructor,c=+(t=new l(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new l(ht(+a,c));if((a=new l(a)).eq(1))return a;if(i=l.precision,o=l.rounding,t.eq(1))return It(a,i,o);if((e=dt(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return r=Nt(l,a,n,i),t.s<0?new l(1).div(r):It(r,i,o);if((s=a.s)<0){if(e<t.d.length-1)return new l(NaN);if(1&t.d[e]||(s=1),0==a.e&&1==a.d[0]&&1==a.d.length)return a.s=s,a}return(e=0!=(n=ht(+a,c))&&isFinite(n)?new l(n+"").e:dt(c*(Math.log("0."+At(a.d))/Math.LN10+a.e+1)))>l.maxE+1||e<l.minE-1?new l(e>0?s/0:0):(ot=!1,l.rounding=a.s=1,n=Math.min(12,(e+"").length),(r=zt(t.times(Ft(a,i+n)),i)).d&&Ct((r=It(r,i+5,1)).d,i,o)&&(e=i+10,+At((r=It(zt(t.times(Ft(a,e+n)),e),e+5,1)).d).slice(i+1,i+15)+1==1e14&&(r=It(r,i+1,0))),r.s=s,ot=!0,l.rounding=o,It(r,i,o))},wt.toPrecision=function(t,e){var n,i=this,r=i.constructor;return void 0===t?n=_t(i,i.e<=r.toExpNeg||i.e>=r.toExpPos):(xt(t,1,tt),void 0===e?e=r.rounding:xt(e,0,8),n=_t(i=It(new r(i),t,e),t<=i.e||i.e<=r.toExpNeg,t)),i.isNeg()&&!i.isZero()?"-"+n:n},wt.toSignificantDigits=wt.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(xt(t,1,tt),void 0===e?e=n.rounding:xt(e,0,8)),It(new n(this),t,e)},wt.toString=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},wt.truncated=wt.trunc=function(){return It(new this.constructor(this),this.e+1,1)},wt.valueOf=wt.toJSON=function(){var t=this,e=t.constructor,n=_t(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var Lt=function(){function t(t,e,n){var i,r=0,o=t.length;for(t=t.slice();o--;)i=t[o]*e+r,t[o]=i%n|0,r=i/n|0;return r&&t.unshift(r),t}function e(t,e,n,i){var r,o;if(n!=i)o=n>i?1:-1;else for(r=o=0;r<n;r++)if(t[r]!=e[r]){o=t[r]>e[r]?1:-1;break}return o}function n(t,e,n,i){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*i+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(i,r,o,s,a,l){var c,u,d,h,p,f,g,m,v,y,b,w,A,x,C,M,L,I,_,S,k=i.constructor,T=i.s==r.s?1:-1,D=i.d,j=r.d;if(!(D&&D[0]&&j&&j[0]))return new k(i.s&&r.s&&(D?!j||D[0]!=j[0]:j)?D&&0==D[0]||!j?0*T:T/0:NaN);for(l?(p=1,u=i.e-r.e):(l=vt,p=7,u=dt(i.e/p)-dt(r.e/p)),_=j.length,L=D.length,y=(v=new k(T)).d=[],d=0;j[d]==(D[d]||0);d++);if(j[d]>(D[d]||0)&&u--,null==o?(x=o=k.precision,s=k.rounding):x=a?o+(i.e-r.e)+1:o,x<0)y.push(1),f=!0;else{if(x=x/p+2|0,d=0,1==_){for(h=0,j=j[0],x++;(d<L||h)&&x--;d++)C=h*l+(D[d]||0),y[d]=C/j|0,h=C%j|0;f=h||d<L}else{for((h=l/(j[0]+1)|0)>1&&(j=t(j,h,l),D=t(D,h,l),_=j.length,L=D.length),M=_,w=(b=D.slice(0,_)).length;w<_;)b[w++]=0;(S=j.slice()).unshift(0),I=j[0],j[1]>=l/2&&++I;do{h=0,(c=e(j,b,_,w))<0?(A=b[0],_!=w&&(A=A*l+(b[1]||0)),(h=A/I|0)>1?(h>=l&&(h=l-1),1==(c=e(g=t(j,h,l),b,m=g.length,w=b.length))&&(h--,n(g,_<m?S:j,m,l))):(0==h&&(c=h=1),g=j.slice()),(m=g.length)<w&&g.unshift(0),n(b,g,w,l),-1==c&&(c=e(j,b,_,w=b.length))<1&&(h++,n(b,_<w?S:j,w,l)),w=b.length):0===c&&(h++,b=[0]),y[d++]=h,c&&b[0]?b[w++]=D[M]||0:(b=[D[M]],w=1)}while((M++<L||void 0!==b[0])&&x--);f=void 0!==b[0]}y[0]||y.shift()}if(1==p)v.e=u,J=f;else{for(d=1,h=y[0];h>=10;h/=10)d++;v.e=d+u*p-1,It(v,a?o+v.e+1:o,s,f)}return v}}();function It(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor;t:if(null!=e){if(!(d=t.d))return t;for(r=1,a=d[0];a>=10;a/=10)r++;if((o=e-r)<0)o+=7,s=e,l=(u=d[h=0])/ht(10,r-s-1)%10|0;else if((h=Math.ceil((o+1)/7))>=(a=d.length)){if(!i)break t;for(;a++<=h;)d.push(0);u=l=0,r=1,s=(o%=7)-7+1}else{for(u=a=d[h],r=1;a>=10;a/=10)r++;l=(s=(o%=7)-7+r)<0?0:u/ht(10,r-s-1)%10|0}if(i=i||e<0||void 0!==d[h+1]||(s<0?u:u%ht(10,r-s-1)),c=n<4?(l||i)&&(0==n||n==(t.s<0?3:2)):l>5||5==l&&(4==n||i||6==n&&(o>0?s>0?u/ht(10,r-s):0:d[h-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,c?(e-=t.e+1,d[0]=ht(10,(7-e%7)%7),t.e=-e||0):d[0]=t.e=0,t;if(0==o?(d.length=h,a=1,h--):(d.length=h+1,a=ht(10,7-o),d[h]=s>0?(u/ht(10,r-s)%ht(10,s)|0)*a:0),c)for(;;){if(0==h){for(o=1,s=d[0];s>=10;s/=10)o++;for(s=d[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,d[0]==vt&&(d[0]=1));break}if(d[h]+=a,d[h]!=vt)break;d[h--]=0,a=1}for(o=d.length;0===d[--o];)d.pop()}return ot&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function _t(t,e,n){if(!t.isFinite())return Rt(t);var i,r=t.e,o=At(t.d),s=o.length;return e?(n&&(i=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+jt(i):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):r<0?(o="0."+jt(-r-1)+o,n&&(i=n-s)>0&&(o+=jt(i))):r>=s?(o+=jt(r+1-s),n&&(i=n-r-1)>0&&(o=o+"."+jt(i))):((i=r+1)<s&&(o=o.slice(0,i)+"."+o.slice(i)),n&&(i=n-s)>0&&(r+1===s&&(o+="."),o+=jt(i))),o}function St(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function kt(t,e,n){if(e>yt)throw ot=!0,n&&(t.precision=n),Error(lt);return It(new t(nt),e,1,!0)}function Tt(t,e,n){if(e>bt)throw Error(lt);return It(new t(it),e,n,!0)}function Dt(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function jt(t){for(var e="";t--;)e+="0";return e}function Nt(t,e,n,i){var r,o=new t(1),s=Math.ceil(i/7+4);for(ot=!1;;){if(n%2&&Ht((o=o.times(e)).d,s)&&(r=!0),0===(n=dt(n/2))){n=o.d.length-1,r&&0===o.d[n]&&++o.d[n];break}Ht((e=e.times(e)).d,s)}return ot=!0,o}function Ot(t){return 1&t.d[t.d.length-1]}function Et(t,e,n){for(var i,r=new t(e[0]),o=0;++o<e.length;){if(!(i=new t(e[o])).s){r=i;break}r[n](i)&&(r=i)}return r}function zt(t,e){var n,i,r,o,s,a,l,c=0,u=0,d=0,h=t.constructor,p=h.rounding,f=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(ot=!1,l=f):l=e,a=new h(.03125);t.e>-2;)t=t.times(a),d+=5;for(l+=i=Math.log(ht(2,d))/Math.LN10*2+5|0,n=o=s=new h(1),h.precision=l;;){if(o=It(o.times(t),l,1),n=n.times(++u),At((a=s.plus(Lt(o,n,l,1))).d).slice(0,l)===At(s.d).slice(0,l)){for(r=d;r--;)s=It(s.times(s),l,1);if(null!=e)return h.precision=f,s;if(!(c<3&&Ct(s.d,l-i,p,c)))return It(s,h.precision=f,p,ot=!0);h.precision=l+=10,n=o=a=new h(1),u=0,c++}s=a}}function Ft(t,e){var n,i,r,o,s,a,l,c,u,d,h,p=1,f=t,g=f.d,m=f.constructor,v=m.rounding,y=m.precision;if(f.s<0||!g||!g[0]||!f.e&&1==g[0]&&1==g.length)return new m(g&&!g[0]?-1/0:1!=f.s?NaN:g?0:f);if(null==e?(ot=!1,u=y):u=e,m.precision=u+=10,i=(n=At(g)).charAt(0),!(Math.abs(o=f.e)<15e14))return c=kt(m,u+2,y).times(o+""),f=Ft(new m(i+"."+n.slice(1)),u-10).plus(c),m.precision=y,null==e?It(f,y,v,ot=!0):f;for(;i<7&&1!=i||1==i&&n.charAt(1)>3;)i=(n=At((f=f.times(t)).d)).charAt(0),p++;for(o=f.e,i>1?(f=new m("0."+n),o++):f=new m(i+"."+n.slice(1)),d=f,l=s=f=Lt(f.minus(1),f.plus(1),u,1),h=It(f.times(f),u,1),r=3;;){if(s=It(s.times(h),u,1),At((c=l.plus(Lt(s,new m(r),u,1))).d).slice(0,u)===At(l.d).slice(0,u)){if(l=l.times(2),0!==o&&(l=l.plus(kt(m,u+2,y).times(o+""))),l=Lt(l,new m(p),u,1),null!=e)return m.precision=y,l;if(!Ct(l.d,u-10,v,a))return It(l,m.precision=y,v,ot=!0);m.precision=u+=10,c=s=f=Lt(d.minus(1),d.plus(1),u,1),h=It(f.times(f),u,1),r=a=1}l=c,r+=2}}function Rt(t){return String(t.s*t.s/0)}function Pt(t,e){var n,i,r;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;48===e.charCodeAt(i);i++);for(r=e.length;48===e.charCodeAt(r-1);--r);if(e=e.slice(i,r)){if(r-=i,t.e=n=n-i-1,t.d=[],i=(n+1)%7,n<0&&(i+=7),i<r){for(i&&t.d.push(+e.slice(0,i)),r-=7;i<r;)t.d.push(+e.slice(i,i+=7));i=7-(e=e.slice(i)).length}else i-=r;for(;i--;)e+="0";t.d.push(+e),ot&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Yt(t,e){var n,i,r,o,s,a,l,c,u;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),mt.test(e))return Pt(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(ft.test(e))n=16,e=e.toLowerCase();else if(pt.test(e))n=2;else{if(!gt.test(e))throw Error(at+e);n=8}for((o=e.search(/p/i))>0?(l=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),s=(o=e.indexOf("."))>=0,i=t.constructor,s&&(o=(a=(e=e.replace(".","")).length)-o,r=Nt(i,new i(n),o,2*o)),o=u=(c=Mt(e,n,vt)).length-1;0===c[o];--o)c.pop();return o<0?new i(0*t.s):(t.e=St(c,u),t.d=c,ot=!1,s&&(t=Lt(t,r,4*a)),l&&(t=t.times(Math.abs(l)<54?ht(2,l):je.pow(2,l))),ot=!0,t)}function Ut(t,e,n,i,r){var o,s,a,l,c=t.precision,u=Math.ceil(c/7);for(ot=!1,l=n.times(n),a=new t(i);;){if(s=Lt(a.times(l),new t(e++*e++),c,1),a=r?i.plus(s):i.minus(s),i=Lt(s.times(l),new t(e++*e++),c,1),void 0!==(s=a.plus(i)).d[u]){for(o=u;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=i,i=s,s=o}return ot=!0,s.d.length=u+1,s}function Wt(t,e){for(var n=t;--e;)n*=t;return n}function Bt(t,e){var n,i=e.s<0,r=Tt(t,t.precision,1),o=r.times(.5);if((e=e.abs()).lte(o))return X=i?4:1,e;if((n=e.divToInt(r)).isZero())X=i?3:2;else{if((e=e.minus(n.times(r))).lte(o))return X=Ot(n)?i?2:3:i?4:1,e;X=Ot(n)?i?1:4:i?3:2}return e.minus(r).abs()}function Zt(t,e,n,i){var r,o,s,a,l,c,u,d,h,p=t.constructor,f=void 0!==n;if(f?(xt(n,1,tt),void 0===i?i=p.rounding:xt(i,0,8)):(n=p.precision,i=p.rounding),t.isFinite()){for(f?(r=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):r=e,(s=(u=_t(t)).indexOf("."))>=0&&(u=u.replace(".",""),(h=new p(1)).e=u.length-s,h.d=Mt(_t(h),10,r),h.e=h.d.length),o=l=(d=Mt(u,10,r)).length;0==d[--l];)d.pop();if(d[0]){if(s<0?o--:((t=new p(t)).d=d,t.e=o,d=(t=Lt(t,h,n,i,0,r)).d,o=t.e,c=J),s=d[n],a=r/2,c=c||void 0!==d[n+1],c=i<4?(void 0!==s||c)&&(0===i||i===(t.s<0?3:2)):s>a||s===a&&(4===i||c||6===i&&1&d[n-1]||i===(t.s<0?8:7)),d.length=n,c)for(;++d[--n]>r-1;)d[n]=0,n||(++o,d.unshift(1));for(l=d.length;!d[l-1];--l);for(s=0,u="";s<l;s++)u+=et.charAt(d[s]);if(f){if(l>1)if(16==e||8==e){for(s=16==e?4:3,--l;l%s;l++)u+="0";for(l=(d=Mt(u,r,e)).length;!d[l-1];--l);for(s=1,u="1.";s<l;s++)u+=et.charAt(d[s])}else u=u.charAt(0)+"."+u.slice(1);u=u+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)u="0"+u;u="0."+u}else if(++o>l)for(o-=l;o--;)u+="0";else o<l&&(u=u.slice(0,o)+"."+u.slice(o))}else u=f?"0p+0":"0";u=(16==e?"0x":2==e?"0b":8==e?"0o":"")+u}else u=Rt(t);return t.s<0?"-"+u:u}function Ht(t,e){if(t.length>e)return t.length=e,!0}function Gt(t){return new this(t).abs()}function Vt(t){return new this(t).acos()}function Qt(t){return new this(t).acosh()}function Jt(t,e){return new this(t).plus(e)}function Xt(t){return new this(t).asin()}function qt(t){return new this(t).asinh()}function Kt(t){return new this(t).atan()}function $t(t){return new this(t).atanh()}function te(t,e){t=new this(t),e=new this(e);var n,i=this.precision,r=this.rounding,o=i+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?Tt(this,i,r):new this(0)).s=t.s:!t.d||e.isZero()?(n=Tt(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(Lt(t,e,o,1)),e=Tt(this,o,1),this.precision=i,this.rounding=r,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Lt(t,e,o,1)):(n=Tt(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function ee(t){return new this(t).cbrt()}function ne(t){return It(t=new this(t),t.e+1,2)}function ie(t,e,n){return new this(t).clamp(e,n)}function re(t){if(!t||"object"!=typeof t)throw Error(st+"Object expected");var e,n,i,r=!0===t.defaults,o=["precision",1,tt,"rounding",0,8,"toExpNeg",-$,0,"toExpPos",0,$,"maxE",0,$,"minE",-$,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!(dt(i)===i&&i>=o[e+1]&&i<=o[e+2]))throw Error(at+n+": "+i);this[n]=i}if(n="crypto",r&&(this[n]=rt[n]),void 0!==(i=t[n])){if(!0!==i&&!1!==i&&0!==i&&1!==i)throw Error(at+n+": "+i);if(i){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(ct);this[n]=!0}else this[n]=!1}return this}function oe(t){return new this(t).cos()}function se(t){return new this(t).cosh()}function ae(t,e){return new this(t).div(e)}function le(t){return new this(t).exp()}function ce(t){return It(t=new this(t),t.e+1,3)}function ue(){var t,e,n=new this(0);for(ot=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return ot=!0,new this(1/0);n=e}return ot=!0,n.sqrt()}function de(t){return t instanceof je||t&&t.toStringTag===ut||!1}function he(t){return new this(t).ln()}function pe(t,e){return new this(t).log(e)}function fe(t){return new this(t).log(2)}function ge(t){return new this(t).log(10)}function me(){return Et(this,arguments,"lt")}function ve(){return Et(this,arguments,"gt")}function ye(t,e){return new this(t).mod(e)}function be(t,e){return new this(t).mul(e)}function we(t,e){return new this(t).pow(e)}function Ae(t){var e,n,i,r,o=0,s=new this(1),a=[];if(void 0===t?t=this.precision:xt(t,1,tt),i=Math.ceil(t/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(i));o<i;)(r=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=r%1e7;else{if(!crypto.randomBytes)throw Error(ct);for(e=crypto.randomBytes(i*=4);o<i;)(r=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(a.push(r%1e7),o+=4);o=i/4}else for(;o<i;)a[o++]=1e7*Math.random()|0;for(t%=7,(i=a[--o])&&t&&(r=ht(10,7-t),a[o]=(i/r|0)*r);0===a[o];o--)a.pop();if(o<0)n=0,a=[0];else{for(n=-1;0===a[0];n-=7)a.shift();for(i=1,r=a[0];r>=10;r/=10)i++;i<7&&(n-=7-i)}return s.e=n,s.d=a,s}function xe(t){return It(t=new this(t),t.e+1,this.rounding)}function Ce(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Me(t){return new this(t).sin()}function Le(t){return new this(t).sinh()}function Ie(t){return new this(t).sqrt()}function _e(t,e){return new this(t).sub(e)}function Se(){var t=0,e=arguments,n=new this(e[t]);for(ot=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return ot=!0,It(n,this.precision,this.rounding)}function ke(t){return new this(t).tan()}function Te(t){return new this(t).tanh()}function De(t){return It(t=new this(t),t.e+1,1)}wt[Symbol.for("nodejs.util.inspect.custom")]=wt.toString,wt[Symbol.toStringTag]="Decimal";var je=wt.constructor=function t(e){var n,i,r;function o(t){var e,n,i,r=this;if(!(r instanceof o))return new o(t);if(r.constructor=o,de(t))return r.s=t.s,void(ot?!t.d||t.e>o.maxE?(r.e=NaN,r.d=null):t.e<o.minE?(r.e=0,r.d=[0]):(r.e=t.e,r.d=t.d.slice()):(r.e=t.e,r.d=t.d?t.d.slice():t.d));if("number"==(i=typeof t)){if(0===t)return r.s=1/t<0?-1:1,r.e=0,void(r.d=[0]);if(t<0?(t=-t,r.s=-1):r.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(ot?e>o.maxE?(r.e=NaN,r.d=null):e<o.minE?(r.e=0,r.d=[0]):(r.e=e,r.d=[t]):(r.e=e,r.d=[t]))}return 0*t!=0?(t||(r.s=NaN),r.e=NaN,void(r.d=null)):Pt(r,t.toString())}if("string"!==i)throw Error(at+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),r.s=-1):(43===n&&(t=t.slice(1)),r.s=1),mt.test(t)?Pt(r,t):Yt(r,t)}if(o.prototype=wt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=re,o.clone=t,o.isDecimal=de,o.abs=Gt,o.acos=Vt,o.acosh=Qt,o.add=Jt,o.asin=Xt,o.asinh=qt,o.atan=Kt,o.atanh=$t,o.atan2=te,o.cbrt=ee,o.ceil=ne,o.clamp=ie,o.cos=oe,o.cosh=se,o.div=ae,o.exp=le,o.floor=ce,o.hypot=ue,o.ln=he,o.log=pe,o.log10=ge,o.log2=fe,o.max=me,o.min=ve,o.mod=ye,o.mul=be,o.pow=we,o.random=Ae,o.round=xe,o.sign=Ce,o.sin=Me,o.sinh=Le,o.sqrt=Ie,o.sub=_e,o.sum=Se,o.tan=ke,o.tanh=Te,o.trunc=De,void 0===e&&(e={}),e&&!0!==e.defaults)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<r.length;)e.hasOwnProperty(i=r[n++])||(e[i]=this[i]);return o.config(e),o}(rt);nt=new je(nt),it=new je(it);const Ne=je,Oe="http://www.xbrl.org/2003/iso4217",Ee="calc",ze="guide_link",Fe="home_link_label",Re="home_link_url",Pe="support_link",Ye="survey_link",Ue="ixbrl-viewer-theme",We="ixbrl-viewer-highlight-all-facts";function Be(t,e){return t.hours()+t.minutes()+t.seconds()===0?(e&&(t=t.clone().subtract(1,"day")),t.format("D MMM Y")):t.format("D MMM Y HH:mm:ss")}function Ze(t,e){const n=Ne(t),i=(void 0===e?n.toFixed():n.toFixed(Math.max(0,e))).split(".");return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),i.join(".")}function He(t,e){const n=[],i=t.split(" ");let r="";return i.forEach(((t,o)=>{if(r.length>0){const s=r+" "+t;if(!(s.length>e))return o===i.length-1?void n.push(s):void(r=s);n.push(r),r=""}o!==i.length-1&&t.length<e?r=t:n.push(t)})),n}function Ge(t,e){let n=He(t,e),i=n[0];return n.length>1&&(i+=" …"),i}function Ve(t){return t=t.replace(/^(\d{4,}-\d{2}-\d{2})(?!T|$)/,((t,e)=>e+"T00:00:00")),K().utc(t)}function Qe(t,e,n){return t.hasOwnProperty(e)||(t[e]=n),t[e]}function Je(t){setTimeout((function e(){t.next().done||setTimeout(e,0)}),0)}function Xe(t,e){return null==e?null:t.toString()+"-"+e}class qe{constructor(t,e){this.name=e,this.report=t,this.qname=t.qname(e)}label(){return"http://www.xbrl.org/2003/instance"==this.qname.namespace?Q.t(`dataTypes:${this.qname.localname}`,{defaultValue:this.qname.qname}):this.report.reportSet.taxonomyNamer.convertQName(this.qname)}}class Ke{constructor(t){this.balance=t}label(){return Q.t(`balanceTypes:${this.balance}`,{defaultValue:this.balance})}}class $e{constructor(t,e){this._c=t.concepts()[e]||{},this.name=e,this.report=t}referenceValuesAsString(){return this._c.r?this._c.r.flatMap((t=>t.map((t=>t[1])))).join(" "):""}labels(){if(!this._c.labels)return{};const t=this.report.reportSet.viewerOptions.language;return Object.fromEntries(Object.entries(this._c.labels).map((([e,n])=>[e,n[t]])).filter((([t,e])=>void 0!==e)))}references(){return this._c.r?this._c.r.map((t=>t.map((t=>({part:t[0],value:t[1]}))))):[]}isTypedDimension(){return"t"===this._c.d}isExplicitDimension(){return"e"===this._c.d}isDimension(){return"d"in this._c}isEnumeration(){return Boolean(this._c&&this._c.e)}label(){return this.report.getLabelOrName(this.name)}isTextBlock(){return Boolean(this._c.t)}typedDomainElement(){return this._c.td}dataType(){if(void 0!==this._c.dt)return new qe(this.report,this._c.dt)}balance(){if(void 0!==this._c.b)return new Ke(this._c.b)}}class tn{constructor(t,e){this.reportSet=t,this._reportData=e,this._reverseRelationshipCache={}}availableLanguages(){if(!this._availableLanguages){this._availableLanguages=new Set;for(const t of Object.values(this._reportData.concepts))for(const e of Object.values(t.labels))for(const t of Object.keys(e))this._availableLanguages.add(t)}return this._availableLanguages}facts(){return this.reportSet.factsForReport(this)}targetDocument(){return this._reportData.target??null}getChildRelationships(t,e){const n={},i=this._reportData.rels[e]||{};for(const e in i)t in i[e]&&(n[e]=i[e][t]);return n}_reverseRelationships(t){if(!(t in this._reverseRelationshipCache)){const e={},n=this._reportData.rels[t]||{};for(const[t,i]of Object.entries(n))for(const[n,r]of Object.entries(i))for(const i of r)i.src=n,Qe(Qe(e,t,{}),i.t,[]).push(i);this._reverseRelationshipCache[t]=e}return this._reverseRelationshipCache[t]}getParentRelationships(t,e){const n={};for(const[i,r]of Object.entries(this._reverseRelationships(e)))t in r&&(n[i]=r[t]);return n}getParentRelationshipsInGroup(t,e,n){return(this._reverseRelationships(e)[n]||{})[t]||[]}dimensionDefault(t){for(const e of Object.values(this._reportData.rels["d-d"]||{}))if(t in e)return e[t][0].t}relationshipGroups(t){return Object.keys(this._reportData.rels[t]||{})}relationshipGroupRoots(t,e){const n=[];for(const i in this._reportData.rels[t][e])e in this.getParentRelationships(i,t)||n.push(i);return n}getAlignedFacts(t,e){const n=this.reportSet.facts(),i=[];e||(e={});for(const r of n)r.isAligned(t,e)&&i.push(r);return i}deduplicate(t){const e=[];for(const n of t){let t=!1;for(const i of e)i.isAligned(n,{})&&(t=!0);t||e.push(n)}return e}getConcept(t){return new $e(this,t)}getRoleLabel(t){const e=this._reportData.roleDefs[t];if(void 0!==e){const t=e.en;if(null!=t)return t}}getRoleLabelOrURI(t){return this.getRoleLabel(t)??this.reportSet.roleMap()[t]}getLabelRoleLabel(t){const e=this.reportSet.roleMap()[t];if(void 0===e)return;const n=e.split("/").pop();if(e.startsWith("http://www.xbrl.org/2003/role/")&&Q.exists(`labelRoles:${n}`))return Q.t(`labelRoles:${n}`);const i=this.getRoleLabel(t);return void 0!==i?i:n.replaceAll(/([A-Z][a-z]+)/g," $1").trim().replace(/^./,(t=>t.toUpperCase()))}localDocuments(){return void 0===this._reportData.localDocs?{}:this._reportData.localDocs}qname(t){return this.reportSet.qname(t)}getScaleLabel(t,e){let n=Q.t(`scale:${t}`,{defaultValue:"noName"});if(e&&e.isMonetary()&&-2===t){let t=e.value()??"";t&&(t=this.qname(t).localname),n=Q.t(`currencies:cents${t}`,{defaultValue:n})}return"noName"===n?null:n}concepts(){return this._reportData.concepts}getLabel(t,e,n){return this.getLabelAndLang(t,e,n).label}getLabelAndLang(t,e,n){e=e||"std";const i=this.reportSet.viewerOptions.language,r=this._reportData.concepts[t];if(void 0===r)return console.log("Attempt to get label for undefined concept: "+t),{label:"<no label>"};const o=r.labels[e];if(void 0===o||0==Object.keys(o).length)return{label:void 0};{let e,r;if(i&&o[i])e=o[i],r=i;else for(const t of["en","en-us",Object.keys(o).sort()[0]])if(void 0!==o[t]){e=o[t],r=t;break}if(void 0===e)return{label:void 0};let s="";return n&&this.reportSet.viewerOptions.showPrefixes&&(s="("+this.reportSet.taxonomyNamer.fromQName(this.qname(t)).prefix+") "),s+=e,{label:s,lang:r}}}getLabelOrName(t,e,n){const i=this.getLabel(t,e,n);return void 0===i?t:i}getLabelOrNameAndLang(t,e,n){const i=this.getLabelAndLang(t,e,n);return void 0===i.label?{label:t}:i}isCalculationContributor(t){return void 0===this._calculationContributors&&(this._reportData.rels?.calc?this._calculationContributors=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.values(t).flatMap((t=>t.map((t=>t.t))))))):this._calculationContributors=new Set),this._calculationContributors.has(t)}isCalculationSummation(t){return void 0===this._calculationSummations&&(this._reportData.rels?.calc?this._calculationSummations=new Set(Object.values(this._reportData.rels.calc).flatMap((t=>Object.keys(t)))):this._calculationSummations=new Set),this._calculationSummations.has(t)}softwareCredits(){return this._reportData.softwareCredits??[]}}class en{constructor(t){this._p=t}type(){if(this._p)return"f"==this._p?"f":this._p.includes("/")?"d":"i"}toString(){let t;return t=this._p?"f"===this._p?"None":this._p.includes("/")?Be(this.from(),!1)+" to "+Be(this.to(),!0):Be(this.to(),!0):"Undefined",t}to(){return this._p&&"f"!==this._p?this._p.includes("/")?Ve(this._p.split("/")[1]):Ve(this._p):null}from(){return this._p&&this._p.includes("/")?Ve(this._p.split("/")[0]):null}isEquivalentDuration(t){const e=t.type(),n=this.type();if(!e||!n)return!1;if(e!==n)return!1;if("d"!==e)return!0;const i=t.to().toDate()-t.from().toDate(),r=this.to().toDate()-this.from().toDate();return Math.abs(i-r)<.1*(i+r)}key(){return this._p}}const nn={"http://standards.iso.org/iso/17442":{name:"LEI",url:"https://search.gleif.org/#/record/%s"},"http://www.sec.gov/CIK":{name:"CIK",url:"https://www.sec.gov/cgi-bin/browse-edgar?CIK=%s"},"http://www.companieshouse.gov.uk/":{name:"UK CRN",url:"https://beta.companieshouse.gov.uk/company/%08d"},"https://www.minfin.gov.ua":{name:"EDRPOU"}};class rn{static identifierURL(t){const e=nn[t.namespace];if(void 0!==e&&void 0!==e.url){let n=e.url.replace("%s",t.localname);return n=n.replace(/%0(\d+)d/,((e,n)=>t.localname.padStart(n,"0"))),n}}static identifierNameForFact(t){const e=nn[t.identifier().namespace];if(void 0!==e)return e.name}static readableName(t){const e=nn[t.namespace];return void 0!==e?"["+e.name+"] "+t.localname:t.qname}static readableNameHTML(t){const e=nn[t.namespace],n=document.createElement("span");if(void 0!==e){n.appendChild(document.createElement("span")).textContent="["+e.name+"] ";const i=rn.identifierURL(t);if(void 0!==i){const e=n.appendChild(document.createElement("a"));e.textContent=t.localname,e.setAttribute("target","_blank"),e.setAttribute("href",i)}else n.appendChild(document.createElement("span")).textContent=t.localname}else n.textContent=t.qname;return n}}const on={c:"Concept",e:"Entity",p:"Period",u:"Unit"};class sn{constructor(t,e,n){this._aspect=t,this._value=e,this._report=n}name(){return this._aspect}label(){return on[this._aspect]??this._report.getLabel(this._aspect)}labelOrNameAndLang(){return this._aspect in on?{label:on}:this._report.getLabelOrNameAndLang(this._aspect)}value(){return this._value}equalTo(t){return void 0!==t&&this._aspect===t._aspect&&this._value===t._value}isTaxonomyDefined(){return this._aspect.includes(":")}isNil(){return null===this._value}valueLabel(t){return this.valueLabelAndLang(t).label}valueLabelAndLang(t){return"c"===this._aspect?this._report.getLabelOrNameAndLang(this._value,t):this.isTaxonomyDefined()?this._report.getConcept(this._aspect).isTypedDimension()?{label:null===this._value?"nil":this._value}:this._report.getLabelOrNameAndLang(this._value,t):"u"===this._aspect?{label:this._report.reportSet.getUnit(this._value).label()}:"p"===this._aspect?{label:new en(this._value).toString()}:"e"===this._aspect?{label:rn.readableName(this._report.qname(this._value))}:{label:this._value}}}class an{constructor(t){this._aspectSet=t||[]}add(t){this._aspectSet.push(t)}uniqueValues(){let t={};for(const e of Object.values(this._aspectSet))t[e.value()]=e;return Object.values(t)}}class ln{constructor(t,e){this.a="object"==typeof t?t:new Ne(t),this.b="object"==typeof e?e:new Ne(e)}static fromFact(t){if(!t.isNumeric())return;const e=t.decimals();let n,i=0;void 0!==e&&(i=new Ne(10).pow(0-e).times(.5));const r=t.value();try{n=new Ne(r)}catch(t){if(t instanceof Error&&/DecimalError/.test(t.message))return;throw t}return new ln(n.minus(i),n.plus(i))}intersection(t){return ln.intersection(this,t)}static intersection(...t){if(t.includes(void 0)||0==t.length)return;const e=t.map((t=>t.a)),n=t.map((t=>t.b)),i=Ne.max(...e),r=Ne.min(...n);return r.lessThan(i)?void 0:new ln(i,r)}plus(t){return new ln(this.a.plus(t.a),this.b.plus(t.b))}times(t){return t>0?new ln(this.a.times(t),this.b.times(t)):new ln(this.b.times(t),this.a.times(t))}midpoint(){return Ne.add(this.a,this.b).div(2)}}class cn{constructor(t,e,n){this.f=n,this.ixNode=t.reportSet.getIXNodeForItemId(e),this.report=t,this.vuid=e,this.linkedFacts=[],this._footnotes=[]}localId(){return function(t){return t.replace(/^\d+-/,"")}(this.vuid)}isMandatory(){return this.f.a.m}getLabel(t,e){return this.report.getLabel(this.f.a.c,t,e)}getLabelAndLang(t,e){return this.report.getLabelAndLang(this.f.a.c,t,e)}getLabelOrName(t,e){return this.report.getLabelOrName(this.f.a.c,t,e)}getLabelOrNameAndLang(t,e){return this.report.getLabelOrNameAndLang(this.f.a.c,t,e)}conceptName(){return this.f.a.c}conceptDisplayName(){return this.report.reportSet.taxonomyNamer.convertQName(this.conceptQName())}concept(){return this.report.getConcept(this.f.a.c)}conceptQName(){return this.report.qname(this.f.a.c)}period(){return new en(this.f.a.p)}periodString(){return this.period().toString()}periodTo(){return this.period().to()}periodFrom(){return this.period().from()}value(){return this.f.v}readableValue(t){let n=void 0===t?this.f.v:t;if(this.isInvalidIXValue())n="Invalid value";else if(this.isNumeric()){const t=this.decimals();let e;e=this.isNil()?"nil":Ze(n,t),n=this.isMonetaryValue()?this.unitLabel()+" "+e:e+" "+this.unitLabel()}else if(this.isNil())n="nil";else if(this.isTextBlock()){const t=e()("<div>").append(e()(e().parseHTML(n,null,!1)));t.find("p, td, th, h1, h2, h3, h4, ol, ul, pre, blockquote, dl, div").append(document.createTextNode(" ")).prepend(document.createTextNode(" ")),n=t.text().replace(/[\u00a0\s]+/g," ").trim()}else if(this.isEnumeration()){const t=[];for(const e of n.split(" "))t.push(this.report.getLabelOrName(e,"std"));n=t.join(", ")}return n}unit(){if(void 0===this._unit){const t=this.aspect("u")?.value();if(!t)return;this._unit=this.report.reportSet.getUnit(t)}return this._unit}unitLabel(){return this.unit()?.label()??Q.t("factDetails.noUnit")}getConceptPrefix(){return this.conceptName().split(":")[0]}isCalculationContributor(){return void 0===this._isCalculationContributor&&(this._isCalculationContributor=this.report.isCalculationContributor(this.f.a.c)),this._isCalculationContributor}isCalculationSummation(){return void 0===this._isCalculationSummation&&(this._isCalculationSummation=this.report.isCalculationSummation(this.f.a.c)),this._isCalculationSummation}isNumeric(){return void 0!==this.f.a.u}dimensions(){const t={};for(const[e,n]of Object.entries(this.f.a))e.indexOf(":")>-1&&(t[e]=n);return t}hasExplicitDimension(){return Object.keys(this.dimensions()).some((t=>!this.report.getConcept(t).isTypedDimension()))}hasTypedDimension(){return Object.keys(this.dimensions()).some((t=>this.report.getConcept(t).isTypedDimension()))}isMonetaryValue(){return this.unit()?.isMonetary()??!1}isTextBlock(){return this.concept().isTextBlock()}aspects(){return Object.keys(this.f.a).map((t=>this.aspect(t)))}aspect(t){return void 0===this._aspects&&(this._aspects={}),void 0===this._aspects[t]&&void 0!==this.f.a[t]&&(this._aspects[t]=new sn(t,this.f.a[t],this.report)),this._aspects[t]}isAligned(t,e){if(Object.keys(this.f.a).length!=Object.keys(t.f.a).length)return!1;for(const n in this.f.a)if(e.hasOwnProperty(n)){if(null!==e[n])if(e[n].constructor===Array){if(!e[n].includes(this.f.a[n]))return!1}else if(this.f.a[n]!=e[n])return!1}else if(this.f.a[n]!=t.f.a[n])return!1;return!0}isEquivalentDuration(t){return this.period().isEquivalentDuration(t.period())}decimals(){return this.f.d}scale(){return this.ixNode.scale}duplicates(){return this.report.getAlignedFacts(this)}isNil(){return null===this.f.v}isNegative(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isNegative()&&!this.isZero()}isPositive(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isPositive()&&!this.isZero()}isZero(){return this.isNumeric()&&!this.isNil()&&void 0!==this.value()&&new Ne(this.value()).isZero()}isInvalidIXValue(){return"INVALID_IX_VALUE"==this.f.err}getScaleLabel(t,e=!1){return this.report.getScaleLabel(e?-t:t,this.unit())}readableAccuracy(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.decimals();if(void 0===t)return Q.t("common.accuracyInfinite");if(null===t)return Q.t("common.unspecified");const e=this.getScaleLabel(t,!0);return null!=e?e:t.toString()}readableScale(){if(!this.isNumeric()||this.isNil())return Q.t("common.notApplicable");const t=this.scale();if(null==t)return Q.t("common.unscaled");const e=this.getScaleLabel(t);return null!=e?e:t.toString()}identifier(){return this.report.qname(this.f.a.e)}escaped(){return this.ixNode.escaped}isEnumeration(){return this.concept().isEnumeration()}addFootnote(t){this._footnotes.push(t)}footnotes(){return this._footnotes}isHidden(){return this.ixNode.isHidden}isHTMLHidden(){return this.ixNode.htmlHidden()}widerConcepts(){const t=[],n=this.report.getParentRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.src)));return t}narrowerConcepts(){const t=[],n=this.report.getChildRelationships(this.conceptName(),"w-n");for(const i in n)t.push(...e().map(n[i],(t=>t.t)));return t}addLinkedFact(t){this.linkedFacts.push(t)}roundedValue(){Ne.rounding=Ne.ROUND_HALF_UP;const t=new Ne(this.value()),e=this.decimals();return void 0===e?t:t.mul(10**e).round().mul(10**(0-e))}isCompleteDuplicate(t){return this.value()===t.value()&&this.decimals()===t.decimals()}addLinkedFact(t){this.linkedFacts.push(t)}valueInterval(){return ln.fromFact(this)}isMorePrecise(t){return void 0!==t.decimals()&&(void 0===this.decimals()||this.decimals()>t.decimals())}targetDocument(){return this.report.targetDocument()}}class un{constructor(t,e,n){this.vuid=e,this.linkedFacts=[],this.title=n,this.ixNode=t.reportSet.getIXNodeForItemId(e)}addLinkedFact(t){this.linkedFacts.push(t)}textContent(){return this.ixNode.textContent()}readableValue(){return this.textContent()}isTextBlock(){return!1}}class dn{constructor(t,e){this._reportSet=t,this._value=e;const n=e.split(/[()]/gi).join("").split("/");this._numerators=n[0].split("*"),this._denominators=n.length>1?n[1].split("*"):[],this._isMonetary=0===this._denominators.length&&1===this._numerators.length&&this._reportSet.qname(this._numerators[0]).namespace===Oe,this._label=n.map((t=>{const e=t.split("*").map((t=>function(t,e){const n=t.qname(e);return n.namespace===Oe?e=Q.t(`currencies:unitFormat${n.localname}`,{defaultValue:n.localname}):e.includes(":")&&(e=e.split(":")[1]),e}(this._reportSet,t))).join("*");return e.includes("*")?`(${e})`:e})).join("/")}isMonetary(){return this._isMonetary}label(){return this._label}value(){return this._value}}class hn{constructor(t,e){const n=e.split(":",2);this.localname=n[1],this.prefix=n[0],this.namespace=t[n[0]],this.qname=e}}function pn(){this.showPrefixes=!0,this.language=null}class fn{constructor(t){this.map=new Map(Array.from(t.entries()).map((([t,e])=>[new RegExp(t),new gn(e[0],e[1])])))}getName(t,e){for(const[t,n]of this.map.entries())if(null!==e.match(t))return n;return new gn(t,t)}fromQName(t){return this.getName(t.prefix,t.namespace)}convertQName(t){return this.fromQName(t).prefix+":"+t.localname}}class gn{constructor(t,e){this.prefix=t,this.name=e}}class mn{constructor(t){this._data=t,this._ixNodeMap={},this.viewerOptions=new pn,this.taxonomyNamer=new fn(new Map)}setIXNodeMap(t){this._ixNodeMap=t,this._initialize()}_initialize(){this._items={},this.reports=[];const t=Object.keys(this._ixNodeMap).filter((t=>this._ixNodeMap[t].footnote));t.sort(((t,e)=>this._ixNodeMap[t].docOrderindex-this._ixNodeMap[e].docOrderindex));for(const[e,n]of(this._data.sourceReports??[{targetReports:[this._data]}]).entries())for(const i of n.targetReports){const n=new tn(this,i);this.reports.push(n);for(const[t,r]of Object.entries(i.facts)){const i=Xe(e,t);this._items[i]=new cn(n,i,r)}for(const[n,r]of Object.entries(i.facts)){const i=Xe(e,n),o=this._items[i];(r.fn||[]).forEach((n=>{const i=Xe(e,n);var r=this._items[i];void 0===r&&(r=new un(o.report,i,"Footnote "+(t.indexOf(i)+1)),this._items[i]=r),r.addLinkedFact(o),o.addFootnote(r)}))}}}availableLanguages(){return Array.from(this.reports.reduce(((t,e)=>new Set([...t,...e.availableLanguages()])),new Set))}getItemById(t){return this._items[t]}getIXNodeForItemId(t){return this._ixNodeMap[t]||{}}facts(){return Object.values(this._items).filter((t=>t instanceof cn))}filingDocuments(){return this._data.filingDocuments}prefixMap(){return this._data.prefixes}preferredPrefix(t){return this.taxonomyNamer.getName(t,this._data.prefixes[t]).prefix}namespaceGroups(){const t={};for(const e of this.facts())t[e.conceptQName().prefix]=(t[e.conceptQName().prefix]||0)+1;const e=Object.keys(t);return e.sort(((e,n)=>t[n]-t[e])),e}getUsedConceptPrefixes(){return void 0===this._usedPrefixes&&(this._usedPrefixes=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.getConceptPrefix())))),this._usedPrefixes}getUsedConceptDataTypes(){if(void 0===this._usedDataTypes){const t=new Map;for(const e of Object.values(this._items).filter((t=>t instanceof cn)).map((t=>({dataType:t.concept().dataType(),isNumeric:t.isNumeric()}))).filter((t=>void 0!==t.dataType)))t.set(e.dataType.name,e);this._usedDataTypes=t.values().toArray()}return this._usedDataTypes}getSoftwareCredits(){let t=new Set(this.reports.flatMap((t=>t.softwareCredits())));return Array.from(t).sort()}getTargetDocuments(){return void 0===this._targetDocuments&&(this._targetDocuments=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.targetDocument())))),this._targetDocuments}getUsedUnits(){return void 0===this._usedUnits&&(this._usedUnits=new Set(Object.values(this._items).filter((t=>t instanceof cn)).map((t=>t.unit()?.value())).filter((t=>t)).sort())),this._usedUnits}getUnit(t){return void 0===this._unitsMap&&(this._unitsMap={}),void 0===this._unitsMap[t]&&(this._unitsMap[t]=new dn(this,t)),this._unitsMap[t]}getUsedScalesMap(){const t={};return Object.values(this._items).filter((t=>t instanceof cn)).forEach((e=>{const n=e.scale();if(null!=n){n in t||(t[n]=new Set);const r=t[n],o=(i=e.getScaleLabel(n))?i.split(" ").map((t=>Array.from(t).map(((t,e)=>0===e?t.toUpperCase():t)).join(""))).join(" "):i;o&&!r.has(o)&&r.add(o)}var i})),t}roleMap(){return this._data.roles}qname(t){return new hn(this.prefixMap(),t)}reportsData(){return this._data.sourceReports?.flatMap((t=>t.targetReports))??[this._data]}reportFiles(){return(this._data.sourceReports??[this._data]).map(((t,e)=>(t.docSetFiles??[]).map((t=>({index:e,file:t}))))).flat()}isMultiDocumentViewer(){return this.reportFiles().length>1}usesAnchoring(){return this.reportsData().some((t=>void 0!==t.rels?.["w-n"]))}usesCalculations(){return this.reportsData().some((t=>Object.keys(t.rels?.calc??{}).length>0))}hasValidationErrors(){return void 0!==this._data.validation&&this._data.validation.length>0}validation(){return this._data.validation}factsForReport(t){return Object.values(this._items).filter((e=>e instanceof cn&&e.report==t))}}function vn(t){return"(?:"+t.join("|")+")"}function yn(t){return"(?:"+t+")?"}function bn(t){return"(?:"+t+")*"}const wn=vn(["$","¢","\\bUS$","€","£","¥","\\bC$","\\bA$","\\bNT$","\\bS$","₩","₱","₨","\\bkr","\\bFr.","\\bRM","\\bR$","\\bR"]).replace(/([$.])/g,"\\$1"),An="[  \t\n\r]",xn=An+"*",Cn="[-—]",Mn="(?:^|(?<=(?:[/“—([]|"+An+"|"+Cn+")))",Ln="(?:$|(?=(?:[/,.:;”—)\\]]|"+An+"|"+Cn+")))",In="(?:st|nd|rd|th)",_n="[123]?\\d"+In+"?",Sn="(?:jan|january|feb|february|mar|march|apr|april|may|jun|june|jul|july|aug|august|sep|september|sept|oct|october|nov|november|dec|december)",kn="(?:[01]?\\d)",Tn="(?:19|20)\\d\\d",Dn="year"+xn+Tn,jn=Sn+xn+_n+xn+","+xn+Tn,Nn=Tn+xn+Sn+xn+_n,On="\\d{4}-\\d{2}-\\d{2}",En=vn([jn,Nn,Sn+xn+Tn,Sn+xn+_n,On]),zn=(vn([jn,Nn,On]),"\\b"+vn([En,Tn,Dn])+"\\b"),Fn="\\d+"+xn+"months?",Rn="(?:\\b(?:zero|one|two|three|four(?:teen)?|five|six(?:ty|teen)?|seven(?:ty|teen)?|eight(?:y|een)?|nine(?:ty|teen)?|ten|eleven|twelve|thirteen|fifteen|twenty|thirty|forty|fifty)\\b)",Pn="section"+xn+"\\d{1,3}\\(?:?\\w\\)?",Yn="topic"+xn+"\\d{1,3}(?:\\.[\\w\\d])*",Un="form"+xn+"\\d{1,2}-\\w",Wn="asc"+xn+"\\w\\d{1,3}(?:-\\w?\\d{1,3})*",Bn="item"+xn+"\\d{1,2}\\w?",Zn="rule"+xn+"\\d{1,3}\\w?(?:-\\d{1,3}\\w?)*",Hn="note"+xn+"\\d{1,3}",Gn="level"+xn+"\\d{1,3}",Vn="page"+xn+"\\d{1,3}",Qn="tier"+xn+"\\d{1,3}",Jn=vn([Rn,"\\d+"])+xn+"months ended",Xn=vn([Pn,Yn,Un,Wn,Bn,Zn,Hn,Gn,Vn,Qn,Jn,kn+"/[0-3]?d/"+Tn,kn+"/\\d\\d"]),qn=vn([yn(xn+Cn+xn),xn]),Kn=Rn+bn(qn+Rn),$n=Kn+bn(qn+"(\\b(hundred|thousand|million|billion|trillion)\\b)"+yn(qn+Kn)),ti=vn([vn(["\\d{1,3}(?:,\\d{3})+","\\d+"])+yn("\\.\\d+"),"\\.\\d+"]),ei=vn([yn(wn+xn)+yn("[-+(]"+xn)+yn(wn+xn)+ti+yn(In)+yn(xn+vn([wn,"\\%"]))+xn+"\\)?"+yn(xn+vn([wn,"\\%"])),$n,"\\b(?:no|none)\\b","[-֊־‐-―﹘﹣]"]),ni=Mn+vn(["("+zn+")","("+Xn+")",Fn,ei])+Ln,ii=new RegExp(ni,"gi");var ri=n(461),oi=n(60);function si(t,e){var n=e.attribute;return t=t.replace(ai,"&amp;").replace(li,"&gt;").replace(ci,"&lt;"),n&&(t=t.replace(ui,"&apos;").replace(di,"&quot;")),t}var ai=/&/g,li=/>/g,ci=/</g,ui=/'/g,di=/"/g,hi=/((?:[\0-\x08\x0B\f\x0E-\x1F\uFFFD\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,pi=new RegExp("([\\x7F-\\x84]|[\\x86-\\x9F]|[\\uFDD0-\\uFDEF]|(?:\\uD83F[\\uDFFE\\uDFFF])|(?:\\uD87F[\\uDFFE\\uDFFF])|(?:\\uD8BF[\\uDFFE\\uDFFF])|(?:\\uD8FF[\\uDFFE\\uDFFF])|(?:\\uD93F[\\uDFFE\\uDFFF])|(?:\\uD97F[\\uDFFE\\uDFFF])|(?:\\uD9BF[\\uDFFE\\uDFFF])|(?:\\uD9FF[\\uDFFE\\uDFFF])|(?:\\uDA3F[\\uDFFE\\uDFFF])|(?:\\uDA7F[\\uDFFE\\uDFFF])|(?:\\uDABF[\\uDFFE\\uDFFF])|(?:\\uDAFF[\\uDFFE\\uDFFF])|(?:\\uDB3F[\\uDFFE\\uDFFF])|(?:\\uDB7F[\\uDFFE\\uDFFF])|(?:\\uDBBF[\\uDFFE\\uDFFF])|(?:\\uDBFF[\\uDFFE\\uDFFF])(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]))","g");function fi(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removeDiscouragedCharacters,n=void 0===e||e;return t=t.replace(hi,""),n&&(t=t.replace(pi,"")),t}function gi(t){return si(fi(t),{attribute:!0})}function mi(t){return si(fi(t),{attribute:!1})}function vi(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(gi(String(t[e])),'"')})).reduce((function(t,e){return t+" "+e}),"")}function yi(t,e){return"".concat(wi(t)).concat(e)}var bi=26;function wi(t){if("number"!=typeof t)return"";var e=Math.floor(t/bi),n=String.fromCharCode(97+t%bi).toUpperCase();return 0===e?n:wi(e-1)+n}function Ai(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function xi(t,e,n,i,r,o){if(null===n&&!r)return"";var s={r:yi(e,t)};if(r&&(s.s=r),null===n)return"<c".concat(vi(s),"/>");if(i===Date&&!r)throw new Error('No "format" has been specified for a Date cell');n=function(t,e,n){switch(t){case String:if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return n(e);case Number:if("number"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a number"));return String(e);case Date:if(!(e instanceof Date))throw new Error("Invalid cell value: ".concat(e,". Expected a Date"));return String(function(t){return t.getTime()/864e5+25569}(e));case Boolean:if("boolean"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a boolean"));return e?"1":"0";case"Formula":if("string"!=typeof e)throw new Error("Invalid cell value: ".concat(e,". Expected a string"));return mi(e);default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i,n,o),(i=function(t){switch(t){case String:return"s";case Number:case Date:return;case Boolean:return"b";case"Formula":return"f";default:throw new Error("Unknown schema type: ".concat(t&&t.name||t))}}(i))&&(s.t=i);var a,l,c=function(t){var e=function(t){switch(t){case"inlineStr":return"<is><t>";case"f":return"<f>";default:return"<v>"}}(t),n=e.replace(Ci,"</");return[e,n]}(i),u=(l=2,function(t){if(Array.isArray(t))return t}(a=c)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(a,l)||function(t,e){if(t){if("string"==typeof t)return Ai(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(t,e):void 0}}(a,l)||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.")}()),d=u[0],h=u[1];return"<c".concat(vi(s),">")+d+n+h+"</c>"}var Ci=/</g;function Mi(t){var e=t.align,n=t.alignVertical,i=t.textRotation,r=t.indent,o=t.wrap,s=t.fontFamily,a=t.fontSize,l=t.fontWeight,c=t.fontStyle,u=t.color,d=t.backgroundColor,h=t.borderColor,p=t.borderStyle,f=t.leftBorderColor,g=t.leftBorderStyle,m=t.rightBorderColor,v=t.rightBorderStyle,y=t.topBorderColor,b=t.topBorderStyle,w=t.bottomBorderColor,A=t.bottomBorderStyle;if(e||n||i||r||o||s||a||l||c||u||d||h||p||f||g||m||v||y||b||w||A)return function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}({align:e,alignVertical:n,textRotation:i,indent:r,wrap:o,fontFamily:s,fontSize:a,fontWeight:l,fontStyle:c,color:u,backgroundColor:d,borderColor:h,borderStyle:p,leftBorderColor:f,leftBorderStyle:g,rightBorderColor:m,rightBorderStyle:v,topBorderColor:y,topBorderStyle:b,bottomBorderColor:w,bottomBorderStyle:A})}function Li(t){return Li="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},Li(t)}function Ii(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 _i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ii(Object(n),!0).forEach((function(e){Si(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Si(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Ti={fontWeight:"bold"};function Di(t,e){if(!t)return"";if(t.type!==Date||t.width||(t.width=14),!t.width)return"";var n=e+1;return'<col min="'.concat(n,'" max="').concat(n,'" width="').concat(t.width,'" customWidth="1"/>')}function ji(t){var e=t.data,n=t.rowIndex,i=t.columnIndex,r=t.span,o=t.rowSpan,s=t.cloneData,a=Mi(e[n][i]);a&&(e=s());for(var l=n;l<=n+(o-1);){for(var c=i;c<=i+(r-1);){var u=e[l][c];if(l>n||c>i){if(null!=u)throw new Error("[write-excel-file] When using `span` or `rowSpan` parameters, all hidden overlapped cells should be represented by `null`s or `undefined`s. Cell at row ".concat(n+1," and column ").concat(i+1," is configured with `span` ").concat(r," and `rowSpan` ").concat(o,". Cell at row ").concat(l+1," and column ").concat(c+1," is neither `null` nor `undefined`: ").concat(JSON.stringify(u)));a&&(e[l][c]=a)}c++}l++}}function Ni(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Oi(t,e){var n=e.schema,i=e.columns,r=e.getHeaderStyle,o=e.getStyle,s=e.getSharedString,a=e.customFont,l=e.dateFormat,c=e.orientation,u=e.stickyRowsCount,d=e.stickyColumnsCount,h=e.showGridLines,p=e.rightToLeft,f=e.sheetId;!function(t,e){if(e.schema){if(!Array.isArray(t))throw new TypeError("Expected an array of objects")}else{if(!Array.isArray(t))throw new TypeError("Expected an array of arrays");if(t.length>0&&!Array.isArray(t[0]))throw new TypeError("Expected an array of arrays")}}(t,{schema:n});var g=function(t,e){var n=[];if(e.schema)return{data:t,mergedCells:n};for(var i=function(){t=t.slice();for(var e=0;e<t.length;)t[e]=t[e].slice(),e++;return i=function(){return t},t},r=0;r<t.length;){for(var o=t[r],s=0;s<o.length;){var a=o[s];if(a){var l=a.span,c=void 0===l?1:l,u=a.rowSpan,d=void 0===u?1:u;(c>1||d>1)&&(ji({data:t,rowIndex:r,columnIndex:s,span:c,rowSpan:d,cloneData:i}),n.push([[r,s],[r+(d?d-1:0),s+(c?c-1:0)]]))}s++}r++}return{data:t,mergedCells:n}}(t,{schema:n}),m=g.data,v=g.mergedCells;return'<?xml version="1.0" ?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">{views}{columnsDescription}<sheetData>{data}</sheetData>{mergedCellsDescription}{layout}</worksheet>'.replace("{data}",function(t,e){var n=e.schema,i=e.getHeaderStyle,r=e.getStyle,o=e.getSharedString,s=e.customFont,a=e.dateFormat;if(n){for(var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ki(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n);!(l=u()).done;)if(l.value.column){c=[n.map((function(t){return _i({type:String,value:t.column,align:t.align},i?i(t):Ti)}))];break}t=c.concat(t.map((function(t){return n.map((function(e){return _i(_i({},e),{},{value:e.value(t)})}))})))}return t.map((function(t,e){return function(t,e,n){var i,r=n.getStyle,o=n.getSharedString,s=n.customFont,a=n.dateFormat,l=n.usesSchema,c=e+1,u=t.map((function(t,e){if(null==t)return"";var n,u=t.height,d=Mi(t),h=t.type,p=t.value,f=t.format;if(function(t){return null==t||""===t}(p)?p=null:void 0===h&&(l||(h=function(t){switch(Li(t)){case"string":return String;case"number":return Number;case"boolean":return Boolean;default:if(t instanceof Date)return Date}}(p)),void 0===h&&(h=String,p=String(p))),f){if(h!==Date&&h!==Number&&"Formula"!==h)throw new Error('`format` can only be used on `Date`, `Number` or `"Formula"` cells')}else h===Date&&(f=a);return(f||s||d)&&(n=r(d||{},{format:f})),u&&(void 0===i||i<u)&&(i=u),xi(c,e,p,h,n,o)})).join(""),d={r:c};return i&&(d.ht=i,d.customHeight=1),"<row".concat(vi(d),">")+u+"</row>"}(t,e,{getStyle:r,getSharedString:o,customFont:s,dateFormat:a,usesSchema:void 0!==n})})).join("")}(m,{schema:n,getHeaderStyle:r,getStyle:o,getSharedString:s,customFont:a,dateFormat:l})).replace("{views}",function(t){var e=t.stickyRowsCount,n=t.stickyColumnsCount,i=t.showGridLines,r=t.rightToLeft;if(!e&&!n&&!1!==i&&!r)return"";var o="",s={tabSelected:1,workbookViewId:0};!1===i&&(s.showGridLines=!1),r&&(s.rightToLeft=1);var a={ySplit:e||0,xSplit:n||0,topLeftCell:yi(n||0,(e||0)+1),activePane:"bottomRight",state:"frozen"};return o+="<sheetViews>",o+="<sheetView".concat(vi(s),">"),o+="<pane".concat(vi(a),"/>"),(o+="</sheetView>")+"</sheetViews>"}({stickyRowsCount:u,stickyColumnsCount:d,showGridLines:h,rightToLeft:p})).replace("{columnsDescription}",function(t){var e=t.schema,n=t.columns;if(e||n){var i=(e||n).map(Di).join("");if(i)return"<cols>".concat(i,"</cols>")}return""}({schema:n,columns:i})).replace("{mergedCellsDescription}",function(t){return 0===t.length?"":'<mergeCells count="'.concat(t.length,'">')+t.map((function(t){var e,n,i=(n=2,function(t){if(Array.isArray(t))return t}(e=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=!0,a=!1;try{for(n=n.call(t);!(s=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(t){a=!0,r=t}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Ni(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(t,e):void 0}}(e,n)||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.")}()),r=i[0],o=i[1],s=yi(r[1],r[0]+1)+":"+yi(o[1],o[0]+1);return'<mergeCell ref="'.concat(s,'"/>')})).join("")+"</mergeCells>"}(v)).replace("{layout}",function(t){var e=t.sheetId,n=t.orientation,i="";return n&&(i+="<pageMargins",i+=' left="'.concat(.7,'"'),i+=' right="'.concat(.7,'"'),i+=' top="'.concat(.75,'"'),i+=' bottom="'.concat(.75,'"'),i+=' header="'.concat(.3,'"'),i+=' footer="'.concat(.3,'"'),i+="/>"),n&&(i+="<pageSetup",i+=' paperSize="'.concat(9,'"'),i+=' orientation="'.concat(gi(n),'"'),i+=' r:id="rId'.concat(e,'"'),i+="/>"),i}({sheetId:f,orientation:c}))}function Ei(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return zi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Fi(t){if("#"!==t[0])throw new Error('Color "'.concat(t,'" must start with a "#"'));return"FF".concat(t.slice(1).toUpperCase())}function Ri(t){if(!(t>=-90&&t<=90))throw new Error("Unsupported text rotation angle: ".concat(t,". Values from -90 to 90 are supported."));return t}function Pi(t){return t<0?90-t:t}function Yi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Ui(){var t=[],e={};return{getSharedStringsXml:function(){return function(t){var e='<?xml version="1.0"?>';e+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">';for(var n,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Yi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t);!(n=i()).done;){var r=n.value,o=r.trim().length===r.length?"":' xml:space="preserve"';e+="<si><t".concat(o,">"),e+=mi(r),e+="</t></si>"}return e+"</sst>"}(t)},getSharedString:function(n){var i=e[n];return void 0===i&&(i=String(t.length),e[n]=i,t.push(n)),i}}}var Wi=/[\[\]\/\\:*?]+/;function Bi(t){if(!t)throw new Error("Sheet name can't be empty");if(t.length>31)throw new Error('Sheet name "'.concat(t,"\" can't be longer than 31 characters"));if(Wi.test(t))throw new Error('Sheet name "'.concat(t,'" contains illegal characters: []/\\:*?'))}function Zi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Hi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Gi=["fileName"];function Vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Qi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fileName;return function(t,e){var n=e.sheet,i=e.sheets,r=e.schema,o=e.columns,s=e.headerStyle,a=e.getHeaderStyle,l=e.fontFamily,c=e.fontSize,u=e.orientation,d=e.stickyRowsCount,h=e.stickyColumnsCount,p=e.showGridLines,f=e.rightToLeft,g=e.dateFormat,m=new ri;m.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>'),m.file("[Content_Types].xml",'<?xml version="1.0" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="application/xml" Extension="xml"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" PartName="/xl/worksheets/sheet1.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" PartName="/xl/workbook.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" PartName="/xl/sharedStrings.xml"/><Override ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" PartName="/xl/styles.xml"/></Types>');var v=function(t){var e=t.data,n=t.sheetName,i=t.sheetNames,r=t.schema,o=t.columns,s=t.headerStyle,a=t.getHeaderStyle,l=t.fontFamily,c=t.fontSize,u=t.orientation,d=t.stickyRowsCount,h=t.stickyColumnsCount,p=t.showGridLines,f=t.rightToLeft,g=t.dateFormat,m=Ui(),v=m.getSharedStringsXml,y=m.getSharedString,b=function(t){var e=t.fontFamily,n=t.fontSize,i=Boolean(e||n);void 0===e&&(e="Calibri"),void 0===n&&(n=12);var r=[],o={},s=[],a={},l=[],c={},u=[],d={},h=[],p={};function f(t,f){var g,m=t.align,v=t.alignVertical,y=t.textRotation,b=t.indent,w=t.wrap,A=t.fontFamily,x=t.fontSize,C=t.fontWeight,M=t.fontStyle,L=t.color,I=t.backgroundColor,_=t.borderColor,S=t.borderStyle,k=t.leftBorderColor,T=t.leftBorderStyle,D=t.rightBorderColor,j=t.rightBorderStyle,N=t.topBorderColor,O=t.topBorderStyle,E=t.bottomBorderColor,z=t.bottomBorderStyle,F=f.format,R="".concat(A||"-",":").concat(x||"-",":").concat(C||"-",":").concat(M||"-",":").concat(L||"-"),P=I||"-",Y="".concat(N||_||"-",":").concat(O||S||"-")+"/"+"".concat(D||_||"-",":").concat(j||S||"-")+"/"+"".concat(E||_||"-",":").concat(z||S||"-")+"/"+"".concat(k||_||"-",":").concat(T||S||"-"),U="".concat(m||"-","/").concat(v||"-","/").concat(y||"-","/").concat(b||"-","/").concat(w||"-","/").concat(F||"-","/").concat(R,"/").concat(P,"/").concat(Y),W=a[U];if(void 0!==W)return W;F&&void 0===(g=o[F])&&(g=o[F]=String(100+r.length),r.push(F));var B,Z,H=i?0:void 0;return(A||x||C||M||L)&&void 0===(H=c[R])&&(H=c[R]=String(l.length),l.push({custom:!0,size:x||n,family:A||e,weight:C,style:M,color:L})),I&&void 0===(B=d[P])&&(B=d[P]=String(u.length),u.push({color:I})),(_||S||k||T||D||j||N||O||E||z)&&void 0===(Z=p[Y])&&(Z=p[Y]=String(h.length),h.push({left:{style:T||S,color:k||_},right:{style:j||S,color:D||_},top:{style:O||S,color:N||_},bottom:{style:z||S,color:E||_}})),s.push({fontId:H,fillId:B,borderId:Z,align:m,alignVertical:v,textRotation:y,indent:b,wrap:w,formatId:g}),a[U]=String(s.length-1)}return l.push({size:n,family:e,custom:i}),c["-:-"]=0,u.push({}),d["-"]=0,h.push({left:{},right:{},top:{},bottom:{}}),p["-:-/-:-/-:-/-:-"]=0,u.push({gray125:!0}),f({},{}),{getStylesXml:function(){return function(t){var e=t.formats,n=t.styles,i=t.fonts,r=t.fills,o=t.borders,s='<?xml version="1.0" ?>';if(s+='<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">',e.length>0){s+='<numFmts count="'.concat(e.length,'">');for(var a=0;a<e.length;a++)s+='<numFmt numFmtId="'.concat(100+a,'" formatCode="').concat(gi(e[a]),'"/>');s+="</numFmts>"}s+='<fonts count="'.concat(i.length,'">');for(var l,c=Ei(i);!(l=c()).done;){var u=l.value,d=u.size,h=u.family,p=u.color,f=u.weight,g=u.style,m=u.custom;s+="<font>",s+='<sz val="'.concat(d,'"/>'),s+="<color ".concat(p?'rgb="'+gi(Fi(p))+'"':'theme="1"',"/>"),s+='<name val="'.concat(gi(h),'"/>'),s+='<family val="2"/>',m||(s+='<scheme val="minor"/>'),"bold"===f&&(s+="<b/>"),"italic"===g&&(s+="<i/>"),s+="</font>"}s+="</fonts>",s+='<fills count="'.concat(r.length,'">');for(var v,y=Ei(r);!(v=y()).done;){var b=v.value,w=b.color,A=b.gray125;s+="<fill>",w?(s+='<patternFill patternType="solid">',s+='<fgColor rgb="'.concat(gi(Fi(w)),'"/>'),s+='<bgColor indexed="64"/>',s+="</patternFill>"):s+=A?'<patternFill patternType="gray125"/>':'<patternFill patternType="none"/>',s+="</fill>"}s+="</fills>",s+='<borders count="'.concat(o.length,'">');for(var x,C=Ei(o);!(x=C()).done;){var M=x.value,L=M.left,I=M.right,_=M.top,S=M.bottom,k=function(t,e){var n=e.style,i=e.color;i&&!n&&(n="thin");var r=!!i;return"<".concat(t)+(n?' style="'.concat(gi(n),'"'):"")+(r?">":"/>")+(i?'<color rgb="'.concat(gi(Fi(i)),'"/>'):"")+(r?"</".concat(t,">"):"")};s+="<border>",s+=k("left",L),s+=k("right",I),s+=k("top",_),s+=k("bottom",S),s+="<diagonal/>",s+="</border>"}s+="</borders>",s+='<cellXfs count="'.concat(n.length,'">');for(var T,D=Ei(n);!(T=D()).done;){var j=T.value,N=j.fontId,O=j.fillId,E=j.borderId,z=j.align,F=j.alignVertical,R=j.textRotation,P=j.indent,Y=j.wrap,U=j.formatId;s+="<xf "+[void 0!==U?'numFmtId="'.concat(U,'"'):void 0,void 0!==U?'applyNumberFormat="1"':void 0,void 0!==N?'fontId="'.concat(N,'"'):void 0,void 0!==N?'applyFont="1"':void 0,void 0!==O?'fillId="'.concat(O,'"'):void 0,void 0!==O?'applyFill="1"':void 0,void 0!==E?'borderId="'.concat(E,'"'):void 0,void 0!==E?'applyBorder="1"':void 0,z||F||R||P||Y?'applyAlignment="1"':void 0].filter((function(t){return t})).join(" ")+">"+(z||F||R||P||Y?"<alignment"+(z?' horizontal="'.concat(gi(z),'"'):"")+(F?' vertical="'.concat(gi(F),'"'):"")+(R?' textRotation="'.concat(Pi(Ri(R)),'"'):"")+(P?' indent="'.concat(gi(String(P)),'"'):"")+(Y?' wrapText="1"':"")+"/>":"")+"</xf>"}return(s+="</cellXfs>")+"</styleSheet>"}({formats:r,styles:s,fonts:l,fills:u,borders:h})},getStyle:f}}({fontFamily:l,fontSize:c}),w=b.getStylesXml,A=b.getStyle;if(i&&o&&!Array.isArray(o[0]))throw new Error('In a "write multiple sheets" scenario, `columns` parameter must be an array of `columns` for each sheet.');i||(i=[n||"Sheet1"],e=[e],o&&(o=[o]),r&&(r=[r])),s&&!a&&(a=function(){return s});for(var x,C=Zi(i);!(x=C()).done;)Bi(x.value);for(var M,L=[],I=0,_=Zi(i);!(M=_()).done;)M.value,L.push(Oi(e[I],{schema:r&&r[I],columns:o&&o[I],getHeaderStyle:a,getStyle:A,getSharedString:y,customFont:l||c,dateFormat:g,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,sheetId:I+1})),I++;return{sheets:i.map((function(t,e){return{id:e+1,name:t,data:L[e]}})),getSharedStringsXml:v,getStylesXml:w}}({data:t,sheetName:n,sheetNames:i,schema:r,columns:o,headerStyle:s,getHeaderStyle:a,fontFamily:l,fontSize:c,orientation:u,stickyRowsCount:d,stickyColumnsCount:h,showGridLines:p,rightToLeft:f,dateFormat:g}),y=v.sheets,b=v.getSharedStringsXml,w=v.getStylesXml,A=m.folder("xl");A.file("_rels/workbook.xml.rels",function(t){var e=t.sheets;return'<?xml version="1.0" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+e.map((function(t){var e=t.id;return'<Relationship Id="rId'.concat(e,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet').concat(e,'.xml"/>')})).join("")+'<Relationship Id="rId'.concat(e.length+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>')+'<Relationship Id="rId'.concat(e.length+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>')+"</Relationships>"}({sheets:y})),A.file("workbook.xml",function(t){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mx="http://schemas.microsoft.com/office/mac/excel/2008/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mv="urn:schemas-microsoft-com:mac:vml" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main"><workbookPr/>'+(t.stickyRowsCount||t.stickyColumnsCount?"<bookViews><workbookView/></bookViews>":"")+"<sheets>"+t.sheets.map((function(t){var e=t.id,n=t.name;return'<sheet name="'.concat(gi(n),'" sheetId="').concat(e,'" r:id="rId').concat(e,'"/>')})).join("")+"</sheets><definedNames/><calcPr/></workbook>"}({sheets:y,stickyRowsCount:d,stickyColumnsCount:h})),A.file("styles.xml",w()),A.file("sharedStrings.xml",b());for(var x,C=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Vi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vi(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y);!(x=C()).done;){var M=x.value,L=M.id,I=M.data;A.file("worksheets/sheet".concat(L,".xml"),I)}return m.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",compression:"deflate"})}(t,function(t,e){if(null==t)return{};var n,i,r=function(t,e){if(null==t)return{};var n,i,r={},o=Object.keys(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)n=o[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}(e,Gi)).then((function(t){return n?oi.saveAs(t,n):t}))}class Ji{constructor(t,e){this._table=t,this._reportSet=e}static addHandles(t,n){e()("table",t).each((function(){const t=e()(this);if(t.find("tr").filter(((t,n)=>e()(n).find(".ixbrl-element").length>0)).length>1){t.css("position","relative");const i=new Ji(t,n);e()('<div class="ixbrl-table-handle"><span>Export table</span></div>').appendTo(t).on("click",(()=>i.exportTable()))}}))}_getRawTable(){const t=this._table,n=this._reportSet;let i=0;const r=[];t.find("tr").each((function(){const t=[];e()(this).find("td:visible, th:visible").each((function(){const i=e()(this).attr("colspan");if(i)for(let e=0;e<i-1;e++)t.push({type:"static",value:""});const r=e()(this).find(".ixbrl-element").addBack(".ixbrl-element");let o=null;if(r.length>0){const t=r.first().data("ivids");o=n.getItemById(t)}if(o instanceof cn){const n={type:"fact",fact:o},i=e()(this)[0];let s=r[0],a=s.textContent;for(;s!==i;)s=null!==s.previousSibling?s.previousSibling:s.parentNode,3==s.nodeType&&(a=s.textContent+a);null!==a.match(/[\(-]\s*\d/)&&(n.negative=!0),n.topBorder=null!==e()(this).css("border-top-style").match(/(solid|double)/),n.bottomBorder=null!==e()(this).css("border-bottom-style").match(/(solid|double)/),t.push(n)}else{const n=e()(this).text();t.push({type:"static",value:n})}})),t.length>i&&(i=t.length),r.push(t)}));for(const t of r)for(;t.length<i;)t.push({type:"static",value:""});return r}_getFactsInSlice(t){return t.filter((t=>"fact"===t.type)).map((t=>t.fact))}_getConstantAspectsForSlice(t,e){const n=this._getFactsInSlice(t);if(0==n.length)return null;const i=new Set;for(const t of n)for(const e of t.aspects())i.add(e.name());const r=new Map;for(const t of i){r.set(t,n[0].aspect(t));for(let e=1;e<n.length;e++)void 0!==r.get(t)&&r.get(t).equalTo(n[e].aspect(t))||r.delete(t)}return r}_writeTable(t){const e=[],n=[];for(const[i,r]of t.entries()){const t=[];for(const[e,i]of r.entries()){const r={};"fact"===i.type?(n[e]={width:18},r.value=Number(i.fact.value()),r.type=Number,r.format="#,##0",i.negative?r.value=-1*Math.abs(r.value):r.value=Math.abs(r.value),i.topBorder&&(r.topBorderStyle="medium",r.topBorderColor="#000000"),i.bottomBorder&&(r.bottomBorderStyle="medium",r.bottomBorderColor="#000000")):"aspectLabel"===i.type?(r.value=i.value,r.type=String):(r.value=i.value,r.type=String,r.color="#707070"),t.push(r)}e.push(t)}return{columns:n,data:e}}exportTable(){const t=this._getRawTable();let e=0;const n=[],i=new Set;for(const r of t){const t=this._getConstantAspectsForSlice(r);if(n.push(t),null!==t)for(const[e,n]of t)i.add(e);r.length>e&&(e=r.length)}const r=[],o=new Set;for(let n=0;n<e;n++){const e=t.map((t=>t[n])),i=this._getConstantAspectsForSlice(e);if(r.push(i),null!==i)for(const[t,e]of i)o.add(t)}const s=new Set(o);for(const t of o)for(const[e,n]of Object.entries(r))null===n||n.get(t)||s.delete(t);for(const t of o)i.delete(t);for(const n of o){const o=Array.from(i).map((()=>""));for(let t=0;t<e;t++){let e=(r[t]||new Map).get(n);void 0!==e&&(e=e.valueLabel("std")),o.push({type:"aspectLabel",value:e||""})}t.unshift(o)}for(let e=o.size;e<t.length;e++){const r=[];for(const t of i){let i=(n[e-o.size]||new Map).get(t);void 0!==i&&(i=i.valueLabel("std")),r.push({type:"aspectLabel",value:i||""})}t[e]=r.concat(t[e])}const a=this._writeTable(t);Qi(a.data,{columns:a.columns,fileName:"table.xlsx"})}}var Xi=0;class qi{constructor(t,e,n){this.wrapperNodes=e,this.escaped=!1,this.continuations=[],this.docIndex=n,this.footnote=!1,this.id=t,this.isHidden=!1,this.docOrderindex=Xi++}continuationIds(){return this.continuations.map((t=>t.id))}chainIXIds(){return[this.id].concat(this.continuationIds())}textContent(){return[this].concat(this.continuations).map((t=>t.wrapperNodes.first().text())).join(" ")}htmlHidden(){return this.wrapperNodes.filter(":not(.ixbrl-no-highlight)").is(":hidden")||this.wrapperNodes.is(((t,n)=>function(t){const e=parseFloat(t.split(",")[3]);return!isNaN(e)&&e<.1}(e()(n).css("color"))))}}class Ki{constructor(){this.index=[]}addItem(t,e){this.index.push({vuid:t,docIndex:e})}getAdjacentItem(t,e){const n=this.index.findIndex((e=>e.vuid===t)),i=this.index.length;return this.index[(n+e+i)%i].vuid}getFirstInDocument(t){return this.index.filter((e=>e.docIndex===t))[0].vuid}getLastInDocument(t){return this.index.filter((e=>e.docIndex===t)).at(-1).vuid}}class $i{constructor(t){this.node=e()("#dialog-templates").find(t).clone().appendTo("#ixv #dialog-container"),e()(".close",this.node).on("click",(()=>this.close())),e()(document).on("keyup",(t=>{27===t.which&&this.close()}))}addButton(t,n,i){const r=this.node.find(".buttons"),o=e()("<button></button>").text(t).addClass(n?"dialog-button-primary":"dialog-button-cancel");r.append(o),o.on("click",(()=>{i&&!i()||this.close()}))}close(){e()(".dialog-mask").hide(),this.node.get(0).close(),this.node.remove()}show(){e()(".dialog-mask").show(),this.node.get(0).showModal(),this.node.show()}}class tr extends $i{constructor(t,e,n,i){super(".dialog.message-box"),this.title=t,this.message=e,this.okText=n,this.cancelText=i}show(t,n){this.node.find(".title").text(this.title),this.node.find(".message").empty().append(this.message);const i=this.node.find(".buttons").empty(),r=e()("<button></button>").text(this.okText).addClass("dialog-button-primary");if(i.append(r),r.on("click",(()=>{this.close(),t&&t()})),this.cancelText){const t=e()("<button></button>").text(this.cancelText).addClass("dialog-button-cancel");i.append(t),t.on("click",(()=>{this.close(),n&&n()}))}super.show(this)}showAsync(){return new Promise(((t,e)=>{this.show((()=>t(!0)),(()=>t(!1)))}))}}class er extends Error{}function nr(t){return-1==t.indexOf(":")?t:t.substring(t.indexOf(":")+1)}class ir{constructor(t,n,i){this._iv=t,this._reportSet=i,this._iframes=n,this._contents=n.contents(),this.onSelect=e().Callbacks(),this.onMouseEnter=e().Callbacks(),this.onMouseLeave=e().Callbacks(),this._ixNodeMap={},this._docOrderItemIndex=new Ki,this._currentDocumentIndex=0}_checkContinuationCount(){const t=Object.keys(this.continuationOfMap).length;if(t>this._iv.options.continuationElementLimit){const n=e()("<div></div>").append(e()("<p></p>").text(`This document contains a very large number of iXBRL elements (found ${t} ix:continuation elements).`)).append(e()("<p></p>").text("You may experience performance problems viewing this document, or the viewer may not load at all.")).append(e()("<p></p>").text("Do you want to continue trying to load this document?"));return new tr("Large document warning",n,"Continue","Cancel").showAsync().then((t=>{if(!t)throw new er("Too many continuations")}))}return Promise.resolve()}initialize(){return new Promise((async(t,n)=>{const i=this;i._buildContinuationMaps(),i._checkContinuationCount().catch((t=>{throw t})).then((()=>i._iv.setProgress("Pre-processing document"))).then((()=>{i._iframes.each((function(t){e()(this).data("selected",t==i._currentDocumentIndex);const n=e()(this).data("report-index");i._preProcessiXBRL(e()(this).contents().find("body").get(0),n,t,!1)})),async function(){for(const[t,n]of i._iframes.toArray().entries()){const r=e()(n).contents().find("body").get(0);await i._iv.pluginPromise("preProcessiXBRL",r,t),i._iv.isReviewModeEnabled()&&await new Promise(((n,o)=>{i._iv.setProgress("Finding untagged numbers and dates").then((()=>{const o=e()(r).children(":visible");o.hide(),e()(r).addClass("review"),i._wrapUntaggedNumbers(e()(r),t,!1),o.show(),n()}))}))}}().then((()=>i._iv.setProgress("Preparing document"))).then((()=>{this._reportSet.setIXNodeMap(this._ixNodeMap),this._applyStyles(),this._bindHandlers(),this.scale=1,this._setTitle(0),this._addDocumentSetTabs(),t()}))})).catch((t=>n(t)))}))}_addDocumentSetTabs(){if(this._reportSet.isMultiDocumentViewer()){e()("#ixv .ixds-tabs").show();for(const[t,n]of this._reportSet.reportFiles().entries())e()('<button class="tab"></button>').text(n.file).prop("title",n.file).data("ix-doc-id",t).on("click",(()=>this.selectDocument(t))).appendTo(e()("#ixv #viewer-pane .ixds-tabs .tab-area"));e()("#ixv #viewer-pane .ixds-tabs .tab-area .tab").eq(0).addClass("active")}}_wrapNode(t){let n="<span>";if("block"===getComputedStyle(t).getPropertyValue("display"))n="<div>";else{const e=t.getElementsByTagName("*");for(var i=0;i<e.length;i++)if("block"===getComputedStyle(e[i]).getPropertyValue("display")){n="<div>";break}}return e()(t).wrap(n),t.parentNode}_wrapUntaggedNumbers(t,n,i){const r=this,o=/(?:^|\s|;)-(?:sec|esef)-ix-hidden:\s*([^\s;]+)/;t.contents().each((function(){if(this.nodeType===Node.ELEMENT_NODE){const t=nr(this.nodeName.toUpperCase());"NONFRACTION"===t||"NONNUMERIC"===t&&null!==this.getAttribute("format")||this.hasAttribute("style")&&this.getAttribute("style").match(o)||r._wrapUntaggedNumbers(e()(this),n,"NONNUMERIC"===t)}else if(this.nodeType===Node.TEXT_NODE){const n=this.nodeValue,r=e()("<div></div>");let o=0;!function(t,e){for(var n;null!==(n=ii.exec(t));)e(n,void 0!==n[2],void 0!==n[1])}(n,(function(s,a,l){if(s.index>o&&r.append(document.createTextNode(n.substring(o,s.index))),a||i&&0===s.index&&s.index+s[0].length===n.length&&n===t.text())r.append(document.createTextNode(s[0]));else{const t=l?"review-untagged-date":"review-untagged-number";e()("<span></span>").text(s[0]).addClass(t).appendTo(r)}o=s.index+s[0].length})),o<n.length&&r.append(document.createTextNode(n.substring(o,n.length))),e()(this).replaceWith(r.contents())}}))}_showDocumentAndElement(t,n){if(this.selectDocument(t),void 0!==n&&""!=n)for(const i of[n,decodeURIComponent(n)]){const n=e().escapeSelector(i),r=this._iframes.eq(t).contents().find("#"+n+', a[name="'+n+'"]');if(r.length>0)return void this.showElement(r.eq(0))}}_updateLink(t){const n=e()(t).attr("href");if(void 0!==n){const[i,r]=n.split("#",2),o=this._reportSet.reportFiles().indexOf(i);n.includes("/")||-1==o?i&&e()(t).attr("target","_blank"):e()(t).on("click",(t=>{this._showDocumentAndElement(o,r),t.preventDefault()}))}}_findOrCreateWrapperNode(t,n){if(n)return e()(t).addClass("ixbrl-element-hidden");const i=t.closest("td,th"),r=[],o=e()(t).text();if(null!==i&&o.length>0){const t=e()(i).text(),n=t.indexOf(o),s=t.substring(0,n)+t.substring(n+o.length);/[0-9A-Za-z]/.test(s)||r.push(i)}0==r.length&&r.push(this._wrapNode(t));for(const t of r[0].querySelectorAll("*"))"absolute"===getComputedStyle(t).getPropertyValue("position")&&r.push(t);for(const[t,e]of r.entries())r.length>1&&e.classList.add("ixbrl-contains-absolute"),0==t?e.classList.add("ixbrl-element"):e.classList.add("ixbrl-sub-element");return e()(r)}_addIdToNode(t,e){const n=t.data("ivids")||[];n.push(e),t.data("ivids",n)}_buildContinuationMaps(){const t={},n={};this._iframes.each(((i,r)=>{const o=e()(r).data("report-index");e()(r).contents().find("body *").each(((e,i)=>{const r=nr(i.nodeName).toUpperCase();if(["NONNUMERIC","NONFRACTION","FOOTNOTE","CONTINUATION"].includes(r)&&i.hasAttribute("id")){const e=Xe(o,i.getAttribute("id")),s=Xe(o,i.getAttribute("continuedAt"));null!==s&&(t[e]=s),"CONTINUATION"!=r&&(n[e]=[])}}))})),this.continuationOfMap={};for(const[e,r]of Object.entries(n))for(var i=e;void 0!==t[i];)i=t[i],r.push(i),void 0!==this.continuationOfMap[i]&&console.log("Continuation '"+i+"' is a continuation of multiple items."),this.continuationOfMap[i]=e;this.itemContinuationMap=n}_getOrCreateIXNode(t,e,n,i){let r=this._ixNodeMap[t];return r||(r=new qi(t,e,n),this._ixNodeMap[t]=r,r.isHidden=i),r}_preProcessiXBRL(t,e,n,i){const r=nr(t.nodeName).toUpperCase(),o="FOOTNOTE"===r,s="CONTINUATION"===r,a="NONNUMERIC"===r,l="NONFRACTION"===r,c=a||l;if(1===t.nodeType){const u=Xe(e,t.getAttribute("id"));if(c||o){if(t.hasAttribute("id")){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),u);let r=this._getOrCreateIXNode(u,e,n,i);if(this._docOrderItemIndex.addItem(u,n),l&&(e.addClass("ixbrl-element-nonfraction"),t.hasAttribute("scale"))){const e=Number(t.getAttribute("scale"));Number.isNaN(e)||0===e||(r.scale=e)}a&&(e.addClass("ixbrl-element-nonnumeric"),t.hasAttribute("escape")&&t.getAttribute("escape").match(/^(true|1)$/)&&(r.escaped=!0)),o&&(e.addClass("ixbrl-element-footnote"),r.footnote=!0)}}else if(s){if(t.hasAttribute("id")&&void 0!==this.continuationOfMap[u]){let e=this._findOrCreateWrapperNode(t,i);this._addIdToNode(e.first(),this.continuationOfMap[u]),this._getOrCreateIXNode(u,e,n,i),e.addClass("ixbrl-continuation")}}else if("HIDDEN"==r)i=!0;else{const o=Xe(e,function(t){if(t.hasAttribute("style")){const e=/(?:^|\s|;)(?:-sec|-esef)?-ix-hidden:\s*([^\s;]+)/,n=t.getAttribute("style").match(e);if(n)return n[1]}return null}(t));if(null!==o){let e=this._findOrCreateWrapperNode(t,i);e.addClass("ixbrl-element").data("ivids",[o]),this._docOrderItemIndex.addItem(o,n);const r=this._ixNodeMap[o];r?(r.wrapperNodes=e,r.docIndex=n):this._ixNodeMap[o]=new qi(o,e,n)}"A"==r&&this._updateLink(t)}}this._preProcessChildNodes(t,e,n,i)}_preProcessChildNodes(t,e,n,i){for(const r of t.childNodes)this._preProcessiXBRL(r,e,n,i)}_applyStyles(){const t=e()("<style>").prop("type","text/css").text(n(95).toString()).appendTo(this._iframes.contents().find("head"));this._iv.callPluginMethod("updateViewerStyleElements",t)}contents(){return this._iframes.contents()}_selectAdjacentTag(t,e){var n;null!==e?(n=this._docOrderItemIndex.getAdjacentItem(e.vuid,t),this.showDocumentForItemId(n)):n=t>0?this._docOrderItemIndex.getFirstInDocument(this._currentDocumentIndex):this._docOrderItemIndex.getLastInDocument(this._currentDocumentIndex);const i=this.elementsForItemId(n);this.showElement(i),this.selectElement(n,this._ixIdsForElement(i))}_bindHandlers(){const t=this;e()(".ixbrl-element",this._contents).on("click",(function(n){n.stopPropagation(),t.selectElementByClick(e()(this))})).on("mouseenter",(function(n){t._mouseEnter(e()(this))})).on("mouseleave",(function(n){t._mouseLeave(e()(this))})),e()("body",this._contents).on("click",(()=>t.selectElement(null))),e()("#iframe-container .zoom-in").on("click",(()=>this.zoomIn())),e()("#iframe-container .zoom-out").on("click",(()=>this.zoomOut())),e()("#iframe-container .print").on("click",(()=>this.currentDocument().get(0).contentWindow.print())),Ji.addHandles(this._contents,this._reportSet)}selectNextTag(t){this._selectAdjacentTag(1,t)}selectPrevTag(t){this._selectAdjacentTag(-1,t)}intersect(t,e){const n={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n}isScrollableElement(t){const n=e()(t).css("overflow-y");if(t.clientHeight>0&&t.clientHeight<t.scrollHeight&&("auto"==n||"scroll"==n))return!0;const i=e()(t).css("overflow-x");return t.clientWidth>0&&t.clientWidth<t.scrollWidth&&("auto"==i||"scroll"==i)}isFullyVisible(t){var n=t.getBoundingClientRect();const i=t.getBoundingClientRect();for(var r=e()(t.parentElement);!r.is("body");){if(this.isScrollableElement(r[0])&&(n=this.intersect(n,r[0].getBoundingClientRect())),n.width<i.width||n.height<i.height)return!1;r=r.parent()}const o="CSS1Compat"!=t.ownerDocument.compatMode?r:r.closest("html").get(0);return n.left>0&&n.top>0&&n.right<o.clientWidth&&n.bottom<o.clientHeight}showElement(t){const e=t.filter(":not(.ixbrl-no-highlight)").get(0);this.isFullyVisible(e)||e.scrollIntoView({block:"center",inline:"center"})}clearHighlighting(){e()("body",this._iframes.contents()).find(".ixbrl-element, .ixbrl-sub-element").removeClass("ixbrl-selected").removeClass("ixbrl-related").removeClass("ixbrl-linked-highlight")}_ixIdsForElement(t){return t.data("ivids")}selectElement(t,e,n){null!==t?this.onSelect.fire(t,e,n):this.onSelect.fire(null)}selectElementByClick(t){let n=[];const i=this;let r;t.hasClass(".ixbrl-element")||(t=t.closest(".ixbrl-element")),t.parents(".ixbrl-element").addBack().each((function(){const o=i._ixIdsForElement(e()(this));n=n.concat(o),e()(this).text()==t.text()&&void 0===r&&(r=o[0])})),this.selectElement(r,n,!0)}_mouseEnter(t){const e=t.data("ivids")[0];this.onMouseEnter.fire(e)}_mouseLeave(t){const e=t.data("ivids")[0];this.onMouseLeave.fire(e)}highlightRelatedFact(t){this.changeItemClass(t.vuid,"ixbrl-related")}highlightRelatedFacts(t){for(const e of t)this.changeItemClass(e.vuid,"ixbrl-related")}clearRelatedHighlighting(t){e()(".ixbrl-related",this._contents).removeClass("ixbrl-related")}elementsForItemId(t){if(!(t in this._ixNodeMap))throw new Error(`Attempting to retrieve IXNode with missing key: ${t}`);return this._ixNodeMap[t].wrapperNodes}elementsForItemIds(t){return e()(t.map((t=>this.elementsForItemId(t).get())).flat())}changeItemClass(t,e,n){const i=this.elementsForItemIds([t].concat(this.itemContinuationMap[t]));n?i.removeClass(e):i.addClass(e)}highlightItem(t){this.clearHighlighting(),this.changeItemClass(t,"ixbrl-selected")}showItemById(t){if(null!==t){let e=this.elementsForItemId(t);this.showDocumentForItemId(t),e.length>0&&this.showElement(e)}}highlightAllTags(t,n){const i={};e().each(n,(function(t,e){i[e]=t%3}));const r=this._reportSet,o=this;t?(e()(".ixbrl-element",this._contents).addClass("ixbrl-highlight").each((function(){const t=e()(this).data("ivids").map((t=>o._ixNodeMap[t])).filter((t=>!t.footnote))[0];if(void 0!==t){const e=r.getItemById(t.id);if(void 0!==e){const n=o.elementsForItemIds(t.chainIXIds()),r=i[e.conceptQName().prefix];void 0!==r&&n.addClass("ixbrl-highlight-"+r)}}})),e()(".ixbrl-sub-element",this._contents).addClass("ixbrl-highlight")):e()(".ixbrl-element, .ixbrl-sub-element",this._contents).removeClass(((t,e)=>(e.match(/(^|\s)ixbrl-highlight\S*/g)||[]).join(" ")))}_zoom(){const t=this._contents.scrollTop(),n=e()("html",this._contents).height();e()("body",this._contents).css("zoom",this.scale);const i=e()("html",this._contents).height();this._contents.scrollTop(i*t/n)}zoomIn(){this.scale*=1.1,this._zoom()}zoomOut(){this.scale/=1.1,this._zoom()}factsInSameTable(t){var n=[];return this.elementsForItemId(t.vuid).closest("table").find(".ixbrl-element").each((function(){n=n.concat(e()(this).data("ivids"))})),n}linkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight")}clearLinkedHighlightFact(t){this.changeItemClass(t.vuid,"ixbrl-linked-highlight",!0)}_setTitle(t){const n=e()("head title",this._iframes.eq(t).contents()).text();e()("#top-bar .document-title").text(n).attr("aria-label","Inline Viewer: "+n)}showDocumentForItemId(t){this.selectDocument(this._ixNodeMap[t].docIndex)}currentDocument(){return this._iframes.eq(this._currentDocumentIndex)}selectDocument(t){this._currentDocumentIndex=t,e()("#ixv #viewer-pane .ixds-tabs .tab").removeClass("active").eq(t).addClass("active"),this._iframes.height(0).data("selected",!1).eq(t).height("100%").data("selected",!0),this._setTitle(t)}*postProcess(){for(const t of this._iframes.get()){const n=e()(t).contents().get(0).querySelectorAll(".ixbrl-contains-absolute");for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&e.getBoundingClientRect().height,t%100==0&&(yield);for(const[t,e]of n.entries())"inline"!==getComputedStyle(e).getPropertyValue("display")&&0==e.getBoundingClientRect().height&&e.classList.add("ixbrl-no-highlight"),t%100==0&&(yield)}}postLoadAsync(){Je(this.postProcess())}}var rr=n(790),or=n.n(rr),sr=n(998),ar=n.n(sr);class lr{constructor(t){this._reportSet=t,this.ready=!1}*buildSearchIndex(t){var e=[],n={},i=this._reportSet.facts();this.periods={};for(const t of[!1,!0])for(var r=0;r<i.length;r++){var o=i[r];if(o.isHidden()!==t)continue;var s={id:o.vuid},a=o.getLabel("std");for(var l in s.concept=o.conceptQName().localname,s.doc=o.getLabel("doc"),s.date=o.periodTo(),s.startDate=o.periodFrom(),n=o.dimensions())o.report.getConcept(l).isTypedDimension()?null!==n[l]&&(a+=" "+n[l]):a+=" "+o.report.getLabel(n[l],"std");s.label=a,s.ref=o.concept().referenceValuesAsString();const u=o.widerConcepts();u.length>0&&(s.widerConcept=o.report.qname(u[0]).localname,s.widerLabel=o.report.getLabel(u[0],"std"),s.widerDoc=o.report.getLabel(u[0],"doc")),e.push(s);var c=o.period();c&&(this.periods[c.key()]=c.toString()),r%100==0&&(yield)}const u=new(ar().Builder);u.pipeline.add(ar().trimmer,ar().stopWordFilter,ar().stemmer),u.searchPipeline.add(ar().stemmer),u.ref("id"),u.field("label"),u.field("concept"),u.field("startDate"),u.field("date"),u.field("doc"),u.field("ref"),u.field("widerLabel"),u.field("widerDoc"),u.field("widerConcept");for(const[t,n]of e.entries())u.add(n),t%100==0&&(yield);this._searchIndex=u.build(),this.ready=!0,t()}visibilityFilter(t,e){return"*"===t.visibilityFilter||"visible"===t.visibilityFilter&&!e.isHidden()||"hidden"===t.visibilityFilter&&e.isHidden()}periodFilter(t,e){return 0===t.periodFilter.length||t.periodFilter.some((t=>e.period().key()===t))}conceptTypeFilter(t,e){return"*"===t.conceptTypeFilter||t.conceptTypeFilter===(e.isNumeric()?"numeric":"text")}dimensionTypeFilter(t,e){const n=t.dimensionTypeFilter.includes("typed"),i=t.dimensionTypeFilter.includes("explicit");return 0===t.dimensionTypeFilter.length||n&&e.hasTypedDimension()||i&&e.hasExplicitDimension()}factValueFilter(t,e){return"*"===t.factValueFilter||"positive"===t.factValueFilter&&e.isPositive()||"negative"===t.factValueFilter&&e.isNegative()}calculationsFilter(t,e){const n=t.calculationsFilter.includes("summation"),i=t.calculationsFilter.includes("contributor");return 0===t.calculationsFilter.length||n&&e.isCalculationSummation()||i&&e.isCalculationContributor()}namespacesFilter(t,e){return 0===t.namespacesFilter.length||t.namespacesFilter.some((t=>e.getConceptPrefix()===t))}dataTypesFilter(t,e){return null==t.dataTypesFilter||0===t.dataTypesFilter.length||t.dataTypesFilter.some((t=>e.concept().dataType()?.name===t))}unitsFilter(t,e){return 0===t.unitsFilter.length||t.unitsFilter.some((t=>e.unit()?.value()===t))}scalesFilter(t,e){return 0===t.scalesFilter.length||t.scalesFilter.some((t=>e.scale()===Number(t)))}targetDocumentFilter(t,e){return 0===t.targetDocumentFilter.length||t.targetDocumentFilter.some((t=>(e.targetDocument()??":default")===t))}mandatoryFactFilter(t,e){return!t.showMandatoryFacts||e.isMandatory()}search(t){if(!this.ready)return;const e=this._searchIndex.search(t.searchString),n=[],i=this,r=[this.visibilityFilter,this.periodFilter,this.conceptTypeFilter,this.dimensionTypeFilter,this.factValueFilter,this.calculationsFilter,this.namespacesFilter,this.dataTypesFilter,this.unitsFilter,this.scalesFilter,this.targetDocumentFilter,this.mandatoryFactFilter];return e.forEach(((e,o)=>{const s=i._reportSet.getItemById(e.ref);r.every((e=>e(t,s)))&&n.push({fact:s,score:e.score})})),n}}function cr(t){return t+.5|0}const ur=(t,e,n)=>Math.max(Math.min(t,n),e);function dr(t){return ur(cr(2.55*t),0,255)}function hr(t){return ur(cr(255*t),0,255)}function pr(t){return ur(cr(t/2.55)/100,0,1)}function fr(t){return ur(cr(100*t),0,100)}const gr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mr=[..."0123456789ABCDEF"],vr=t=>mr[15&t],yr=t=>mr[(240&t)>>4]+mr[15&t],br=t=>(240&t)>>4==(15&t);const wr=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ar(t,e,n){const i=e*Math.min(n,1-n),r=(e,r=(e+t/30)%12)=>n-i*Math.max(Math.min(r-3,9-r,1),-1);return[r(0),r(8),r(4)]}function xr(t,e,n){const i=(i,r=(i+t/60)%6)=>n-n*e*Math.max(Math.min(r,4-r,1),0);return[i(5),i(3),i(1)]}function Cr(t,e,n){const i=Ar(t,1,.5);let r;for(e+n>1&&(r=1/(e+n),e*=r,n*=r),r=0;r<3;r++)i[r]*=1-e-n,i[r]+=e;return i}function Mr(t){const e=t.r/255,n=t.g/255,i=t.b/255,r=Math.max(e,n,i),o=Math.min(e,n,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),a=function(t,e,n,i,r){return t===r?(e-n)/i+(e<n?6:0):e===r?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,r),a=60*a+.5),[0|a,l||0,s]}function Lr(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(hr)}function Ir(t,e,n){return Lr(Ar,t,e,n)}function _r(t){return(t%360+360)%360}const Sr={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},kr={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let Tr;const Dr=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,jr=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Nr=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Or(t,e,n){if(t){let i=Mr(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Ir(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Er(t,e){return t?Object.assign(e||{},t):t}function zr(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=hr(t[3]))):(e=Er(t,{r:0,g:0,b:0,a:1})).a=hr(e.a),e}function Fr(t){return"r"===t.charAt(0)?function(t){const e=Dr.exec(t);let n,i,r,o=255;if(e){if(e[7]!==n){const t=+e[7];o=e[8]?dr(t):ur(255*t,0,255)}return n=+e[1],i=+e[3],r=+e[5],n=255&(e[2]?dr(n):ur(n,0,255)),i=255&(e[4]?dr(i):ur(i,0,255)),r=255&(e[6]?dr(r):ur(r,0,255)),{r:n,g:i,b:r,a:o}}}(t):function(t){const e=wr.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?dr(+e[5]):hr(+e[5]));const r=_r(+e[2]),o=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Lr(Cr,t,e,n)}(r,o,s):"hsv"===e[1]?function(t,e,n){return Lr(xr,t,e,n)}(r,o,s):Ir(r,o,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Rr{constructor(t){if(t instanceof Rr)return t;const e=typeof t;let n;var i,r,o;"object"===e?n=zr(t):"string"===e&&(o=(i=t).length,"#"===i[0]&&(4===o||5===o?r={r:255&17*gr[i[1]],g:255&17*gr[i[2]],b:255&17*gr[i[3]],a:5===o?17*gr[i[4]]:255}:7!==o&&9!==o||(r={r:gr[i[1]]<<4|gr[i[2]],g:gr[i[3]]<<4|gr[i[4]],b:gr[i[5]]<<4|gr[i[6]],a:9===o?gr[i[7]]<<4|gr[i[8]]:255})),n=r||function(t){Tr||(Tr=function(){const t={},e=Object.keys(kr),n=Object.keys(Sr);let i,r,o,s,a;for(i=0;i<e.length;i++){for(s=a=e[i],r=0;r<n.length;r++)o=n[r],a=a.replace(o,Sr[o]);o=parseInt(kr[s],16),t[a]=[o>>16&255,o>>8&255,255&o]}return t}(),Tr.transparent=[0,0,0,0]);const e=Tr[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Fr(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Er(this._rgb);return t&&(t.a=pr(t.a)),t}set rgb(t){this._rgb=zr(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${pr(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>br(t.r)&&br(t.g)&&br(t.b)&&br(t.a))(t)?vr:yr,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Mr(t),n=e[0],i=fr(e[1]),r=fr(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${r}%, ${pr(t.a)})`:`hsl(${n}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let r;const o=e===r?.5:e,s=2*o-1,a=n.a-i.a,l=((s*a==-1?s:(s+a)/(1+s*a))+1)/2;r=1-l,n.r=255&l*n.r+r*i.r+.5,n.g=255&l*n.g+r*i.g+.5,n.b=255&l*n.b+r*i.b+.5,n.a=o*n.a+(1-o)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Nr(pr(t.r)),r=Nr(pr(t.g)),o=Nr(pr(t.b));return{r:hr(jr(i+n*(Nr(pr(e.r))-i))),g:hr(jr(r+n*(Nr(pr(e.g))-r))),b:hr(jr(o+n*(Nr(pr(e.b))-o))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Rr(this.rgb)}alpha(t){return this._rgb.a=hr(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=cr(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Or(this._rgb,2,t),this}darken(t){return Or(this._rgb,2,-t),this}saturate(t){return Or(this._rgb,1,t),this}desaturate(t){return Or(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Mr(t);n[0]=_r(n[0]+e),n=Ir(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}const Pr=(()=>{let t=0;return()=>t++})();function Yr(t){return null==t}function Ur(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function Wr(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Br(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function Zr(t,e){return Br(t)?t:e}function Hr(t,e){return void 0===t?e:t}function Gr(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function Vr(t,e,n,i){let r,o,s;if(Ur(t))if(o=t.length,i)for(r=o-1;r>=0;r--)e.call(n,t[r],r);else for(r=0;r<o;r++)e.call(n,t[r],r);else if(Wr(t))for(s=Object.keys(t),o=s.length,r=0;r<o;r++)e.call(n,t[s[r]],s[r])}function Qr(t,e){let n,i,r,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(r=t[n],o=e[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function Jr(t){if(Ur(t))return t.map(Jr);if(Wr(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let r=0;for(;r<i;++r)e[n[r]]=Jr(t[n[r]]);return e}return t}function Xr(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function qr(t,e,n,i){if(!Xr(t))return;const r=e[t],o=n[t];Wr(r)&&Wr(o)?Kr(r,o,i):e[t]=Jr(o)}function Kr(t,e,n){const i=Ur(e)?e:[e],r=i.length;if(!Wr(t))return t;const o=(n=n||{}).merger||qr;let s;for(let e=0;e<r;++e){if(s=i[e],!Wr(s))continue;const r=Object.keys(s);for(let e=0,i=r.length;e<i;++e)o(r[e],t,s,n)}return t}function $r(t,e){return Kr(t,e,{merger:to})}function to(t,e,n){if(!Xr(t))return;const i=e[t],r=n[t];Wr(i)&&Wr(r)?$r(i,r):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Jr(r))}const eo={"":t=>t,x:t=>t.x,y:t=>t.y};function no(t,e){const n=eo[e]||(eo[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function io(t){return t.charAt(0).toUpperCase()+t.slice(1)}const ro=t=>void 0!==t,oo=t=>"function"==typeof t,so=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},ao=Math.PI,lo=2*ao,co=Number.POSITIVE_INFINITY,uo=ao/2,ho=Math.log10,po=Math.sign;function fo(t,e,n){return Math.abs(t-e)<n}function go(t){const e=Math.round(t);t=fo(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(ho(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function mo(t){return!isNaN(parseFloat(t))&&isFinite(t)}function vo(t){return t*(ao/180)}function yo(t){if(!Br(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function bo(t){return(t%lo+lo)%lo}function wo(t,e,n){return Math.max(e,Math.min(n,t))}function Ao(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function xo(t,e,n){n=n||(n=>t[n]<e);let i,r=t.length-1,o=0;for(;r-o>1;)i=o+r>>1,n(i)?o=i:r=i;return{lo:o,hi:r}}const Co=(t,e,n,i)=>xo(t,n,i?i=>{const r=t[i][e];return r<n||r===n&&t[i+1][e]===n}:i=>t[i][e]<n),Mo=(t,e,n)=>xo(t,n,(i=>t[i][e]>=n)),Lo=["push","pop","shift","splice","unshift"];function Io(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,r=i.indexOf(e);-1!==r&&i.splice(r,1),i.length>0||(Lo.forEach((e=>{delete t[e]})),delete t._chartjs)}const _o="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function So(t,e){let n=[],i=!1;return function(...r){n=r,i||(i=!0,_o.call(window,(()=>{i=!1,t.apply(e,n)})))}}const ko=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2,To=t=>0===t||1===t,Do=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*lo/n),jo=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*lo/n)+1,No={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>1-Math.cos(t*uo),easeOutSine:t=>Math.sin(t*uo),easeInOutSine:t=>-.5*(Math.cos(ao*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>To(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>To(t)?t:Do(t,.075,.3),easeOutElastic:t=>To(t)?t:jo(t,.075,.3),easeInOutElastic(t){const e=.1125;return To(t)?t:t<.5?.5*Do(2*t,e,.45):.5+.5*jo(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-No.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*No.easeInBounce(2*t):.5*No.easeOutBounce(2*t-1)+.5};function Oo(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function Eo(t){return Oo(t)?t:new Rr(t)}function zo(t){return Oo(t)?t:new Rr(t).saturate(.5).darken(.1).hexString()}const Fo=["x","y","borderWidth","radius","tension"],Ro=["color","borderColor","backgroundColor"],Po=new Map;function Yo(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=Po.get(n);return i||(i=new Intl.NumberFormat(t,e),Po.set(n,i)),i}(e,n).format(t)}const Uo={values:t=>Ur(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let r,o=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(r="scientific"),o=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=ho(Math.abs(o)),a=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Yo(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=n[e].significand||t/Math.pow(10,Math.floor(ho(t)));return[1,2,3,5,10,15].includes(i)||e>.8*n.length?Uo.numeric.call(this,t,e,n):""}};var Wo={formatters:Uo};const Bo=Object.create(null),Zo=Object.create(null);function Ho(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function Go(t,e,n){return"string"==typeof e?Kr(Ho(t,e),n):Kr(Ho(t,""),e)}class Vo{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>zo(e.backgroundColor),this.hoverBorderColor=(t,e)=>zo(e.borderColor),this.hoverColor=(t,e)=>zo(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Go(this,t,e)}get(t){return Ho(this,t)}describe(t,e){return Go(Zo,t,e)}override(t,e){return Go(Bo,t,e)}route(t,e,n,i){const r=Ho(this,t),o=Ho(this,n),s="_"+e;Object.defineProperties(r,{[s]:{value:r[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=o[i];return Wr(t)?Object.assign({},e,t):Hr(t,e)},set(t){this[s]=t}}})}apply(t){t.forEach((t=>t(this)))}}var Qo=new Vo({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Ro},numbers:{type:"number",properties:Fo}}),t.describe("animations",{_fallback:"animation"}),t.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Wo.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Jo(t,e,n,i,r){let o=e[r];return o||(o=e[r]=t.measureText(r).width,n.push(r)),o>i&&(i=o),i}function Xo(t,e,n){const i=t.currentDevicePixelRatio,r=0!==n?Math.max(n/2,.5):0;return Math.round((e-r)*i)/i+r}function qo(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Ko(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function $o(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function ts(t){t.restore()}function es(t,e,n,i,r){if(r.strikethrough||r.underline){const o=t.measureText(i),s=e-o.actualBoundingBoxLeft,a=e+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=r.decorationWidth||2,t.moveTo(s,u),t.lineTo(a,u),t.stroke()}}function ns(t,e){const n=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=n}function is(t,e,n,i,r,o={}){const s=Ur(e)?e:[e],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(t.save(),t.font=r.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Yr(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&ns(t,o.backdrop),a&&(o.strokeColor&&(t.strokeStyle=o.strokeColor),Yr(o.strokeWidth)||(t.lineWidth=o.strokeWidth),t.strokeText(c,n,i,o.maxWidth)),t.fillText(c,n,i,o.maxWidth),es(t,n,i,c,o),i+=Number(r.lineHeight);t.restore()}function rs(t,e){const{x:n,y:i,w:r,h:o,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,1.5*ao,ao,!0),t.lineTo(n,i+o-s.bottomLeft),t.arc(n+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,ao,uo,!0),t.lineTo(n+r-s.bottomRight,i+o),t.arc(n+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,uo,0,!0),t.lineTo(n+r,i+s.topRight),t.arc(n+r-s.topRight,i+s.topRight,s.topRight,0,-uo,!0),t.lineTo(n+s.topLeft,i)}const os=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ss=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function as(t,e){const n=(""+t).match(os);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function ls(t,e){const n={},i=Wr(e),r=i?Object.keys(e):e,o=Wr(t)?i?n=>Hr(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of r)n[t]=+o(t)||0;return n}function cs(t){return ls(t,{top:"y",right:"x",bottom:"y",left:"x"})}function us(t){const e=cs(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ds(t,e){t=t||{},e=e||Qo.font;let n=Hr(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=Hr(t.style,e.style);i&&!(""+i).match(ss)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:Hr(t.family,e.family),lineHeight:as(Hr(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:Hr(t.weight,e.weight),string:""};return r.string=function(t){return!t||Yr(t.size)||Yr(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r}function hs(t,e,n,i){let r,o,s,a=!0;for(r=0,o=t.length;r<o;++r)if(s=t[r],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),a=!1),void 0!==n&&Ur(s)&&(s=s[n%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function ps(t,e){return Object.assign(Object.create(t),e)}function fs(t,e=[""],n,i,r=()=>t[0]){const o=n||t;void 0===i&&(i=Ls("_fallback",t));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:o,_fallback:i,_getTarget:r,override:n=>fs([n,...t],e,o,i)};return new Proxy(s,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>bs(n,i,(()=>function(t,e,n,i){let r;for(const o of e)if(r=Ls(vs(o,t),n),void 0!==r)return ys(t,r)?Cs(n,i,t,r):r}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Is(t).includes(e),ownKeys:t=>Is(t),set(t,e,n){const i=t._storage||(t._storage=r());return t[e]=i[e]=n,delete t._keys,!0}})}function gs(t,e,n,i){const r={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:ms(t,i),setContext:e=>gs(t,e,n,i),override:r=>gs(t.override(r),e,n,i)};return new Proxy(r,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>bs(t,e,(()=>function(t,e,n){const{_proxy:i,_context:r,_subProxy:o,_descriptors:s}=t;let a=i[e];return oo(a)&&s.isScriptable(e)&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_stack:a}=n;if(a.has(t))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+t);a.add(t);let l=e(o,s||i);return a.delete(t),ys(t,l)&&(l=Cs(r._scopes,r,t,l)),l}(e,a,t,n)),Ur(a)&&a.length&&(a=function(t,e,n,i){const{_proxy:r,_context:o,_subProxy:s,_descriptors:a}=n;if(void 0!==o.index&&i(t))return e[o.index%e.length];if(Wr(e[0])){const n=e,i=r._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Cs(i,r,t,l);e.push(gs(n,o,s&&s[t],a))}}return e}(e,a,t,s.isIndexable)),ys(e,a)&&(a=gs(a,r,o&&o[e],s)),a}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function ms(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:r=e.allKeys}=t;return{allKeys:r,scriptable:n,indexable:i,isScriptable:oo(n)?n:()=>n,isIndexable:oo(i)?i:()=>i}}const vs=(t,e)=>t?t+io(e):e,ys=(t,e)=>Wr(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function bs(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const i=n();return t[e]=i,i}function ws(t,e,n){return oo(t)?t(e,n):t}const As=(t,e)=>!0===t?e:"string"==typeof t?no(e,t):void 0;function xs(t,e,n,i,r){for(const o of e){const e=As(n,o);if(e){t.add(e);const o=ws(e._fallback,n,r);if(void 0!==o&&o!==n&&o!==i)return o}else if(!1===e&&void 0!==i&&n!==i)return null}return!1}function Cs(t,e,n,i){const r=e._rootScopes,o=ws(e._fallback,n,i),s=[...t,...r],a=new Set;a.add(i);let l=Ms(a,s,n,o||n,i);return null!==l&&(void 0===o||o===n||(l=Ms(a,s,o,l,i),null!==l))&&fs(Array.from(a),[""],r,o,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const r=i[e];return Ur(r)&&Wr(n)?n:r||{}}(e,n,i)))}function Ms(t,e,n,i,r){for(;n;)n=xs(t,e,n,i,r);return n}function Ls(t,e){for(const n of e){if(!n)continue;const e=n[t];if(void 0!==e)return e}}function Is(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function _s(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ss(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ks(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}Number.EPSILON;const Ts=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),Ds=["top","right","bottom","left"];function js(t,e,n){const i={};n=n?"-"+n:"";for(let r=0;r<4;r++){const o=Ds[r];i[o]=parseFloat(t[e+"-"+o+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Ns(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,r=Ts(n),o="border-box"===r.boxSizing,s=js(r,"padding"),a=js(r,"border","width"),{x:l,y:c,box:u}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:r,offsetY:o}=i;let s,a,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(r,o,t.target))s=r,a=o;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,a=i.clientY-t.top,l=!0}return{x:s,y:a,box:l}}(t,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:p,height:f}=e;return o&&(p-=s.width+a.width,f-=s.height+a.height),{x:Math.round((l-d)/p*n.width/i),y:Math.round((c-h)/f*n.height/i)}}const Os=t=>Math.round(10*t)/10;function Es(t,e,n){const i=e||1,r=Math.floor(t.height*i),o=Math.floor(t.width*i);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(t.currentDevicePixelRatio=i,s.height=r,s.width=o,t.ctx.setTransform(i,0,0,i,0,0),!0)}const zs=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};_s()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Fs(t,e){const n=function(t,e){return Ts(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}class Rs{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const r=e.listeners[i],o=e.duration;r.forEach((i=>i({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(n-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=_o.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const r=n.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>n.duration&&(n.duration=o._total),o.tick(t),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,n,t,"progress")),r.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=r.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ps=new Rs;const Ys="transparent",Us={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=Eo(t||Ys),r=i.valid&&Eo(e||Ys);return r&&r.valid?r.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Ws{constructor(t,e,n,i){const r=e[n];i=hs([t.to,i,r,t.from]);const o=hs([t.from,r,i]);this._active=!0,this._fn=t.fn||Us[t.type||typeof o],this._easing=No[t.easing]||No.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=n,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],r=n-this._start,o=this._duration-r;this._start=n,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=hs([t.to,e,i,t.from]),this._from=hs([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let a;if(this._active=r!==s&&(o||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=r:(a=e/n%2,a=o&&a>1?2-a:a,a=this._easing(Math.min(1,Math.max(0,a))),this._target[i]=this._fn(r,s,a))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}class Bs{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Wr(t))return;const e=Object.keys(Qo.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const r=t[i];if(!Wr(r))return;const o={};for(const t of e)o[t]=r[t];(Ur(r.properties)&&r.properties||[i]).forEach((t=>{t!==i&&n.has(t)||n.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const r=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const r=t[i[e]];r&&r.active()&&n.push(r.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),r}_createAnimations(t,e){const n=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(e),s=Date.now();let a;for(a=o.length-1;a>=0;--a){const l=o[a];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let u=r[l];const d=n.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(r[l]=u=new Ws(d,t,l,c),i.push(u)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(Ps.add(this._chart,n),!0):void 0}}function Zs(t,e){const n=t&&t.options||{},i=n.reverse,r=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:i?o:r,end:i?r:o}}function Hs(t,e){const n=[],i=t._getSortedDatasetMetas(e);let r,o;for(r=0,o=i.length;r<o;++r)n.push(i[r].index);return n}function Gs(t,e,n,i={}){const r=t.keys,o="single"===i.mode;let s,a,l,c;if(null!==e){for(s=0,a=r.length;s<a;++s){if(l=+r[s],l===n){if(i.all)continue;break}c=t.values[l],Br(c)&&(o||0===e||po(e)===po(c))&&(e+=c)}return e}}function Vs(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Qs(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function Js(t,e,n,i){for(const r of e.getMatchingVisibleMetas(i).reverse()){const e=t[r.index];if(n&&e>0||!n&&e<0)return r.index}return null}function Xs(t,e){const{chart:n,_cachedMeta:i}=t,r=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,u=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(o,s,i),d=e.length;let h;for(let t=0;t<d;++t){const n=e[t],{[l]:o,[c]:d}=n;h=(n._stacks||(n._stacks={}))[c]=Qs(r,u,o),h[a]=d,h._top=Js(h,s,!0,i.type),h._bottom=Js(h,s,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=d}}function qs(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Ks(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n],void 0!==e[i]._visualValues&&void 0!==e[i]._visualValues[n]&&delete e[i]._visualValues[n]}}}const $s=t=>"reset"===t||"none"===t,ta=(t,e)=>e?t:Object.assign({},t);class ea{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Vs(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Ks(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,r=e.xAxisID=Hr(n.xAxisID,qs(t,"x")),o=e.yAxisID=Hr(n.yAxisID,qs(t,"y")),s=e.rAxisID=Hr(n.rAxisID,qs(t,"r")),a=e.indexAxis,l=e.iAxisID=i(a,r,o,s),c=e.vAxisID=i(a,o,r,s);e.xScale=this.getScaleForId(r),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(s),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Io(this._data,this),t._stacked&&Ks(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(Wr(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:n,vScale:i}=e,r="x"===n.axis?"x":"y",o="x"===i.axis?"x":"y",s=Object.keys(t),a=new Array(s.length);let l,c,u;for(l=0,c=s.length;l<c;++l)u=s[l],a[l]={[r]:u,[o]:t[u]};return a}(e,t)}else if(n!==e){if(n){Io(n,this);const t=this._cachedMeta;Ks(t),t._parsed=[]}e&&Object.isExtensible(e)&&((i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),Lo.forEach((t=>{const e="_onData"+io(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const r=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),r}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const r=e._stacked;e._stacked=Vs(e.vScale,e),e.stack!==n.stack&&(i=!0,Ks(e),e.stack=n.stack),this._resyncElements(t),(i||r!==e._stacked)&&(Xs(this,e._parsed),e._stacked=Vs(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:r,_stacked:o}=n,s=r.axis;let a,l,c,u=0===t&&e===i.length||n._sorted,d=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=Ur(i[t])?this.parseArrayData(n,i,t,e):Wr(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const r=()=>null===l[s]||d&&l[s]<d[s];for(a=0;a<e;++a)n._parsed[a+t]=l=c[a],u&&(r()&&(u=!1),d=l);n._sorted=u}o&&Xs(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:r,vScale:o}=t,s=r.axis,a=o.axis,l=r.getLabels(),c=r===o,u=new Array(i);let d,h,p;for(d=0,h=i;d<h;++d)p=d+n,u[d]={[s]:c||r.parse(l[p],p),[a]:o.parse(e[p],p)};return u}parseArrayData(t,e,n,i){const{xScale:r,yScale:o}=t,s=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+n,u=e[c],s[a]={x:r.parse(u[0],c),y:o.parse(u[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:r,yScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l=new Array(i);let c,u,d,h;for(c=0,u=i;c<u;++c)d=c+n,h=e[d],l[c]={x:r.parse(no(h,s),d),y:o.parse(no(h,a),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,r=this._cachedMeta,o=e[t.axis];return Gs({keys:Hs(i,!0),values:e._stacks[t.axis]._visualValues},o,r.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const r=n[e.axis];let o=null===r?NaN:r;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,o=Gs(i,r,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,r=n._sorted&&t===n.iScale,o=i.length,s=this._getOtherScale(t),a=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Hs(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:u}=function(t){const{min:e,max:n,minDefined:i,maxDefined:r}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:r?n:Number.POSITIVE_INFINITY}}(s);let d,h;function p(){h=i[d];const e=h[s.axis];return!Br(h[t.axis])||c>e||u<e}for(d=0;d<o&&(p()||(this.updateRangeFromParsed(l,t,h,a),!r));++d);if(r)for(d=o-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,h,a);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,r,o;for(i=0,r=e.length;i<r;++i)o=e[i][t.axis],Br(o)&&n.push(o);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,r=this.getParsed(t);return{label:n?""+n.getLabelForValue(r[n.axis]):"",value:i?""+i.getLabelForValue(r[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,r;return Wr(t)?(e=t.top,n=t.right,i=t.bottom,r=t.left):e=n=i=r=t,{top:e,right:n,bottom:i,left:r,disabled:!1===t}}(Hr(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Zs(t,n),r=Zs(e,n);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],r=e.chartArea,o=[],s=this._drawStart||0,a=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,r,s,a),c=s;c<s+a;++c){const e=i[c];e.hidden||(e.active&&l?o.push(e):e.draw(t,r))}for(c=0;c<o.length;++c)o[c].draw(t,r)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];r=e.$context||(e.$context=function(t,e,n){return ps(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),r.parsed=this.getParsed(t),r.raw=i.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=function(t,e){return ps(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=n,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,r=this._cachedDataOpts,o=t+"-"+e,s=r[o],a=this.enableOptionSharing&&ro(n);if(s)return ta(s,a);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),u=i?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),h=Object.keys(Qo.elements[t]),p=l.resolveNamedOptions(d,h,(()=>this.getContext(n,i,e)),u);return p.$shared&&(p.$shared=a,r[o]=Object.freeze(ta(p,a))),p}_resolveAnimations(t,e,n){const i=this.chart,r=this._cachedDataOpts,o=`animation-${e}`,s=r[o];if(s)return s;let a;if(!1!==i.options.animation){const i=this.chart.config,r=i.datasetAnimationScopeKeys(this._type,e),o=i.getOptionScopes(this.getDataset(),r);a=i.createResolver(o,this.getContext(t,n,e))}const l=new Bs(i,a&&a.animations);return a&&a._cacheable&&(r[o]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||$s(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,r=this.getSharedOptions(n),o=this.includeOptions(e,r)||r!==i;return this.updateSharedOptions(r,e,n),{sharedOptions:r,includeOptions:o}}updateElement(t,e,n,i){$s(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!$s(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const r=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(r)||r})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,r=e.length,o=Math.min(r,i);o&&this.parse(0,o),r>i?this._insertElements(i,r-i,t):r<i&&this._removeElements(r,i-r)}_insertElements(t,e,n=!0){const i=this._cachedMeta,r=i.data,o=t+e;let s;const a=t=>{for(t.length+=e,s=t.length-1;s>=o;s--)t[s]=t[s-e]};for(a(r),s=t;s<o;++s)r[s]=new this.dataElementType;this._parsing&&a(i._parsed),this.parse(t,e),n&&this.updateElements(r,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Ks(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function na(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,r=n.length;e<r;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=function(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,r,o,s,a=e._length;const l=()=>{32767!==o&&-32768!==o&&(ro(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(i=0,r=n.length;i<r;++i)o=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,r=e.ticks.length;i<r;++i)o=e.getPixelForTick(i),l();return a}function ia(t,e,n,i){return Ur(t)?function(t,e,n,i){const r=n.parse(t[0],i),o=n.parse(t[1],i),s=Math.min(r,o),a=Math.max(r,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:r,end:o,min:s,max:a}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function ra(t,e,n,i){const r=t.iScale,o=t.vScale,s=r.getLabels(),a=r===o,l=[];let c,u,d,h;for(c=n,u=n+i;c<u;++c)h=e[c],d={},d[r.axis]=a||r.parse(s[c],c),l.push(ia(h,d,o,c));return l}function oa(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function sa(t,e,n,i){let r=e.borderSkipped;const o={};if(!r)return void(t.borderSkipped=o);if(!0===r)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:u}=function(t){let e,n,i,r,o;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(r="end",o="start"):(r="start",o="end"),{start:n,end:i,reverse:e,top:r,bottom:o}}(t);"middle"===r&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?r=c:(n._bottom||0)===i?r=u:(o[aa(u,s,a,l)]=!0,r=c)),o[aa(r,s,a,l)]=!0,t.borderSkipped=o}function aa(t,e,n,i){var r,o,s;return i?(s=n,t=la(t=(r=t)===(o=e)?s:r===s?o:r,n,e)):t=la(t,e,n),t}function la(t,e,n){return"start"===t?e:"end"===t?n:t}function ca(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}class ua extends ea{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,n,i){return ra(t,e,n,i)}parseArrayData(t,e,n,i){return ra(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:r,vScale:o}=t,{xAxisKey:s="x",yAxisKey:a="y"}=this._parsing,l="x"===r.axis?s:a,c="x"===o.axis?s:a,u=[];let d,h,p,f;for(d=n,h=n+i;d<h;++d)f=e[d],p={},p[r.axis]=r.parse(no(f,l),d),u.push(ia(no(f,c),p,o,d));return u}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const r=n._custom;r&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,r=this.getParsed(t),o=r._custom,s=oa(o)?"["+o.start+", "+o.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+n.getLabelForValue(r[n.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,n,i){const r="reset"===i,{index:o,_cachedMeta:{vScale:s}}=this,a=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,i);for(let h=e;h<e+n;h++){const e=this.getParsed(h),n=r||Yr(e[s.axis])?{base:a,head:a}:this._calculateBarValuePixels(h),p=this._calculateBarIndexPixels(h,c),f=(e._stacks||{})[s.axis],g={horizontal:l,base:n.base,enableBorderRadius:!f||oa(e._custom)||o===f._top||o===f._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};d&&(g.options=u||this.resolveDataElementOptions(h,t[h].active?"active":i));const m=g.options||t[h].options;sa(g,m,f,o),ca(g,m,c.ratio),this.updateElement(t[h],h,g,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),r=n.options.stacked,o=[],s=this._cachedMeta.controller.getParsed(e),a=s&&s[n.axis],l=t=>{const e=t._parsed.find((t=>t[n.axis]===a)),i=e&&e[t.vScale.axis];if(Yr(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!l(n))&&((!1===r||-1===o.indexOf(n.stack)||void 0===r&&void 0===n.stack)&&o.push(n.stack),n.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),r=void 0!==e?i.indexOf(e):-1;return-1===r?i.length-1:r}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let r,o;for(r=0,o=e.data.length;r<o;++r)i.push(n.getPixelForValue(this.getParsed(r)[n.axis],r));const s=t.barThickness;return{min:s||na(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n,index:i},options:{base:r,minBarLength:o}}=this,s=r||0,a=this.getParsed(t),l=a._custom,c=oa(l);let u,d,h=a[e.axis],p=0,f=n?this.applyStack(e,a,n):h;f!==h&&(p=f-h,f=h),c&&(h=l.barStart,f=l.barEnd-l.barStart,0!==h&&po(h)!==po(l.barEnd)&&(p=0),p+=h);const g=Yr(r)||c?p:r;let m=e.getPixelForValue(g);if(u=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):m,d=u-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?po(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,s)*o,h===s&&(m-=d/2);const t=e.getPixelForDecimal(0),r=e.getPixelForDecimal(1),l=Math.min(t,r),p=Math.max(t,r);m=Math.max(Math.min(m,p),l),u=m+d,n&&!c&&(a._stacks[e.axis]._visualValues[i]=e.getValueForPixel(u)-e.getValueForPixel(m))}if(m===e.getPixelForValue(s)){const t=po(d)*e.getLineWidthForValue(s)/2;m+=t,d-=t}return{size:d,base:m,head:u,center:u+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,r=i.skipNull,o=Hr(i.maxBarThickness,1/0);let s,a;if(e.grouped){const n=r?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const r=e.pixels,o=r[t];let s=t>0?r[t-1]:null,a=t<r.length-1?r[t+1]:null;const l=n.categoryPercentage;null===s&&(s=o-(null===a?e.end-e.start:a-o)),null===a&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const r=n.barThickness;let o,s;return Yr(r)?(o=e.min*n.categoryPercentage,s=n.barPercentage):(o=r*i,s=1),{chunk:o/i,ratio:s,start:e.pixels[t]-o/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0);s=l.start+l.chunk*c+l.chunk/2,a=Math.min(o,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),a=Math.min(o,e.min*e.ratio);return{base:s-a/2,head:s+a/2,center:s,size:a}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let r=0;for(;r<i;++r)null===this.getParsed(r)[e.axis]||n[r].hidden||n[r].draw(this._ctx)}}function da(t,e,n,i){const{controller:r,data:o,_sorted:s}=t,a=r._cachedMeta.iScale;if(a&&e===a.axis&&"r"!==e&&s&&o.length){const t=a._reversePixels?Mo:Co;if(!i)return t(o,e,n);if(r._sharedOptions){const i=o[0],r="function"==typeof i.getRange&&i.getRange(e);if(r){const i=t(o,e,n-r),s=t(o,e,n+r);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:o.length-1}}function ha(t,e,n,i,r){const o=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=o.length;t<n;++t){const{index:n,data:a}=o[t],{lo:l,hi:c}=da(o[t],e,s,r);for(let t=l;t<=c;++t){const e=a[t];e.skip||i(e,n,t)}}}function pa(t,e,n,i,r){const o=[];return r||t.isPointInArea(e)?(ha(t,n,e,(function(n,s,a){(r||Ko(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&o.push({element:n,datasetIndex:s,index:a})}),!0),o):o}function fa(t,e,n,i,r,o){return o||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,r,o){let s=[];const a=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const r=e?Math.abs(t.x-i.x):0,o=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(o,2))}}(n);let l=Number.POSITIVE_INFINITY;return ha(t,n,e,(function(n,c,u){const d=n.inRange(e.x,e.y,r);if(i&&!d)return;const h=n.getCenterPoint(r);if(!o&&!t.isPointInArea(h)&&!d)return;const p=a(e,h);p<l?(s=[{element:n,datasetIndex:c,index:u}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:u})})),s}(t,e,n,i,r,o):function(t,e,n,i){let r=[];return ha(t,n,e,(function(t,n,o){const{startAngle:s,endAngle:a}=t.getProps(["startAngle","endAngle"],i),{angle:l}=function(t,e){const n=e.x-t.x,i=e.y-t.y,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o<-.5*ao&&(o+=lo),{angle:o,distance:r}}(t,{x:e.x,y:e.y});(function(t,e,n,i){const r=bo(t),o=bo(e),s=bo(n),a=bo(o-r),l=bo(s-r),c=bo(r-o),u=bo(r-s);return r===o||r===s||i&&o===s||a>l&&c<u})(l,s,a)&&r.push({element:t,datasetIndex:n,index:o})})),r}(t,e,n,r):[]}function ga(t,e,n,i,r){const o=[],s="x"===n?"inXRange":"inYRange";let a=!1;return ha(t,n,e,((t,i,l)=>{t[s]&&t[s](e[n],r)&&(o.push({element:t,datasetIndex:i,index:l}),a=a||t.inRange(e.x,e.y,r))})),i&&!a?[]:o}var ma={evaluateInteractionItems:ha,modes:{index(t,e,n,i){const r=Ns(e,t),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?pa(t,r,o,i,s):fa(t,r,o,!1,i,s),l=[];return a.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=a[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const r=Ns(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?pa(t,r,o,i,s):fa(t,r,o,!1,i,s);if(a.length>0){const e=a[0].datasetIndex,n=t.getDatasetMeta(e).data;a=[];for(let t=0;t<n.length;++t)a.push({element:n[t],datasetIndex:e,index:t})}return a},point:(t,e,n,i)=>pa(t,Ns(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const r=Ns(e,t),o=n.axis||"xy",s=n.includeInvisible||!1;return fa(t,r,o,n.intersect,i,s)},x:(t,e,n,i)=>ga(t,Ns(e,t),"x",n.intersect,i),y:(t,e,n,i)=>ga(t,Ns(e,t),"y",n.intersect,i)}};const va=["left","top","right","bottom"];function ya(t,e){return t.filter((t=>t.pos===e))}function ba(t,e){return t.filter((t=>-1===va.indexOf(t.pos)&&t.box.axis===e))}function wa(t,e){return t.sort(((t,n)=>{const i=e?n:t,r=e?t:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight}))}function Aa(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function xa(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ca(t,e,n,i){const{pos:r,box:o}=n,s=t.maxPadding;if(!Wr(r)){n.size&&(t[r]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?o.height:o.width),n.size=e.size/e.count,t[r]+=n.size}o.getPadding&&xa(s,o.getPadding());const a=Math.max(0,e.outerWidth-Aa(s,t,"left","right")),l=Math.max(0,e.outerHeight-Aa(s,t,"top","bottom")),c=a!==t.w,u=l!==t.h;return t.w=a,t.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Ma(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function La(t,e,n,i){const r=[];let o,s,a,l,c,u;for(o=0,s=t.length,c=0;o<s;++o){a=t[o],l=a.box,l.update(a.width||e.w,a.height||e.h,Ma(a.horizontal,e));const{same:s,other:d}=Ca(e,n,a,i);c|=s&&r.length,u=u||d,l.fullSize||r.push(a)}return c&&La(r,e,n,i)||u}function Ia(t,e,n,i,r){t.top=n,t.left=e,t.right=e+i,t.bottom=n+r,t.width=i,t.height=r}function _a(t,e,n,i){const r=n.padding;let{x:o,y:s}=e;for(const a of t){const t=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},c=a.stackWeight/l.weight||1;if(a.horizontal){const i=e.w*c,o=l.size||t.height;ro(l.start)&&(s=l.start),t.fullSize?Ia(t,r.left,s,n.outerWidth-r.right-r.left,o):Ia(t,e.left+l.placed,s,i,o),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;ro(l.start)&&(o=l.start),t.fullSize?Ia(t,o,r.top,s,n.outerHeight-r.bottom-r.top):Ia(t,o,e.top+l.placed,s,i),l.start=o,l.placed+=i,o=t.right}}e.x=o,e.y=s}var Sa={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const r=us(t.options.layout.padding),o=Math.max(e-r.width,0),s=Math.max(n-r.height,0),a=function(t){const e=function(t){const e=[];let n,i,r,o,s,a;for(n=0,i=(t||[]).length;n<i;++n)r=t[n],({position:o,options:{stack:s,stackWeight:a=1}}=r),e.push({index:n,box:r,pos:o,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&o+s,stackWeight:a});return e}(t),n=wa(e.filter((t=>t.box.fullSize)),!0),i=wa(ya(e,"left"),!0),r=wa(ya(e,"right")),o=wa(ya(e,"top"),!0),s=wa(ya(e,"bottom")),a=ba(e,"x"),l=ba(e,"y");return{fullSize:n,leftAndTop:i.concat(o),rightAndBottom:r.concat(l).concat(s).concat(a),chartArea:ya(e,"chartArea"),vertical:i.concat(r).concat(l),horizontal:o.concat(s).concat(a)}}(t.boxes),l=a.vertical,c=a.horizontal;Vr(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const u=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,d=Object.freeze({outerWidth:e,outerHeight:n,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},r);xa(h,us(i));const p=Object.assign({maxPadding:h,w:o,h:s,x:r.left,y:r.top},r),f=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:r}=n;if(!t||!va.includes(i))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=r}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:r}=e;let o,s,a;for(o=0,s=t.length;o<s;++o){a=t[o];const{fullSize:s}=a.box,l=n[a.stack],c=l&&a.stackWeight/l.weight;a.horizontal?(a.width=c?c*i:s&&e.availableWidth,a.height=r):(a.width=i,a.height=c?c*r:s&&e.availableHeight)}return n}(l.concat(c),d);La(a.fullSize,p,d,f),La(l,p,d,f),La(c,p,d,f)&&La(l,p,d,f),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),_a(a.leftAndTop,p,d,f),p.x+=p.w,p.y+=p.h,_a(a.rightAndBottom,p,d,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Vr(a.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class ka{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Ta extends ka{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Da="$chartjs",ja={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Na=t=>null===t||""===t,Oa=!!zs&&{passive:!0};function Ea(t,e,n){t&&t.canvas&&t.canvas.removeEventListener(e,n,Oa)}function za(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Fa(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||za(n.addedNodes,i),e=e&&!za(n.removedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}function Ra(t,e,n){const i=t.canvas,r=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||za(n.removedNodes,i),e=e&&!za(n.addedNodes,i);e&&n()}));return r.observe(document,{childList:!0,subtree:!0}),r}const Pa=new Map;let Ya=0;function Ua(){const t=window.devicePixelRatio;t!==Ya&&(Ya=t,Pa.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Wa(t,e,n){const i=t.canvas,r=i&&Ss(i);if(!r)return;const o=So(((t,e)=>{const i=r.clientWidth;n(t,e),i<r.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||o(n,i)}));return s.observe(r),function(t,e){Pa.size||window.addEventListener("resize",Ua),Pa.set(t,e)}(t,o),s}function Ba(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Pa.delete(t),Pa.size||window.removeEventListener("resize",Ua)}(t)}function Za(t,e,n){const i=t.canvas,r=So((e=>{null!==t.ctx&&n(function(t,e){const n=ja[t.type]||t.type,{x:i,y:r}=Ns(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==r?r:null}}(e,t))}),t);return function(t,e,n){t&&t.addEventListener(e,n,Oa)}(i,e,r),r}class Ha extends ka{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),r=t.getAttribute("width");if(t[Da]={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Na(r)){const e=Fs(t,"width");void 0!==e&&(t.width=e)}if(Na(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Fs(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Da])return!1;const n=e[Da].initial;["height","width"].forEach((t=>{const i=n[t];Yr(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Da],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),r={attach:Fa,detach:Ra,resize:Wa}[e]||Za;i[e]=r(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Ba,detach:Ba,resize:Ba}[e]||Ea)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const r=Ts(t),o=js(r,"margin"),s=ks(r.maxWidth,t,"clientWidth")||co,a=ks(r.maxHeight,t,"clientHeight")||co,l=function(t,e,n){let i,r;if(void 0===e||void 0===n){const o=t&&Ss(t);if(o){const t=o.getBoundingClientRect(),s=Ts(o),a=js(s,"border","width"),l=js(s,"padding");e=t.width-l.width-a.width,n=t.height-l.height-a.height,i=ks(s.maxWidth,o,"clientWidth"),r=ks(s.maxHeight,o,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||co,maxHeight:r||co}}(t,e,n);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const t=js(r,"border","width"),e=js(r,"padding");c-=e.width+t.width,u-=e.height+t.height}return c=Math.max(0,c-o.width),u=Math.max(0,i?c/i:u-o.height),c=Os(Math.min(c,s,l.maxWidth)),u=Os(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Os(c/2)),(void 0!==e||void 0!==n)&&i&&l.height&&u>l.height&&(u=l.height,c=Os(Math.floor(u*i))),{width:c,height:u}}(t,e,n,i)}isAttached(t){const e=t&&Ss(t);return!(!e||!e.isConnected)}}class Ga{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return mo(this.x)&&mo(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}function Va(t,e,n,i,r){const o=Hr(i,0),s=Math.min(Hr(r,t.length),t.length);let a,l,c,u=0;for(n=Math.ceil(n),r&&(a=r-i,n=a/Math.floor(a/n)),c=o;c<0;)u++,c=Math.round(o+u*n);for(l=Math.max(o,0);l<s;l++)l===c&&(e.push(t[l]),u++,c=Math.round(o+u*n))}const Qa=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n,Ja=(t,e)=>Math.min(e||t,t);function Xa(t,e){const n=[],i=t.length/e,r=t.length;let o=0;for(;o<r;o+=i)n.push(t[Math.floor(o)]);return n}function qa(t,e,n){const i=t.ticks.length,r=Math.min(e,i-1),o=t._startPixel,s=t._endPixel,a=1e-6;let l,c=t.getPixelForTick(r);if(!(n&&(l=1===i?Math.max(c-o,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(r-1))/2,c+=r<e?l:-l,c<o-a||c>s+a)))return c}function Ka(t){return t.drawTicks?t.tickLength:0}function $a(t,e){if(!t.display)return 0;const n=ds(t.font,e),i=us(t.padding);return(Ur(t.text)?t.text.length:1)*n.lineHeight+i.height}function tl(t,e,n){let i=(t=>"start"===t?"left":"end"===t?"right":"center")(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class el extends Ga{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:n,_suggestedMax:i}=this;return t=Zr(t,Number.POSITIVE_INFINITY),e=Zr(e,Number.NEGATIVE_INFINITY),n=Zr(n,Number.POSITIVE_INFINITY),i=Zr(i,Number.NEGATIVE_INFINITY),{min:Zr(t,n),max:Zr(e,i),minDefined:Br(t),maxDefined:Br(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:r,maxDefined:o}=this.getUserBounds();if(r&&o)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let a=0,l=s.length;a<l;++a)e=s[a].controller.getMinMax(this,t),r||(n=Math.min(n,e.min)),o||(i=Math.max(i,e.max));return n=o&&n>i?i:n,i=r&&n>i?n:i,{min:Zr(n,Zr(i,n)),max:Zr(i,Zr(n,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Gr(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:r,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:r}=t,o=(l=(r-i)/2,"string"==typeof(a=e)&&a.endsWith("%")?parseFloat(a)/100*l:+a),s=(t,e)=>n&&0===t?0:t+e;var a,l;return{min:s(i,-Math.abs(o)),max:s(r,o)}}(this,r,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const a=s<this.ticks.length;this._convertTicksToLabels(a?Xa(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),r=t._maxLength/n;return Math.floor(Math.min(i,r))}(t),r=Math.min(n.maxTicksLimit||i,i),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>r)return function(t,e,n,i){let r,o=0,s=n[0];for(i=Math.ceil(i),r=0;r<t.length;r++)r===s&&(e.push(t[r]),o++,s=n[o*i])}(e,c,o,s/r),c;const u=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),r=e.length/n;if(!i)return Math.max(r,1);const o=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>r)return e}return Math.max(r,1)}(o,e,r);if(s>0){let t,n;const i=s>1?Math.round((l-a)/(s-1)):null;for(Va(e,c,u,Yr(i)?0:a-i,a),t=0,n=s-1;t<n;t++)Va(e,c,u,o[t],o[t+1]);return Va(e,c,u,l,Yr(i)?e.length:l+i),c}return Va(e,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),a&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Gr(this.options.afterUpdate,[this])}beforeSetDimensions(){Gr(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Gr(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Gr(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Gr(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,r;for(n=0,i=t.length;n<i;n++)r=t[n],r.label=Gr(e.callback,[r.value,n,t],this)}afterTickToLabelConversion(){Gr(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Gr(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=Ja(this.ticks.length,t.ticks.maxTicksLimit),i=e.minRotation||0,r=e.maxRotation;let o,s,a,l=i;if(!this._isVisible()||!e.display||i>=r||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),u=c.widest.width,d=c.highest.height,h=wo(this.chart.width-u,0,this.maxWidth);o=t.offset?this.maxWidth/n:h/(n-1),u+6>o&&(o=h/(n-(t.offset?.5:1)),s=this.maxHeight-Ka(t.grid)-e.padding-$a(t.title,this.chart.options.font),a=Math.sqrt(u*u+d*d),l=Math.min(Math.asin(wo((c.highest.height+6)/o,-1,1)),Math.asin(wo(s/a,-1,1))-Math.asin(wo(d/a,-1,1)))*(180/ao),l=Math.max(i,Math.min(r,l))),this.labelRotation=l}afterCalculateLabelRotation(){Gr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Gr(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:r}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const o=$a(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=Ka(r)+o):(t.height=this.maxHeight,t.width=Ka(r)+o),n.display&&this.ticks.length){const{first:e,last:i,widest:r,highest:o}=this._getLabelSizes(),a=2*n.padding,l=vo(this.labelRotation),c=Math.cos(l),u=Math.sin(l);if(s){const e=n.mirror?0:u*r.width+c*o.height;t.height=Math.min(this.maxHeight,t.height+e+a)}else{const e=n.mirror?0:c*r.width+u*o.height;t.width=Math.min(this.maxWidth,t.width+e+a)}this._calculatePadding(e,i,u,c)}}this._handleMargins(),s?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,n,i){const{ticks:{align:r,padding:o},position:s}=this.options,a=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,d=0;a?l?(u=i*t.width,d=n*e.height):(u=n*t.height,d=i*e.width):"start"===r?d=e.width:"end"===r?u=t.width:"inner"!==r&&(u=t.width/2,d=e.width/2),this.paddingLeft=Math.max((u-s+o)*this.width/(this.width-s),0),this.paddingRight=Math.max((d-c+o)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===r?(n=0,i=t.height):"end"===r&&(n=e.height,i=0),this.paddingTop=n+o,this.paddingBottom=i+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Gr(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)Yr(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=Xa(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,n){const{ctx:i,_longestTextCache:r}=this,o=[],s=[],a=Math.floor(e/Ja(e,n));let l,c,u,d,h,p,f,g,m,v,y,b=0,w=0;for(l=0;l<e;l+=a){if(d=t[l].label,h=this._resolveTickFontOptions(l),i.font=p=h.string,f=r[p]=r[p]||{data:{},gc:[]},g=h.lineHeight,m=v=0,Yr(d)||Ur(d)){if(Ur(d))for(c=0,u=d.length;c<u;++c)y=d[c],Yr(y)||Ur(y)||(m=Jo(i,f.data,f.gc,m,y),v+=g)}else m=Jo(i,f.data,f.gc,m,d),v=g;o.push(m),s.push(v),b=Math.max(m,b),w=Math.max(v,w)}!function(t,e){Vr(t,(t=>{const n=t.gc,i=n.length/2;let r;if(i>e){for(r=0;r<i;++r)delete t.data[n[r]];n.splice(0,i)}}))}(r,e);const A=o.indexOf(b),x=s.indexOf(w),C=t=>({width:o[t]||0,height:s[t]||0});return{first:C(0),last:C(e-1),widest:C(A),highest:C(x),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return wo(this._alignToPixels?Xo(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const n=e[t];return n.$context||(n.$context=function(t,e,n){return ps(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=ps(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=vo(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),r=this._getLabelSizes(),o=t.autoSkipPadding||0,s=r?r.widest.width+o:0,a=r?r.highest.height+o:0;return this.isHorizontal()?a*n>s*i?s/n:a/i:a*i<s*n?a/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:r,position:o,border:s}=i,a=r.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Ka(r),d=[],h=s.setContext(this.getContext()),p=h.display?h.width:0,f=p/2,g=function(t){return Xo(n,t,p)};let m,v,y,b,w,A,x,C,M,L,I,_;if("top"===o)m=g(this.bottom),A=this.bottom-u,C=m-f,L=g(t.top)+f,_=t.bottom;else if("bottom"===o)m=g(this.top),L=t.top,_=g(t.bottom)-f,A=m+f,C=this.top+u;else if("left"===o)m=g(this.right),w=this.right-u,x=m-f,M=g(t.left)+f,I=t.right;else if("right"===o)m=g(this.left),M=t.left,I=g(t.right)-f,w=m+f,x=this.left+u;else if("x"===e){if("center"===o)m=g((t.top+t.bottom)/2+.5);else if(Wr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}L=t.top,_=t.bottom,A=m+f,C=A+u}else if("y"===e){if("center"===o)m=g((t.left+t.right)/2);else if(Wr(o)){const t=Object.keys(o)[0],e=o[t];m=g(this.chart.scales[t].getPixelForValue(e))}w=m-f,x=w-u,M=t.left,I=t.right}const S=Hr(i.ticks.maxTicksLimit,c),k=Math.max(1,Math.ceil(c/S));for(v=0;v<c;v+=k){const t=this.getContext(v),e=r.setContext(t),i=s.setContext(t),o=e.lineWidth,c=e.color,u=i.dash||[],h=i.dashOffset,p=e.tickWidth,f=e.tickColor,g=e.tickBorderDash||[],m=e.tickBorderDashOffset;y=qa(this,v,a),void 0!==y&&(b=Xo(n,y,o),l?w=x=M=I=b:A=C=L=_=b,d.push({tx1:w,ty1:A,tx2:x,ty2:C,x1:M,y1:L,x2:I,y2:_,width:o,color:c,borderDash:u,borderDashOffset:h,tickWidth:p,tickColor:f,tickBorderDash:g,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:r}=n,o=this.isHorizontal(),s=this.ticks,{align:a,crossAlign:l,padding:c,mirror:u}=r,d=Ka(n.grid),h=d+c,p=u?-c:h,f=-vo(this.labelRotation),g=[];let m,v,y,b,w,A,x,C,M,L,I,_,S="middle";if("top"===i)A=this.bottom-p,x=this._getXAxisLabelAlignment();else if("bottom"===i)A=this.top+p,x=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(d);x=t.textAlign,w=t.x}else if("x"===e){if("center"===i)A=(t.top+t.bottom)/2+h;else if(Wr(i)){const t=Object.keys(i)[0],e=i[t];A=this.chart.scales[t].getPixelForValue(e)+h}x=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)w=(t.left+t.right)/2-h;else if(Wr(i)){const t=Object.keys(i)[0],e=i[t];w=this.chart.scales[t].getPixelForValue(e)}x=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===a?S="top":"end"===a&&(S="bottom"));const k=this._getLabelSizes();for(m=0,v=s.length;m<v;++m){y=s[m],b=y.label;const t=r.setContext(this.getContext(m));C=this.getPixelForTick(m)+r.labelOffset,M=this._resolveTickFontOptions(m),L=M.lineHeight,I=Ur(b)?b.length:1;const e=I/2,n=t.color,a=t.textStrokeColor,c=t.textStrokeWidth;let d,h=x;if(o?(w=C,"inner"===x&&(h=m===v-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),_="top"===i?"near"===l||0!==f?-I*L+L/2:"center"===l?-k.highest.height/2-e*L+L:-k.highest.height+L/2:"near"===l||0!==f?L/2:"center"===l?k.highest.height/2-e*L:k.highest.height-I*L,u&&(_*=-1),0===f||t.showLabelBackdrop||(w+=L/2*Math.sin(f))):(A=C,_=(1-I)*L/2),t.showLabelBackdrop){const e=us(t.backdropPadding),n=k.heights[m],i=k.widths[m];let r=_-e.top,o=0-e.left;switch(S){case"middle":r-=n/2;break;case"bottom":r-=n}switch(x){case"center":o-=i/2;break;case"right":o-=i;break;case"inner":m===v-1?o-=i:m>0&&(o-=i/2)}d={left:o,top:r,width:i+e.width,height:n+e.height,color:t.backdropColor}}g.push({label:b,font:M,textOffset:_,options:{rotation:f,color:n,strokeColor:a,strokeWidth:c,textAlign:h,textBaseline:S,translation:[w,A],backdrop:d}})}return g}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-vo(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:r}}=this.options,o=t+r,s=this._getLabelSizes().widest.width;let a,l;return"left"===e?i?(l=this.right+r,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l+=s)):(l=this.right-o,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l=this.left)):"right"===e?i?(l=this.left+r,"near"===n?a="right":"center"===n?(a="center",l-=s/2):(a="left",l-=s)):(l=this.left+o,"near"===n?a="left":"center"===n?(a="center",l+=s/2):(a="right",l=this.right)):a="right",{textAlign:a,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:n,top:i,width:r,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,r,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,o;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(r=0,o=i.length;r<o;++r){const t=i[r];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:n,grid:i}}=this,r=n.setContext(this.getContext()),o=n.display?r.width:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,u,d;this.isHorizontal()?(l=Xo(t,this.left,o)-o/2,c=Xo(t,this.right,s)+s/2,u=d=a):(u=Xo(t,this.top,o)-o/2,d=Xo(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=r.width,e.strokeStyle=r.color,e.beginPath(),e.moveTo(l,u),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&$o(e,n);const i=this.getLabelItems(t);for(const t of i){const n=t.options,i=t.font;is(e,t.label,0,t.textOffset,i,n)}n&&ts(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const r=ds(n.font),o=us(n.padding),s=n.align;let a=r.lineHeight/2;"bottom"===e||"center"===e||Wr(e)?(a+=o.bottom,Ur(n.text)&&(a+=r.lineHeight*(n.text.length-1))):a+=o.top;const{titleX:l,titleY:c,maxWidth:u,rotation:d}=function(t,e,n,i){const{top:r,left:o,bottom:s,right:a,chart:l}=t,{chartArea:c,scales:u}=l;let d,h,p,f=0;const g=s-r,m=a-o;if(t.isHorizontal()){if(h=ko(i,o,a),Wr(n)){const t=Object.keys(n)[0],i=n[t];p=u[t].getPixelForValue(i)+g-e}else p="center"===n?(c.bottom+c.top)/2+g-e:Qa(t,n,e);d=a-o}else{if(Wr(n)){const t=Object.keys(n)[0],i=n[t];h=u[t].getPixelForValue(i)-m+e}else h="center"===n?(c.left+c.right)/2-m+e:Qa(t,n,e);p=ko(i,s,r),f="left"===n?-uo:uo}return{titleX:h,titleY:p,maxWidth:d,rotation:f}}(this,a,e,s);is(t,n.text,0,0,r,{color:n.color,maxWidth:u,rotation:d,textAlign:tl(s,e,i),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,n=Hr(t.grid&&t.grid.z,-1),i=Hr(t.border&&t.border.z,0);return this._isVisible()&&this.draw===el.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let r,o;for(r=0,o=e.length;r<o;++r){const o=e[r];o[n]!==this.id||t&&o.type!==t||i.push(o)}return i}_resolveTickFontOptions(t){return ds(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class nl{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,r=t.id,o=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in i||(i[r]=t,function(t,e,n){const i=Kr(Object.create(null),[n?Qo.get(n):{},Qo.get(e),t.defaults]);Qo.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),r=i.pop(),o=[t].concat(i).join("."),s=e[n].split("."),a=s.pop(),l=s.join(".");Qo.route(o,r,l,a)}))}(e,t.defaultRoutes),t.descriptors&&Qo.describe(e,t.descriptors)}(t,o,n),this.override&&Qo.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in Qo[i]&&(delete Qo[i][n],this.override&&delete Bo[n])}}class il{constructor(){this.controllers=new nl(ea,"datasets",!0),this.elements=new nl(Ga,"elements"),this.plugins=new nl(Object,"plugins"),this.scales=new nl(el,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):Vr(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=io(t);Gr(n["before"+i],[],n),e[t](n),Gr(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var rl=new il;class ol{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=i?this._descriptors(t).filter(i):this._descriptors(t),o=this._notify(r,t,e,n);return"afterDestroy"===e&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,n,i){i=i||{};for(const r of t){const t=r.plugin;if(!1===Gr(t[n],[e,i,r.options],t)&&i.cancelable)return!1}return!0}invalidate(){Yr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const n=t&&t.config,i=Hr(n.options&&n.options.plugins,{}),r=function(t){const e={},n=[],i=Object.keys(rl.plugins.items);for(let t=0;t<i.length;t++)n.push(rl.getPlugin(i[t]));const r=t.plugins||[];for(let t=0;t<r.length;t++){const i=r[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,r){const o=[],s=t.getContext();for(const a of e){const e=a.id,l=sl(i[e],r);null!==l&&o.push({plugin:a,options:al(t.config,{plugin:a,local:n[e]},l,s)})}return o}(t,r,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function sl(t,e){return e||!1!==t?!0===t?{}:t:null}function al(t,{plugin:e,local:n},i,r){const o=t.pluginScopeKeys(e),s=t.getOptionScopes(i,o);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ll(t,e){const n=Qo.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function cl(t){if("x"===t||"y"===t||"r"===t)return t}function ul(t,...e){if(cl(t))return t;for(const i of e){const e=i.axis||("top"===(n=i.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.length>1&&cl(t[0].toLowerCase());if(e)return e}var n;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function dl(t,e,n){if(n[e+"AxisID"]===t)return{axis:e}}function hl(t){const e=t.options||(t.options={});e.plugins=Hr(e.plugins,{}),e.scales=function(t,e){const n=Bo[t.type]||{scales:{}},i=e.scales||{},r=ll(t.type,e),o=Object.create(null);return Object.keys(i).forEach((e=>{const s=i[e];if(!Wr(s))return console.error(`Invalid scale configuration for scale: ${e}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const a=ul(e,s,function(t,e){if(e.data&&e.data.datasets){const n=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(n.length)return dl(t,"x",n[0])||dl(t,"y",n[0])}return{}}(e,t),Qo.scales[s.type]),l=function(t,e){return t===e?"_index_":"_value_"}(a,r),c=n.scales||{};o[e]=$r(Object.create(null),[{axis:a},s,c[a],c[l]])})),t.data.datasets.forEach((n=>{const r=n.type||t.type,s=n.indexAxis||ll(r,e),a=(Bo[r]||{}).scales||{};Object.keys(a).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,s),r=n[e+"AxisID"]||e;o[r]=o[r]||Object.create(null),$r(o[r],[{axis:e},i[r],a[t]])}))})),Object.keys(o).forEach((t=>{const e=o[t];$r(e,[Qo.scales[e.type],Qo.scale])})),o}(t,e)}function pl(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const fl=new Map,gl=new Set;function ml(t,e){let n=fl.get(t);return n||(n=e(),fl.set(t,n),gl.add(n)),n}const vl=(t,e,n)=>{const i=no(e,n);void 0!==i&&t.add(i)};class yl{constructor(t){this._config=function(t){return(t=t||{}).data=pl(t.data),hl(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=pl(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),hl(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ml(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return ml(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return ml(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return ml(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:r}=this,o=this._cachedScopes(t,n),s=o.get(e);if(s)return s;const a=new Set;e.forEach((e=>{t&&(a.add(t),e.forEach((e=>vl(a,t,e)))),e.forEach((t=>vl(a,i,t))),e.forEach((t=>vl(a,Bo[r]||{},t))),e.forEach((t=>vl(a,Qo,t))),e.forEach((t=>vl(a,Zo,t)))}));const l=Array.from(a);return 0===l.length&&l.push(Object.create(null)),gl.has(e)&&o.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Bo[e]||{},Qo.datasets[e]||{},{type:e},Qo,Zo]}resolveNamedOptions(t,e,n,i=[""]){const r={$shared:!0},{resolver:o,subPrefixes:s}=bl(this._resolverCache,t,i);let a=o;(function(t,e){const{isScriptable:n,isIndexable:i}=ms(t);for(const r of e){const e=n(r),o=i(r),s=(o||e)&&t[r];if(e&&(oo(s)||wl(s))||o&&Ur(s))return!0}return!1})(o,e)&&(r.$shared=!1,a=gs(o,n=oo(n)?n():n,this.createResolver(t,n,s)));for(const t of e)r[t]=a[t];return r}createResolver(t,e,n=[""],i){const{resolver:r}=bl(this._resolverCache,t,n);return Wr(e)?gs(r,e,void 0,i):r}}function bl(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const r=n.join();let o=i.get(r);return o||(o={resolver:fs(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(r,o)),o}const wl=t=>Wr(t)&&Object.getOwnPropertyNames(t).some((e=>oo(t[e]))),Al=["top","bottom","left","right","chartArea"];function xl(t,e){return"top"===t||"bottom"===t||-1===Al.indexOf(t)&&"x"===e}function Cl(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function Ml(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),Gr(n&&n.onComplete,[t],e)}function Ll(t){const e=t.chart,n=e.options.animation;Gr(n&&n.onProgress,[t],e)}function Il(t){return _s()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _l={},Sl=t=>{const e=Il(t);return Object.values(_l).filter((t=>t.canvas===e)).pop()};function kl(t,e,n){const i=Object.keys(t);for(const r of i){const i=+r;if(i>=e){const o=t[r];delete t[r],(n>0||i>e)&&(t[i+n]=o)}}}function Tl(t,e,n){return t.options.clip?t[n]:e[n]}class Dl{static defaults=Qo;static instances=_l;static overrides=Bo;static registry=rl;static version="4.4.5";static getChart=Sl;static register(...t){rl.add(...t),jl()}static unregister(...t){rl.remove(...t),jl()}constructor(t,e){const n=this.config=new yl(e),i=Il(t),r=Sl(i);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const o=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!_s()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Ta:Ha}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,o.aspectRatio),a=s&&s.canvas,l=a&&a.height,c=a&&a.width;this.id=Pr(),this.ctx=s,this.canvas=a,this.width=c,this.height=l,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ol,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),o.resizeDelay||0),this._dataChanges=[],_l[this.id]=this,s&&a?(Ps.listen(this,"complete",Ml),Ps.listen(this,"progress",Ll),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:n,height:i,_aspectRatio:r}=this;return Yr(t)?e&&r?r:i?n/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return rl}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Es(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return qo(this.canvas,this.ctx),this}stop(){return Ps.stop(this),this}resize(t,e){Ps.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,r=n.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(i,t,e,r),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),a=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,Es(this,s,!0)&&(this.notifyPlugins("resize",{size:o}),Gr(n.onResize,[this,o],this),this.attached&&this._doResize(a)&&this.render())}ensureScalesHaveIDs(){Vr(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let r=[];e&&(r=r.concat(Object.keys(e).map((t=>{const n=e[t],i=ul(t,n),r="r"===i,o="x"===i;return{options:n,dposition:r?"chartArea":o?"bottom":"left",dtype:r?"radialLinear":o?"category":"linear"}})))),Vr(r,(e=>{const r=e.options,o=r.id,s=ul(o,r),a=Hr(r.type,e.dtype);void 0!==r.position&&xl(r.position,s)===xl(e.dposition)||(r.position=e.dposition),i[o]=!0;let l=null;o in n&&n[o].type===a?l=n[o]:(l=new(rl.getScale(a))({id:o,type:a,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(r,t)})),Vr(i,((t,e)=>{t||delete n[e]})),Vr(n,(t=>{Sa.configure(this,t,t.options),Sa.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(Cl("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let r=this.getDatasetMeta(n);const o=i.type||this.config.type;if(r.type&&r.type!==o&&(this._destroyDatasetMeta(n),r=this.getDatasetMeta(n)),r.type=o,r.indexAxis=i.indexAxis||ll(o,this.options),r.order=i.order||0,r.index=n,r.label=""+i.label,r.visible=this.isDatasetVisible(n),r.controller)r.controller.updateIndex(n),r.controller.linkScales();else{const e=rl.getController(o),{datasetElementType:i,dataElementType:s}=Qo.datasets[o];Object.assign(e,{dataElementType:rl.getElement(s),datasetElementType:i&&rl.getElement(i)}),r.controller=new e(this,n),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){Vr(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),n=!i&&-1===r.indexOf(e);e.buildOrUpdateElements(n),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=n.layout.autoPadding?o:0,this._updateLayout(o),i||Vr(r,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Cl("z","_idx"));const{_active:s,_lastEvent:a}=this;a?this._eventHandler(a,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){Vr(this.scales,(t=>{Sa.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);so(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:r}of e)kl(t,i,"_removeElements"===n?-r:r)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!so(i,n(t)))return;return Array.from(i).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Sa.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],Vr(this.boxes,(t=>{n&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,oo(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Ps.has(this)?this.attached&&!Ps.running(this)&&Ps.start(this):(this.draw(),Ml({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,n=[];let i,r;for(i=0,r=e.length;i<r;++i){const r=e[i];t&&!r.visible||n.push(r)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,n=t._clip,i=!n.disabled,r=function(t,e){const{xScale:n,yScale:i}=t;return n&&i?{left:Tl(n,e,"left"),right:Tl(n,e,"right"),top:Tl(i,e,"top"),bottom:Tl(i,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(i&&$o(e,{left:!1===n.left?0:r.left-n.left,right:!1===n.right?this.width:r.right+n.right,top:!1===n.top?0:r.top-n.top,bottom:!1===n.bottom?this.height:r.bottom+n.bottom}),t.controller.draw(),i&&ts(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return Ko(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const r=ma.modes[e];return"function"==typeof r?r(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=ps(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,n){const i=n?"show":"hide",r=this.getDatasetMeta(t),o=r.controller._resolveAnimations(void 0,i);ro(e)?(r.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),o.update(r,{visible:n}),this.update((e=>e.datasetIndex===t?i:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Ps.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),qo(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete _l[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};Vr(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},r=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",r),n("detach",o)};o=()=>{this.attached=!1,i("resize",r),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():o()}unbindEvents(){Vr(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Vr(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let r,o,s,a;for("dataset"===e&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+i+"DatasetHoverStyle"]()),s=0,a=t.length;s<a;++s){o=t[s];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[i+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!Qr(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,n){const i=this.options.hover,r=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=r(e,t),s=n?t:r(t,e);o.length&&this.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const r=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(r||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:r}=this,o=e,s=this._getActiveElements(t,i,n,o),a=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,a);n&&(this._lastEvent=null,Gr(r.onHover,[t,s,this],this),a&&Gr(r.onClick,[t,s,this],this));const c=!Qr(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,i)}}function jl(){return Vr(Dl.instances,(t=>t._plugins.invalidate()))}function Nl(t,e){const{x:n,y:i,base:r,width:o,height:s}=t.getProps(["x","y","base","width","height"],e);let a,l,c,u,d;return t.horizontal?(d=s/2,a=Math.min(n,r),l=Math.max(n,r),c=i-d,u=i+d):(d=o/2,a=n-d,l=n+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function Ol(t,e,n,i){return t?0:wo(e,n,i)}function El(t){const e=Nl(t),n=e.right-e.left,i=e.bottom-e.top,r=function(t,e,n){const i=t.options.borderWidth,r=t.borderSkipped,o=cs(i);return{t:Ol(r.top,o.top,0,n),r:Ol(r.right,o.right,0,e),b:Ol(r.bottom,o.bottom,0,n),l:Ol(r.left,o.left,0,e)}}(t,n/2,i/2),o=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),r=t.options.borderRadius,o=function(t){return ls(t,["topLeft","topRight","bottomLeft","bottomRight"])}(r),s=Math.min(e,n),a=t.borderSkipped,l=i||Wr(r);return{topLeft:Ol(!l||a.top||a.left,o.topLeft,0,s),topRight:Ol(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Ol(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Ol(!l||a.bottom||a.right,o.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:o},inner:{x:e.left+r.l,y:e.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}function zl(t,e,n,i){const r=null===e,o=null===n,s=t&&!(r&&o)&&Nl(t,i);return s&&(r||Ao(e,s.left,s.right))&&(o||Ao(n,s.top,s.bottom))}function Fl(t,e){t.rect(e.x,e.y,e.w,e.h)}function Rl(t,e,n={}){const i=t.x!==n.x?-e:0,r=t.y!==n.y?-e:0,o=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-r;return{x:t.x+i,y:t.y+r,w:t.w+o,h:t.h+s,radius:t.radius}}class Pl extends Ga{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:n,backgroundColor:i}}=this,{inner:r,outer:o}=El(this),s=(a=o.radius).topLeft||a.topRight||a.bottomLeft||a.bottomRight?rs:Fl;var a;t.save(),o.w===r.w&&o.h===r.h||(t.beginPath(),s(t,Rl(o,e,r)),t.clip(),s(t,Rl(r,-e,o)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,Rl(r,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return zl(this,t,e,n)}inXRange(t,e){return zl(this,t,null,e)}inYRange(t,e){return zl(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(e+i)/2:e,y:r?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function Yl(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}new WeakMap;class Ul extends el{static id="category";static defaults={ticks:{callback:Yl}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Yr(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:wo(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const r=t.indexOf(e);return-1===r?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):r!==t.lastIndexOf(e)?n:r}(n,t,Hr(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let r=this.getLabels();r=0===t&&e===r.length-1?r:r.slice(t,e+1),this._valueRange=Math.max(r.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){return Yl.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Wl(t,e,{horizontal:n,minRotation:i}){const r=vo(i),o=(n?Math.sin(r):Math.cos(r))||.001,s=.75*e*(""+t).length;return Math.min(e/o,s)}class Bl extends el{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return Yr(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:r}=this;const o=t=>i=e?i:t,s=t=>r=n?r:t;if(t){const t=po(i),e=po(r);t<0&&e<0?s(0):t>0&&e>0&&o(0)}if(i===r){let e=0===r?1:Math.abs(.05*r);s(r+e),t||o(i-e)}this.min=i,this.max=r}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:r,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=t,h=r||1,p=c-1,{min:f,max:g}=e,m=!Yr(o),v=!Yr(s),y=!Yr(l),b=(g-f)/(u+1);let w,A,x,C,M=go((g-f)/p/h)*h;if(M<1e-14&&!m&&!v)return[{value:f},{value:g}];C=Math.ceil(g/M)-Math.floor(f/M),C>p&&(M=go(C*M/p/h)*h),Yr(a)||(w=Math.pow(10,a),M=Math.ceil(M*w)/w),"ticks"===i?(A=Math.floor(f/M)*M,x=Math.ceil(g/M)*M):(A=f,x=g),m&&v&&r&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-o)/r,M/1e3)?(C=Math.round(Math.min((s-o)/M,c)),M=(s-o)/C,A=o,x=s):y?(A=m?o:A,x=v?s:x,C=l-1,M=(x-A)/C):(C=(x-A)/M,C=fo(C,Math.round(C),M/1e3)?Math.round(C):Math.ceil(C));const L=Math.max(yo(M),yo(A));w=Math.pow(10,Yr(a)?L:a),A=Math.round(A*w)/w,x=Math.round(x*w)/w;let I=0;for(m&&(d&&A!==o?(n.push({value:o}),A<o&&I++,fo(Math.round((A+I*M)*w)/w,o,Wl(o,b,t))&&I++):A<o&&I++);I<C;++I){const t=Math.round((A+I*M)*w)/w;if(v&&t>s)break;n.push({value:t})}return v&&d&&x!==s?n.length&&fo(n[n.length-1].value,s,Wl(s,b,t))?n[n.length-1].value=s:n.push({value:s}):v&&x!==s||n.push({value:x}),n}({maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&function(t,e,n){let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i][n],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return Yo(t,this.chart.options.locale,this.options.ticks.format)}}class Zl extends Bl{static id="linear";static defaults={ticks:{callback:Wo.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Br(t)?t:0,this.max=Br(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=vo(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,r.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}Wo.formatters.logarithmic,Wo.formatters.numeric;const Hl="dark",Gl="light";function Vl(){return document.querySelector("html")}function Ql(t){const e=Vl();return getComputedStyle(e).getPropertyValue(t)}function Jl(t){Vl().dataset.theme=`theme-${t}`}function Xl(){const t=Vl().dataset.theme.replace("theme-","")===Gl?Hl:Gl;var e;Jl(t),e=t,localStorage.setItem(Ue,e)}class ql extends $i{constructor(){super(".dialog.chart"),this.dataSetColours=[Ql("--colour-primary"),Ql("--colour-secondary"),Ql("--colour-warning")]}_multiplierDescription(t){return{0:"",3:"'000s",6:"millions",9:"billions"}[t]}_chooseMultiplier(t){let e=Math.max(...t.map((t=>Math.abs(Number(t.value()))))),n=0;for(;e>=1e3&&n<9;)e/=1e3,n+=3;return n}dataSetColour(t){return this.dataSetColours[t]}addAspect(t){this._analyseDims.push(t),this._showAnalyseDimensionChart()}removeAspect(t){this._analyseDims=this._analyseDims.filter((e=>e!=t)),this._showAnalyseDimensionChart()}analyseDimension(t,e){this._analyseFact=t,this._analyseDims=e,this._showAnalyseDimensionChart()}_showAnalyseDimensionChart(){const t=this._analyseFact,n=this._analyseDims,i=this.node;e()("canvas",i).remove(),e()("<canvas>").appendTo(e()(".chart-container",i)),this.show();const r={};n[0]&&(r[n[0]]=null),n[1]&&(r[n[1]]=null);const o=t.report.deduplicate(t.report.getAlignedFacts(t,r)),s=new an,a=new an;for(const t of o)n[0]&&s.add(t.aspect(n[0])),n[1]&&a.add(t.aspect(n[1]));const l=s.uniqueValues(),c=a.uniqueValues(),u=this._chooseMultiplier(o),d=t.unitLabel()+" "+this._multiplierDescription(u),h=[],p=[];for(let e=0;e<(n[0]?l.length:1);e++){h.push(n[0]?He(l[e].valueLabel("std")||"",40):"");for(let i=0;i<(n[1]?c.length:1);i++){p[i]=p[i]||{label:n[1]?c[i].valueLabel():"",data:[],backgroundColor:this.dataSetColour(i),borderColor:this.dataSetColour(i)};const r={};n[0]&&(r[n[0]]=l[e].value()),n[1]&&(r[n[1]]=c[i].value());const o=t.report.getAlignedFacts(t,r);o.length>0?p[i].data[e]=o[0].value()/10**u:p[i].data[e]=0}}e()(".other-aspects",i).empty();const f=[];for(const r of t.aspects())if("c"!=r.name()){const t=e()("<button>").addClass("other-aspect").appendTo(e()(".other-aspects",i));n.includes(r.name())?t.addClass("selected").text(r.label()+": *").on("click",(()=>this.removeAspect(r.name()))):("u"!=r.name()&&f.push(r.valueLabel()),t.text(r.label()+": "+r.valueLabel()),n.length<2&&t.addClass("addable").on("click",(()=>this.addAspect(r.name()))))}n[1]||(n[0]||(h[0]=f.join(", ")),p[0].label=f.join(", ")),this.setChartSize();const g=e()("canvas",i);Dl.register(ua,Pl,Ul,Zl);const m=new Dl(g,{type:"bar",data:{labels:h,datasets:p},options:{responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,title:{display:!0,text:d}},x:{ticks:{autoSkip:!1}}}}});e()(window).on("resize",(()=>{this.setChartSize(),m.resize()})),e()(".other-aspect",i).get(0)?.focus()}setChartSize(){const t=this.node,n=t.height()-e()(".other-aspects",this.node).outerHeight()-16;e()(".chart-container",t).height(n),e()("canvas",t).attr("height",n).height(n)}}class Kl{constructor(t,n){this._elt=t,n=n||{},this.type=n.type||"dropdown",t.find(".menu-title").on("click",(e=>{t.find(".content-container").toggle(),e.stopPropagation()})),e()("html").on("click",(n=>{0===e()(".content",t).find(e()(n.target)).length&&this.close()}))}reset(){this._elt.find(".content").empty()}close(){"dropdown"==this.type&&this._elt.find(".content-container").hide()}_add(t,n){if(void 0!==n){const i=this._elt.find(".content > div").filter((()=>e()(this).data("iv-menu-item-name")===n));if(void 0!==i&&i.length>0)return void i.after(t)}t.appendTo(this._elt.find(".content"))}addDownloadButton(t,n){const i=this,r=e()("<a></a>").addClass("item").attr({href:n}).text(t).on("click",(()=>i.close()));this._add(r)}addCheckboxItem(t,n,i,r,o){const s=this,a=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(t).data("iv-menu-item-name",i).prepend(e()('<input type="checkbox"></input>').prop("checked",o).change((function(){n(e()(this).prop("checked"),!0),s.close()}))).append(e()("<span></span>").addClass("checkmark"));this._add(a,r),o&&n(!0,!1)}addCheckboxGroup(t,n,i,r,o,s){const a=e()('<div class="group"></div>').data("iv-menu-item-name",o);this._add(a,s);for(const s of t){const t=e()("<label></label>").addClass("menu-checkbox").addClass("item").text(n[s]).prepend(e()('<input type="radio"></input>').attr({name:o,value:s}).on("change",(function(){r(e()(this).val())}))).append(e()("<span></span>").addClass("checkmark")).appendTo(a);s===i&&t.find("input").prop("checked",!0)}}addLabel(t){const n=e()("<div></div>").addClass("label").text(t);this._add(n)}addLink(t,n){const i=e()("<a></a>").attr("href",n).attr("target","_blank").attr("title",t).attr("aria-label",t).addClass("item").text(t);this._add(i)}}class $l{constructor(t){this._contents=e()('<div class="accordian"></div>'),this.onSelect=e().Callbacks(),this.options=t||{},this.options.onSelect&&this.onSelect.add(t.onSelect)}addCard(t,n,i,r){const o=this,s=e()('<div class="card"></div>').append(e()('<button class="title"></button>').attr("aria-label","Expand section").append(t).on("click",(function(){var t=e()(this).closest(".card");t.hasClass("active")?o.options.alwaysOpen||t.removeClass("active"):(t.closest(".accordian").find(".card").removeClass("active"),t.addClass("active"),o.onSelect.fire(t.data("accordian-card-id")))}))).append(e()('<div class="card-body"></div>').append(n)).appendTo(this._contents);null!==r&&s.data("accordian-card-id",r),i&&s.addClass("active")}contents(){return this.options.alwaysOpen&&0==this._contents.find(".card.active").length&&this._contents.find(".card").first().addClass("active"),this.options.dissolveSingle&&1==this._contents.children().length?this._contents.children().first().find(".card-body"):this._contents}}class tc{constructor(t){this.itemMap=new Map;for(const e of t??[])this.add(e)}add(t){this.itemMap.set(t.vuid,t)}items(){return Array.from(this.itemMap.values())}_allDimensions(){const t={},e=this.items().filter((t=>t instanceof cn));for(const i of e){const e=Object.keys(i.dimensions());for(var n=0;n<e.length;n++)t[e[n]]=!0}return Object.keys(t)}minimallyUniqueLabel(t){if(!this._minimallyUniqueLabels){for(var e=this.items().filter((t=>t instanceof cn)),n={},i=["c","p"].concat(this._allDimensions()),r=0;r<e.length;r++){var o=e[r];n[o.vuid]=[];for(var s=0;s<i.length;s++){var a=o.aspect(i[s]);n[o.vuid].push(a?a.valueLabel():null)}}var l={};for(s=0;s<i.length;s++){var c={};for(r=0;r<e.length;r++)c[n[e[r].vuid][s]]=!0;var u={};if(Object.keys(c).length>1){for(r=0;r<e.length;r++){var d=n[p=e[r].vuid][s],h=l[p]||[];null!==d&&h.push(d),h.length>0&&(l[p]=h,u[h.join(", ")]=!0)}if(Object.keys(u).length==e.length)break}}if(Object.keys(l).length<e.length)for(r=0;r<e.length;r++){var p=e[r].vuid;(h=l[p]||[]).unshift(n[p][0]),l[p]=h}this.items().filter((t=>t instanceof un)).forEach((t=>{l[t.vuid]=[t.title]})),this._minimallyUniqueLabels=l}return this._minimallyUniqueLabels[t.vuid].join(", ")}isEmpty(){return 0==this.itemMap.size}valueIntersection(){const t=this.items().map((t=>ln.fromFact(t)));return ln.intersection(...t)}completeDuplicates(){return this.items().every((t=>t.isCompleteDuplicate(this.items()[0])))}isConsistent(){if(0==this.itemMap.size)return!0;const t=this.items().map((t=>ln.fromFact(t)));return void 0!==ln.intersection(...t)}size(){return this.itemMap.size}mostPrecise(){return this.items().reduce(((t,e)=>e.isMorePrecise(t)?e:t))}}class ec extends $i{constructor(){super(".dialog.validation-report"),this.addButton("Dismiss",!0)}displayErrors(t){const n=this.node.find("tbody");n.empty();for(const i of t)e()("<tr></tr>").append(e()("<td></td>").text(i.sev)).append(e()("<td></td>").text(i.code)).append(e()("<td></td>").text(i.msg)).appendTo(n)}}class nc extends $i{constructor(t){super(".dialog.text-block-viewer"),this.addButton("Dismiss",!0),this.fact=t,this.node.find("#text-block-viewer-plain-text").off("change.dialog").on("change.dialog",(t=>this.displayTextBlock(t.target.checked)))}htmlWrapString(t){return"<!DOCTYPE html><html><head><title></title></head><body>"+t+"</body></html>"}static canRender(t){return t.isTextBlock()&&t.escaped()}textOnly(){return this.node.find("#text-block-viewer-plain-text").prop("checked")}displayTextBlock(){const t=this.node.find("iframe").get(0),e=t.contentDocument||t.contentWindow.document;if(e.open(),this.textOnly()){const t=document.createElement("div");t.append(document.createTextNode(this.fact.readableValue())),e.write(this.htmlWrapString(t.outerHTML))}else e.write(this.htmlWrapString(this.fact.value()));e.close()}}class ic{constructor(t,e){this.fact=t,this.calc11=e}calculationFacts(){const t=this.fact,e=t.report;if(!this._conceptToFact){const n={};for(const i of[Ee,"calc11"]){const r=e.getChildRelationships(t.conceptName(),i);for(const[o,s]of Object.entries(r))Qe(n,i,{}),n[i][o]={},s.length>0&&e.getAlignedFacts(t,{c:s.map((t=>t.t))}).forEach((t=>Qe(n[i][o],t.conceptName(),new tc).add(t)))}this._conceptToFact=n}return this._conceptToFact}hasCalculations(){const t=this.calculationFacts();return Object.keys(t).length>0}resolvedCalculations(){const t=[],e=this.calculationFacts();for(const[n,i]of Object.entries(e))for(const[e,r]of Object.entries(i))Object.keys(r).length>0&&t.push(this.resolvedCalculation(e,n));return t}bestELRForFactSet(t){const e=this.calculationFacts();let n="",i=-1;for(const[r,o]of Object.entries(e))for(const[e,r]of Object.entries(o)){let o=0;for(const[e,n]of Object.entries(r)){let e=0;for(const i of n.items())t.includes(i.vuid)&&(e=1);o+=e}o/Object.keys(r).length>i&&(i=o/Object.keys(r).length,n=e)}return n}resolvedCalculation(t,e){const n=this.calculationFacts()[e][t],i=this.fact.report,r=i.getChildRelationships(this.fact.conceptName(),e)[t],o=new(this.calc11?sc:ac)(t,this.fact,e);for(const t of r){const e=n[t.t]??new tc;o.addRow(new rc(i.getConcept(t.t),t.w,e))}return o}}class rc{constructor(t,e,n){this.concept=t,this.weight=e,this.facts=n,this.weightSign=1==e?"+":-1==e?"-":e.toString()}contributionInterval(){const t=this.facts.valueIntersection();if(void 0!==t)return t.times(this.weight)}}class oc{constructor(t,e,n){this.totalFact=e,this.totalFactSet=new tc(e.report.getAlignedFacts(e)),this.elr=t,this.rows=[],this.relationshipVersion=n}addRow(t){this.rows.push(t)}binds(){return this.rows.some((t=>!t.facts.isEmpty()))}unchecked(){return!1}}class sc extends oc{calculatedTotalInterval(){let t=new ln(0,0);for(const e of this.rows)if(!e.facts.isEmpty()){const n=e.contributionInterval();if(void 0===n)return;t=t.plus(n)}return t}isConsistent(){const t=this.calculatedTotalInterval(),e=this.totalFactSet.valueIntersection();return void 0!==t&&void 0!==t.intersection(e)}}class ac extends oc{binds(){return this.relationshipVersion==Ee&&super.binds()&&this.rows.every((t=>t.facts.completeDuplicates()))}unchecked(){return super.binds()&&!this.binds()}uncheckedDueToVersionMismatch(){return this.relationshipVersion!==Ee}calculatedTotal(){let t=new Ne(0);for(const e of this.rows){if(!e.facts.isConsistent())return;e.facts.isEmpty()||(t=t.plus(e.facts.items()[0].roundedValue().times(e.weight)))}return t}isConsistent(){return this.calculatedTotal().equals(this.totalFact.roundedValue())}}class lc extends $i{constructor(){super(".dialog.calculation-inspector"),this.addButton("Dismiss",!0)}duplicateFactIcons(t){const n=e()("<td></td>").addClass("icons");return t.size()>1&&!t.completeDuplicates()&&(t.isConsistent()?n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.consistent-duplicate-facts-present",{nfacts:t.size()}))):n.append(e()("<span></span>").addClass("duplicate-facts").attr("title",Q.t("calculation.inconsistent-duplicate-facts-present",{nfacts:t.size()})))),n}populateCalc11Table(t,n){n.addClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="",o="",s="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];const i=n.facts.valueIntersection();if(void 0===i)t="n/a",o="n/a",s="n/a";else{t=e.readableValue(i.midpoint().toNumber());const r=n.contributionInterval();o=e.readableValue(r.a.toNumber()),s=e.readableValue(r.b.toNumber())}}const a=this.duplicateFactIcons(n.facts);r=r||a.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(a).append(e()("<td></td>").addClass("figure").text(o)).append(e()("<td></td>").addClass("figure").text(s)).appendTo(i)}const o=t.totalFact,s=t.calculatedTotalInterval();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.midpoint().toNumber())).addClass("figure")).append(e()("<td></td>").addClass("icons")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===s?"n/a":o.readableValue(s.b.toNumber())).addClass("figure")).appendTo(i);const a=t.totalFactSet.valueIntersection(),l=this.duplicateFactIcons(t.totalFactSet);e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.midpoint().toNumber())).addClass("figure")).append(l).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.a.toNumber())).addClass("figure")).append(e()("<td></td>").text(void 0===a?"n/a":o.readableValue(a.b.toNumber())).addClass("figure")).appendTo(i),r&&n.addClass("has-icons")}populateLegacyCalcTable(t,n){n.removeClass("calc11");const i=n.find("tbody");let r=!1;for(const n of t.rows){let t="";if(!n.facts.isEmpty()){let e=n.facts.items()[0];t=void 0===n.facts.valueIntersection()?"Inconsistent duplicates":n.facts.completeDuplicates()?e.readableValue():"Duplicate facts"}const o=this.duplicateFactIcons(n.facts);r=r||o.find("span").length>0,e()("<tr></tr>").append(e()("<td></td>").addClass("weight").text(n.weightSign)).append(e()("<td></td>").text(n.concept.label()).addClass("line-item")).append(e()("<td></td>").addClass("figure").text(t)).append(o).appendTo(i)}const o=t.totalFact,s=t.calculatedTotal();e()("<tr></tr>").addClass("total").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.calculated-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue(s)).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),e()("<tr></tr>").append(e()("<td></td>")).append(e()("<td></td>").text(`${o.concept().label()} (${Q.t("calculation.reported-total")})`).addClass("line-item")).append(e()("<td></td>").text(o.readableValue()).addClass("figure")).append(e()("<td></td>").addClass("icons")).appendTo(i),r&&n.addClass("has-icons")}displayCalculation(t){const e=this.node.find("table.calculation-trace");e.find("tbody").empty(),e.removeClass("has-icons"),t instanceof sc?this.populateCalc11Table(t,e):this.populateLegacyCalcTable(t,e);const n=e.find("td.status");n.removeClass("inconsistent").removeClass("consistent").removeClass("unchecked"),t.unchecked()?n.addClass("unchecked").find(".message").text(Q.t("calculation.does-not-bind")):t.isConsistent()?n.addClass("consistent").find(".message").text(Q.t("factDetails.calculationIsConsistent")):n.addClass("inconsistent").find(".message").text(Q.t("factDetails.calculationIsInconsistent"))}}class cc{constructor(t){this._reportSet=t,this.outlines=t.reports.map((t=>new uc(t)))}hasOutline(){return this.outlines.some((t=>Object.keys(t.sections).length>0))}sortedSections(){return this.outlines.flatMap((t=>t.sortedSections()))}groupsForFact(t){return this.outlines.find((e=>e.report==t.report)).groupsForFact(t)}}class uc{constructor(t){this.report=t;const e=t.facts().sort(((t,e)=>t.ixNode.docOrderindex-e.ixNode.docOrderindex)),n={},i={},r={},o={};this._buildDimensionMap();const s=t.relationshipGroups("pres");for(const t of e)if(!t.isHidden())for(const e of s)this.factInGroup(t,e)?(e in n||(n[e]=0,i[e]=t),n[e]++):e in n&&((!(e in r)||r[e]<n[e])&&(r[e]=n[e],o[e]=i[e]),delete n[e],delete i[e]);for(const t in n)(!(t in r)||r[t]<n[t])&&(r[t]=n[t],o[t]=i[t]);this.sections=o}factInGroup(t,e){if(0==this.report.getParentRelationshipsInGroup(t.conceptName(),"pres",e).length)return!1;const n=t.dimensions(),i=this.dimensionMap[e];for(const[t,e]of Object.entries(i))if(e.typed){if(!(t in n))return!1}else if(t in n?!(n[t]in e.members):!e.allowDefault)return!1;return!0}_buildDimensionMap(){const t=this.report.relationshipGroups("pres");this.dimensionMap={};for(const e of t){this.dimensionMap[e]={};for(const t of this.report.relationshipGroupRoots("pres",e))this.buildDimensionMapFromSubTree("pres",e,null,t)}}buildDimensionMapFromSubTree(t,e,n,i){const r=this.report.getConcept(i);if(r.isTypedDimension())this.dimensionMap[e][i]={typed:!0};else{r.isExplicitDimension()&&(n=i,this.dimensionMap[e][n]={members:{},allowDefault:!1});var o=this.report.getChildRelationships(i,t);if(e in o)for(var s of o[e])n&&(this.report.dimensionDefault(n)==s.t?this.dimensionMap[e][n].allowDefault=!0:this.dimensionMap[e][n].members[s.t]=!0),this.buildDimensionMapFromSubTree(t,e,n,s.t)}}groupsForFact(t){const e=[];for(const n of this.report.relationshipGroups("pres"))this.factInGroup(t,n)&&e.push({elr:n,fact:this.sections[n],report:this.report});return e}hasOutline(){return Object.keys(this.sections).length>0}sortedSections(){const t=Object.keys(this.sections),e=/\(parenthetical\)\s*$/i;return t.filter((t=>!e.test(this.report.getRoleLabelOrURI(t)))).sort(((t,e)=>this.report.getRoleLabelOrURI(t).localeCompare(this.report.getRoleLabelOrURI(e)))).map((t=>({report:this.report,fact:this.sections[t],elr:t})))}}const dc="dimensions",hc="members",pc="primaryItems",fc="total";class gc{constructor(){this._dimensions=new Set,this._members=new Set,this._primaryItems=new Set}addDimension(t){this._dimensions.add(t)}addMember(t){this._members.add(t)}addPrimaryItem(t){this._primaryItems.add(t)}getCounts(){return{[dc]:this._dimensions.size,[hc]:this._members.size,[pc]:this._primaryItems.size,[fc]:this._dimensions.size+this._members.size+this._primaryItems.size}}}class mc{constructor(){this._documentsByType={inline:new Set,schema:new Set,calcLinkbase:new Set,defLinkbase:new Set,labelLinkbase:new Set,presLinkbase:new Set,refLinkbase:new Set,unrecognizedLinkbase:new Set}}addDocument(t,e){for(const n of e){if(!(n in this._documentsByType))throw new Error(`Document ${t} with unrecognized type ${n}.`);this._documentsByType[n].add(t)}}getDocuments(){const t={};for(const[e,n]of Object.entries(this._documentsByType))t[e]=[...n].sort();return t}}class vc{constructor(t){this._reportSet=t}_getTagCounter(t,e){const n=e.indexOf(":");if(-1===n)throw new Error(`Element ${e} is not a concept.`);const i=e.substring(0,n);return t.has(i)||t.set(i,new gc),t.get(i)}_buildTagCounts(){const t=new Map;for(const e of this._reportSet.facts()){let n=this._getTagCounter(t,e.conceptName());n.addPrimaryItem(e.conceptName());for(const[i,r]of Object.entries(e.dimensions())){n=this._getTagCounter(t,i),n.addDimension(i);const o=e.report.getConcept(i);if(o.isTypedDimension()){const e=o.typedDomainElement();e&&(n=this._getTagCounter(t,e),n.addMember(e))}else n=this._getTagCounter(t,r),n.addMember(r)}}this._tagCounts=new Map([...t].map((([t,e])=>[t,e.getCounts()])))}_buildLocalFileSummary(){this._localFileSummary=new mc;for(const[t,e]of this._reportSet.reports.flatMap((t=>Object.entries(t.localDocuments()))))this._localFileSummary.addDocument(t,e)}totalFacts(){return void 0===this._totalFacts&&(this._totalFacts=this._reportSet.facts().length),this._totalFacts}hiddenFacts(){return void 0===this._hiddenFacts&&(this._hiddenFacts=this._reportSet.facts().filter((t=>t.isHidden())).length),this._hiddenFacts}mandatoryFacts(){return void 0===this._mandatoryFacts&&(this._mandatoryFacts=this._reportSet.facts().filter((t=>t.isMandatory())).length),this._mandatoryFacts}tagCounts(){return void 0===this._tagCounts&&this._buildTagCounts(),this._tagCounts}getLocalDocuments(){return void 0===this._localFileSummary&&this._buildLocalFileSummary(),this._localFileSummary.getDocuments()}getSoftwareCredits(){return this._reportSet.getSoftwareCredits()}}const yc={periodFilter:"search-filter-period",dimensionTypeFilter:"search-filter-dimension-type",namespacesFilter:"search-filter-namespaces",targetDocumentFilter:"search-filter-target-document",scalesFilter:"search-filter-scales",unitsFilter:"search-filter-units",calculationsFilter:"search-filter-calculations",dataTypesFilter:"search-filter-datatypes"};class bc{constructor(t){this._iv=t,this._viewerOptions=new pn,this._currentItem=null,this._useCalc11=!0}i18nInit(){const t=["translation","referenceParts","currencies","dataTypes","labelRoles","scale","balanceTypes","tooltips"];return Q.init({lng:this.preferredLanguages()[0],reloadOnLanguageChange:!0,returnEmptyString:!1,fallbackLng:"en",debug:!1,resources:Object.fromEntries(["en","cy","es"].map((e=>[e,Object.fromEntries(t.map((t=>[t,n(918)(`./${e}/${t.toLowerCase()}.json`)])))])))}).then((t=>{or().init(Q,e(),{tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",useOptionsAttr:!1,parseDefaultValueFromContent:!0})}))}initialize(t,n){const i=this;return this._viewer=n,new Promise((function(n,r){i._chart=new ql,i._reportSet=t,i.i18nInit().then((r=>{e()(".collapsible-header button:first-of-type").on("click",(function(){const t=e()(this).closest(".collapsible-section");t.toggleClass("collapsed"),t.hasClass("collapsed")?t.find(".collapsible-body").slideUp(250):(t.find(".collapsible-body").slideDown(250),t.hasClass("collapsible-only")&&t.siblings(".collapsible-section:not(.collapsed)").each((function(){const t=e()(this);t.addClass("collapsed"),t.find(".collapsible-body").slideUp(250)})))})),e()("#inspector .controls .search-button").on("click",(()=>i.inspectorMode("search-mode",!0))),e()("#inspector .controls .summary-button").on("click",(()=>i.inspectorMode("summary-mode",!0))),e()("#inspector .controls .outline-button").on("click",(()=>i.inspectorMode("outline-mode",!0))),e()("#inspector .back").on("click",(()=>i.popInspectorMode())),e()(".popup-trigger").on("mouseenter",(function(){e()(this).find(".popup-content").show()})).on("mouseleave",(function(){e()(this).find(".popup-content").hide()})),e()("#inspector").on("click",".clipboard-copy",(function(){navigator.clipboard.writeText(e()(this).data("cb-text"))})),i.initializeTooltips(),i._toolbarMenu=new Kl(e()("#toolbar-highlight-menu")),i.buildToolbarHighlightMenu(),i._optionsMenu=new Kl(e()("#display-options-menu")),i.buildDisplayOptionsMenu(),i.buildHomeLink(),e()("#ixv").localize(),e()(window).on("message",(t=>i.handleMessage(t))),t.viewerOptions=i._viewerOptions,i.summary=new vc(t),i.createSummary(),i.outline=new cc(t),i.createOutline(),i._iv.setProgress(Q.t("inspector.initializing")).then((()=>{i._search=new lr(t),i.handleFactDeepLink(),i.rebuildViewer(),i.setupValidationReportIcon(),i.initializeViewer(),i.doInitialSelection(),n()}))}))}))}initializeTooltips(){e()("html").on("click",(t=>this.hideTooltip())),e()("#inspector .inspector-body").on("scroll",(t=>this.hideTooltip())),e()(document).on("keyup",(t=>{27==t.keyCode&&this.hideTooltip()})),e()("#ixv").on("click",".tooltip-icon",(t=>{this.toggleTooltip(e()(t.currentTarget)),t.stopPropagation()}));let t=0;e()("#ixv").on("mouseenter",".tooltip-icon",(n=>{t++,setTimeout((i=>{t>0&&this.showTooltip(e()(n.currentTarget),!0)}),250)})),e()("#ixv").on("mouseenter","#tooltip",(e=>t++)),e()("#ixv").on("mouseleave","#tooltip, .tooltip-icon",(e=>{t--,setTimeout((e=>{0==t&&this.hideTooltip(!0)}),500)}))}initializeViewer(){this._viewer.onSelect.add(((t,e,n)=>this.selectItem(t,e,n))),this._viewer.onMouseEnter.add((t=>this.viewerMouseEnter(t))),this._viewer.onMouseLeave.add((t=>this.viewerMouseLeave(t))),e()(".ixbrl-next-tag").on("click",(()=>this._viewer.selectNextTag(this._currentItem))),e()(".ixbrl-prev-tag").on("click",(()=>this._viewer.selectPrevTag(this._currentItem))),e()("#toggle-dark-mode").attr("title",Q.t("toolbar.toggleDarkMode")).attr("aria-label",Q.t("toolbar.toggleDarkMode")).on("click",Xl)}postLoadAsync(){Je(this._search.buildSearchIndex((()=>this.searchReady())))}handleFactDeepLink(){const t=location.hash.match(/^#f([0-9]+)?-(.*)$/);if(null!==t){const e=Xe(t[1]??0,t[2]);void 0!==this._reportSet.getItemById(e)&&this.selectItem(e)}}doInitialSelection(){!this._currentItem&&this._iv.isFeatureEnabled("search_on_startup")&&this.inspectorMode("search-mode")}handleMessage(t){const e=t.originalEvent.data;let n;try{n=JSON.parse(e)}catch(t){return}if("SHOW_FACT"===n.task){let t=Number(n.docSetId);t||(t=0);const e=Xe(t,n.factId);this.selectItem(e)}else console.log("Not handling unsupported task message: "+e)}updateURLFragment(){this._currentItem?location.hash="#f"+this._currentItem.vuid.replace(/^0-/,"-"):location.hash=""}buildDisplayOptionsMenu(){if(this._optionsMenu.reset(),this._reportSet){const t=this.selectDefaultLanguage(),e=this._reportSet.availableLanguages(),n=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.documentLanguage")),this._optionsMenu.addCheckboxGroup(e,Object.fromEntries(e.map((t=>[t,n.of(t)]))),t,(t=>{this.setDocumentLanguage(t),this.update()}),"select-language"),this.setDocumentLanguage(t);const i=Q.language.substring(0,2),r=Object.keys(Q.options.resources),o=new Intl.DisplayNames(this.preferredLanguages(),{type:"language"});this._optionsMenu.addLabel(Q.t("menu.applicationLanguage")),this._optionsMenu.addCheckboxGroup(r,Object.fromEntries(r.map((t=>[t,o.of(t)]))),i,(t=>{this.changeApplicationLanguage(t)}),"select-user-language"),this._reportSet.filingDocuments()&&(this._optionsMenu.addLabel(Q.t("menu.actions")),this._optionsMenu.addDownloadButton("Download filing documents",this._reportSet.filingDocuments())),this._optionsMenu.addLabel(Q.t("menu.options")),this._reportSet.usesCalculations()&&this._optionsMenu.addCheckboxItem(Q.t("calculation.useCalculations11"),(t=>this.setCalculationMode(t)),"calculation-mode","select-language",this._useCalc11)}let t={},e=this._iv.getGuideLinkUrl();e&&(t[Q.t("menu.userGuide")]=e);let n=this._iv.getSupportLinkUrl();n&&(t[Q.t("menu.contactUs")]=n);let i=this._iv.getSurveyLinkUrl();if(i&&(t[Q.t("menu.survey")]=i),Object.entries(t).length>0){this._optionsMenu.addLabel(Q.t("menu.help"));for(const[e,n]of Object.entries(t))this._optionsMenu.addLink(e,n)}this._iv.callPluginMethod("extendDisplayOptionsMenu",this._optionsMenu)}buildHomeLink(){if(e()("#top-bar #home-link").remove(),!this._iv.isStaticFeatureEnabled(Re))return;e()("#top-bar img.header").remove();let t,n=this._iv.getStaticFeatureValue(Re);t=this._iv.isStaticFeatureEnabled(Fe)?this._iv.getStaticFeatureValue(Fe):Q.t("toolbar.homePage");const i=sessionStorage.getItem("ixbrl-viewer-home-link-query");i&&(n.includes("?")?n+="&":n+="?",n+=i);const r=e()("<a></a>").attr("href",n).attr("id","home-link").text(t);e()("#top-bar").prepend(r)}highlightTagsOnStartup(){const t=window.localStorage.getItem(We);return null!==t?JSON.parse(t):this._iv.isFeatureEnabled("highlight_facts_on_startup")}buildToolbarHighlightMenu(){const t=this._iv;this._toolbarMenu.reset(),this._toolbarMenu.addCheckboxItem(Q.t("toolbar.xbrlElements"),((t,e)=>this.highlightAllTags(t,e)),"highlight-tags",null,this.highlightTagsOnStartup()),t.isReviewModeEnabled()&&(this._toolbarMenu.addCheckboxItem("Untagged Numbers",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-numbers"):n.removeClass("review-highlight-untagged-numbers")}),"highlight-untagged-numbers","highlight-tags"),this._toolbarMenu.addCheckboxItem("Untagged Dates",(function(e){const n=t.viewer.contents().find("body");e?n.addClass("review-highlight-untagged-dates"):n.removeClass("review-highlight-untagged-dates")}),"highlight-untagged-dates","highlight-untagged-numbers")),this._iv.callPluginMethod("extendToolbarHighlightMenu",this._toolbarMenu)}buildHighlightKey(){let t;e()(".highlight-key .items").empty(),t=this._iv.isReviewModeEnabled()?["XBRL Elements","Untagged Numbers","Untagged Dates"]:this._reportSet.namespaceGroups().map((t=>this._reportSet.preferredPrefix(t))),this._iv.callPluginMethod("extendHighlightKey",t);for(const[n,i]of t.entries())e()("<div>").addClass("item").append(e()("<span></span>").addClass("sample").addClass("sample-"+n%3)).append(e()("<span></span>").text(i)).appendTo(e()(".highlight-key .items"))}changeApplicationLanguage(t){Q.changeLanguage(t),this.rebuildViewer()}rebuildViewer(){e()("#ixv").localize(),this.buildDisplayOptionsMenu(),this.buildHomeLink(),this.buildToolbarHighlightMenu(),this.buildHighlightKey(),this.update()}inspectorMode(t,n){const i=e()("#inspector").removeClass(["summary-mode","outline-mode","search-mode"].filter((e=>e!==t)));void 0!==t?n?i.toggleClass(t):i.addClass(t):this._prevInspectorMode=void 0}pushInspectorMode(t,e){this._prevInspectorMode=e,this.inspectorMode(t)}popInspectorMode(){this.inspectorMode(this._prevInspectorMode),this._prevInspectorMode=void 0}setCalculationMode(t){this._useCalc11=t,this._currentItem instanceof cn&&this.updateCalculation(this._currentItem)}highlightAllTags(t,e){e&&window.localStorage.setItem(We,JSON.stringify(t)),this._viewer.highlightAllTags(t,this._reportSet.namespaceGroups())}factListRow(t){const n=e()('<button class="fact-list-item"></button>').on("click",(()=>this.selectItem(t.vuid,void 0,void 0,!0))).on("dblclick",(()=>this.selectItem(t.vuid))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).on("mouseenter",(()=>this._viewer.linkedHighlightFact(t))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(t))).data("ivid",t.vuid);e()('<button class="select-icon"></button>').attr("title",Q.t("search.viewFact")).on("click",(()=>{this.selectItem(t.vuid)})).appendTo(n),this._setLabelWithLang(e()('<div class="title"></div>'),t.getLabelOrNameAndLang("std")).appendTo(n);const i=t.concept().dataType();void 0!==i&&e()('<div class="datatype"></div>').text(i.label()).appendTo(n),e()('<div class="dimension"></div>').text(t.period().toString()).appendTo(n);for(const i of t.aspects())i.isTaxonomyDefined()&&!i.isNil()&&this._setLabelWithLang(e()('<div class="dimension"></div>'),i.valueLabelAndLang()).appendTo(n);const r=e()("<div></div>").addClass("block-list-item-tags").appendTo(n);return null!==t.targetDocument()&&e()('<div class="hidden"></div>').text(t.targetDocument()).appendTo(r),t.isHidden()?e()('<div class="hidden"></div>').text(Q.t("search.hiddenFact")).appendTo(r):t.isHTMLHidden()&&e()('<div class="hidden"></div>').text(Q.t("search.concealedFact")).appendTo(r),n}addResults(t,n,i){e()(".more-results",t).remove();for(var r=i;r<n.length;r++){if(r-i>=100){e()('<div class="more-results"></div>').text(Q.t("search.showMoreResults")).on("click",(()=>this.addResults(t,n,r))).appendTo(t);break}this.factListRow(n[r].fact).appendTo(t)}}searchSpec(){const t={};t.searchString=e()("#ixbrl-search").val(),t.visibilityFilter=e()("#search-filter-visibility").val(),t.showMandatoryFacts=e()("#search-mandatory-fact-filter").prop("checked"),t.conceptTypeFilter=e()("#search-filter-concept-type").val();for(const[n,i]of Object.entries(yc))t[n]=e()(`#${i} select`).val();const n=this._reportSet.getUsedConceptDataTypes().filter((e=>t.dataTypesFilter.includes(e.dataType.name)));return"numeric"==t.conceptTypeFilter&&n.some((t=>!t.isNumeric))||"text"==t.conceptTypeFilter&&n.some((t=>t.isNumeric))?e()("#search-filter-datatypes .datatype-conflict-warning").show():e()("#search-filter-datatypes .datatype-conflict-warning").hide(),t.factValueFilter=e()("#search-filter-fact-value").val(),t}hasActiveSearchFilters(t){return Object.keys(yc).some((e=>t[e].length>0))||"*"!==t.visibilityFilter||t.showMandatoryFacts||"*"!==t.conceptTypeFilter||"*"!==t.factValueFilter}setupSearchControls(t){const n=this;e()(".search-controls input, .search-controls select").on("change",(()=>this.search())),e()(".search-controls button.filter-toggle").on("click",(()=>e()(".search-controls").toggleClass("show-filters"))),e()(".search-controls .reset").on("click",(()=>this.resetSearchFilters())),e()(".search-controls .search-filters .reset-multiselect").on("click",(function(){e()(this).siblings().children("select option:selected").prop("selected",!1),n.search()}));for(const t of Object.keys(this._search.periods))e()("<option>").attr("value",t).text(this._search.periods[t]).appendTo("#search-filter-period select");for(const t of this._reportSet.getUsedConceptPrefixes())e()("<option>").attr("value",t).text(`${this._reportSet.preferredPrefix(t)} (${this._reportSet.prefixMap()[t]})`).appendTo("#search-filter-namespaces select");if(this._reportSet.getUsedConceptDataTypes().length>0)for(const t of this._reportSet.getUsedConceptDataTypes())e()("<option>").attr("value",t.dataType.name).text(t.dataType.label()).appendTo("#search-filter-datatypes select");else e()("#search-filter-datatypes").hide();const i=Array.from(this._reportSet.getTargetDocuments());if(1==i.length&&null==i[0])e()("#search-filter-target-document").hide();else for(const t of i)e()("<option>").attr("value",t??":default").text(t??`<${Q.t("search.default")}>`).appendTo("#search-filter-target-document select");for(const t of this._reportSet.getUsedUnits())e()("<option>").attr("value",t).text(`${this._reportSet.getUnit(t)?.label()} (${t})`).appendTo("#search-filter-units select");const r=this._getScalesOptions();for(const t of Object.keys(r).sort())e()("<option>").attr("value",t).text(r[t]).appendTo("#search-filter-scales select")}_getScalesOptions(){const t={},e=this._reportSet.getUsedScalesMap();return Object.keys(e).sort().forEach((n=>{const i=Array.from(e[n]).sort();i.length>0?t[n]=i.join(", "):t[n]=n.toString()})),t}resetSearchFilters(t){t=t??{},e()("#search-filter-period select option:selected").prop("selected",!1),e()("#search-filter-visibility").val(t.visibility??"*"),e()("#search-filter-concept-type").val("*"),e()("#search-filter-fact-value").val("*"),e()("#search-mandatory-fact-filter").prop("checked",t.mandatoryFacts??!1);for(const t of Object.values(yc))e()(`#${t} select option:selected`).prop("selected",!1);this.search()}searchReady(){this.setupSearchControls(),e()("#inspector").addClass("search-ready"),e()("#ixbrl-search").prop("disabled",!1),this.search()}search(){const t=this.searchSpec();this.hasActiveSearchFilters(t)?e()("#inspector .search-controls").addClass("active-filters"):e()("#inspector .search-controls").removeClass("active-filters");const n=this._search.search(t);if(void 0===n)return;const i=e()("#inspector .search-results .results");i.empty(),this._viewer.clearRelatedHighlighting();const r=e()("#inspector .search-results .search-overlay");n.length>0?(r.hide(),this.addResults(i,n,0)):(e()(".title",r).text(Q.t("search.noMatchFound")),e()(".text",r).text(Q.t("search.tryAgainDifferentKeywords")),r.show()),e()("#matching-facts-summary").text(Q.t("search.matchingFactsSummary",{nMatches:n.length,nTotal:this._reportSet.facts().length})),""!=t.searchString&&this._viewer.highlightRelatedFacts(n.map((t=>t.fact)));for(const t of Object.values(yc))this.updateMultiSelectSubheader(t)}updateMultiSelectSubheader(t){const n=e()(`#${t} .collapsible-subheader`),i=e()(`#${t} select option:selected`);if(1===i.length)n.text(` ${i.text()}`);else if(i.length>0){const r=e()(`#${t} select option`).length;n.text(` (${i.length}/${r} ${Q.t("search.selected")})`)}else n.empty()}updateCalculation(t,n){e()(".calculations .tree").empty().append(this._calculationHTML(t))}createSummary(){const t=e()("#inspector .summary .body");this._populateFactSummary(t),this._populateTagSummary(t),this._populateFileSummary(t),this._populateReportCreation(t)}_populateFactSummary(t){const n=this.summary.totalFacts();e()(".total-facts-value",t).text(n).on("click",(()=>{this.resetSearchFilters(),this.pushInspectorMode("search-mode","summary-mode")}));const i=this.summary.hiddenFacts();e()(".hidden-facts-value",t).text(i).on("click",(()=>{this.resetSearchFilters({visibility:"hidden"}),this.pushInspectorMode("search-mode","summary-mode")}));const r=this.summary.mandatoryFacts();r?(e()("#mandatory-facts-row").show(),e()("#mandatory-fact-filter-checkbox").show(),e()(".mandatory-facts-value",t).text(r).on("click",(()=>{this.resetSearchFilters({mandatoryFacts:!0}),this.pushInspectorMode("search-mode","summary-mode")}))):(e()("#mandatory-facts-row").hide(),e()("#mandatory-fact-filter-checkbox").hide())}_populateTagSummary(t){const n=t.find(".tag-summary-table-body"),i=this.summary.tagCounts();let r=0,o=0,s=0,a=0;for(const t of i.values())r+=t[pc],o+=t[dc],s+=t[hc],a+=t[fc];function l(t,n,i){let r=0;i>0&&(r=n/i);let o=r.toLocaleString(void 0,{style:"percent"});o=` (${o})`,e()("<td></td>").text(n).addClass("figure").append(e()("<sup></sup>").text(o)).appendTo(t)}const c=[...i.entries()].sort(((t,e)=>t[0].localeCompare(e[0])));for(const[t,i]of c){const c=e()("<tr></tr>").appendTo(n);c.append(e()("<th></th>").attr("scope","row").text(this._reportSet.preferredPrefix(t))),l(c,i[pc],r),l(c,i[dc],o),l(c,i[hc],s),l(c,i[fc],a)}const u=t.find(".tag-summary-table-footer-row");l(u,r,r),l(u,o,o),l(u,s,s),l(u,a,a)}_populateFileSummary(t){const{inline:n,schema:i,calcLinkbase:r,defLinkbase:o,labelLinkbase:s,presLinkbase:a,refLinkbase:l,unrecognizedLinkbase:c}=this.summary.getLocalDocuments(),u=t.find(".files-summary");let d=0;function h(t,n){if(0===t.length)u.find(n).hide();else{const i=u.find(n+" ul");d+=1;for(const n of t)i.append(e()("<li></li>").text(n))}}h(n,".inline-docs"),h(i,".schemas"),h(a,".pres-links"),h(r,".calc-links"),h(o,".def-links"),h(s,".label-links"),h(l,".ref-links"),h(c,".other-links"),0==d&&u.hide()}_populateReportCreation(t){const n=this.summary.getSoftwareCredits(),i=t.find(".report-creation");if(n.length>0){const t=i.find("ul");for(const i of n)t.append(e()("<li></li>").text(i))}else i.hide()}createOutline(){if(this.outline.hasOutline()){e()(".outline .no-outline-overlay").hide();const t=e()('<div class="fact-list"></div>').appendTo(e()(".outline .body"));for(const n of this.outline.sortedSections())e()('<button class="fact-list-item"></button>').text(n.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).on("dblclick",(()=>e()("#inspector").removeClass("outline-mode"))).on("mousedown",(t=>{t.detail>1&&t.preventDefault()})).appendTo(t)}}updateOutline(t){e()(".fact-groups").empty();for(const n of this.outline.groupsForFact(t))e()('<button class="fact-list-item"></button>').text(t.report.getRoleLabelOrURI(n.elr)).on("click",(()=>this.selectItem(n.fact.vuid))).appendTo(e()(".fact-groups"))}updateFootnotes(t){e()(".footnotes").empty().append(this._footnotesHTML(t)),t.linkedFacts.length>0?e()("#inspector .footnote-facts-section").show().find(".footnote-facts").empty().append(this._footnoteFactsHTML(t)):e()("#inspector .footnote-facts-section").hide()}_anchorList(t,n){const i=e()("<ul></ul>");if(n.length>0)for(const r of n){const n=t.report.getAlignedFacts(t,{c:r}),o=t.report.getLabelAndLang(r,"std",!0);e()("<li></li>").appendTo(i).append(this.factLinkHTML(o,n))}else e()("<li></li>").append(e()("<i></i>").text(Q.t("common.none"))).appendTo(i);return i}updateAnchoring(t){this._reportSet.usesAnchoring()?(e()(".anchoring").show(),e()(".anchoring .collapsible-body .anchors-wider").empty().append(this._anchorList(t,t.widerConcepts())),e()(".anchoring .collapsible-body .anchors-narrower").empty().append(this._anchorList(t,t.narrowerConcepts()))):e()(".anchoring").hide()}labelRoleSort([t,e,n],[i,r,o]){const s=["std","doc"].reverse(),a=s.indexOf(t),l=s.indexOf(i);return a!=l?l-a:e.localeCompare(r)}updateLabels(t){const n=e()("div.labels").empty(),i=e()("<dl></dl>").appendTo(n);for(const[n,r,o]of Object.entries(t.concept().labels()).map((([e,n])=>[e,t.report.getLabelRoleLabel(e),n])).sort(this.labelRoleSort))e()("<dt></dt>").text(r).appendTo(i),e()("<dd></dd>").text(o).appendTo(i);return i}_referencesHTML(t){const n=new $l;for(const[i,r]of t.concept().references().entries()){const t=e()("<span></span>").text(r[0].value),o=e()('<table class="fact-properties"><tbody></tbody></table>'),s=o.find("tbody");for(const t of r){const n=e()("<tr>").append(e()("<th></th>").text(Q.t(`referenceParts:${t.part}`,{defaultValue:t.part}))).append(e()("<td></td>").text(t.value)).appendTo(s);"URI"==t.part&&(n.addClass("uri"),n.find("td").wrapInner(e()("<a>").attr("href",t.value)))}n.addCard(t,o,0==i)}return n.contents()}_calculationHTML(t,n){const i=new ic(t,this._useCalc11);if(!i.hasCalculations())return"";const r=this._viewer.factsInSameTable(t),o=i.bestELRForFactSet(r),s=t.report,a=new $l;for(const n of i.resolvedCalculations()){const i=s.getRoleLabelOrURI(n.elr),r=e()("<div></div>"),l=e()("<table></table>").addClass("calculation-table").appendTo(r);for(const t of n.rows){const n=e()("<tr></tr>").addClass("item").append(e()("<td></td>").addClass("weight").text(t.weightSign)).append(e()("<td></td>").addClass("concept-name").text(t.concept.label())).append(e()("<td></td>").addClass("value")).appendTo(l);t.facts.isEmpty()||(n.addClass("calc-fact-link"),n.find(".concept-name").contents().wrap(e()("<button></button>").addClass("inline-button")),n.data("ivids",t.facts.items().map((t=>t.vuid))),n.on("click",(()=>this.selectItem(t.facts.items()[0].vuid))),n.on("mouseenter",(()=>t.facts.items().forEach((t=>this._viewer.linkedHighlightFact(t))))),n.on("mouseleave",(()=>t.facts.items().forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),t.facts.items().forEach((t=>this._viewer.highlightRelatedFact(t))),n.find(".value").text(t.facts.mostPrecise().readableValue()))}e()("<tr></tr>").addClass("item").addClass("total").append(e()("<td></td>").addClass("weight")).append(e()("<td></td>").addClass("concept-name").text(t.concept().label())).append(e()("<td></td>").addClass("value").text(t.readableValue())).appendTo(l);const c=e()("<span></span>"),u=e()("<span></span>").append(c).append(e()("<span></span>").text(i)),d=e()("<span></span>"),h=e()("<button></button>").addClass("calculation-details-link").attr("title",Q.t("factDetails.viewCalculationDetails")).text("details").on("click",(t=>{const e=new lc;e.displayCalculation(n),e.show(),t.stopPropagation()}));e()("<p></p>").append(d).append(e()("<span></span>").text(" (")).append(h).append(e()("<span></span>").text(")")).appendTo(r),n.binds()?n.isConsistent()?(c.addClass("consistent-flag").attr("title",Q.t("factDetails.calculationIsConsistent")),d.text(Q.t("factDetails.calculationIsConsistent"))):(c.addClass("inconsistent-flag").attr("title",Q.t("factDetails.calculationIsInconsistent")),d.text(Q.t("factDetails.calculationIsInconsistent"))):n.unchecked()&&(c.addClass("unchecked-flag").attr("title",Q.t("factDetails.calculationUnchecked")),n.uncheckedDueToVersionMismatch()?d.text(Q.t("factDetails.calculationUncheckedIncorrectVersion")):d.text(Q.t("factDetails.calculationUnchecked"))),a.addCard(u,r,n.elr==o)}return a.contents()}_footnotesHTML(t){const n=e()("<div></div>").addClass("fact-list");for(const i of t.footnotes())i instanceof un?e()("<button></button>").addClass("block-list-item").text(Ge(i.textContent(),120)).on("mouseenter",(()=>this._viewer.linkedHighlightFact(i))).on("mouseleave",(()=>this._viewer.clearLinkedHighlightFact(i))).on("click",(()=>this.selectItem(i.vuid))).appendTo(n):i instanceof cn&&n.append(this.factListRow(i));return n}viewerMouseEnter(t){e()(".calculations .item").filter(((n,i)=>(e()(i).data("ivids")??[]).includes(t))).addClass("linked-highlight"),e()("#inspector .search .results tr").filter(((n,i)=>e()(i).data("ivid")==t)).addClass("linked-highlight")}viewerMouseLeave(t){e()(".calculations .item").removeClass("linked-highlight"),e()("#inspector .search .results tr").removeClass("linked-highlight")}describeChange(t,e){if(e.value()>0==t.value()>0&&Math.abs(t.value())+Math.abs(e.value())>0){const n=100*(e.value()-t.value())/t.value();let i=0;return i=n>=0?Q.t("factDetails.changePercentageIncrease",{increase:Ze(n,1)}):Q.t("factDetails.changePercentageDecrease",{decrease:Ze(-1*n,1)}),i}return Q.t("factDetails.changeFromIn",{from:t.readableValue()})}factLinkHTML(t,n){const i=e()("<span></span>");return this._setLabelWithLang(i,t),n.length>0&&i.addClass("fact-link").on("click",(()=>this.selectItem(n[0].vuid))).on("mouseenter",(()=>n.forEach((t=>this._viewer.linkedHighlightFact(t))))).on("mouseleave",(()=>n.forEach((t=>this._viewer.clearLinkedHighlightFact(t))))),i}getPeriodIncrease(t){let n="";if(t.isNumeric()){const r=t.report.getAlignedFacts(t,{p:null});var i;if(t.periodTo())for(const e of r)e.periodTo()&&e.periodTo()<t.periodTo()&&(!i||e.periodTo()>i.periodTo())&&t.isEquivalentDuration(e)&&(i=e);if(i){const r=t.report.getAlignedFacts(i);n=e()("<span></span>").text(this.describeChange(i,t)).append(this.factLinkHTML({label:i.periodString()},r))}else n=e()("<i>").text(Q.t("factDetails.noPriorFactInThisReport"))}else n=e()("<i>").text("n/a").attr("title",Q.t("factDetails.nonNumericFact"));e()(".fact-properties tr.change td").html(n)}_updateValue(t,n,i){const r=t.readableValue(),o=e()("tr.value",i);let s=r;if(n)o.removeClass("truncated");else{const e=He(r,120);e.length>1?(o.addClass("truncated"),o.find(".show-all").off("click").on("click",(()=>this._updateValue(t,!0,i)))):o.removeClass("truncated"),s=e[0]}nc.canRender(t)?o.addClass("text-block").find(".expand-text-block").off().on("click",(()=>this.showTextBlock(t))):o.removeClass("text-block");const a=o.find("td .value").empty().text(s);t instanceof cn&&(t.isNil()||t.isInvalidIXValue())&&a.wrapInner("<i></i>")}showTextBlock(t){const e=new nc(t);e.displayTextBlock(),e.show()}_updateDataType(t,n){const i=t.concept()?.dataType();void 0!==i?e()("tr.datatype td",n).text(i.label()):e()("tr.datatype",n).hide()}_updateBalance(t,n){const i=t.concept()?.balance();void 0!==i?e()("tr.balance td",n).text(i.label()):e()("tr.balance",n).hide()}_updateConcept(t,n){e()("tr.concept td",n).find(".text").text(t.conceptDisplayName()).attr("title",t.conceptDisplayName()).end().find(".clipboard-copy").data("cb-text",t.conceptDisplayName()).end()}_updateEntityIdentifier(t,n){e()("tr.entity-identifier td",n).empty().append(rn.readableNameHTML(t.identifier()))}_footnoteFactsHTML(t){const n=e()("<div></div>");return t.linkedFacts.forEach((t=>{n.append(this.factListRow(t))})),n}_setLabelWithLang(t,e){return t.removeAttr("lang"),void 0!==e.label?(t.text(e.label),void 0!==e.lang&&t.attr("lang",e.lang)):t.text(""),t}_selectionSummaryAccordian(){const t=this._currentItem,i=new $l({onSelect:t=>this.switchItem(t),alwaysOpen:!0,dissolveSingle:!0}),r=new tc(this._currentItemList);for(const o of this._currentItemList){let s;const a=r.minimallyUniqueLabel(o);if(o instanceof cn){s=e()(n(793)),this._setLabelWithLang(e()(".std-label",s),o.getLabelOrNameAndLang("std",!0)),this._setLabelWithLang(e()(".documentation",s),o.getLabelAndLang("doc")),this._updateConcept(o,s),e()("tr.period td",s).text(o.periodString()),o.isNumeric()&&e()("tr.period td",s).append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,["p"])))),this._updateDataType(o,s),this._updateBalance(o,s),this._updateEntityIdentifier(o,s),this._updateValue(o,!1,s);const t=e()("tr.accuracy td",s).empty().append(o.readableAccuracy());o.isNumeric()&&!o.isNil()||t.wrapInner("<i></i>");const i=e()("tr.scale td",s).empty().append(o.readableScale());o.isNumeric()&&!o.isNil()||i.wrapInner("<i></i>"),e()("#dimensions",s).empty();const r=o.aspects().filter((t=>t.isTaxonomyDefined()));0===r.length&&e()("#dimensions-label",s).hide();for(const t of r){const n=this._setLabelWithLang(e()('<div class="dimension"></div>'),t.labelOrNameAndLang()).appendTo(e()("#dimensions",s));o.isNumeric()&&n.append(e()("<button></button>").addClass(["analyse","inline-button"]).attr("title",Q.t("inspector.showAnalysisChart")).text("").on("click",(()=>this.analyseDimension(o,[t.name()]))));const i=this._setLabelWithLang(e()('<div class="dimension-value"></div>'),t.valueLabelAndLang()).appendTo(n);t.isNil()&&i.wrapInner("<i></i>")}}else o instanceof un&&(s=e()(n(643)),this._updateValue(o,!1,s));i.addCard(a,s,o.vuid==t.vuid,o.vuid)}return i}analyseDimension(t,e){(new ql).analyseDimension(t,e)}toggleTooltip(t){e()("#tooltip").hasClass("show")?this.hideTooltip():this.showTooltip(t)}showTooltip(t,n){t.closest(".has-tooltip").attr("aria-describedby","tooltip"),e()("#tooltip .tooltip-text").text(Q.t(`tooltips:${t.data("tooltip-name")}`)),e()("#tooltip").addClass(n?"hover-show":"show");const i=t.data("tooltip-glossary-link");if(i){e()("#tooltip").addClass("with-glossary-link");const t=new URL("https://xbrl.org/glossary/");"string"==typeof i&&i.startsWith("#")&&(t.hash=i),e()("#tooltip .glossary-link a").attr("href",t.href)}else e()("#tooltip").removeClass("with-glossary-link");this.positionTooltip(t)}hideTooltip(t){const n=e()("#tooltip");n.removeClass(t?"hover-show":"show"),n.hasClass("hover-show")||n.hasClass("show")||e()(".has-tooltip").removeAttr("aria-describedby")}positionTooltip(t){const n=t.offset(),i=document.documentElement.clientWidth,r=i-Math.min(i-30,n.left+300),o=Math.min(i-300,n.left);e()("#tooltip").css("inset","").css("position","fixed").css("left",o).css("right",r).css("top",n.top+30),e()("#tooltip").get(0).getBoundingClientRect().bottom>document.documentElement.clientHeight&&e()("#tooltip").css("top","").css("bottom",30)}update(){const t=this._currentItem;if(t){if(e()("#inspector").removeClass("no-fact-selected").removeClass("hidden-fact").removeClass("html-hidden-fact"),e()("#inspector .fact-inspector").empty().append(this._selectionSummaryAccordian().contents()),t instanceof cn){e()("#inspector").removeClass("footnote-mode"),this.updateCalculation(t),this.updateOutline(t),this.updateFootnotes(t),this.updateAnchoring(t),e()("div.references").empty().append(this._referencesHTML(t)),this.updateLabels(t),e()("#inspector .search-results .fact-list-item").removeClass("selected"),e()("#inspector .search-results .fact-list-item").filter(((n,i)=>e()(i).data("ivid")==t.vuid)).addClass("selected");const i=t.duplicates();let r=0;const o=i.length;for(var n=0;n<o;n++)t.vuid==i[n].vuid&&(r=n);e()(".duplicates .text").text(Q.t("factDetails.duplicatesCount",{current:r+1,total:o})),e()(".duplicates .prev").off().on("click",(()=>{this.selectItem(i[(r+o-1)%o].vuid),e()(".duplicates .prev").get(0).focus()})),e()(".duplicates .next").off().on("click",(()=>{this.selectItem(i[(r+1)%o].vuid),e()(".duplicates .next").get(0).focus()})),this.getPeriodIncrease(t),t.isHidden()?e()("#inspector").addClass("hidden-fact"):t.isHTMLHidden()&&e()("#inspector").addClass("html-hidden-fact");const s=t.targetDocument();null!==s?e()("#inspector .target-document-tag").text(s).show():e()("#inspector .target-document-tag").hide()}else t instanceof un&&(e()("#inspector").addClass("footnote-mode"),e()("#inspector .footnote-details .footnote-facts").empty().append(this._footnoteFactsHTML(t)));e()(".fact-details").localize()}else e()("#inspector").removeClass("footnote-mode"),e()("#inspector").addClass("no-fact-selected");this.updateURLFragment()}selectItem(t,e,n,i){if(void 0===e)this._currentItemList=[this._reportSet.getItemById(t)];else{this._currentItemList=[];for(const t of e)this._currentItemList.push(this._reportSet.getItemById(t))}this.switchItem(t,n),i||this.inspectorMode(void 0)}switchItem(t,e){null!==t?(this._currentItem=this._reportSet.getItemById(t),e||this._viewer.showItemById(t),this._viewer.highlightItem(t)):(this._currentItem=null,this._viewer.clearHighlighting()),this.update()}preferredLanguages(){const t=new URLSearchParams(window.location.search);if(t.has("lang"))return[t.get("lang")];const e=window.navigator.languages||[window.navigator.language||window.navigator.userLanguage];return 0!=e.length&&e[0]?e:["en"]}selectDefaultLanguage(){const t=this._reportSet.availableLanguages();for(const e of this.preferredLanguages())for(const n of t)if(n.toLowerCase()==e.toLowerCase())return n;return this._reportSet.availableLanguages()[0]}setDocumentLanguage(t){this._viewerOptions.language=t}showValidationReport(){const t=new ec;t.displayErrors(this._reportSet.validation()),t.show()}setupValidationReportIcon(){this._reportSet.hasValidationErrors()&&e()("#ixv .validation-warning").show().on("click",(()=>this.showValidationReport()))}showValidationWarning(){if(this._reportSet.hasValidationErrors()){const t=e()("<div></div>").append("<p>This report contains <b>XBRL validation errors</b>. These errors may prevent this document from opening correctly in other XBRL software.</p>");new tr("Validation errors",t,"View Details","Dismiss").show((()=>this.showValidationReport()))}}}const wc=new Set([void 0,null,"","false",!1]);class Ac{constructor(t){this._staticFeatures={},this._dynamicFeatures={},this._plugins=[],this.inspector=new bc(this),this.viewer=null,t=t||{},this.options={continuationElementLimit:1e4,showValidationWarningOnStart:!1,...t}}registerPlugin(t){this._plugins.push(t)}callPluginMethod(t,...e){for(const n of this._plugins)"function"==typeof n[t]&&n[t](...e)}pluginPromise(t,...e){return new Promise(((n,i)=>{(async()=>{for(const n of this._plugins)"function"==typeof n[t]&&await n[t](...e)})().then((()=>{n()}))}))}setFeatures(t,e){this._staticFeatures={};for(const[e,n]of Object.entries(t))this._staticFeatures[e]=n;const n=new URLSearchParams(e);this._dynamicFeatures={},n.forEach(((t,e)=>{if(""===t){if(void 0!==this._dynamicFeatures[e])return;t="true"}this._dynamicFeatures[e]=t}))}getStaticFeatureValue(t){return this._staticFeatures[t]}getFeatureValue(t){return this._dynamicFeatures[t]?this._dynamicFeatures[t]:this.getStaticFeatureValue(t)}isFeatureEnabled(t){return!wc.has(this.getFeatureValue(t))}isStaticFeatureEnabled(t){return!wc.has(this.getStaticFeatureValue(t))}isReviewModeEnabled(){return this.isFeatureEnabled("review")}getGuideLinkUrl(){return this.isStaticFeatureEnabled(ze)?this.resolveRelativeUrl(this.getStaticFeatureValue(ze)):null}getSupportLinkUrl(){return this.isStaticFeatureEnabled(Pe)?this.resolveRelativeUrl(this.getStaticFeatureValue(Pe)):null}getSurveyLinkUrl(){return this.isStaticFeatureEnabled(Ye)?this.resolveRelativeUrl(this.getStaticFeatureValue(Ye)):null}isViewerEnabled(){return"false"===(new URLSearchParams(window.location.search).get("disable-viewer")??"false")}resolveRelativeUrl(t){return void 0===this.options.configUrl?t:new URL(t,this.options.configUrl.href).href}_loadInspectorHTML(){const t=this.runtimeConfig.skin?.footerLogoHtml??n(523);e()(n(87)).prependTo("body").find("#footer-logo").html(t);const i=n(864).toString();e()('<style id="ixv-style"></style>').prop("type","text/css").text(i).appendTo("head"),void 0!==this.runtimeConfig.skin?.stylesheetUrl&&e()('<link rel="stylesheet" id="ixv-style-skin" />').attr("href",this.resolveRelativeUrl(this.runtimeConfig.skin.stylesheetUrl)).appendTo("head");const r=void 0!==this.runtimeConfig.skin?.faviconUrl?this.resolveRelativeUrl(this.runtimeConfig.skin.faviconUrl):n(285);e()('<link id="ixv-favicon" type="image/x-icon" rel="shortcut icon" />').attr("href",r).appendTo("head");try{e()(".inspector-foot .version").text("1.4.47")}catch(t){}}_reparentDocument(){const t=e()("#ixv #iframe-container"),n=e()('<iframe title="iXBRL document view" tabindex="0"/>').data("report-index",0).appendTo(t)[0],i=n.contentDocument||n.contentWindow.document;i.open(),i.write("<!DOCTYPE html><html><head><title></title></head><body></body></html>"),i.close();let r=e()("title").text();r=""!=r?"Inline Viewer - "+r:"Inline Viewer",void 0===e()("html").attr("lang")&&e()("html").attr("lang","en-US"),e()("head").children().not("script, style#ixv-style, link#ixv-style-skin, link#ixv-favicon").appendTo(e()(n).contents().find("head")),e()("<title>").text(r).appendTo(e()("head")),e()("body script").appendTo(e()("body"));const o=e()(n).contents().find("body");e()("body").children().not("script").not("#ixv").not(t).appendTo(o);for(const t of[...e()("body").prop("attributes")])o.attr(t.name,t.value),e()("body").removeAttr(t.name);return e()("body").removeAttr("style"),n}_getTaxonomyData(){for(let t=document.body.children.length-1;t>=0;t--){const e=document.body.children[t];if("SCRIPT"==e.tagName.toUpperCase()&&"application/x.ixbrl-viewer+json"==e.getAttribute("type"))return e.innerHTML}return null}_checkDocumentSetBrowserSupport(){"file:"==document.location.protocol&&alert("Displaying iXBRL document sets from local files is not supported. Please view the viewer files using a web server.")}_loadRuntimeConfig(){return new Promise(((t,e)=>{void 0===this.options.configUrl?t({}):fetch(this.options.configUrl).then((t=>404==t.status?Promise.resolve({}):200!=t.status?Promise.reject("Fetch failed: "+t.status):t.json())).then((e=>{t(e)})).catch((e=>{console.log(e),t({})}))}))}load(){const t=this,n=this.inspector;this._loadRuntimeConfig().then((i=>{this.runtimeConfig=i,function(){const t=localStorage.getItem(Ue);Jl(null!==t?t:window.matchMedia(`(prefers-color-scheme: ${Hl})`).matches?Hl:Gl)}();const o=e()("body").hasClass("ixv-stub-viewer");if(!t.isViewerEnabled()&&!o)return;t._loadInspectorHTML();let s=e()();const a=t._getTaxonomyData(),l=a&&JSON.parse(a);let c=l&&l.features;c?Array.isArray(c)&&(c=c.reduce(((t,e)=>(t[e]=!0,t)),{})):c={},void 0!==this.runtimeConfig.features&&(c={...this.runtimeConfig.features,features:c}),t.setFeatures(c,window.location.search);const u=new mn(l);if(u.taxonomyNamer=new fn(new Map(Object.entries(this.runtimeConfig.taxonomyNames??{}))),!t.isViewerEnabled())return void window.location.replace(u.reportFiles()[0].file);if(null===l)return e()("#ixv .loader .text").text("Error: Could not find viewer data"),void e()("#ixv .loader").removeClass("loading");o||(s=e()(t._reparentDocument()));const d=u.reportFiles();let h=!1;for(let t=o?0:1;t<d.length;t++){const n=e()('<iframe tabindex="0" />').attr("src",d[t].file).data("report-index",d[t].index).appendTo("#ixv #iframe-container");s=s.add(n),h=!0}h&&t._checkDocumentSetBrowserSupport();const p=o?"Loading iXBRL Report":"Loading iXBRL Viewer";t.setProgress(p).then((()=>{let i=setInterval((function(){let o=!0;if(s.each((function(t){const n=this,i=n.contentDocument||n.contentWindow.document;("complete"!=i.readyState&&"interactive"!=i.readyState||0==e()(n).contents().find("body").children().length)&&(o=!1)})),o){clearInterval(i);const o=t.viewer=new ir(t,s,u);o.initialize().then((()=>n.initialize(u,o))).then((()=>{r()("#viewer-pane").resizable({edges:{left:!1,right:".resize",bottom:!1,top:!1},restrictEdges:{outer:"parent",endOnly:!0},restrictSize:{min:{width:100}}}).on("resizestart",(()=>e()("#ixv").css("pointer-events","none"))).on("resizemove",(t=>{const n=t.target,i=100*t.rect.width/e()(n).parent().width();n.style.width=i+"%",e()("#inspector").css("width",100-i+"%")})).on("resizeend",(t=>e()("#ixv").css("pointer-events","auto"))),e()("#ixv .loader").remove(),t.options.showValidationWarningOnStart&&n.showValidationWarning(),o.postLoadAsync(),n.postLoadAsync()})).catch((t=>{if(!(t instanceof er))throw t;e()("#ixv .loader").remove(),e()("#inspector").addClass("failed-to-load")}))}}),250)}))}),0)}setProgress(t){return new Promise(((n,i)=>{window.requestAnimationFrame((function(){console.log(`%c [Progress] ${t} `,"background: #77d1c8; color: black;"),e()("#ixv .loader .text").text(t),window.requestAnimationFrame((()=>n()))}))}))}}const xc=document.currentScript.src;e()((()=>{const t={showValidationWarningOnStart:!0},e=new URL("ixbrlviewer.config.json",xc);"file:"!=e.protocol&&(t.configUrl=e),new Ac(t).load()}))})()})();