pseudo-dom 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +903 -43
- package/browser/pseudo-dom.js +1489 -376
- package/browser/pseudo-dom.min.js +1 -1
- package/dist/classes/PseudoEventListener.d.ts +25 -25
- package/dist/classes/PseudoEventListener.js +37 -34
- package/dist/classes/PseudoEventListener.min.js +1 -1
- package/dist/factories/createEvent.d.ts +28 -0
- package/dist/factories/createEvent.js +56 -0
- package/dist/factories/createEvent.min.js +1 -0
- package/dist/factories/eventDefaults.d.ts +31 -0
- package/dist/factories/eventDefaults.js +105 -0
- package/dist/factories/eventDefaults.min.js +1 -0
- package/dist/factories.d.ts +6 -0
- package/dist/factories.js +5 -1
- package/dist/factories.min.js +1 -1
- package/dist/functions/activeElement.d.ts +14 -0
- package/dist/functions/activeElement.js +33 -0
- package/dist/functions/activeElement.min.js +1 -0
- package/dist/functions/modifierState.d.ts +29 -0
- package/dist/functions/modifierState.js +41 -0
- package/dist/functions/modifierState.min.js +1 -0
- package/dist/interfaces/PseudoEventTarget.d.ts +2 -2
- package/dist/main.d.ts +32 -1
- package/dist/main.js +66 -1
- package/dist/main.min.js +1 -1
- package/dist/services/CustomEventService.d.ts +37 -0
- package/dist/services/CustomEventService.js +35 -0
- package/dist/services/CustomEventService.min.js +1 -0
- package/dist/services/ElementService.d.ts +1 -0
- package/dist/services/ElementService.js +17 -10
- package/dist/services/ElementService.min.js +1 -1
- package/dist/services/EventService.d.ts +18 -4
- package/dist/services/EventService.js +65 -31
- package/dist/services/EventService.min.js +1 -1
- package/dist/services/EventTargetService.d.ts +41 -9
- package/dist/services/EventTargetService.js +121 -52
- package/dist/services/EventTargetService.min.js +1 -1
- package/dist/services/FocusEventService.d.ts +32 -0
- package/dist/services/FocusEventService.js +35 -0
- package/dist/services/FocusEventService.min.js +1 -0
- package/dist/services/HTMLElementService.d.ts +20 -0
- package/dist/services/HTMLElementService.js +95 -0
- package/dist/services/HTMLElementService.min.js +1 -1
- package/dist/services/InputEventService.d.ts +41 -0
- package/dist/services/InputEventService.js +47 -0
- package/dist/services/InputEventService.min.js +1 -0
- package/dist/services/KeyboardEventService.d.ts +70 -0
- package/dist/services/KeyboardEventService.js +86 -0
- package/dist/services/KeyboardEventService.min.js +1 -0
- package/dist/services/MouseEventService.d.ts +80 -0
- package/dist/services/MouseEventService.js +108 -0
- package/dist/services/MouseEventService.min.js +1 -0
- package/dist/services/PointerEventService.d.ts +51 -0
- package/dist/services/PointerEventService.js +67 -0
- package/dist/services/PointerEventService.min.js +1 -0
- package/dist/services/UIEventService.d.ts +43 -0
- package/dist/services/UIEventService.js +42 -0
- package/dist/services/UIEventService.min.js +1 -0
- package/dist/simulate.d.ts +32 -0
- package/dist/simulate.js +115 -0
- package/dist/simulate.min.js +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function e(t,n,r){function i(o,a){if(!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const r=e("../services/EventService");n.default=class{constructor(e,{capture:t=!1,once:n=!1,passive:r=!1}={},i,s=i){this.eventOptions={capture:!1,once:!1,passive:!1},this.eventType="",this.defaultListener=!1,this.eventOptions={capture:t,once:n,passive:r},this.eventType=e,this.handler=i,this.originalCallback=s}get callback(){return this.originalCallback}get isDefault(){return this.defaultListener}get once(){return this.eventOptions.once}handleEvent(e){return this.handler(e)}doCapturePhase(e){return e.eventPhase===r.EventService.CAPTURING_PHASE&&this.eventOptions.capture}doTargetPhase(e){return e.eventPhase===r.EventService.AT_TARGET}doBubblePhase(e){return e.eventPhase===r.EventService.BUBBLING_PHASE&&(e.bubbles||!this.eventOptions.capture)}skipPhase(e){return!this.doCapturePhase(e)&&!this.doTargetPhase(e)&&!this.doBubblePhase(e)}skipDefault(e){return this.isDefault&&e.defaultPrevented}stopPropagation(e){return!this.doTargetPhase(e)&&e.inner.propagationStopped}nonPassiveHalt(e){return!this.eventOptions.passive&&(this.skipDefault(e)||e.inner.immediatePropagationStopped||this.stopPropagation(e))}rejectEvent(e){return this.nonPassiveHalt(e)||this.skipPhase(e)}}},{"../services/EventService":12}],2:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const r=e("../services/HTMLElementService");class i extends r.HTMLElementService{constructor(){super();const e=new r.HTMLElementService({tagName:"html"});this.appendChild(e),this.head=new r.HTMLElementService({tagName:"head"}),e.appendChild(this.head),this.body=new r.HTMLElementService({tagName:"body"}),e.appendChild(this.body)}createElement(e="div"){return new r.HTMLElementService({tagName:e})}}n.default=i},{"../services/HTMLElementService":14}],3:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.PseudoNodeList=void 0;const r=e("collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList");class i extends r.LinkedTreeList{[Symbol.iterator](){let e=this.first;return{next:()=>{if(null===e)return{done:!0,value:void 0};const t={done:!1,value:e.data};return e=e.next,t}}}entries(){return Array.from(this).map((e,t)=>[t,e])[Symbol.iterator]()}keys(){return Array.from(this).map((e,t)=>t)[Symbol.iterator]()}values(){return Array.from(this)[Symbol.iterator]()}}n.PseudoNodeList=i},{"collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList":23,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.map.js":134}],4:[function(e,t,n){"use strict";const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=r(e("../services/EventTargetService")),s=e("../services/NodeService"),o=e("../services/ElementService"),a=e("../services/HTMLElementService"),l=r(e("../classes/PseudoHTMLDocument"));n.default=(e,t={})=>{const n=void 0===e.document?e:new i.default,r=e.Node||new s.NodeService;void 0===n.Node&&(n.Node=r);const c=e.Element||new o.ElementService;void 0===n.Element&&(n.Element=c);const u=e.HTMLElement||new a.HTMLElementService;void 0===n.HTMLElement&&(n.HTMLElement=u);const h=e.document||new l.default;return void 0===n.document&&(n.document=h),t?Object.assign(t,n):Object.assign(e,n)}},{"../classes/PseudoHTMLDocument":2,"../services/ElementService":11,"../services/EventTargetService":13,"../services/HTMLElementService":14,"../services/NodeService":16}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});const r=e("../classes/PseudoNodeList");n.default=(e=null)=>(new r.PseudoNodeList).initialize(e)},{"../classes/PseudoNodeList":3}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.default=e=>{const t=[];let n=e&&e.parentNode?e.parentNode:null;for(;n;)t.unshift(n),n=n.parentNode;return t}},{}],7:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js");const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=r(e("./getParentNodes"));n.default=(e,t,n)=>(0,i.default)(n).filter(n=>(n[e]||!1)===t)},{"./getParentNodes":6,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.filter.js":131}],8:[function(e,t,n){"use strict";const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.PseudoHTMLDocument=n.PseudoHTMLElement=n.PseudoElement=n.PseudoNode=n.PseudoEventTarget=n.PseudoEvent=n.generateDocument=void 0;const i=e("./services/EventService");Object.defineProperty(n,"PseudoEvent",{enumerable:!0,get:function(){return i.EventService}});const s=r(e("./services/EventTargetService"));n.PseudoEventTarget=s.default;const o=e("./services/NodeService");Object.defineProperty(n,"PseudoNode",{enumerable:!0,get:function(){return o.NodeService}});const a=e("./services/ElementService");Object.defineProperty(n,"PseudoElement",{enumerable:!0,get:function(){return a.ElementService}});const l=e("./services/HTMLElementService");Object.defineProperty(n,"PseudoHTMLElement",{enumerable:!0,get:function(){return l.HTMLElementService}});const c=r(e("./classes/PseudoHTMLDocument"));n.PseudoHTMLDocument=c.default;const u=r(e("./factories/generateDocument"));n.generateDocument=u.default;const h={generateDocument:u.default,PseudoEvent:i.EventService,PseudoEventTarget:s.default,PseudoNode:o.NodeService,PseudoElement:a.ElementService,PseudoHTMLElement:l.HTMLElementService,PseudoHTMLDocument:c.default};n.default=h,"undefined"!=typeof window&&(window.pseudoDom=h)},{"./classes/PseudoHTMLDocument":2,"./factories/generateDocument":4,"./services/ElementService":11,"./services/EventService":12,"./services/EventTargetService":13,"./services/HTMLElementService":14,"./services/NodeService":16}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.AttrService=void 0;const r=e("./NodeService");class i extends r.NodeService{constructor(e="",t="",n=null,r="",i=null){super(),this.attributeName=e,this.value=t,this.element=n,this.namespace=r,this.namespacePrefix=i,this.nodeNameValue=e}get nodeType(){return r.NodeService.ATTRIBUTE_NODE}get localName(){return this.attributeName}get name(){return this.namespacePrefix?`${this.namespacePrefix}:${this.attributeName}`:this.attributeName}get namespaceURI(){return this.namespace}get ownerElement(){return this.element}get prefix(){return this.namespacePrefix}}n.AttrService=i},{"./NodeService":16}],10:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.DOMTokenListService=void 0;class r{constructor(e="",t=()=>{}){this.tokens=r.parse(e),this.onChange=t}static parse(e){return(e||"").split(/\s+/).filter((e,t,n)=>""!==e&&n.indexOf(e)===t)}update(e){this.tokens=e,this.onChange(this.value)}static validate(e){if(""===e)throw new SyntaxError("The token provided must not be empty.");if(/\s/.test(e))throw new Error("The token provided contains whitespace.")}get length(){return this.tokens.length}get value(){return this.tokens.join(" ")}set value(e){this.update(r.parse(e))}item(e){return e>=0&&e<this.tokens.length?this.tokens[e]:null}contains(e){return this.tokens.indexOf(e)>=0}add(...e){e.forEach(r.validate),this.update(this.tokens.concat(e).filter((e,t,n)=>n.indexOf(e)===t))}remove(...e){e.forEach(r.validate),this.update(this.tokens.filter(t=>e.indexOf(t)<0))}replace(e,t){return r.validate(e),r.validate(t),!!this.contains(e)&&(this.update(this.tokens.map(n=>n===e?t:n).filter((e,t,n)=>n.indexOf(e)===t)),!0)}supports(e){throw new TypeError(`Failed to execute 'supports' on 'DOMTokenList': DOMTokenList has no supported tokens (${e}).`)}toggle(e,t){r.validate(e);const n="boolean"==typeof t?t:!this.contains(e);return n?this.add(e):this.remove(e),n}entries(){return this.tokens.map((e,t)=>[t,e])[Symbol.iterator]()}forEach(e,t){this.tokens.forEach((n,r)=>e.call(t,n,r,this))}keys(){return this.tokens.map((e,t)=>t)[Symbol.iterator]()}values(){return this.tokens.slice()[Symbol.iterator]()}}n.DOMTokenListService=r},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.filter.js":131,"core-js/modules/esnext.iterator.for-each.js":133,"core-js/modules/esnext.iterator.map.js":134}],11:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),e("core-js/modules/esnext.iterator.some.js");const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.ElementService=void 0;const i=e("./NodeService"),s=e("./AttrService"),o=e("./DOMTokenListService"),a=e("./NamedNodeMapService"),l=r(e("../functions/getParentNodesFromAttribute"));class c extends i.NodeService{constructor({tagName:e="",attributes:t=[],parent:n=null,children:r=[]}={}){super(),this.tokenList=new o.DOMTokenListService,this.tag=e,this.attributeList=t.concat([{name:"className",value:""},{name:"id",value:""},{name:"innerHTML",value:""}]),this.propertyAttributes=this.attributeList.map(({name:e})=>e),this.attributeList.forEach(({name:e,value:t})=>{this[e]=t}),r.forEach(e=>{if(!e||"number"!=typeof e.nodeType)throw new TypeError("The children of an element must be nodes.");this.appendChild(e)}),n&&n.appendChild(this)}get tagName(){return this.tag}get nodeType(){return i.NodeService.ELEMENT_NODE}get attributes(){return new a.NamedNodeMapService(this.attributeList.map(({name:e,value:t})=>new s.AttrService(e,String(t),this)))}get classList(){return this.tokenList}get className(){return this.tokenList.value}set className(e){this.tokenList.value=e}applyDefaultEvent(){let e=e=>{};switch(this.tagName){case"form":this.addEventListener("submit",e);break;case"button":case"input":/^(submit|image)$/i.test(this.type||"")&&(e=e=>{const t=(0,l.default)("tagName","form",this);t.length&&t[0].submit()},super.setDefaultEvent("click",e))}return e}childInserted(e){"function"==typeof e.applyDefaultEvent&&e.applyDefaultEvent()}hasAttribute(e){return this.attributeList.some(({name:t})=>t===e)}setAttribute(e,t){const n=this.attributeList.find(({name:t})=>t===e);n?n.value=t:this.attributeList.push({name:e,value:t}),this.propertyAttributes.indexOf(e)>=0&&(this[e]=t)}getAttribute(e){const t=this.attributeList.find(({name:t})=>t===e);return t?t.value:null}removeAttribute(e){const t=this.attributeList.findIndex(({name:t})=>t===e);t>=0&&this.attributeList.splice(t,1)}}n.ElementService=c},{"../functions/getParentNodesFromAttribute":7,"./AttrService":9,"./DOMTokenListService":10,"./NamedNodeMapService":15,"./NodeService":16,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.find.js":132,"core-js/modules/esnext.iterator.for-each.js":133,"core-js/modules/esnext.iterator.map.js":134,"core-js/modules/esnext.iterator.some.js":136}],12:[function(e,t,n){"use strict";const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.EventService=void 0;const i=r(e("../functions/getParentNodes"));class s{constructor(e="",{bubbles:t=!0,cancelable:n=!0,composed:r=!0}={}){this.properties={bubbles:!0,cancelable:!0,composed:!0,currentTarget:null,defaultPrevented:!1,immediatePropagationStopped:!1,propagationStopped:!1,eventPhase:0,target:null,timeStamp:Math.floor(Date.now()/1e3),type:"",isTrusted:!0},this.setReadOnlyProperties({type:e,bubbles:t,cancelable:n,composed:r})}get bubbles(){return this.properties.bubbles}get cancelable(){return this.properties.cancelable}get composed(){return this.properties.composed}get currentTarget(){return this.properties.currentTarget}get defaultPrevented(){return this.properties.defaultPrevented}get eventPhase(){return this.properties.eventPhase}get isTrusted(){return this.properties.isTrusted}get target(){return this.properties.target}get timeStamp(){return this.properties.timeStamp}get type(){return this.properties.type}get inner(){const e=this;return{set currentTarget(t){e.properties.currentTarget=t},set eventPhase(t){e.properties.eventPhase=t},set target(t){e.properties.target=t},get immediatePropagationStopped(){return e.properties.immediatePropagationStopped},get propagationStopped(){return e.properties.propagationStopped}}}composedPath(){switch(this.eventPhase){case s.CAPTURING_PHASE:return(0,i.default)(this.target);case s.BUBBLING_PHASE:return(0,i.default)(this.target).slice().reverse();case s.AT_TARGET:return[this.target];default:return[]}}preventDefault(){return this.setReadOnlyProperties({defaultPrevented:!0}),null}stopImmediatePropagation(){return this.setReadOnlyProperties({immediatePropagationStopped:!0}),null}stopPropagation(){return this.setReadOnlyProperties({propagationStopped:!0}),null}setReadOnlyProperties(e={}){return this.properties=Object.assign({},this.properties,e),this}}n.EventService=s,s.NONE=0,s.CAPTURING_PHASE=1,s.AT_TARGET=2,s.BUBBLING_PHASE=3},{"../functions/getParentNodes":6}],13:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js");const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});const i=e("./EventService"),s=r(e("../classes/PseudoEventListener")),o=e("collect-your-stuff/dist/collections/linked-list/LinkedList");n.default=class{constructor(){this.listeners={},this.defaultEvent={}}listenersFor(e){return e in this.listeners||(this.listeners[e]=new o.LinkedList),this.listeners[e]}runEvents(e){if(!(e.type in this.listeners))return!0;const t=this.listeners[e.type];let n=null;for(const r of Array.from(t)){const i=r.data;if(e.inner.immediatePropagationStopped)break;i.rejectEvent(e)||(n=i.handleEvent(e),i.once&&t.remove(r))}return n}setDefaultEvent(e,t){this.listenersFor(e),this.defaultEvent[e]=t}runDefaultEvent(e){return!e.defaultPrevented&&(this.defaultEvent[e.type](e),!0)}startEvents(e){const t=new i.EventService(e);return t.inner.target=this,[i.EventService.CAPTURING_PHASE,i.EventService.AT_TARGET,i.EventService.BUBBLING_PHASE].forEach(n=>{let r=null;n!==i.EventService.AT_TARGET&&t.inner.propagationStopped||(t.inner.eventPhase=n,t.composedPath().forEach(e=>{t.inner.currentTarget=e,r=t.currentTarget.runEvents(t)})),t.eventPhase===i.EventService.AT_TARGET&&"boolean"!=typeof r&&this.defaultEvent[e]&&this.runDefaultEvent(t)}),!0}addEventListener(e,t,n=!1){let r={capture:!1,once:!1,passive:!1};"object"==typeof n?r=Object.assign(r,n):r.capture=n;const i=new s.default(e,r,(t.handleEvent||t).bind(this),t),o=this.listenersFor(e),a=Array.from(o).find(e=>e.data.isDefault);a&&!i.isDefault?o.insertBefore(a,i):o.append(i)}removeEventListener(e,t){if(!(e in this.listeners))return;const n=this.listeners[e];Array.from(n).filter(e=>!e.data.isDefault&&e.data.callback===t).forEach(e=>n.remove(e))}dispatchEvent(e,t=this){return e.inner.target=t,!(e.type in this.listeners)||(this.runEvents(e),!e.defaultPrevented)}}},{"../classes/PseudoEventListener":1,"./EventService":12,"collect-your-stuff/dist/collections/linked-list/LinkedList":21,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.filter.js":131,"core-js/modules/esnext.iterator.find.js":132,"core-js/modules/esnext.iterator.for-each.js":133}],14:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.HTMLElementService=void 0;const r=e("./ElementService");class i extends r.ElementService{constructor({tagName:e="",parent:t=null,children:n=[]}={}){super({tagName:e,attributes:[{name:"hidden",value:!1},{name:"offsetHeight",value:0},{name:"offsetLeft",value:0},{name:"offsetParent",value:null},{name:"offsetTop",value:0},{name:"offsetWidth",value:0},{name:"style",value:{}},{name:"title",value:""}],parent:t,children:n})}}n.HTMLElementService=i},{"./ElementService":11}],15:[function(e,t,n){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),Object.defineProperty(n,"__esModule",{value:!0}),n.NamedNodeMapService=void 0;n.NamedNodeMapService=class{constructor(e=[]){this.attributes=e.slice()}get length(){return this.attributes.length}getNamedItem(e){return this.attributes.find(t=>t.name===e)||null}setNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e.name);if(t<0)return this.attributes.push(e),null;const n=this.attributes[t];return this.attributes[t]=e,n}removeNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e);if(t<0)throw new Error(`The attribute "${e}" was not found.`);return this.attributes.splice(t,1)[0]}item(e){return this.attributes[e]||null}getNamedItemNS(e,t){return this.attributes.find(n=>n.namespaceURI===e&&n.localName===t)||null}setNamedItemNS(e){const t=this.attributes.findIndex(t=>t.namespaceURI===e.namespaceURI&&t.localName===e.localName);if(t<0)return this.attributes.push(e),null;const n=this.attributes[t];return this.attributes[t]=e,n}removeNamedItemNS(e,t){const n=this.attributes.findIndex(n=>n.namespaceURI===e&&n.localName===t);if(n<0)throw new Error(`The attribute "${t}" in the namespace "${e}" was not found.`);return this.attributes.splice(n,1)[0]}}},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.find.js":132}],16:[function(e,t,n){"use strict";const r=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.NodeService=void 0;const i=r(e("../factories/generateNodeList")),s=e("collect-your-stuff/dist/collections/linked-tree-list/TreeLinker"),o=r(e("./EventTargetService"));class a extends o.default{constructor(){super(),this.nodeValueStore="",this.textContentStore="",this.nodeNameValue="",this.children=(0,i.default)(),this.parent=null,this.listLinker=null}get baseURI(){return window.location||"/"}get childNodes(){return this.children}get firstChild(){return this.children.first?this.children.first.data:null}get isConnected(){return!!this.parent}get lastChild(){return this.children.last?this.children.last.data:null}get nextSibling(){return this.listLinker&&this.listLinker.next?this.listLinker.next.data:null}get nodeName(){return this.nodeNameValue||""}get nodeType(){return a.DEFAULT_NODE}get nodeValue(){return this.nodeValueStore}set nodeValue(e){this.nodeValueStore=e}get ownerDocument(){return null}get parentNode(){return this.parent}get parentElement(){return this.parent&&this.parent.nodeType===a.ELEMENT_NODE?this.parent:null}get previousSibling(){return this.listLinker&&this.listLinker.prev?this.listLinker.prev.data:null}get textContent(){return this.textContentStore}set textContent(e){this.textContentStore=e}appendChild(e){return this.insertBefore(e,null)}childInserted(e){}cloneNode(e=!1){throw new Error(`NodeService.cloneNode(${e}) is not implemented yet.`)}compareDocumentPosition(e){throw new Error("NodeService.compareDocumentPosition() is not implemented yet.")}contains(e){let t=e;for(;t;){if(t===this)return!0;t=t.parentNode}return!1}getRootNode(e={composed:!1}){return this.parent?this.parent.getRootNode(e):this}hasChildNodes(){return this.children.length>0}insertBefore(e,t=null){if(null!==t&&t.parentNode!==this)throw new Error("The node before which the new node is to be inserted is not a child of this node.");if(e===t)return e;if("function"==typeof e.contains&&e.contains(this))throw new Error("The new node cannot be inserted into itself or one of its own descendants.");if(e.nodeType===a.DOCUMENT_FRAGMENT_NODE){for(;e.firstChild;)this.insertBefore(e.firstChild,t);return e}e.parentNode&&e.parentNode.removeChild(e);const n=new s.TreeLinker({data:e});this.children.insertBefore(t?t.listLinker:null,n);const r=e;return r.parent=this,r.listLinker=n,this.childInserted(r),e}isDefaultNamespace(e){return null===e}isEqualNode(e){throw new Error("NodeService.isEqualNode() is not implemented yet.")}isSameNode(e){return this===e}lookupPrefix(e){return null}lookupNamespaceURI(e){return null}normalize(){}removeChild(e){if(!e||e.parentNode!==this)throw new Error("The node to be removed is not a child of this node.");const t=e;return this.children.remove(t.listLinker),t.parent=null,t.listLinker=null,e}replaceChild(e,t){if(!t||t.parentNode!==this)throw new Error("The node to be replaced is not a child of this node.");if(e===t)return t;let n=t.nextSibling;return n===e&&(n=e.nextSibling),this.removeChild(t),this.insertBefore(e,n),t}}n.NodeService=a,a.DEFAULT_NODE=0,a.ELEMENT_NODE=1,a.ATTRIBUTE_NODE=2,a.TEXT_NODE=3,a.CDATA_SECTION_NODE=4,a.ENTITY_REFERENCE_NODE=5,a.ENTITY_NODE=6,a.PROCESSING_INSTRUCTION_NODE=7,a.COMMENT_NODE=8,a.DOCUMENT_NODE=9,a.DOCUMENT_TYPE_NODE=10,a.DOCUMENT_FRAGMENT_NODE=11,a.NOTATION_NODE=12},{"../factories/generateNodeList":5,"./EventTargetService":13,"collect-your-stuff/dist/collections/linked-tree-list/TreeLinker":24}],17:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayElement=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");class r{constructor(e=null){this.classType=r,this.data=null,this.data=e}}n.ArrayElement=r,r.make=(e,t=r)=>null===e||"object"!=typeof e?new t(e):e.classType?e:new t(e),r.fromArray=(e=[],t=r)=>e.reduce((e,n)=>{const r=t.make(n,t);return e.head.length?(e.head.push(r),e.tail=r,e):{head:[r],tail:r}},{head:[],tail:null})},{"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],18:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Arrayable=void 0;var r=e("./ArrayElement"),i=e("../../recipes/ArrayIterator");class s{constructor(e=r.ArrayElement){this.classType=s,this.innerList=[],this.initialized=!1,this.elementClass=e}indexOfElement(e){const t=this.innerList.indexOf(e);if(t<0)throw new Error("The reference element is not in this list.");return t}initialize(e){return this.initialized?(console.warn("Attempt to initialize non-empty list."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.length?this.innerList[0]:null}get last(){return this.length?this.innerList[this.length-1]:null}get length(){return this.innerList.length}insertAfter(e,t){const n=null==e?-1:this.indexOfElement(e);return this.innerList.splice(n+1,0,this.elementClass.make(t,this.elementClass)),this}insertBefore(e,t){const n=null==e?this.length:this.indexOfElement(e);return this.innerList.splice(n,0,this.elementClass.make(t,this.elementClass)),this}append(e,t=this.last){return t===this.last?(this.innerList.push(this.elementClass.make(e,this.elementClass)),this):this.insertAfter(t,e)}prepend(e,t=this.first){return t===this.first?(this.innerList.unshift(this.elementClass.make(e,this.elementClass)),this):this.insertBefore(t,e)}remove(e){const t=this.innerList.indexOf(e);return t<0?null:(this.innerList.splice(t,1),e)}item(e){if(e>=this.length)return null;if(e>=0)return this.innerList[e];const t=this.length+e;return t<0?null:this.innerList[t]}forEach(e,t=this){for(let n=0;n<t.length;++n)e(t.item(n),n,t);return t}[Symbol.iterator](){return new i.ArrayIterator(this.innerList,0)}}n.Arrayable=s,s.fromArray=(e=[],t=r.ArrayElement,n=s)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/ArrayIterator":25,"./ArrayElement":17}],19:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var r=e("../linked-list/Linker");class i{constructor({data:e=null,next:t=null,prev:n=null}={}){this.classType=i,this.data=null,this.next=null,this.prev=null,this.data=e,this.next=t,this.prev=n}}n.DoubleLinker=i,i.make=(e,t=i)=>r.Linker.make(e,t),i.fromArray=(e=[],t=i)=>e.reduce((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(r.prev=e.tail,e.tail.next=r,e.tail=r,e)},{head:null,tail:null})},{"../linked-list/Linker":22,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],20:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoublyLinkedList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("./DoubleLinker"),i=e("../../recipes/DoubleLinkerIterator"),s=e("../linked-list/LinkedList");class o{constructor(e=r.DoubleLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.LinkedList.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){let e=this.innerList;if(null===e)return null;for(;null!==e.prev;)e=e.prev;return this.innerList=e,e}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.first;t.prev=null,t.next=e,e?e.prev=t:this.tailCache=t,this.innerList=t}else t.next=e.next,t.prev=e,e.next=t,t.next?t.next.prev=t:this.tailCache=t;return null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,t.prev=e,null===e?this.innerList=t:e.next=t,this.tailCache=t}else t.prev=e.prev,t.next=e,e.prev=t,t.prev?t.prev.next=t:this.innerList=t;return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){return null==e?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.innerList===e&&(this.innerList=e.next||e.prev||null),this.tailCache===e&&(this.tailCache=e.prev),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=this.innerList;if(null===e)return this.countCache=0,this.tailCache=null,null;for(;null!==e.prev;)e=e.prev;this.innerList=e;let t=0,n=e,r=e;for(;null!==r;)++t,n=r,r=r.next;return this.countCache=t,this.tailCache=n,e}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.last,n=this.length;const r=this.length+e;if(r<0)return null;for(;--n>r&&null!==t;)t=t.prev;return n===r?t:null}forEach(e,t=this){return s.LinkedList.prototype.forEach.call(this,e,t)}[Symbol.iterator](){const e=this.first;return new i.DoubleLinkerIterator(e)}}n.DoublyLinkedList=o,o.fromArray=(e=[],t=r.DoubleLinker,n=o)=>s.LinkedList.fromArray(e,t,n)},{"../../recipes/DoubleLinkerIterator":26,"../linked-list/LinkedList":21,"./DoubleLinker":19,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.for-each.js":133}],21:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedList=void 0;var r=e("./Linker"),i=e("../../recipes/LinkerIterator"),s=e("../arrayable/Arrayable");class o{constructor(e=r.Linker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.Arrayable.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.innerList}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){return t=this.linkerClass.make(t,this.linkerClass),null==e?(t.next=this.innerList,null===this.innerList&&(this.tailCache=t),this.innerList=t):(t.next=e.next,e.next=t,null===t.next&&(this.tailCache=t)),null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,null===e?this.innerList=t:e.next=t,this.tailCache=t}else{let n=null,r=this.first;for(;null!==r&&r!==e;)n=r,r=r.next;if(null===r)throw new Error("The reference node is not in this list.");t.next=e,n?n.next=t:this.innerList=t}return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){if(null==e)return null;let t=null,n=this.first;for(;null!==n&&n!==e;)t=n,n=n.next;return null===n?null:(t?t.next=e.next:this.innerList=e.next,this.tailCache===e&&(this.tailCache=t),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=0,t=null,n=this.innerList;for(;null!==n;)++e,t=n,n=n.next;return this.countCache=e,this.tailCache=t,this.innerList}item(e){if(e>=0){let t=this.first,n=-1;for(;++n<e&&null!==t;)t=t.next;return n===e?t:null}let t=this.first,n=0;const r=this.length+e;if(r<0)return null;for(;n<r&&null!==t;)t=t.next,++n;return n===r?t:null}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.LinkerIterator(this.first)}}n.LinkedList=o,o.fromArray=(e=[],t=r.Linker,n=o)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/LinkerIterator":27,"../arrayable/Arrayable":18,"./Linker":22}],22:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Linker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var r=e("../arrayable/ArrayElement");class i{constructor({data:e=null,next:t=null}={}){this.classType=i,this.data=null,this.next=null,this.data=e,this.next=t}}n.Linker=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({data:e}):e.classType?e:("data"in e||(e={data:e}),r.ArrayElement.make(e,t)),i.fromArray=(e=[],t=i)=>e.reduce((e,n)=>{const r=t.make(n,t);return null===e.head?{head:r,tail:r}:(e.tail.next=r,e.tail=r,e)},{head:null,tail:null})},{"../arrayable/ArrayElement":17,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.reduce.js":135}],23:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkedTreeList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var r=e("./TreeLinker"),i=e("../../recipes/TreeLinkerIterator"),s=e("../doubly-linked-list/DoublyLinkedList");const o=(e,t)=>Object.getOwnPropertyDescriptor(s.DoublyLinkedList.prototype,e).get.call(t);class a{constructor(e=r.TreeLinker){this.classType=a,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.ownerNode=void 0,this.linkerClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize LinkedTreeList which is not empty."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return o("first",this)}get last(){return o("last",this)}get length(){return o("length",this)}get parent(){if(void 0!==this.ownerNode)return this.ownerNode;const e=this.first;return null===e?null:e.parent}set parent(e){this.ownerNode=e;let t=this.first;for(;null!==t;)t.parent=e,t=t.next;e&&(e.children=this)}get rootParent(){let e=this.first;if(!e)return null;let t=this.first.parent;for(;null!==t;)e=t,t=e.parent;return e}setChildren(e,t=null){let n=!1;if(this.forEach(t=>{t===e&&(n=!0)}),!n)throw new Error("The item is not one of the linkers of this list.");null!=t?t.parent=e:e.children=null}adopt(e){const t=this.linkerClass.make(e,this.linkerClass);return t.parent=this.parent,t}insertAfter(e,t){return s.DoublyLinkedList.prototype.insertAfter.call(this,e,this.adopt(t))}insertBefore(e,t){return s.DoublyLinkedList.prototype.insertBefore.call(this,e,this.adopt(t))}append(e,t=this.last){return s.DoublyLinkedList.prototype.append.call(this,e,t)}prepend(e,t=this.first){return s.DoublyLinkedList.prototype.prepend.call(this,e,t)}remove(e){const t=this.parent,n=s.DoublyLinkedList.prototype.remove.call(this,e);return n&&n.parent===t&&(this.ownerNode=t,n.parent=null),n}reset(){return s.DoublyLinkedList.prototype.reset.call(this)}item(e){return s.DoublyLinkedList.prototype.item.call(this,e)}forEach(e,t=this){let n=0,r=t.first;for(;null!==r;)e(r,n,t),r=r.next,++n;return t}[Symbol.iterator](){return new i.TreeLinkerIterator(this.first,this.parent)}}n.LinkedTreeList=a,a.fromArray=(e=[],t=r.TreeLinker,n=a)=>new n(t).initialize(t.fromArray(e).head)},{"../../recipes/TreeLinkerIterator":28,"../doubly-linked-list/DoublyLinkedList":20,"./TreeLinker":24,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.for-each.js":133}],24:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js");var r=e("../doubly-linked-list/DoubleLinker"),i=e("./LinkedTreeList");class s{constructor({data:e=null,next:t=null,prev:n=null,children:r=null,parent:o=null,listClass:a=i.LinkedTreeList}={}){this.classType=s,this.data=null,this.next=null,this.prev=null,this.parent=null,this.children=null,this.data=e,this.next=t,this.prev=n,this.parent=o,this.children=this.childrenFromArray(r,a)}childrenFromArray(e=null,t=i.LinkedTreeList){if(null===e)return null;const n=e.map(e=>{const t=this.classType.make(e,this.classType);return t.parent=this,t}),r=t.fromArray(n,this.classType);return r.parent=this,r}}n.TreeLinker=s,s.make=(e,t=s)=>r.DoubleLinker.make(e,t),s.fromArray=(e=[],t=s)=>r.DoubleLinker.fromArray(e,t)},{"../doubly-linked-list/DoubleLinker":19,"./LinkedTreeList":23,"core-js/modules/esnext.iterator.constructor.js":130,"core-js/modules/esnext.iterator.map.js":134}],25:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ArrayIterator=void 0;n.ArrayIterator=class{constructor(e,t=0){this.innerList=e,this.index=t}next(e){return this.index<this.innerList.length?{value:this.innerList[this.index++],done:!1}:{value:void 0,done:!0}}}},{}],26:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DoubleLinkerIterator=void 0;n.DoubleLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],27:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LinkerIterator=void 0;n.LinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],28:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TreeLinkerIterator=void 0;var r=e("../services/parseTreeNext");n.TreeLinkerIterator=class{constructor(e,t){this.current=e,this.boundaryParent=t}next(e){const t={value:this.current,done:!this.current};return this.current=(0,r.parseTreeNext)(this.current,this.boundaryParent),t}}},{"../services/parseTreeNext":29}],29:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.parseTreeNext=void 0;n.parseTreeNext=(e,t)=>{if(!e)return null;if(e.children&&e.children.length)return e.children.first;if(e.next)return e.next;let n=e.parent;for(;n&&n!==t;){if(n.next)return n.next;n=n.parent}return null}},{}],30:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not a function")}},{"../internals/is-callable":74,"../internals/try-to-string":117}],31:[function(e,t,n){"use strict";var r=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":99}],32:[function(e,t,n){"use strict";var r=e("../internals/is-object"),i=String,s=TypeError;t.exports=function(e){if(r(e))return e;throw new s(i(e)+" is not an object")}},{"../internals/is-object":77}],33:[function(e,t,n){"use strict";var r=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,n,o){var a=r(t),l=s(a);if(0===l)return!e&&-1;var c,u=i(o,l);if(e&&n!=n){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===n)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":89,"../internals/to-absolute-index":110,"../internals/to-indexed-object":111}],34:[function(e,t,n){"use strict";var r=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,n,s){try{return s?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":32,"../internals/iterator-close":83}],35:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=r({}.toString),s=r("".slice);t.exports=function(e){return s(i(e),8,-1)}},{"../internals/function-uncurry-this":59}],36:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,n){for(var a=i(t),l=o.f,c=s.f,u=0;u<a.length;u++){var h=a[u];r(e,h)||n&&r(n,h)||l(e,h,c(t,h))}}},{"../internals/has-own-property":66,"../internals/object-define-property":94,"../internals/object-get-own-property-descriptor":95,"../internals/own-keys":104}],37:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":52}],38:[function(e,t,n){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],39:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/object-define-property":94}],40:[function(e,t,n){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],41:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,n){r?i.f(e,t,s(0,n)):e[t]=n}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/object-define-property":94}],42:[function(e,t,n){"use strict";var r=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},{"../internals/make-built-in":90,"../internals/object-define-property":94}],43:[function(e,t,n){"use strict";var r=e("../internals/is-callable"),i=e("../internals/object-define-property"),s=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(r(n)&&s(n,c,a),a.global)l?e[t]=n:o(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":45,"../internals/is-callable":74,"../internals/make-built-in":90,"../internals/object-define-property":94}],44:[function(e,t,n){"use strict";var r=e("../internals/define-built-in");t.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},{"../internals/define-built-in":43}],45:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=Object.defineProperty;t.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},{"../internals/global-this":65}],46:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":52}],47:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-object"),s=r.document,o=i(s)&&i(s.createElement);t.exports=function(e){return o?s.createElement(e):{}}},{"../internals/global-this":65,"../internals/is-object":77}],48:[function(e,t,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],49:[function(e,t,n){"use strict";var r=e("../internals/global-this").navigator,i=r&&r.userAgent;t.exports=i?String(i):""},{"../internals/global-this":65}],50:[function(e,t,n){"use strict";var r,i,s=e("../internals/global-this"),o=e("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},{"../internals/environment-user-agent":49,"../internals/global-this":65}],51:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var n,u,h,d,f,p=e.target,v=e.global,m=e.stat;if(n=v?r:m?r[p]||a(p,{}):r[p]&&r[p].prototype)for(u in t){if(d=t[u],h=e.dontCallGetSet?(f=i(n,u))&&f.value:n[u],!c(v?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&s(d,"sham",!0),o(n,u,d,e)}}},{"../internals/copy-constructor-properties":36,"../internals/create-non-enumerable-property":39,"../internals/define-built-in":43,"../internals/define-global-property":45,"../internals/global-this":65,"../internals/is-forced":75,"../internals/object-get-own-property-descriptor":95}],52:[function(e,t,n){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],53:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":55}],54:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=r(r.bind);t.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":30,"../internals/function-bind-native":55,"../internals/function-uncurry-this-clause":58}],55:[function(e,t,n){"use strict";var r=e("../internals/fails");t.exports=!r(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":52}],56:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":55}],57:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/has-own-property"),s=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!r||r&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":46,"../internals/has-own-property":66}],58:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===r(e))return i(e)}},{"../internals/classof-raw":35,"../internals/function-uncurry-this":59}],59:[function(e,t,n){"use strict";var r=e("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=r&&i.bind.bind(s,s);t.exports=r?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":55}],60:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(n=r[e],i(n)?n:void 0):r[e]&&r[e][t];var n}},{"../internals/global-this":65,"../internals/is-callable":74}],61:[function(e,t,n){"use strict";t.exports=function(e){return{iterator:e,next:e.next,done:!1}}},{}],62:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/get-iterator-method-internal"),l=TypeError;t.exports=function(e,t){var n=arguments.length<2?a(e):t;if(i(n))return s(r(n,e));throw new l(o(e)+" is not iterable")}},{"../internals/an-object":32,"../internals/function-call":56,"../internals/get-iterator-method-internal":63,"../internals/is-callable":74,"../internals/try-to-string":117}],63:[function(e,t,n){"use strict";var r=e("../internals/classof-raw"),i=e("../internals/is-null-or-undefined"),s=e("../internals/get-method"),o=e("../internals/well-known-symbol")("iterator"),a=Array.prototype;t.exports=function(e){if(!i(e))return s(e,o)||s(e,"@@iterator")||("Arguments"===r(e)?a[o]:void 0)}},{"../internals/classof-raw":35,"../internals/get-method":64,"../internals/is-null-or-undefined":76,"../internals/well-known-symbol":122}],64:[function(e,t,n){"use strict";var r=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},{"../internals/a-callable":30,"../internals/is-null-or-undefined":76}],65:[function(e,t,n){(function(e){(function(){"use strict";var n=function(e){return e&&e.Math===Math&&e};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],66:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),s=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(i(e),t)}},{"../internals/function-uncurry-this":59,"../internals/to-object":114}],67:[function(e,t,n){"use strict";t.exports={}},{}],68:[function(e,t,n){"use strict";var r=e("../internals/get-built-in");t.exports=r("document","documentElement")},{"../internals/get-built-in":60}],69:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!r&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":46,"../internals/document-create-element":47,"../internals/fails":52}],70:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,a=r("".split);t.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},{"../internals/classof-raw":35,"../internals/fails":52,"../internals/function-uncurry-this":59}],71:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),s=e("../internals/shared-store"),o=r(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":59,"../internals/is-callable":74,"../internals/shared-store":107}],72:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/weak-map-basic-detection"),a=e("../internals/global-this"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),h=e("../internals/shared-store"),d=e("../internals/shared-key"),f=e("../internals/hidden-keys"),p="Object already initialized",v=a.TypeError,m=a.WeakMap;if(o||h.state){var b=h.state||(h.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,r=function(e,t){if(b.has(e))throw new v(p);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var y=d("state");f[y]=!0,r=function(e,t){if(u(e,y))throw new v(p);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}t.exports={set:r,get:i,has:s,enforce:function(e){return s(e)?i(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return n}}}},{"../internals/create-non-enumerable-property":39,"../internals/global-this":65,"../internals/has-own-property":66,"../internals/hidden-keys":67,"../internals/is-object":77,"../internals/shared-key":106,"../internals/shared-store":107,"../internals/weak-map-basic-detection":121}],73:[function(e,t,n){"use strict";var r=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=r("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":88,"../internals/well-known-symbol":122}],74:[function(e,t,n){"use strict";var r="object"==typeof document&&document.all;t.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},{}],75:[function(e,t,n){"use strict";var r=e("../internals/fails"),i=e("../internals/is-callable"),s=/#|\.prototype\./,o=function(e,t){var n=l[a(e)];return n===u||n!==c&&(i(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":52,"../internals/is-callable":74}],76:[function(e,t,n){"use strict";t.exports=function(e){return null==e}},{}],77:[function(e,t,n){"use strict";var r=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:r(e)}},{"../internals/is-callable":74}],78:[function(e,t,n){"use strict";t.exports=!1},{}],79:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&s(t.prototype,a(e))}},{"../internals/get-built-in":60,"../internals/is-callable":74,"../internals/object-is-prototype-of":99,"../internals/use-symbol-as-uid":119}],80:[function(e,t,n){"use strict";var r=e("../internals/function-bind-context"),i=e("../internals/function-call"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator-internal"),h=e("../internals/get-iterator-method-internal"),d=e("../internals/iterator-close"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},v=p.prototype;t.exports=function(e,t,n){var m,b,y,g,j,x,w,E=n&&n.that,L=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),S=!(!n||!n.INTERRUPTED),P=r(t,E),N=function(e){var t=m;return m=void 0,t&&d(t,"normal"),new p(!0,e)},O=function(e){return L?(s(e),S?P(e[0],e[1],N):P(e[0],e[1])):S?P(e,N):P(e)};if(k)m=e.iterator;else if(T)m=e;else{if(!(b=h(e)))throw new f(o(e)+" is not iterable");if(a(b)){for(y=0,g=l(e);g>y;y++)if((j=O(e[y]))&&c(v,j))return j;return new p(!1)}m=u(e,b)}for(x=k?e.next:m.next;!(w=i(x,m)).done;){var C=w.value;try{j=O(C)}catch(e){if(!m)throw e;d(m,"throw",e)}if("object"==typeof j&&j&&c(v,j))return j}return new p(!1)}},{"../internals/an-object":32,"../internals/function-bind-context":54,"../internals/function-call":56,"../internals/get-iterator-internal":62,"../internals/get-iterator-method-internal":63,"../internals/is-array-iterator-method":73,"../internals/iterator-close":83,"../internals/length-of-array-like":89,"../internals/object-is-prototype-of":99,"../internals/try-to-string":117}],81:[function(e,t,n){"use strict";t.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},{}],82:[function(e,t,n){"use strict";var r=e("../internals/iterator-close");t.exports=function(e,t,n){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{n=r(e[i].iterator,t,n)}catch(e){t="throw",n=e}if("throw"===t)throw n;return n}},{"../internals/iterator-close":83}],83:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,n){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return i(o),n}},{"../internals/an-object":32,"../internals/function-call":56,"../internals/get-method":64}],84:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/object-create"),s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-ins"),a=e("../internals/well-known-symbol"),l=e("../internals/internal-state"),c=e("../internals/get-method"),u=e("../internals/iterators-core").IteratorPrototype,h=e("../internals/create-iter-result-object"),d=e("../internals/iterator-close"),f=e("../internals/iterator-close-all"),p=e("../internals/iterator-cleanup-state"),v=a("toStringTag"),m="IteratorHelper",b="WrapForValidIterator",y="normal",g="throw",j=l.set,x=function(e){var t=l.getterFor(e?b:m);return o(i(u),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return h(void 0,!0);try{var r=n.nextHandler();return n.done&&p(n),n.returnHandlerResult?r:h(r,n.done)}catch(e){throw n.done=!0,p(n),e}},return:function(){var n=t(this),i=n.iterator,s=n.inner,o=n.openIters,a=n.done;if(n.done=!0,e){var l=c(i,"return");return l?r(l,i):h(void 0,!0)}if(p(n),a)return h(void 0,!0);if(s)try{d(s.iterator,y)}catch(e){return d(i,g,e)}if(o)try{f(o,y)}catch(e){if(i)return d(i,g,e);throw e}return i&&d(i,y),h(void 0,!0)}})},w=x(!0),E=x(!1);s(E,v,"Iterator Helper"),t.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?b:m,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,j(this,i)};return r.prototype=t?w:E,r}},{"../internals/create-iter-result-object":38,"../internals/create-non-enumerable-property":39,"../internals/define-built-ins":44,"../internals/function-call":56,"../internals/get-method":64,"../internals/internal-state":72,"../internals/iterator-cleanup-state":81,"../internals/iterator-close":83,"../internals/iterator-close-all":82,"../internals/iterators-core":87,"../internals/object-create":92,"../internals/well-known-symbol":122}],85:[function(e,t,n){"use strict";t.exports=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}}},{}],86:[function(e,t,n){"use strict";var r=e("../internals/global-this");t.exports=function(e,t){var n=r.Iterator,i=n&&n.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},{"../internals/global-this":65}],87:[function(e,t,n){"use strict";var r,i,s,o=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),h=e("../internals/define-built-in"),d=e("../internals/well-known-symbol"),f=e("../internals/is-pure"),p=d("iterator"),v=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(r=i):v=!0),!l(r)||o(function(){var e={};return r[p].call(e)!==e})?r={}:f&&(r=c(r)),a(r[p])||h(r,p,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},{"../internals/define-built-in":43,"../internals/fails":52,"../internals/is-callable":74,"../internals/is-object":77,"../internals/is-pure":78,"../internals/object-create":92,"../internals/object-get-prototype-of":98,"../internals/well-known-symbol":122}],88:[function(e,t,n){"use strict";t.exports=Object.create?Object.create(null):{}},{}],89:[function(e,t,n){"use strict";var r=e("../internals/to-length");t.exports=function(e){return r(e.length)}},{"../internals/to-length":113}],90:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,v=r("".slice),m=r("".replace),b=r([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),g=String(String).split("String"),j=t.exports=function(e,t,n){"Symbol("===v(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&o(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=h(e);return o(r,"source")||(r.source=b(g,"string"==typeof t?t:"")),e};Function.prototype.toString=j(function(){return s(this)&&d(this).source||c(this)},"toString")},{"../internals/descriptors":46,"../internals/fails":52,"../internals/function-name":57,"../internals/function-uncurry-this":59,"../internals/has-own-property":66,"../internals/inspect-source":71,"../internals/internal-state":72,"../internals/is-callable":74}],91:[function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},{}],92:[function(e,t,n){"use strict";var r,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},v=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&r?m(r):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(r);for(var i=o.length;i--;)delete b[h][o[i]];return b()};a[f]=!0,t.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=i(e),n=new p,p[h]=null,n[f]=e):n=b(),void 0===t?n:s.f(n,t)}},{"../internals/an-object":32,"../internals/document-create-element":47,"../internals/enum-bug-keys":48,"../internals/hidden-keys":67,"../internals/html":68,"../internals/object-define-properties":93,"../internals/shared-key":106}],93:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");n.f=r&&!i?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),i=l(t),c=i.length,u=0;c>u;)s.f(e,n=i[u++],r[n]);return e}},{"../internals/an-object":32,"../internals/descriptors":46,"../internals/object-define-property":94,"../internals/object-keys":101,"../internals/to-indexed-object":111,"../internals/v8-prototype-define-bug":120}],94:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";n.f=r?s?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var r=u(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:h in n?n[h]:r[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(o(e),t=a(t),o(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},{"../internals/an-object":32,"../internals/descriptors":46,"../internals/ie8-dom-define":69,"../internals/to-property-key":116,"../internals/v8-prototype-define-bug":120}],95:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),h=Object.getOwnPropertyDescriptor;n.f=r?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(e){}if(c(e,t))return o(!i(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":40,"../internals/descriptors":46,"../internals/function-call":56,"../internals/has-own-property":66,"../internals/ie8-dom-define":69,"../internals/object-property-is-enumerable":102,"../internals/to-indexed-object":111,"../internals/to-property-key":116}],96:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},{"../internals/enum-bug-keys":48,"../internals/object-keys-internal":100}],97:[function(e,t,n){"use strict";n.f=Object.getOwnPropertySymbols},{}],98:[function(e,t,n){"use strict";var r=e("../internals/has-own-property"),i=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=s(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":37,"../internals/has-own-property":66,"../internals/is-callable":74,"../internals/shared-key":106,"../internals/to-object":114}],99:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this");t.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":59}],100:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=r([].push);t.exports=function(e,t){var n,r=s(e),c=0,u=[];for(n in r)!i(a,n)&&i(r,n)&&l(u,n);for(;t.length>c;)i(r,n=t[c++])&&(~o(u,n)||l(u,n));return u}},{"../internals/array-includes":33,"../internals/function-uncurry-this":59,"../internals/has-own-property":66,"../internals/hidden-keys":67,"../internals/to-indexed-object":111}],101:[function(e,t,n){"use strict";var r=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return r(e,i)}},{"../internals/enum-bug-keys":48,"../internals/object-keys-internal":100}],102:[function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);n.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},{}],103:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var n,a;if("string"===t&&i(n=e.toString)&&!s(a=r(n,e)))return a;if(i(n=e.valueOf)&&!s(a=r(n,e)))return a;if("string"!==t&&i(n=e.toString)&&!s(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":56,"../internals/is-callable":74,"../internals/is-object":77}],104:[function(e,t,n){"use strict";var r=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(e){var t=s.f(a(e)),n=o.f;return n?l(t,n(e)):t}},{"../internals/an-object":32,"../internals/function-uncurry-this":59,"../internals/get-built-in":60,"../internals/object-get-own-property-names":96,"../internals/object-get-own-property-symbols":97}],105:[function(e,t,n){"use strict";var r=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":76}],106:[function(e,t,n){"use strict";var r=e("../internals/shared"),i=e("../internals/uid"),s=r("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":108,"../internals/uid":118}],107:[function(e,t,n){"use strict";var r=e("../internals/is-pure"),i=e("../internals/global-this"),s=e("../internals/define-global-property"),o="__core-js_shared__",a=t.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":45,"../internals/global-this":65,"../internals/is-pure":78}],108:[function(e,t,n){"use strict";var r=e("../internals/shared-store"),i=Object.create||Object;t.exports=function(e,t){return r[e]||(r[e]=t||i(null))}},{"../internals/shared-store":107}],109:[function(e,t,n){"use strict";var r=e("../internals/environment-v8-version"),i=e("../internals/fails"),s=e("../internals/global-this").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41})},{"../internals/environment-v8-version":50,"../internals/fails":52,"../internals/global-this":65}],110:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;t.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},{"../internals/to-integer-or-infinity":112}],111:[function(e,t,n){"use strict";var r=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return r(i(e))}},{"../internals/indexed-object":70,"../internals/require-object-coercible":105}],112:[function(e,t,n){"use strict";var r=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},{"../internals/math-trunc":91}],113:[function(e,t,n){"use strict";var r=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},{"../internals/to-integer-or-infinity":112}],114:[function(e,t,n){"use strict";var r=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(r(e))}},{"../internals/require-object-coercible":105}],115:[function(e,t,n){"use strict";var r=e("../internals/function-call"),i=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||s(e))return e;var n,l=o(e,u);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||s(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":56,"../internals/get-method":64,"../internals/is-object":77,"../internals/is-symbol":79,"../internals/ordinary-to-primitive":103,"../internals/well-known-symbol":122}],116:[function(e,t,n){"use strict";var r=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":79,"../internals/to-primitive":115}],117:[function(e,t,n){"use strict";var r=String;t.exports=function(e){try{return r(e)}catch(e){return"Object"}}},{}],118:[function(e,t,n){"use strict";var r=e("../internals/function-uncurry-this"),i=0,s=Math.random(),o=r(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":59}],119:[function(e,t,n){"use strict";var r=e("../internals/symbol-constructor-detection");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":109}],120:[function(e,t,n){"use strict";var r=e("../internals/descriptors"),i=e("../internals/fails");t.exports=r&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":46,"../internals/fails":52}],121:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/is-callable"),s=r.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":65,"../internals/is-callable":74}],122:[function(e,t,n){"use strict";var r=e("../internals/global-this"),i=e("../internals/shared"),s=e("../internals/has-own-property"),o=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=r.Symbol,u=i("wks"),h=l?c.for||c:c&&c.withoutSetter||o;t.exports=function(e){return s(u,e)||(u[e]=a&&s(c,e)?c[e]:h("Symbol."+e)),u[e]}},{"../internals/global-this":65,"../internals/has-own-property":66,"../internals/shared":108,"../internals/symbol-constructor-detection":109,"../internals/uid":118,"../internals/use-symbol-as-uid":119}],123:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/global-this"),s=e("../internals/an-instance"),o=e("../internals/an-object"),a=e("../internals/is-callable"),l=e("../internals/object-get-prototype-of"),c=e("../internals/define-built-in-accessor"),u=e("../internals/create-property"),h=e("../internals/fails"),d=e("../internals/has-own-property"),f=e("../internals/well-known-symbol"),p=e("../internals/iterators-core").IteratorPrototype,v=e("../internals/descriptors"),m=e("../internals/is-pure"),b="constructor",y="Iterator",g=f("toStringTag"),j=TypeError,x=i[y],w=m||!a(x)||x.prototype!==p||!h(function(){x({})}),E=function(){if(s(this,p),l(this)===p)throw new j("Abstract class Iterator not directly constructable")},L=function(e,t){v?c(p,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===p)throw new j("You can't redefine this property");d(this,e)?this[e]=t:u(this,e,t)}}):p[e]=t};d(p,g)||L(g,y),!w&&d(p,b)&&p[b]!==Object||L(b,E),E.prototype=p,r({global:!0,constructor:!0,forced:w},{Iterator:E})},{"../internals/an-instance":31,"../internals/an-object":32,"../internals/create-property":41,"../internals/define-built-in-accessor":42,"../internals/descriptors":46,"../internals/export":51,"../internals/fails":52,"../internals/global-this":65,"../internals/has-own-property":66,"../internals/is-callable":74,"../internals/is-pure":78,"../internals/iterators-core":87,"../internals/object-get-prototype-of":98,"../internals/well-known-symbol":122}],124:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/is-pure"),h=e("../internals/iterator-close"),d=e("../internals/iterator-helper-throws-on-invalid-iterator"),f=e("../internals/iterator-helper-without-closing-on-early-error"),p=!u&&!d("filter",function(){}),v=!u&&!p&&f("filter",TypeError),m=u||p||v,b=l(function(){for(var e,t,n=this.iterator,r=this.predicate,s=this.next;;){if(e=o(i(s,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}});r({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{s(e)}catch(e){h(this,"throw",e)}return v?i(v,this,e):new b(a(this),{predicate:e})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/call-with-safe-iteration-closing":34,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/is-pure":78,"../internals/iterator-close":83,"../internals/iterator-create-proxy":84,"../internals/iterator-helper-throws-on-invalid-iterator":85,"../internals/iterator-helper-without-closing-on-early-error":86}],125:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("find",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;return s(t,function(t,r){if(e(t,n++))return r(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],126:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;s(t,function(t){e(t,n++)},{IS_RECORD:!0})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],127:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/iterator-close"),h=e("../internals/iterator-helper-throws-on-invalid-iterator"),d=e("../internals/iterator-helper-without-closing-on-early-error"),f=e("../internals/is-pure"),p=!f&&!h("map",function(){}),v=!f&&!p&&d("map",TypeError),m=f||p||v,b=l(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});r({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return v?i(v,this,e):new b(a(this),{mapper:e})}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/call-with-safe-iteration-closing":34,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/is-pure":78,"../internals/iterator-close":83,"../internals/iterator-create-proxy":84,"../internals/iterator-helper-throws-on-invalid-iterator":85,"../internals/iterator-helper-without-closing-on-early-error":86}],128:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/iterate"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-close"),c=e("../internals/iterator-helper-without-closing-on-early-error"),u=e("../internals/function-apply"),h=e("../internals/fails"),d=TypeError,f=h(function(){[].keys().reduce(function(){},void 0)}),p=!f&&c("reduce",d);r({target:"Iterator",proto:!0,real:!0,forced:f||p},{reduce:function(e){o(this);try{s(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,n=t?void 0:arguments[1];if(p)return u(p,this,t?[e]:[e,n]);var r=a(this),c=0;if(i(r,function(r){t?(t=!1,n=r):n=e(n,r,c),c++},{IS_RECORD:!0}),t)throw new d("Reduce of empty iterator with no initial value");return n}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/fails":52,"../internals/function-apply":53,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],129:[function(e,t,n){"use strict";var r=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("some",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),n=0;return s(t,function(t,r){if(e(t,n++))return r()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},{"../internals/a-callable":30,"../internals/an-object":32,"../internals/export":51,"../internals/function-call":56,"../internals/get-iterator-direct":61,"../internals/iterate":80,"../internals/iterator-close":83,"../internals/iterator-helper-without-closing-on-early-error":86}],130:[function(e,t,n){"use strict";e("../modules/es.iterator.constructor")},{"../modules/es.iterator.constructor":123}],131:[function(e,t,n){"use strict";e("../modules/es.iterator.filter")},{"../modules/es.iterator.filter":124}],132:[function(e,t,n){"use strict";e("../modules/es.iterator.find")},{"../modules/es.iterator.find":125}],133:[function(e,t,n){"use strict";e("../modules/es.iterator.for-each")},{"../modules/es.iterator.for-each":126}],134:[function(e,t,n){"use strict";e("../modules/es.iterator.map")},{"../modules/es.iterator.map":127}],135:[function(e,t,n){"use strict";e("../modules/es.iterator.reduce")},{"../modules/es.iterator.reduce":128}],136:[function(e,t,n){"use strict";e("../modules/es.iterator.some")},{"../modules/es.iterator.some":129}]},{},[8]);
|
|
1
|
+
!function e(t,r,n){function i(o,a){if(!r[o]){if(!t[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[o]={exports:{}};t[o][0].call(u.exports,function(e){return i(t[o][1][e]||e)},u,u.exports,e,t,r,n)}return r[o].exports}for(var s="function"==typeof require&&require,o=0;o<n.length;o++)i(n[o]);return i}({1:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../services/EventService");r.default=class{constructor(e,{capture:t=!1,once:r=!1,passive:n=!1}={},i,s=i){this.eventOptions={capture:!1,once:!1,passive:!1},this.eventType="",this.defaultListener=!1,this.isRemoved=!1,this.eventOptions={capture:t,once:r,passive:n},this.eventType=e,this.handler=i,this.originalCallback=s}get callback(){return this.originalCallback}get capture(){return this.eventOptions.capture}get isDefault(){return this.defaultListener}get once(){return this.eventOptions.once}get passive(){return this.eventOptions.passive}get removed(){return this.isRemoved}set removed(e){this.isRemoved=e}handleEvent(e){return this.handler(e)}doCapturePhase(e){return e.eventPhase===n.EventService.CAPTURING_PHASE&&this.eventOptions.capture}doTargetPhase(e){return e.eventPhase===n.EventService.AT_TARGET}doBubblePhase(e){return e.eventPhase===n.EventService.BUBBLING_PHASE&&!this.eventOptions.capture}skipPhase(e){return!this.doCapturePhase(e)&&!this.doTargetPhase(e)&&!this.doBubblePhase(e)}rejectEvent(e){return this.isRemoved||this.skipPhase(e)}}},{"../services/EventService":17}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../services/HTMLElementService");class i extends n.HTMLElementService{constructor(){super();const e=new n.HTMLElementService({tagName:"html"});this.appendChild(e),this.head=new n.HTMLElementService({tagName:"head"}),e.appendChild(this.head),this.body=new n.HTMLElementService({tagName:"body"}),e.appendChild(this.body)}createElement(e="div"){return new n.HTMLElementService({tagName:e})}}r.default=i},{"../services/HTMLElementService":20}],3:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.PseudoNodeList=void 0;const n=e("collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList");class i extends n.LinkedTreeList{[Symbol.iterator](){let e=this.first;return{next:()=>{if(null===e)return{done:!0,value:void 0};const t={done:!1,value:e.data};return e=e.next,t}}}entries(){return Array.from(this).map((e,t)=>[t,e])[Symbol.iterator]()}keys(){return Array.from(this).map((e,t)=>t)[Symbol.iterator]()}values(){return Array.from(this)[Symbol.iterator]()}}r.PseudoNodeList=i},{"collect-your-stuff/dist/collections/linked-tree-list/LinkedTreeList":35,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.map.js":148}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createEvent=void 0;const n=e("../services/EventService"),i=e("../services/UIEventService"),s=e("../services/MouseEventService"),o=e("../services/PointerEventService"),a=e("../services/KeyboardEventService"),l=e("../services/FocusEventService"),c=e("../services/InputEventService"),u=e("../services/CustomEventService"),d=e("./eventDefaults"),p={Event:n.EventService,UIEvent:i.UIEventService,MouseEvent:s.MouseEventService,PointerEvent:o.PointerEventService,KeyboardEvent:a.KeyboardEventService,FocusEvent:l.FocusEventService,InputEvent:c.InputEventService,CustomEvent:u.CustomEventService};r.createEvent=(e,t={},{browser:r=!1,trusted:n=!1}={})=>{const i=d.eventDefaults[e],s=r&&i?Object.assign({bubbles:i.bubbles,cancelable:i.cancelable,composed:i.composed},t):t,o=new(0,p[i?i.interface:"Event"])(e,s);return o.inner.trusted=n,o},r.default=r.createEvent},{"../services/CustomEventService":14,"../services/EventService":17,"../services/FocusEventService":19,"../services/InputEventService":21,"../services/KeyboardEventService":22,"../services/MouseEventService":23,"../services/PointerEventService":26,"../services/UIEventService":27,"./eventDefaults":5}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.eventDefaults=void 0;const n=(e,t,r,n="Event")=>({bubbles:e,cancelable:t,composed:r,interface:n});r.eventDefaults={click:n(!0,!0,!0,"MouseEvent"),auxclick:n(!0,!0,!0,"MouseEvent"),dblclick:n(!0,!0,!0,"MouseEvent"),contextmenu:n(!0,!0,!0,"MouseEvent"),mousedown:n(!0,!0,!0,"MouseEvent"),mouseup:n(!0,!0,!0,"MouseEvent"),mousemove:n(!0,!0,!0,"MouseEvent"),mouseover:n(!0,!0,!0,"MouseEvent"),mouseout:n(!0,!0,!0,"MouseEvent"),mouseenter:n(!1,!1,!0,"MouseEvent"),mouseleave:n(!1,!1,!0,"MouseEvent"),wheel:n(!0,!0,!0,"MouseEvent"),pointerdown:n(!0,!0,!0,"PointerEvent"),pointerup:n(!0,!0,!0,"PointerEvent"),pointermove:n(!0,!0,!0,"PointerEvent"),pointerover:n(!0,!0,!0,"PointerEvent"),pointerout:n(!0,!0,!0,"PointerEvent"),pointerenter:n(!1,!1,!0,"PointerEvent"),pointerleave:n(!1,!1,!0,"PointerEvent"),pointercancel:n(!0,!1,!0,"PointerEvent"),gotpointercapture:n(!0,!1,!0,"PointerEvent"),lostpointercapture:n(!0,!1,!0,"PointerEvent"),keydown:n(!0,!0,!0,"KeyboardEvent"),keypress:n(!0,!0,!0,"KeyboardEvent"),keyup:n(!0,!0,!0,"KeyboardEvent"),focus:n(!1,!1,!0,"FocusEvent"),blur:n(!1,!1,!0,"FocusEvent"),focusin:n(!0,!1,!0,"FocusEvent"),focusout:n(!0,!1,!0,"FocusEvent"),beforeinput:n(!0,!0,!0,"InputEvent"),input:n(!0,!1,!0,"InputEvent"),change:n(!0,!1,!1),select:n(!0,!1,!1),submit:n(!0,!0,!1),reset:n(!0,!0,!1),invalid:n(!1,!0,!1),toggle:n(!1,!1,!1),load:n(!1,!1,!1),error:n(!1,!1,!1),abort:n(!1,!1,!1),scroll:n(!1,!1,!1),scrollend:n(!1,!1,!1),resize:n(!1,!1,!1),DOMContentLoaded:n(!0,!1,!1),readystatechange:n(!1,!1,!1),visibilitychange:n(!0,!1,!1),copy:n(!0,!0,!0),cut:n(!0,!0,!0),paste:n(!0,!0,!0),drag:n(!0,!0,!0,"MouseEvent"),dragstart:n(!0,!0,!0,"MouseEvent"),dragend:n(!0,!1,!0,"MouseEvent"),dragenter:n(!0,!0,!0,"MouseEvent"),dragover:n(!0,!0,!0,"MouseEvent"),dragleave:n(!0,!1,!0,"MouseEvent"),drop:n(!0,!0,!0,"MouseEvent"),touchstart:n(!0,!0,!0,"UIEvent"),touchmove:n(!0,!0,!0,"UIEvent"),touchend:n(!0,!0,!0,"UIEvent"),touchcancel:n(!0,!1,!0,"UIEvent"),animationstart:n(!0,!1,!1),animationiteration:n(!0,!1,!1),animationend:n(!0,!1,!1),animationcancel:n(!0,!1,!1),transitionrun:n(!0,!1,!1),transitionstart:n(!0,!1,!1),transitionend:n(!0,!1,!1),transitioncancel:n(!0,!1,!1)},r.default=r.eventDefaults},{}],6:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=n(e("../services/EventTargetService")),s=e("../services/NodeService"),o=e("../services/ElementService"),a=e("../services/HTMLElementService"),l=n(e("../classes/PseudoHTMLDocument"));r.default=(e,t={})=>{const r=void 0===e.document?e:new i.default,n=e.Node||new s.NodeService;void 0===r.Node&&(r.Node=n);const c=e.Element||new o.ElementService;void 0===r.Element&&(r.Element=c);const u=e.HTMLElement||new a.HTMLElementService;void 0===r.HTMLElement&&(r.HTMLElement=u);const d=e.document||new l.default;return void 0===r.document&&(r.document=d),t?Object.assign(t,r):Object.assign(e,r)}},{"../classes/PseudoHTMLDocument":2,"../services/ElementService":16,"../services/EventTargetService":18,"../services/HTMLElementService":20,"../services/NodeService":25}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("../classes/PseudoNodeList");r.default=(e=null)=>(new n.PseudoNodeList).initialize(e)},{"../classes/PseudoNodeList":3}],8:[function(e,t,r){"use strict";e("core-js/modules/esnext.weak-map.delete-all.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.setActiveElement=r.getActiveElement=void 0;const n=new WeakMap;r.getActiveElement=e=>n.get(e)||null;r.setActiveElement=(e,t)=>{null===t?n.delete(e):n.set(e,t)}},{"core-js/modules/esnext.weak-map.delete-all.js":151}],9:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});r.default=e=>{const t=[];let r=e&&e.parentNode?e.parentNode:null;for(;r;)t.unshift(r),r=r.parentNode;return t}},{}],10:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=n(e("./getParentNodes"));r.default=(e,t,r)=>(0,i.default)(r).filter(r=>(r[e]||!1)===t)},{"./getParentNodes":9,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.filter.js":145}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.modifierState=r.modifierKeys=void 0;r.modifierKeys=(e={})=>({ctrlKey:!!e.ctrlKey,shiftKey:!!e.shiftKey,altKey:!!e.altKey,metaKey:!!e.metaKey});r.modifierState=(e,t)=>{switch(t){case"Control":return e.ctrlKey;case"Shift":return e.shiftKey;case"Alt":return e.altKey;case"Meta":return e.metaKey;default:return!1}}},{}],12:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.PseudoHTMLDocument=r.PseudoHTMLElement=r.PseudoElement=r.PseudoNode=r.PseudoEventTarget=r.PseudoCustomEvent=r.PseudoInputEvent=r.PseudoFocusEvent=r.PseudoKeyboardEvent=r.PseudoPointerEvent=r.PseudoMouseEvent=r.PseudoUIEvent=r.PseudoEvent=r.simulate=r.eventDefaults=r.createEvent=r.generateDocument=void 0;const i=e("./services/EventService");Object.defineProperty(r,"PseudoEvent",{enumerable:!0,get:function(){return i.EventService}});const s=n(e("./services/EventTargetService"));r.PseudoEventTarget=s.default;const o=e("./services/NodeService");Object.defineProperty(r,"PseudoNode",{enumerable:!0,get:function(){return o.NodeService}});const a=e("./services/ElementService");Object.defineProperty(r,"PseudoElement",{enumerable:!0,get:function(){return a.ElementService}});const l=e("./services/HTMLElementService");Object.defineProperty(r,"PseudoHTMLElement",{enumerable:!0,get:function(){return l.HTMLElementService}});const c=n(e("./classes/PseudoHTMLDocument"));r.PseudoHTMLDocument=c.default;const u=n(e("./factories/generateDocument"));r.generateDocument=u.default;const d=n(e("./factories/createEvent"));r.createEvent=d.default;const p=n(e("./factories/eventDefaults"));r.eventDefaults=p.default;const h=e("./services/UIEventService");Object.defineProperty(r,"PseudoUIEvent",{enumerable:!0,get:function(){return h.UIEventService}});const f=e("./services/MouseEventService");Object.defineProperty(r,"PseudoMouseEvent",{enumerable:!0,get:function(){return f.MouseEventService}});const v=e("./services/PointerEventService");Object.defineProperty(r,"PseudoPointerEvent",{enumerable:!0,get:function(){return v.PointerEventService}});const m=e("./services/KeyboardEventService");Object.defineProperty(r,"PseudoKeyboardEvent",{enumerable:!0,get:function(){return m.KeyboardEventService}});const b=e("./services/FocusEventService");Object.defineProperty(r,"PseudoFocusEvent",{enumerable:!0,get:function(){return b.FocusEventService}});const y=e("./services/InputEventService");Object.defineProperty(r,"PseudoInputEvent",{enumerable:!0,get:function(){return y.InputEventService}});const g=e("./services/CustomEventService");Object.defineProperty(r,"PseudoCustomEvent",{enumerable:!0,get:function(){return g.CustomEventService}});const E=n(e("./simulate"));r.simulate=E.default;const j={generateDocument:u.default,createEvent:d.default,eventDefaults:p.default,simulate:E.default,PseudoEvent:i.EventService,PseudoUIEvent:h.UIEventService,PseudoMouseEvent:f.MouseEventService,PseudoPointerEvent:v.PointerEventService,PseudoKeyboardEvent:m.KeyboardEventService,PseudoFocusEvent:b.FocusEventService,PseudoInputEvent:y.InputEventService,PseudoCustomEvent:g.CustomEventService,PseudoEventTarget:s.default,PseudoNode:o.NodeService,PseudoElement:a.ElementService,PseudoHTMLElement:l.HTMLElementService,PseudoHTMLDocument:c.default};r.default=j,"undefined"!=typeof window&&(window.pseudoDom=j)},{"./classes/PseudoHTMLDocument":2,"./factories/createEvent":4,"./factories/eventDefaults":5,"./factories/generateDocument":6,"./services/CustomEventService":14,"./services/ElementService":16,"./services/EventService":17,"./services/EventTargetService":18,"./services/FocusEventService":19,"./services/HTMLElementService":20,"./services/InputEventService":21,"./services/KeyboardEventService":22,"./services/MouseEventService":23,"./services/NodeService":25,"./services/PointerEventService":26,"./services/UIEventService":27,"./simulate":28}],13:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.AttrService=void 0;const n=e("./NodeService");class i extends n.NodeService{constructor(e="",t="",r=null,n="",i=null){super(),this.attributeName=e,this.value=t,this.element=r,this.namespace=n,this.namespacePrefix=i,this.nodeNameValue=e}get nodeType(){return n.NodeService.ATTRIBUTE_NODE}get localName(){return this.attributeName}get name(){return this.namespacePrefix?`${this.namespacePrefix}:${this.attributeName}`:this.attributeName}get namespaceURI(){return this.namespace}get ownerElement(){return this.element}get prefix(){return this.namespacePrefix}}r.AttrService=i},{"./NodeService":25}],14:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CustomEventService=void 0;const n=e("./EventService");class i extends n.EventService{constructor(e="",t={}){super(e,t),this.eventDetail=void 0===t.detail?null:t.detail}get detail(){return this.eventDetail}}r.CustomEventService=i},{"./EventService":17}],15:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.DOMTokenListService=void 0;class n{constructor(e="",t=()=>{}){this.tokens=n.parse(e),this.onChange=t}static parse(e){return(e||"").split(/\s+/).filter((e,t,r)=>""!==e&&r.indexOf(e)===t)}update(e){this.tokens=e,this.onChange(this.value)}static validate(e){if(""===e)throw new SyntaxError("The token provided must not be empty.");if(/\s/.test(e))throw new Error("The token provided contains whitespace.")}get length(){return this.tokens.length}get value(){return this.tokens.join(" ")}set value(e){this.update(n.parse(e))}item(e){return e>=0&&e<this.tokens.length?this.tokens[e]:null}contains(e){return this.tokens.indexOf(e)>=0}add(...e){e.forEach(n.validate),this.update(this.tokens.concat(e).filter((e,t,r)=>r.indexOf(e)===t))}remove(...e){e.forEach(n.validate),this.update(this.tokens.filter(t=>e.indexOf(t)<0))}replace(e,t){return n.validate(e),n.validate(t),!!this.contains(e)&&(this.update(this.tokens.map(r=>r===e?t:r).filter((e,t,r)=>r.indexOf(e)===t)),!0)}supports(e){throw new TypeError(`Failed to execute 'supports' on 'DOMTokenList': DOMTokenList has no supported tokens (${e}).`)}toggle(e,t){n.validate(e);const r="boolean"==typeof t?t:!this.contains(e);return r?this.add(e):this.remove(e),r}entries(){return this.tokens.map((e,t)=>[t,e])[Symbol.iterator]()}forEach(e,t){this.tokens.forEach((r,n)=>e.call(t,r,n,this))}keys(){return this.tokens.map((e,t)=>t)[Symbol.iterator]()}values(){return this.tokens.slice()[Symbol.iterator]()}}r.DOMTokenListService=n},{"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.filter.js":145,"core-js/modules/esnext.iterator.for-each.js":147,"core-js/modules/esnext.iterator.map.js":148}],16:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),e("core-js/modules/esnext.iterator.some.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ElementService=void 0;const i=n(e("../factories/createEvent")),s=e("./NodeService"),o=e("./AttrService"),a=e("./DOMTokenListService"),l=e("./NamedNodeMapService"),c=n(e("../functions/getParentNodesFromAttribute"));class u extends s.NodeService{constructor({tagName:e="",attributes:t=[],parent:r=null,children:n=[]}={}){super(),this.defaultEventApplied=!1,this.tokenList=new a.DOMTokenListService,this.tag=e,this.attributeList=t.concat([{name:"className",value:""},{name:"id",value:""},{name:"innerHTML",value:""}]),this.propertyAttributes=this.attributeList.map(({name:e})=>e),this.attributeList.forEach(({name:e,value:t})=>{this[e]=t}),n.forEach(e=>{if(!e||"number"!=typeof e.nodeType)throw new TypeError("The children of an element must be nodes.");this.appendChild(e)}),r&&r.appendChild(this)}get tagName(){return this.tag}get nodeType(){return s.NodeService.ELEMENT_NODE}get attributes(){return new l.NamedNodeMapService(this.attributeList.map(({name:e,value:t})=>new o.AttrService(e,String(t),this)))}get classList(){return this.tokenList}get className(){return this.tokenList.value}set className(e){this.tokenList.value=e}applyDefaultEvent(){let e=e=>{};if(this.defaultEventApplied)return e;switch(this.tagName){case"button":case"input":e=e=>{const t=String(this.getAttribute("type")||this.type||"").toLowerCase(),r="button"===this.tagName?"button"!==t&&"reset"!==t:/^(submit|image)$/.test(t),n=(0,c.default)("tagName","form",this);r&&n.length&&!this.hasAttribute("disabled")&&n[n.length-1].dispatchEvent((0,i.default)("submit",{},{browser:!0,trusted:e.isTrusted}))},super.setDefaultEvent("click",e),this.defaultEventApplied=!0}return e}childInserted(e){"function"==typeof e.applyDefaultEvent&&e.applyDefaultEvent()}hasAttribute(e){return this.attributeList.some(({name:t})=>t===e)}setAttribute(e,t){const r=this.attributeList.find(({name:t})=>t===e);r?r.value=t:this.attributeList.push({name:e,value:t}),this.propertyAttributes.indexOf(e)>=0&&(this[e]=t)}getAttribute(e){const t=this.attributeList.find(({name:t})=>t===e);return t?t.value:null}removeAttribute(e){const t=this.attributeList.findIndex(({name:t})=>t===e);t>=0&&this.attributeList.splice(t,1)}}r.ElementService=u},{"../factories/createEvent":4,"../functions/getParentNodesFromAttribute":10,"./AttrService":13,"./DOMTokenListService":15,"./NamedNodeMapService":24,"./NodeService":25,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.find.js":146,"core-js/modules/esnext.iterator.for-each.js":147,"core-js/modules/esnext.iterator.map.js":148,"core-js/modules/esnext.iterator.some.js":150}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EventService=void 0;class n{constructor(e="",{bubbles:t=!1,cancelable:r=!1,composed:n=!1}={}){this.properties={bubbles:!1,cancelable:!1,composed:!1,currentTarget:null,defaultPrevented:!1,immediatePropagationStopped:!1,propagationStopped:!1,eventPhase:0,target:null,timeStamp:Math.floor(Date.now()/1e3),type:"",isTrusted:!1,dispatching:!1,inPassiveListener:!1,path:[]},this.setReadOnlyProperties({type:e,bubbles:t,cancelable:r,composed:n})}get bubbles(){return this.properties.bubbles}get cancelable(){return this.properties.cancelable}get composed(){return this.properties.composed}get currentTarget(){return this.properties.currentTarget}get defaultPrevented(){return this.properties.defaultPrevented}get eventPhase(){return this.properties.eventPhase}get isTrusted(){return this.properties.isTrusted}get target(){return this.properties.target}get timeStamp(){return this.properties.timeStamp}get type(){return this.properties.type}get inner(){const e=this;return{get currentTarget(){return e.properties.currentTarget},set currentTarget(t){e.properties.currentTarget=t},get eventPhase(){return e.properties.eventPhase},set eventPhase(t){e.properties.eventPhase=t},get target(){return e.properties.target},set target(t){e.properties.target=t},get immediatePropagationStopped(){return e.properties.immediatePropagationStopped},get propagationStopped(){return e.properties.propagationStopped},get trusted(){return e.properties.isTrusted},set trusted(t){e.properties.isTrusted=t},get dispatching(){return e.properties.dispatching},set dispatching(t){e.properties.dispatching=t},get inPassiveListener(){return e.properties.inPassiveListener},set inPassiveListener(t){e.properties.inPassiveListener=t},get path(){return e.properties.path},set path(t){e.properties.path=t},finishDispatch(){e.setReadOnlyProperties({currentTarget:null,eventPhase:n.NONE,path:[],dispatching:!1,inPassiveListener:!1,propagationStopped:!1,immediatePropagationStopped:!1})}}}composedPath(){return this.properties.dispatching?this.properties.path.slice():[]}preventDefault(){return this.cancelable&&!this.properties.inPassiveListener&&this.setReadOnlyProperties({defaultPrevented:!0}),null}stopImmediatePropagation(){return this.setReadOnlyProperties({immediatePropagationStopped:!0}),null}stopPropagation(){return this.setReadOnlyProperties({propagationStopped:!0}),null}setReadOnlyProperties(e={}){return this.properties=Object.assign({},this.properties,e),this}}r.EventService=n,n.NONE=0,n.CAPTURING_PHASE=1,n.AT_TARGET=2,n.BUBBLING_PHASE=3},{}],18:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.filter.js"),e("core-js/modules/esnext.iterator.find.js"),e("core-js/modules/esnext.iterator.for-each.js"),e("core-js/modules/esnext.iterator.map.js"),e("core-js/modules/esnext.iterator.some.js");const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});const i=e("./EventService"),s=n(e("../classes/PseudoEventListener")),o=n(e("../functions/getParentNodes")),a=e("collect-your-stuff/dist/collections/linked-list/LinkedList");class l{constructor(){this.listeners={},this.defaultEvent={}}listenersFor(e){return e in this.listeners||(this.listeners[e]=new a.LinkedList),this.listeners[e]}runEvents(e){const t=[];if(!(e.type in this.listeners))return t;const r=Array.from(this.listeners[e.type]).map(e=>e.data),n=e.eventPhase===i.EventService.AT_TARGET?r.filter(e=>e.capture).concat(r.filter(e=>!e.capture)):r;for(const r of n){if(e.inner.immediatePropagationStopped)break;if(!r.rejectEvent(e)){r.once&&this.removeListener(e.type,r),e.inner.inPassiveListener=r.passive;try{r.handleEvent(e)}catch(e){t.push(e)}e.inner.inPassiveListener=!1}}return t}removeListener(e,t){t.removed=!0;const r=this.listeners[e];Array.from(r).filter(e=>e.data===t).forEach(e=>r.remove(e))}setDefaultEvent(e,t){this.listenersFor(e),this.defaultEvent[e]=t}addEventListener(e,t,r=!1){let n={capture:!1,once:!1,passive:!1};"object"==typeof r&&null!==r?n=Object.assign(n,r):n.capture=!!r;const i=this.listenersFor(e);if(Array.from(i).some(e=>e.data.callback===t&&e.data.capture===n.capture))return;const o="function"==typeof t?t.bind(this):t.handleEvent.bind(t),a=new s.default(e,n,o,t),l=Array.from(i).find(e=>e.data.isDefault);l&&!a.isDefault?i.insertBefore(l,a):i.append(a)}removeEventListener(e,t,r=!1){if(!(e in this.listeners))return;const n="object"==typeof r&&null!==r?!!r.capture:!!r;Array.from(this.listeners[e]).map(e=>e.data).filter(e=>!e.isDefault&&e.callback===t&&e.capture===n).forEach(t=>this.removeListener(e,t))}dispatchEvent(e){if(e.inner.dispatching)throw new Error("The event is already being dispatched.");e.inner.dispatching=!0,e.inner.target=this;const t=(0,o.default)(this).filter(e=>e instanceof l);e.inner.path=[this].concat(t.slice().reverse());const r=[],n=(t,n)=>{e.inner.eventPhase=n,e.inner.currentTarget=t,r.push(...t.runEvents(e))};for(const r of t){if(e.inner.propagationStopped)break;n(r,i.EventService.CAPTURING_PHASE)}if(e.inner.propagationStopped||n(this,i.EventService.AT_TARGET),e.bubbles)for(const r of t.slice().reverse()){if(e.inner.propagationStopped)break;n(r,i.EventService.BUBBLING_PHASE)}if(e.inner.finishDispatch(),!e.defaultPrevented&&"function"==typeof this.defaultEvent[e.type])try{this.defaultEvent[e.type](e)}catch(e){r.push(e)}if(1===r.length)throw r[0];if(r.length>1)throw Object.assign(new Error(`${r.length} listeners threw an error while dispatching the ${e.type} event.`),{errors:r});return!e.defaultPrevented}}r.default=l},{"../classes/PseudoEventListener":1,"../functions/getParentNodes":9,"./EventService":17,"collect-your-stuff/dist/collections/linked-list/LinkedList":33,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.filter.js":145,"core-js/modules/esnext.iterator.find.js":146,"core-js/modules/esnext.iterator.for-each.js":147,"core-js/modules/esnext.iterator.map.js":148,"core-js/modules/esnext.iterator.some.js":150}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FocusEventService=void 0;const n=e("./UIEventService");class i extends n.UIEventService{constructor(e="",t={}){super(e,t),this.related=t.relatedTarget||null}get relatedTarget(){return this.related}}r.FocusEventService=i},{"./UIEventService":27}],20:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HTMLElementService=void 0;const i=e("./ElementService"),s=n(e("../factories/createEvent")),o=e("../functions/activeElement");class a extends i.ElementService{constructor({tagName:e="",parent:t=null,children:r=[]}={}){super({tagName:e,attributes:[{name:"hidden",value:!1},{name:"offsetHeight",value:0},{name:"offsetLeft",value:0},{name:"offsetParent",value:null},{name:"offsetTop",value:0},{name:"offsetWidth",value:0},{name:"style",value:{}},{name:"title",value:""}],parent:t,children:r})}get canFocus(){if(this.hasAttribute("disabled"))return!1;switch(this.tagName){case"button":case"select":case"textarea":return!0;case"input":return"hidden"!==String(this.getAttribute("type")||"").toLowerCase();case"a":return this.hasAttribute("href")||this.hasAttribute("tabindex");default:return this.hasAttribute("tabindex")}}click(){this.hasAttribute("disabled")||this.dispatchEvent((0,s.default)("click",{},{browser:!0}))}focus(){const e=this.getRootNode(),t=(0,o.getActiveElement)(e);if(!this.canFocus||t===this)return;const r=(e,t,r)=>{e.dispatchEvent((0,s.default)(t,{relatedTarget:r},{browser:!0,trusted:!0}))};t&&(r(t,"blur",this),r(t,"focusout",this)),(0,o.setActiveElement)(e,this),r(this,"focus",t),r(this,"focusin",t)}blur(){const e=this.getRootNode();(0,o.getActiveElement)(e)===this&&((0,o.setActiveElement)(e,null),this.dispatchEvent((0,s.default)("blur",{relatedTarget:null},{browser:!0,trusted:!0})),this.dispatchEvent((0,s.default)("focusout",{relatedTarget:null},{browser:!0,trusted:!0})))}}r.HTMLElementService=a},{"../factories/createEvent":4,"../functions/activeElement":8,"./ElementService":16}],21:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.InputEventService=void 0;const n=e("./UIEventService");class i extends n.UIEventService{constructor(e="",t={}){super(e,t),this.inputData="string"==typeof t.data?t.data:null,this.kind=t.inputType||"",this.composing=!!t.isComposing}get data(){return this.inputData}get inputType(){return this.kind}get isComposing(){return this.composing}}r.InputEventService=i},{"./UIEventService":27}],22:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.KeyboardEventService=void 0;const n=e("./UIEventService"),i=e("../functions/modifierState");class s extends n.UIEventService{constructor(e="",t={}){super(e,t),this.keyValue=t.key||"",this.keyCode=t.code||"",this.keyLocation=t.location||0,this.held=!!t.repeat,this.composing=!!t.isComposing,this.modifiers=(0,i.modifierKeys)(t)}get key(){return this.keyValue}get code(){return this.keyCode}get location(){return this.keyLocation}get repeat(){return this.held}get isComposing(){return this.composing}get ctrlKey(){return this.modifiers.ctrlKey}get shiftKey(){return this.modifiers.shiftKey}get altKey(){return this.modifiers.altKey}get metaKey(){return this.modifiers.metaKey}getModifierState(e){return(0,i.modifierState)(this.modifiers,e)}}r.KeyboardEventService=s},{"../functions/modifierState":11,"./UIEventService":27}],23:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.MouseEventService=void 0;const n=e("./UIEventService"),i=e("../functions/modifierState");class s extends n.UIEventService{constructor(e="",t={}){super(e,t),this.position={screenX:t.screenX||0,screenY:t.screenY||0,clientX:t.clientX||0,clientY:t.clientY||0},this.modifiers=(0,i.modifierKeys)(t),this.buttonPressed=t.button||0,this.buttonsDown=t.buttons||0,this.related=t.relatedTarget||null}get screenX(){return this.position.screenX}get screenY(){return this.position.screenY}get clientX(){return this.position.clientX}get clientY(){return this.position.clientY}get x(){return this.position.clientX}get y(){return this.position.clientY}get ctrlKey(){return this.modifiers.ctrlKey}get shiftKey(){return this.modifiers.shiftKey}get altKey(){return this.modifiers.altKey}get metaKey(){return this.modifiers.metaKey}get button(){return this.buttonPressed}get buttons(){return this.buttonsDown}get relatedTarget(){return this.related}getModifierState(e){return(0,i.modifierState)(this.modifiers,e)}}r.MouseEventService=s},{"../functions/modifierState":11,"./UIEventService":27}],24:[function(e,t,r){"use strict";e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.find.js"),Object.defineProperty(r,"__esModule",{value:!0}),r.NamedNodeMapService=void 0;r.NamedNodeMapService=class{constructor(e=[]){this.attributes=e.slice()}get length(){return this.attributes.length}getNamedItem(e){return this.attributes.find(t=>t.name===e)||null}setNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e.name);if(t<0)return this.attributes.push(e),null;const r=this.attributes[t];return this.attributes[t]=e,r}removeNamedItem(e){const t=this.attributes.findIndex(t=>t.name===e);if(t<0)throw new Error(`The attribute "${e}" was not found.`);return this.attributes.splice(t,1)[0]}item(e){return this.attributes[e]||null}getNamedItemNS(e,t){return this.attributes.find(r=>r.namespaceURI===e&&r.localName===t)||null}setNamedItemNS(e){const t=this.attributes.findIndex(t=>t.namespaceURI===e.namespaceURI&&t.localName===e.localName);if(t<0)return this.attributes.push(e),null;const r=this.attributes[t];return this.attributes[t]=e,r}removeNamedItemNS(e,t){const r=this.attributes.findIndex(r=>r.namespaceURI===e&&r.localName===t);if(r<0)throw new Error(`The attribute "${t}" in the namespace "${e}" was not found.`);return this.attributes.splice(r,1)[0]}}},{"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.find.js":146}],25:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.NodeService=void 0;const i=n(e("../factories/generateNodeList")),s=e("collect-your-stuff/dist/collections/linked-tree-list/TreeLinker"),o=n(e("./EventTargetService"));class a extends o.default{constructor(){super(),this.nodeValueStore="",this.textContentStore="",this.nodeNameValue="",this.children=(0,i.default)(),this.parent=null,this.listLinker=null}get baseURI(){return window.location||"/"}get childNodes(){return this.children}get firstChild(){return this.children.first?this.children.first.data:null}get isConnected(){return!!this.parent}get lastChild(){return this.children.last?this.children.last.data:null}get nextSibling(){return this.listLinker&&this.listLinker.next?this.listLinker.next.data:null}get nodeName(){return this.nodeNameValue||""}get nodeType(){return a.DEFAULT_NODE}get nodeValue(){return this.nodeValueStore}set nodeValue(e){this.nodeValueStore=e}get ownerDocument(){return null}get parentNode(){return this.parent}get parentElement(){return this.parent&&this.parent.nodeType===a.ELEMENT_NODE?this.parent:null}get previousSibling(){return this.listLinker&&this.listLinker.prev?this.listLinker.prev.data:null}get textContent(){return this.textContentStore}set textContent(e){this.textContentStore=e}appendChild(e){return this.insertBefore(e,null)}childInserted(e){}cloneNode(e=!1){throw new Error(`NodeService.cloneNode(${e}) is not implemented yet.`)}compareDocumentPosition(e){throw new Error("NodeService.compareDocumentPosition() is not implemented yet.")}contains(e){let t=e;for(;t;){if(t===this)return!0;t=t.parentNode}return!1}getRootNode(e={composed:!1}){return this.parent?this.parent.getRootNode(e):this}hasChildNodes(){return this.children.length>0}insertBefore(e,t=null){if(null!==t&&t.parentNode!==this)throw new Error("The node before which the new node is to be inserted is not a child of this node.");if(e===t)return e;if("function"==typeof e.contains&&e.contains(this))throw new Error("The new node cannot be inserted into itself or one of its own descendants.");if(e.nodeType===a.DOCUMENT_FRAGMENT_NODE){for(;e.firstChild;)this.insertBefore(e.firstChild,t);return e}e.parentNode&&e.parentNode.removeChild(e);const r=new s.TreeLinker({data:e});this.children.insertBefore(t?t.listLinker:null,r);const n=e;return n.parent=this,n.listLinker=r,this.childInserted(n),e}isDefaultNamespace(e){return null===e}isEqualNode(e){throw new Error("NodeService.isEqualNode() is not implemented yet.")}isSameNode(e){return this===e}lookupPrefix(e){return null}lookupNamespaceURI(e){return null}normalize(){}removeChild(e){if(!e||e.parentNode!==this)throw new Error("The node to be removed is not a child of this node.");const t=e;return this.children.remove(t.listLinker),t.parent=null,t.listLinker=null,e}replaceChild(e,t){if(!t||t.parentNode!==this)throw new Error("The node to be replaced is not a child of this node.");if(e===t)return t;let r=t.nextSibling;return r===e&&(r=e.nextSibling),this.removeChild(t),this.insertBefore(e,r),t}}r.NodeService=a,a.DEFAULT_NODE=0,a.ELEMENT_NODE=1,a.ATTRIBUTE_NODE=2,a.TEXT_NODE=3,a.CDATA_SECTION_NODE=4,a.ENTITY_REFERENCE_NODE=5,a.ENTITY_NODE=6,a.PROCESSING_INSTRUCTION_NODE=7,a.COMMENT_NODE=8,a.DOCUMENT_NODE=9,a.DOCUMENT_TYPE_NODE=10,a.DOCUMENT_FRAGMENT_NODE=11,a.NOTATION_NODE=12},{"../factories/generateNodeList":7,"./EventTargetService":18,"collect-your-stuff/dist/collections/linked-tree-list/TreeLinker":36}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.PointerEventService=void 0;const n=e("./MouseEventService");class i extends n.MouseEventService{constructor(e="",t={}){super(e,t),this.pointer={pointerId:t.pointerId||0,width:"number"==typeof t.width?t.width:1,height:"number"==typeof t.height?t.height:1,pressure:t.pressure||0,pointerType:t.pointerType||"",isPrimary:!!t.isPrimary}}get pointerId(){return this.pointer.pointerId}get width(){return this.pointer.width}get height(){return this.pointer.height}get pressure(){return this.pointer.pressure}get pointerType(){return this.pointer.pointerType}get isPrimary(){return this.pointer.isPrimary}}r.PointerEventService=i},{"./MouseEventService":23}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.UIEventService=void 0;const n=e("./EventService");class i extends n.EventService{constructor(e="",t={}){super(e,t),this.uiDetail=t.detail||0,this.uiView=t.view||null}get detail(){return this.uiDetail}get view(){return this.uiView}}r.UIEventService=i},{"./EventService":17}],28:[function(e,t,r){"use strict";const n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.keyPress=r.click=void 0;const i=n(e("./factories/createEvent")),s=e("./functions/activeElement"),o=(e,t,r)=>e.dispatchEvent((0,i.default)(t,r,{browser:!0,trusted:!0}));r.click=(e,t={})=>{if(e.hasAttribute&&e.hasAttribute("disabled"))return!1;const r=Object.assign({pointerId:1,pointerType:"mouse",isPrimary:!0,button:0},t);if(o(e,"pointerdown",Object.assign({buttons:1},r)),o(e,"mousedown",Object.assign({buttons:1,detail:1},t,{button:0}))){const t=(e=>{let t=e;for(;t;){if(t.canFocus)return t;t=t.parentNode}return null})(e);if(t)t.focus();else{const t=(0,s.getActiveElement)(e.getRootNode());t&&t.blur()}}return o(e,"pointerup",Object.assign({buttons:0},r)),o(e,"mouseup",Object.assign({buttons:0,detail:1},t,{button:0})),o(e,"click",Object.assign({detail:1},t,{button:0}))};r.keyPress=(e,t,r={})=>{const n=Object.assign({key:t},r),i=o(e,"keydown",n);return o(e,"keyup",n),i},r.default={click:r.click,keyPress:r.keyPress}},{"./factories/createEvent":4,"./functions/activeElement":8}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayElement=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");class n{constructor(e=null){this.classType=n,this.data=null,this.data=e}}r.ArrayElement=n,n.make=(e,t=n)=>null===e||"object"!=typeof e?new t(e):e.classType?e:new t(e),n.fromArray=(e=[],t=n)=>e.reduce((e,r)=>{const n=t.make(r,t);return e.head.length?(e.head.push(n),e.tail=n,e):{head:[n],tail:n}},{head:[],tail:null})},{"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.reduce.js":149}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Arrayable=void 0;var n=e("./ArrayElement"),i=e("../../recipes/ArrayIterator");class s{constructor(e=n.ArrayElement){this.classType=s,this.innerList=[],this.initialized=!1,this.elementClass=e}indexOfElement(e){const t=this.innerList.indexOf(e);if(t<0)throw new Error("The reference element is not in this list.");return t}initialize(e){return this.initialized?(console.warn("Attempt to initialize non-empty list."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return this.length?this.innerList[0]:null}get last(){return this.length?this.innerList[this.length-1]:null}get length(){return this.innerList.length}insertAfter(e,t){const r=null==e?-1:this.indexOfElement(e);return this.innerList.splice(r+1,0,this.elementClass.make(t,this.elementClass)),this}insertBefore(e,t){const r=null==e?this.length:this.indexOfElement(e);return this.innerList.splice(r,0,this.elementClass.make(t,this.elementClass)),this}append(e,t=this.last){return t===this.last?(this.innerList.push(this.elementClass.make(e,this.elementClass)),this):this.insertAfter(t,e)}prepend(e,t=this.first){return t===this.first?(this.innerList.unshift(this.elementClass.make(e,this.elementClass)),this):this.insertBefore(t,e)}remove(e){const t=this.innerList.indexOf(e);return t<0?null:(this.innerList.splice(t,1),e)}item(e){if(e>=this.length)return null;if(e>=0)return this.innerList[e];const t=this.length+e;return t<0?null:this.innerList[t]}forEach(e,t=this){for(let r=0;r<t.length;++r)e(t.item(r),r,t);return t}[Symbol.iterator](){return new i.ArrayIterator(this.innerList,0)}}r.Arrayable=s,s.fromArray=(e=[],t=n.ArrayElement,r=s)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/ArrayIterator":37,"./ArrayElement":29}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoubleLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var n=e("../linked-list/Linker");class i{constructor({data:e=null,next:t=null,prev:r=null}={}){this.classType=i,this.data=null,this.next=null,this.prev=null,this.data=e,this.next=t,this.prev=r}}r.DoubleLinker=i,i.make=(e,t=i)=>n.Linker.make(e,t),i.fromArray=(e=[],t=i)=>e.reduce((e,r)=>{const n=t.make(r,t);return null===e.head?{head:n,tail:n}:(n.prev=e.tail,e.tail.next=n,e.tail=n,e)},{head:null,tail:null})},{"../linked-list/Linker":34,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.reduce.js":149}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoublyLinkedList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var n=e("./DoubleLinker"),i=e("../../recipes/DoubleLinkerIterator"),s=e("../linked-list/LinkedList");class o{constructor(e=n.DoubleLinker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.LinkedList.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){let e=this.innerList;if(null===e)return null;for(;null!==e.prev;)e=e.prev;return this.innerList=e,e}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.first;t.prev=null,t.next=e,e?e.prev=t:this.tailCache=t,this.innerList=t}else t.next=e.next,t.prev=e,e.next=t,t.next?t.next.prev=t:this.tailCache=t;return null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,t.prev=e,null===e?this.innerList=t:e.next=t,this.tailCache=t}else t.prev=e.prev,t.next=e,e.prev=t,t.prev?t.prev.next=t:this.innerList=t;return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){return null==e?null:(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),this.innerList===e&&(this.innerList=e.next||e.prev||null),this.tailCache===e&&(this.tailCache=e.prev),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=this.innerList;if(null===e)return this.countCache=0,this.tailCache=null,null;for(;null!==e.prev;)e=e.prev;this.innerList=e;let t=0,r=e,n=e;for(;null!==n;)++t,r=n,n=n.next;return this.countCache=t,this.tailCache=r,e}item(e){if(e>=0){let t=this.first,r=-1;for(;++r<e&&null!==t;)t=t.next;return r===e?t:null}let t=this.last,r=this.length;const n=this.length+e;if(n<0)return null;for(;--r>n&&null!==t;)t=t.prev;return r===n?t:null}forEach(e,t=this){return s.LinkedList.prototype.forEach.call(this,e,t)}[Symbol.iterator](){const e=this.first;return new i.DoubleLinkerIterator(e)}}r.DoublyLinkedList=o,o.fromArray=(e=[],t=n.DoubleLinker,r=o)=>s.LinkedList.fromArray(e,t,r)},{"../../recipes/DoubleLinkerIterator":38,"../linked-list/LinkedList":33,"./DoubleLinker":31,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.for-each.js":147}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedList=void 0;var n=e("./Linker"),i=e("../../recipes/LinkerIterator"),s=e("../arrayable/Arrayable");class o{constructor(e=n.Linker){this.classType=o,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.linkerClass=e}initialize(e){return s.Arrayable.prototype.initialize.call(this,e)}get list(){return this.innerList}get first(){return this.innerList}get last(){if(null===this.innerList)return null;let e=null!==this.tailCache?this.tailCache:this.innerList;for(;null!==e.next;)e=e.next;return this.tailCache=e,e}get length(){return null===this.countCache&&this.reset(),this.countCache}insertAfter(e,t){return t=this.linkerClass.make(t,this.linkerClass),null==e?(t.next=this.innerList,null===this.innerList&&(this.tailCache=t),this.innerList=t):(t.next=e.next,e.next=t,null===t.next&&(this.tailCache=t)),null!==this.countCache&&++this.countCache,this}insertBefore(e,t){if(t=this.linkerClass.make(t,this.linkerClass),null==e){const e=this.last;t.next=null,null===e?this.innerList=t:e.next=t,this.tailCache=t}else{let r=null,n=this.first;for(;null!==n&&n!==e;)r=n,n=n.next;if(null===n)throw new Error("The reference node is not in this list.");t.next=e,r?r.next=t:this.innerList=t}return null!==this.countCache&&++this.countCache,this}append(e,t=this.last){return this.insertAfter(t,e)}prepend(e,t=this.first){return this.insertBefore(t,e)}remove(e){if(null==e)return null;let t=null,r=this.first;for(;null!==r&&r!==e;)t=r,r=r.next;return null===r?null:(t?t.next=e.next:this.innerList=e.next,this.tailCache===e&&(this.tailCache=t),null===this.innerList&&(this.tailCache=null),null!==this.countCache&&--this.countCache,e)}reset(){let e=0,t=null,r=this.innerList;for(;null!==r;)++e,t=r,r=r.next;return this.countCache=e,this.tailCache=t,this.innerList}item(e){if(e>=0){let t=this.first,r=-1;for(;++r<e&&null!==t;)t=t.next;return r===e?t:null}let t=this.first,r=0;const n=this.length+e;if(n<0)return null;for(;r<n&&null!==t;)t=t.next,++r;return r===n?t:null}forEach(e,t=this){let r=0,n=t.first;for(;null!==n;)e(n,r,t),n=n.next,++r;return t}[Symbol.iterator](){return new i.LinkerIterator(this.first)}}r.LinkedList=o,o.fromArray=(e=[],t=n.Linker,r=o)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/LinkerIterator":39,"../arrayable/Arrayable":30,"./Linker":34}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Linker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.reduce.js");var n=e("../arrayable/ArrayElement");class i{constructor({data:e=null,next:t=null}={}){this.classType=i,this.data=null,this.next=null,this.data=e,this.next=t}}r.Linker=i,i.make=(e,t=i)=>null===e||"object"!=typeof e?new t({data:e}):e.classType?e:("data"in e||(e={data:e}),n.ArrayElement.make(e,t)),i.fromArray=(e=[],t=i)=>e.reduce((e,r)=>{const n=t.make(r,t);return null===e.head?{head:n,tail:n}:(e.tail.next=n,e.tail=n,e)},{head:null,tail:null})},{"../arrayable/ArrayElement":29,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.reduce.js":149}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkedTreeList=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.for-each.js");var n=e("./TreeLinker"),i=e("../../recipes/TreeLinkerIterator"),s=e("../doubly-linked-list/DoublyLinkedList");const o=(e,t)=>Object.getOwnPropertyDescriptor(s.DoublyLinkedList.prototype,e).get.call(t);class a{constructor(e=n.TreeLinker){this.classType=a,this.innerList=null,this.initialized=!1,this.tailCache=null,this.countCache=null,this.ownerNode=void 0,this.linkerClass=e}initialize(e){return this.initialized?(console.warn("Attempt to initialize LinkedTreeList which is not empty."),this):(this.initialized=!0,this.innerList=e,this)}get list(){return this.innerList}get first(){return o("first",this)}get last(){return o("last",this)}get length(){return o("length",this)}get parent(){if(void 0!==this.ownerNode)return this.ownerNode;const e=this.first;return null===e?null:e.parent}set parent(e){this.ownerNode=e;let t=this.first;for(;null!==t;)t.parent=e,t=t.next;e&&(e.children=this)}get rootParent(){let e=this.first;if(!e)return null;let t=this.first.parent;for(;null!==t;)e=t,t=e.parent;return e}setChildren(e,t=null){let r=!1;if(this.forEach(t=>{t===e&&(r=!0)}),!r)throw new Error("The item is not one of the linkers of this list.");null!=t?t.parent=e:e.children=null}adopt(e){const t=this.linkerClass.make(e,this.linkerClass);return t.parent=this.parent,t}insertAfter(e,t){return s.DoublyLinkedList.prototype.insertAfter.call(this,e,this.adopt(t))}insertBefore(e,t){return s.DoublyLinkedList.prototype.insertBefore.call(this,e,this.adopt(t))}append(e,t=this.last){return s.DoublyLinkedList.prototype.append.call(this,e,t)}prepend(e,t=this.first){return s.DoublyLinkedList.prototype.prepend.call(this,e,t)}remove(e){const t=this.parent,r=s.DoublyLinkedList.prototype.remove.call(this,e);return r&&r.parent===t&&(this.ownerNode=t,r.parent=null),r}reset(){return s.DoublyLinkedList.prototype.reset.call(this)}item(e){return s.DoublyLinkedList.prototype.item.call(this,e)}forEach(e,t=this){let r=0,n=t.first;for(;null!==n;)e(n,r,t),n=n.next,++r;return t}[Symbol.iterator](){return new i.TreeLinkerIterator(this.first,this.parent)}}r.LinkedTreeList=a,a.fromArray=(e=[],t=n.TreeLinker,r=a)=>new r(t).initialize(t.fromArray(e).head)},{"../../recipes/TreeLinkerIterator":40,"../doubly-linked-list/DoublyLinkedList":32,"./TreeLinker":36,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.for-each.js":147}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TreeLinker=void 0,e("core-js/modules/esnext.iterator.constructor.js"),e("core-js/modules/esnext.iterator.map.js");var n=e("../doubly-linked-list/DoubleLinker"),i=e("./LinkedTreeList");class s{constructor({data:e=null,next:t=null,prev:r=null,children:n=null,parent:o=null,listClass:a=i.LinkedTreeList}={}){this.classType=s,this.data=null,this.next=null,this.prev=null,this.parent=null,this.children=null,this.data=e,this.next=t,this.prev=r,this.parent=o,this.children=this.childrenFromArray(n,a)}childrenFromArray(e=null,t=i.LinkedTreeList){if(null===e)return null;const r=e.map(e=>{const t=this.classType.make(e,this.classType);return t.parent=this,t}),n=t.fromArray(r,this.classType);return n.parent=this,n}}r.TreeLinker=s,s.make=(e,t=s)=>n.DoubleLinker.make(e,t),s.fromArray=(e=[],t=s)=>n.DoubleLinker.fromArray(e,t)},{"../doubly-linked-list/DoubleLinker":31,"./LinkedTreeList":35,"core-js/modules/esnext.iterator.constructor.js":144,"core-js/modules/esnext.iterator.map.js":148}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayIterator=void 0;r.ArrayIterator=class{constructor(e,t=0){this.innerList=e,this.index=t}next(e){return this.index<this.innerList.length?{value:this.innerList[this.index++],done:!1}:{value:void 0,done:!0}}}},{}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.DoubleLinkerIterator=void 0;r.DoubleLinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LinkerIterator=void 0;r.LinkerIterator=class{constructor(e){this.current=e}next(e){const t={value:this.current,done:!this.current};return this.current=this.current?this.current.next:null,t}}},{}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.TreeLinkerIterator=void 0;var n=e("../services/parseTreeNext");r.TreeLinkerIterator=class{constructor(e,t){this.current=e,this.boundaryParent=t}next(e){const t={value:this.current,done:!this.current};return this.current=(0,n.parseTreeNext)(this.current,this.boundaryParent),t}}},{"../services/parseTreeNext":41}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.parseTreeNext=void 0;r.parseTreeNext=(e,t)=>{if(!e)return null;if(e.children&&e.children.length)return e.children.first;if(e.next)return e.next;let r=e.parent;for(;r&&r!==t;){if(r.next)return r.next;r=r.parent}return null}},{}],42:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),s=TypeError;t.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not a function")}},{"../internals/is-callable":87,"../internals/try-to-string":130}],43:[function(e,t,r){"use strict";var n=e("../internals/weak-map-helpers").has;t.exports=function(e){return n(e),e}},{"../internals/weak-map-helpers":135}],44:[function(e,t,r){"use strict";var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":112}],45:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=String,s=TypeError;t.exports=function(e){if(n(e))return e;throw new s(i(e)+" is not an object")}},{"../internals/is-object":90}],46:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),s=e("../internals/length-of-array-like"),o=function(e){return function(t,r,o){var a=n(t),l=s(a);if(0===l)return!e&&-1;var c,u=i(o,l);if(e&&r!=r){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/length-of-array-like":102,"../internals/to-absolute-index":123,"../internals/to-indexed-object":124}],47:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/iterator-close");t.exports=function(e,t,r,s){try{return s?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},{"../internals/an-object":45,"../internals/iterator-close":96}],48:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=n({}.toString),s=n("".slice);t.exports=function(e){return s(i(e),8,-1)}},{"../internals/function-uncurry-this":72}],49:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),s=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t,r){for(var a=i(t),l=o.f,c=s.f,u=0;u<a.length;u++){var d=a[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},{"../internals/has-own-property":79,"../internals/object-define-property":107,"../internals/object-get-own-property-descriptor":108,"../internals/own-keys":117}],50:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":65}],51:[function(e,t,r){"use strict";t.exports=function(e,t){return{value:e,done:t}}},{}],52:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,s(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":53,"../internals/descriptors":59,"../internals/object-define-property":107}],53:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],54:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),s=e("../internals/create-property-descriptor");t.exports=function(e,t,r){n?i.f(e,t,s(0,r)):e[t]=r}},{"../internals/create-property-descriptor":53,"../internals/descriptors":59,"../internals/object-define-property":107}],55:[function(e,t,r){"use strict";var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":103,"../internals/object-define-property":107}],56:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),s=e("../internals/make-built-in"),o=e("../internals/define-global-property");t.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&s(r,c,a),a.global)l?e[t]=r:o(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":58,"../internals/is-callable":87,"../internals/make-built-in":103,"../internals/object-define-property":107}],57:[function(e,t,r){"use strict";var n=e("../internals/define-built-in");t.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},{"../internals/define-built-in":56}],58:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global-this":78}],59:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":65}],60:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-object"),s=n.document,o=i(s)&&i(s.createElement);t.exports=function(e){return o?s.createElement(e):{}}},{"../internals/global-this":78,"../internals/is-object":90}],61:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],62:[function(e,t,r){"use strict";var n=e("../internals/global-this").navigator,i=n&&n.userAgent;t.exports=i?String(i):""},{"../internals/global-this":78}],63:[function(e,t,r){"use strict";var n,i,s=e("../internals/global-this"),o=e("../internals/environment-user-agent"),a=s.process,l=s.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/environment-user-agent":62,"../internals/global-this":78}],64:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/object-get-own-property-descriptor").f,s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,d,p,h,f=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[f]||a(f,{}):n[f]&&n[f].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=i(r,u))&&h.value:r[u],!c(v?u:f+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&s(p,"sham",!0),o(r,u,p,e)}}},{"../internals/copy-constructor-properties":49,"../internals/create-non-enumerable-property":52,"../internals/define-built-in":56,"../internals/define-global-property":58,"../internals/global-this":78,"../internals/is-forced":88,"../internals/object-get-own-property-descriptor":108}],65:[function(e,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],66:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,s=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(s):function(){return o.apply(s,arguments)})},{"../internals/function-bind-native":68}],67:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),s=e("../internals/function-bind-native"),o=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":42,"../internals/function-bind-native":68,"../internals/function-uncurry-this-clause":71}],68:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":65}],69:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":68}],70:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=i(s,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":59,"../internals/has-own-property":79}],71:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":48,"../internals/function-uncurry-this":72}],72:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,s=i.call,o=n&&i.bind.bind(s,s);t.exports=n?o:function(e){return function(){return s.apply(e,arguments)}}},{"../internals/function-bind-native":68}],73:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-callable");t.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},{"../internals/global-this":78,"../internals/is-callable":87}],74:[function(e,t,r){"use strict";t.exports=function(e){return{iterator:e,next:e.next,done:!1}}},{}],75:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/get-iterator-method-internal"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return s(n(r,e));throw new l(o(e)+" is not iterable")}},{"../internals/an-object":45,"../internals/function-call":69,"../internals/get-iterator-method-internal":76,"../internals/is-callable":87,"../internals/try-to-string":130}],76:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/is-null-or-undefined"),s=e("../internals/get-method"),o=e("../internals/well-known-symbol")("iterator"),a=Array.prototype;t.exports=function(e){if(!i(e))return s(e,o)||s(e,"@@iterator")||("Arguments"===n(e)?a[o]:void 0)}},{"../internals/classof-raw":48,"../internals/get-method":77,"../internals/is-null-or-undefined":89,"../internals/well-known-symbol":136}],77:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":42,"../internals/is-null-or-undefined":89}],78:[function(e,t,r){(function(e){(function(){"use strict";var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],79:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return s(i(e),t)}},{"../internals/function-uncurry-this":72,"../internals/to-object":127}],80:[function(e,t,r){"use strict";t.exports={}},{}],81:[function(e,t,r){"use strict";var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":73}],82:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),s=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":59,"../internals/document-create-element":60,"../internals/fails":65}],83:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/classof-raw"),o=Object,a=n("".split);t.exports=i(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},{"../internals/classof-raw":48,"../internals/fails":65,"../internals/function-uncurry-this":72}],84:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),s=e("../internals/shared-store"),o=n(Function.toString);i(s.inspectSource)||(s.inspectSource=function(e){return o(e)}),t.exports=s.inspectSource},{"../internals/function-uncurry-this":72,"../internals/is-callable":87,"../internals/shared-store":120}],85:[function(e,t,r){"use strict";var n,i,s,o=e("../internals/weak-map-basic-detection"),a=e("../internals/global-this"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),d=e("../internals/shared-store"),p=e("../internals/shared-key"),h=e("../internals/hidden-keys"),f="Object already initialized",v=a.TypeError,m=a.WeakMap;if(o||d.state){var b=d.state||(d.state=new m);b.get=b.get,b.has=b.has,b.set=b.set,n=function(e,t){if(b.has(e))throw new v(f);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},s=function(e){return b.has(e)}}else{var y=p("state");h[y]=!0,n=function(e,t){if(u(e,y))throw new v(f);return t.facade=e,c(e,y,t),t},i=function(e){return u(e,y)?e[y]:{}},s=function(e){return u(e,y)}}t.exports={set:n,get:i,has:s,enforce:function(e){return s(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new v("Incompatible receiver, "+e+" required");return r}}}},{"../internals/create-non-enumerable-property":52,"../internals/global-this":78,"../internals/has-own-property":79,"../internals/hidden-keys":80,"../internals/is-object":90,"../internals/shared-key":119,"../internals/shared-store":120,"../internals/weak-map-basic-detection":134}],86:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),s=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},{"../internals/iterators":101,"../internals/well-known-symbol":136}],87:[function(e,t,r){"use strict";var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},{}],88:[function(e,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/is-callable"),s=/#|\.prototype\./,o=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(s,".").toLowerCase()},l=o.data={},c=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},{"../internals/fails":65,"../internals/is-callable":87}],89:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],90:[function(e,t,r){"use strict";var n=e("../internals/is-callable");t.exports=function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/is-callable":87}],91:[function(e,t,r){"use strict";t.exports=!1},{}],92:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),s=e("../internals/object-is-prototype-of"),o=e("../internals/use-symbol-as-uid"),a=Object;t.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&s(t.prototype,a(e))}},{"../internals/get-built-in":73,"../internals/is-callable":87,"../internals/object-is-prototype-of":112,"../internals/use-symbol-as-uid":132}],93:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),s=e("../internals/an-object"),o=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator-internal"),d=e("../internals/get-iterator-method-internal"),p=e("../internals/iterator-close"),h=TypeError,f=function(e,t){this.stopped=e,this.result=t},v=f.prototype;t.exports=function(e,t,r){var m,b,y,g,E,j,x,w=r&&r.that,S=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),L=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),T=n(t,w),O=function(e){var t=m;return m=void 0,t&&p(t,"normal"),new f(!0,e)},N=function(e){return S?(s(e),P?T(e[0],e[1],O):T(e[0],e[1])):P?T(e,O):T(e)};if(k)m=e.iterator;else if(L)m=e;else{if(!(b=d(e)))throw new h(o(e)+" is not iterable");if(a(b)){for(y=0,g=l(e);g>y;y++)if((E=N(e[y]))&&c(v,E))return E;return new f(!1)}m=u(e,b)}for(j=k?e.next:m.next;!(x=i(j,m)).done;){var M=x.value;try{E=N(M)}catch(e){if(!m)throw e;p(m,"throw",e)}if("object"==typeof E&&E&&c(v,E))return E}return new f(!1)}},{"../internals/an-object":45,"../internals/function-bind-context":67,"../internals/function-call":69,"../internals/get-iterator-internal":75,"../internals/get-iterator-method-internal":76,"../internals/is-array-iterator-method":86,"../internals/iterator-close":96,"../internals/length-of-array-like":102,"../internals/object-is-prototype-of":112,"../internals/try-to-string":130}],94:[function(e,t,r){"use strict";t.exports=function(e){e.iterator=e.next=e.nextHandler=e.mapper=e.predicate=e.inner=e.iterables=e.iters=e.openIters=e.padding=e.finishResults=e.buffer=null}},{}],95:[function(e,t,r){"use strict";var n=e("../internals/iterator-close");t.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},{"../internals/iterator-close":96}],96:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/an-object"),s=e("../internals/get-method");t.exports=function(e,t,r){var o,a;i(e);try{if(!(o=s(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return i(o),r}},{"../internals/an-object":45,"../internals/function-call":69,"../internals/get-method":77}],97:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/object-create"),s=e("../internals/create-non-enumerable-property"),o=e("../internals/define-built-ins"),a=e("../internals/well-known-symbol"),l=e("../internals/internal-state"),c=e("../internals/get-method"),u=e("../internals/iterators-core").IteratorPrototype,d=e("../internals/create-iter-result-object"),p=e("../internals/iterator-close"),h=e("../internals/iterator-close-all"),f=e("../internals/iterator-cleanup-state"),v=a("toStringTag"),m="IteratorHelper",b="WrapForValidIterator",y="normal",g="throw",E=l.set,j=function(e){var t=l.getterFor(e?b:m);return o(i(u),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return d(void 0,!0);try{var n=r.nextHandler();return r.done&&f(r),r.returnHandlerResult?n:d(n,r.done)}catch(e){throw r.done=!0,f(r),e}},return:function(){var r=t(this),i=r.iterator,s=r.inner,o=r.openIters,a=r.done;if(r.done=!0,e){var l=c(i,"return");return l?n(l,i):d(void 0,!0)}if(f(r),a)return d(void 0,!0);if(s)try{p(s.iterator,y)}catch(e){return p(i,g,e)}if(o)try{h(o,y)}catch(e){if(i)return p(i,g,e);throw e}return i&&p(i,y),d(void 0,!0)}})},x=j(!0),w=j(!1);s(w,v,"Iterator Helper"),t.exports=function(e,t,r){var n=function(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?b:m,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,E(this,i)};return n.prototype=t?x:w,n}},{"../internals/create-iter-result-object":51,"../internals/create-non-enumerable-property":52,"../internals/define-built-ins":57,"../internals/function-call":69,"../internals/get-method":77,"../internals/internal-state":85,"../internals/iterator-cleanup-state":94,"../internals/iterator-close":96,"../internals/iterator-close-all":95,"../internals/iterators-core":100,"../internals/object-create":105,"../internals/well-known-symbol":136}],98:[function(e,t,r){"use strict";t.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},{}],99:[function(e,t,r){"use strict";var n=e("../internals/global-this");t.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,s=i&&i[e],o=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){o=!0}},-1)}catch(e){e instanceof t||(o=!1)}if(!o)return s}},{"../internals/global-this":78}],100:[function(e,t,r){"use strict";var n,i,s,o=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),h=e("../internals/is-pure"),f=p("iterator"),v=!1;[].keys&&("next"in(s=[].keys())?(i=u(u(s)))!==Object.prototype&&(n=i):v=!0),!l(n)||o(function(){var e={};return n[f].call(e)!==e})?n={}:h&&(n=c(n)),a(n[f])||d(n,f,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},{"../internals/define-built-in":56,"../internals/fails":65,"../internals/is-callable":87,"../internals/is-object":90,"../internals/is-pure":91,"../internals/object-create":105,"../internals/object-get-prototype-of":111,"../internals/well-known-symbol":136}],101:[function(e,t,r){"use strict";t.exports=Object.create?Object.create(null):{}},{}],102:[function(e,t,r){"use strict";var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":126}],103:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),s=e("../internals/is-callable"),o=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),d=u.enforce,p=u.get,h=String,f=Object.defineProperty,v=n("".slice),m=n("".replace),b=n([].join),y=a&&!i(function(){return 8!==f(function(){},"length",{value:8}).length}),g=String(String).split("String"),E=t.exports=function(e,t,r){"Symbol("===v(h(t),0,7)&&(t="["+m(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&o(r,"arity")&&e.length!==r.arity&&f(e,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?a&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return o(n,"source")||(n.source=b(g,"string"==typeof t?t:"")),e};Function.prototype.toString=E(function(){return s(this)&&p(this).source||c(this)},"toString")},{"../internals/descriptors":59,"../internals/fails":65,"../internals/function-name":70,"../internals/function-uncurry-this":72,"../internals/has-own-property":79,"../internals/inspect-source":84,"../internals/internal-state":85,"../internals/is-callable":87}],104:[function(e,t,r){"use strict";var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],105:[function(e,t,r){"use strict";var n,i=e("../internals/an-object"),s=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),d="prototype",p="script",h=u("IE_PROTO"),f=function(){},v=function(e){return"<"+p+">"+e+"</"+p+">"},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;b="undefined"!=typeof document?document.domain&&n?m(n):(t=c("iframe"),r="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var i=o.length;i--;)delete b[d][o[i]];return b()};a[h]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(f[d]=i(e),r=new f,f[d]=null,r[h]=e):r=b(),void 0===t?r:s.f(r,t)}},{"../internals/an-object":45,"../internals/document-create-element":60,"../internals/enum-bug-keys":61,"../internals/hidden-keys":80,"../internals/html":81,"../internals/object-define-properties":106,"../internals/shared-key":119}],106:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),s=e("../internals/object-define-property"),o=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)s.f(e,r=i[u++],n[r]);return e}},{"../internals/an-object":45,"../internals/descriptors":59,"../internals/object-define-property":107,"../internals/object-keys":114,"../internals/to-indexed-object":124,"../internals/v8-prototype-define-bug":133}],107:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),s=e("../internals/v8-prototype-define-bug"),o=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";r.f=n?s?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:d in r?r[d]:n[d],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(o(e),t=a(t),o(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../internals/an-object":45,"../internals/descriptors":59,"../internals/ie8-dom-define":82,"../internals/to-property-key":129,"../internals/v8-prototype-define-bug":133}],108:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-call"),s=e("../internals/object-property-is-enumerable"),o=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;r.f=n?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return o(!i(s.f,e,t),e[t])}},{"../internals/create-property-descriptor":53,"../internals/descriptors":59,"../internals/function-call":69,"../internals/has-own-property":79,"../internals/ie8-dom-define":82,"../internals/object-property-is-enumerable":115,"../internals/to-indexed-object":124,"../internals/to-property-key":129}],109:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":61,"../internals/object-keys-internal":113}],110:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],111:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),s=e("../internals/to-object"),o=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=o("IE_PROTO"),c=Object,u=c.prototype;t.exports=a?c.getPrototypeOf:function(e){var t=s(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},{"../internals/correct-prototype-getter":50,"../internals/has-own-property":79,"../internals/is-callable":87,"../internals/shared-key":119,"../internals/to-object":127}],112:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":72}],113:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),s=e("../internals/to-indexed-object"),o=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=s(e),c=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~o(u,r)||l(u,r));return u}},{"../internals/array-includes":46,"../internals/function-uncurry-this":72,"../internals/has-own-property":79,"../internals/hidden-keys":80,"../internals/to-indexed-object":124}],114:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":61,"../internals/object-keys-internal":113}],115:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!n.call({1:2},1);r.f=s?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],116:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),s=e("../internals/is-object"),o=TypeError;t.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!s(a=n(r,e)))return a;if(i(r=e.valueOf)&&!s(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!s(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},{"../internals/function-call":69,"../internals/is-callable":87,"../internals/is-object":90}],117:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),s=e("../internals/object-get-own-property-names"),o=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=s.f(a(e)),r=o.f;return r?l(t,r(e)):t}},{"../internals/an-object":45,"../internals/function-uncurry-this":72,"../internals/get-built-in":73,"../internals/object-get-own-property-names":109,"../internals/object-get-own-property-symbols":110}],118:[function(e,t,r){"use strict";var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":89}],119:[function(e,t,r){"use strict";var n=e("../internals/shared"),i=e("../internals/uid"),s=n("keys");t.exports=function(e){return s[e]||(s[e]=i(e))}},{"../internals/shared":121,"../internals/uid":131}],120:[function(e,t,r){"use strict";var n=e("../internals/is-pure"),i=e("../internals/global-this"),s=e("../internals/define-global-property"),o="__core-js_shared__",a=t.exports=i[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/define-global-property":58,"../internals/global-this":78,"../internals/is-pure":91}],121:[function(e,t,r){"use strict";var n=e("../internals/shared-store"),i=Object.create||Object;t.exports=function(e,t){return n[e]||(n[e]=t||i(null))}},{"../internals/shared-store":120}],122:[function(e,t,r){"use strict";var n=e("../internals/environment-v8-version"),i=e("../internals/fails"),s=e("../internals/global-this").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/environment-v8-version":63,"../internals/fails":65,"../internals/global-this":78}],123:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.max,s=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):s(r,t)}},{"../internals/to-integer-or-infinity":125}],124:[function(e,t,r){"use strict";var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":83,"../internals/require-object-coercible":118}],125:[function(e,t,r){"use strict";var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":104}],126:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},{"../internals/to-integer-or-infinity":125}],127:[function(e,t,r){"use strict";var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":118}],128:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-object"),s=e("../internals/is-symbol"),o=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||s(e))return e;var r,l=o(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||s(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../internals/function-call":69,"../internals/get-method":77,"../internals/is-object":90,"../internals/is-symbol":92,"../internals/ordinary-to-primitive":116,"../internals/well-known-symbol":136}],129:[function(e,t,r){"use strict";var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":92,"../internals/to-primitive":128}],130:[function(e,t,r){"use strict";var n=String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}},{}],131:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=0,s=Math.random(),o=n(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+s,36)}},{"../internals/function-uncurry-this":72}],132:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":122}],133:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":59,"../internals/fails":65}],134:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/is-callable"),s=n.WeakMap;t.exports=i(s)&&/native code/.test(String(s))},{"../internals/global-this":78,"../internals/is-callable":87}],135:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=WeakMap.prototype;t.exports={WeakMap:WeakMap,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete)}},{"../internals/function-uncurry-this":72}],136:[function(e,t,r){"use strict";var n=e("../internals/global-this"),i=e("../internals/shared"),s=e("../internals/has-own-property"),o=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||o;t.exports=function(e){return s(u,e)||(u[e]=a&&s(c,e)?c[e]:d("Symbol."+e)),u[e]}},{"../internals/global-this":78,"../internals/has-own-property":79,"../internals/shared":121,"../internals/symbol-constructor-detection":122,"../internals/uid":131,"../internals/use-symbol-as-uid":132}],137:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global-this"),s=e("../internals/an-instance"),o=e("../internals/an-object"),a=e("../internals/is-callable"),l=e("../internals/object-get-prototype-of"),c=e("../internals/define-built-in-accessor"),u=e("../internals/create-property"),d=e("../internals/fails"),p=e("../internals/has-own-property"),h=e("../internals/well-known-symbol"),f=e("../internals/iterators-core").IteratorPrototype,v=e("../internals/descriptors"),m=e("../internals/is-pure"),b="constructor",y="Iterator",g=h("toStringTag"),E=TypeError,j=i[y],x=m||!a(j)||j.prototype!==f||!d(function(){j({})}),w=function(){if(s(this,f),l(this)===f)throw new E("Abstract class Iterator not directly constructable")},S=function(e,t){v?c(f,e,{configurable:!0,get:function(){return t},set:function(t){if(o(this),this===f)throw new E("You can't redefine this property");p(this,e)?this[e]=t:u(this,e,t)}}):f[e]=t};p(f,g)||S(g,y),!x&&p(f,b)&&f[b]!==Object||S(b,w),w.prototype=f,n({global:!0,constructor:!0,forced:x},{Iterator:w})},{"../internals/an-instance":44,"../internals/an-object":45,"../internals/create-property":54,"../internals/define-built-in-accessor":55,"../internals/descriptors":59,"../internals/export":64,"../internals/fails":65,"../internals/global-this":78,"../internals/has-own-property":79,"../internals/is-callable":87,"../internals/is-pure":91,"../internals/iterators-core":100,"../internals/object-get-prototype-of":111,"../internals/well-known-symbol":136}],138:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/is-pure"),d=e("../internals/iterator-close"),p=e("../internals/iterator-helper-throws-on-invalid-iterator"),h=e("../internals/iterator-helper-without-closing-on-early-error"),f=!u&&!p("filter",function(){}),v=!u&&!f&&h("filter",TypeError),m=u||f||v,b=l(function(){for(var e,t,r=this.iterator,n=this.predicate,s=this.next;;){if(e=o(i(s,r)),this.done=!!e.done)return;if(t=e.value,c(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:m},{filter:function(e){o(this);try{s(e)}catch(e){d(this,"throw",e)}return v?i(v,this,e):new b(a(this),{predicate:e})}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/call-with-safe-iteration-closing":47,"../internals/export":64,"../internals/function-call":69,"../internals/get-iterator-direct":74,"../internals/is-pure":91,"../internals/iterator-close":96,"../internals/iterator-create-proxy":97,"../internals/iterator-helper-throws-on-invalid-iterator":98,"../internals/iterator-helper-without-closing-on-early-error":99}],139:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{find:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;return s(t,function(t,n){if(e(t,r++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/export":64,"../internals/function-call":69,"../internals/get-iterator-direct":74,"../internals/iterate":93,"../internals/iterator-close":96,"../internals/iterator-helper-without-closing-on-early-error":99}],140:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;s(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/export":64,"../internals/function-call":69,"../internals/get-iterator-direct":74,"../internals/iterate":93,"../internals/iterator-close":96,"../internals/iterator-helper-without-closing-on-early-error":99}],141:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-create-proxy"),c=e("../internals/call-with-safe-iteration-closing"),u=e("../internals/iterator-close"),d=e("../internals/iterator-helper-throws-on-invalid-iterator"),p=e("../internals/iterator-helper-without-closing-on-early-error"),h=e("../internals/is-pure"),f=!h&&!d("map",function(){}),v=!h&&!f&&p("map",TypeError),m=h||f||v,b=l(function(){var e=this.iterator,t=o(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:m},{map:function(e){o(this);try{s(e)}catch(e){u(this,"throw",e)}return v?i(v,this,e):new b(a(this),{mapper:e})}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/call-with-safe-iteration-closing":47,"../internals/export":64,"../internals/function-call":69,"../internals/get-iterator-direct":74,"../internals/is-pure":91,"../internals/iterator-close":96,"../internals/iterator-create-proxy":97,"../internals/iterator-helper-throws-on-invalid-iterator":98,"../internals/iterator-helper-without-closing-on-early-error":99}],142:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/iterate"),s=e("../internals/a-callable"),o=e("../internals/an-object"),a=e("../internals/get-iterator-direct"),l=e("../internals/iterator-close"),c=e("../internals/iterator-helper-without-closing-on-early-error"),u=e("../internals/function-apply"),d=e("../internals/fails"),p=TypeError,h=d(function(){[].keys().reduce(function(){},void 0)}),f=!h&&c("reduce",p);n({target:"Iterator",proto:!0,real:!0,forced:h||f},{reduce:function(e){o(this);try{s(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(f)return u(f,this,t?[e]:[e,r]);var n=a(this),c=0;if(i(n,function(n){t?(t=!1,r=n):r=e(r,n,c),c++},{IS_RECORD:!0}),t)throw new p("Reduce of empty iterator with no initial value");return r}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/export":64,"../internals/fails":65,"../internals/function-apply":66,"../internals/get-iterator-direct":74,"../internals/iterate":93,"../internals/iterator-close":96,"../internals/iterator-helper-without-closing-on-early-error":99}],143:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),s=e("../internals/iterate"),o=e("../internals/a-callable"),a=e("../internals/an-object"),l=e("../internals/get-iterator-direct"),c=e("../internals/iterator-close"),u=e("../internals/iterator-helper-without-closing-on-early-error")("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{o(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;return s(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},{"../internals/a-callable":42,"../internals/an-object":45,"../internals/export":64,"../internals/function-call":69,"../internals/get-iterator-direct":74,"../internals/iterate":93,"../internals/iterator-close":96,"../internals/iterator-helper-without-closing-on-early-error":99}],144:[function(e,t,r){"use strict";e("../modules/es.iterator.constructor")},{"../modules/es.iterator.constructor":137}],145:[function(e,t,r){"use strict";e("../modules/es.iterator.filter")},{"../modules/es.iterator.filter":138}],146:[function(e,t,r){"use strict";e("../modules/es.iterator.find")},{"../modules/es.iterator.find":139}],147:[function(e,t,r){"use strict";e("../modules/es.iterator.for-each")},{"../modules/es.iterator.for-each":140}],148:[function(e,t,r){"use strict";e("../modules/es.iterator.map")},{"../modules/es.iterator.map":141}],149:[function(e,t,r){"use strict";e("../modules/es.iterator.reduce")},{"../modules/es.iterator.reduce":142}],150:[function(e,t,r){"use strict";e("../modules/es.iterator.some")},{"../modules/es.iterator.some":143}],151:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/a-weak-map"),s=e("../internals/weak-map-helpers").remove;n({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),r=!0,n=0,o=arguments.length;n<o;n++)e=s(t,arguments[n]),r=r&&e;return!!r}})},{"../internals/a-weak-map":43,"../internals/export":64,"../internals/weak-map-helpers":135}]},{},[12]);
|
|
@@ -18,6 +18,14 @@ declare class PseudoEventListener {
|
|
|
18
18
|
private handler;
|
|
19
19
|
private readonly originalCallback;
|
|
20
20
|
private readonly defaultListener;
|
|
21
|
+
private isRemoved;
|
|
22
|
+
/**
|
|
23
|
+
* @param {string} eventType The type of event this listens for
|
|
24
|
+
* @param {Object} [options] The capture, once and passive options
|
|
25
|
+
* @param {Function} handleEvent The function which is called with the event, already bound to what it should run as
|
|
26
|
+
* @param {Function} [originalCallback=handleEvent] The function (or object) which was given when registering, used to find this listener again
|
|
27
|
+
* @constructor
|
|
28
|
+
*/
|
|
21
29
|
constructor(eventType: string, { capture, once, passive }: {
|
|
22
30
|
capture?: boolean;
|
|
23
31
|
once?: boolean;
|
|
@@ -27,8 +35,15 @@ declare class PseudoEventListener {
|
|
|
27
35
|
* The function (or object with handleEvent) which was originally given when registering, used to find this listener again for removal.
|
|
28
36
|
*/
|
|
29
37
|
get callback(): Function;
|
|
38
|
+
/** Whether this listener listens in the capture phase (and at the target) rather than in the bubble phase. */
|
|
39
|
+
get capture(): boolean;
|
|
30
40
|
get isDefault(): boolean;
|
|
31
41
|
get once(): boolean;
|
|
42
|
+
/** Whether the listener promises not to prevent the default (preventDefault does nothing while it runs). */
|
|
43
|
+
get passive(): boolean;
|
|
44
|
+
/** Whether this listener has been removed, a removed listener does not run even if the event already started. */
|
|
45
|
+
get removed(): boolean;
|
|
46
|
+
set removed(removed: boolean);
|
|
32
47
|
/**
|
|
33
48
|
* @method
|
|
34
49
|
* @name PseudoEventListener#handleEvent
|
|
@@ -37,6 +52,7 @@ declare class PseudoEventListener {
|
|
|
37
52
|
*/
|
|
38
53
|
handleEvent(event: EventService): any;
|
|
39
54
|
/**
|
|
55
|
+
* A capture listener runs while the event travels down to the target.
|
|
40
56
|
* @method
|
|
41
57
|
* @name PseudoEventListener#doCapturePhase
|
|
42
58
|
* @param {PseudoEvent} event
|
|
@@ -44,6 +60,7 @@ declare class PseudoEventListener {
|
|
|
44
60
|
*/
|
|
45
61
|
doCapturePhase(event: EventService): boolean;
|
|
46
62
|
/**
|
|
63
|
+
* Every listener of the target itself runs, capture listeners first.
|
|
47
64
|
* @method
|
|
48
65
|
* @name PseudoEventListener#doTargetPhase
|
|
49
66
|
* @param {PseudoEvent} event
|
|
@@ -51,12 +68,13 @@ declare class PseudoEventListener {
|
|
|
51
68
|
*/
|
|
52
69
|
doTargetPhase(event: EventService): boolean;
|
|
53
70
|
/**
|
|
71
|
+
* A listener which is not a capture listener runs while the event travels back up (when it bubbles).
|
|
54
72
|
* @method
|
|
55
73
|
* @name PseudoEventListener#doBubblePhase
|
|
56
74
|
* @param {PseudoEvent} event
|
|
57
|
-
* @returns {boolean
|
|
75
|
+
* @returns {boolean}
|
|
58
76
|
*/
|
|
59
|
-
doBubblePhase(event: EventService): boolean
|
|
77
|
+
doBubblePhase(event: EventService): boolean;
|
|
60
78
|
/**
|
|
61
79
|
* @method
|
|
62
80
|
* @name PseudoEventListener#skipPhase
|
|
@@ -65,32 +83,14 @@ declare class PseudoEventListener {
|
|
|
65
83
|
*/
|
|
66
84
|
skipPhase(event: EventService): boolean;
|
|
67
85
|
/**
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @returns {boolean|*}
|
|
72
|
-
*/
|
|
73
|
-
skipDefault(event: EventService): boolean | any;
|
|
74
|
-
/**
|
|
75
|
-
* @method
|
|
76
|
-
* @name PseudoEventListener#stopPropagation
|
|
77
|
-
* @param {PseudoEvent} event
|
|
78
|
-
* @returns {boolean}
|
|
79
|
-
*/
|
|
80
|
-
stopPropagation(event: EventService): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* @method
|
|
83
|
-
* @name PseudoEventListener#nonPassiveHalt
|
|
84
|
-
* @param {PseudoEvent} event
|
|
85
|
-
* @returns {boolean|*}
|
|
86
|
-
*/
|
|
87
|
-
nonPassiveHalt(event: EventService): boolean | any;
|
|
88
|
-
/**
|
|
86
|
+
* Whether this listener should not run for the event as it is now (it was removed, or it is for another phase).
|
|
87
|
+
* Stopping propagation is handled by the dispatching, since it stops other targets and not the listeners of the
|
|
88
|
+
* current one.
|
|
89
89
|
* @method
|
|
90
90
|
* @name PseudoEventListener#rejectEvent
|
|
91
91
|
* @param {PseudoEvent} event
|
|
92
|
-
* @returns {
|
|
92
|
+
* @returns {boolean}
|
|
93
93
|
*/
|
|
94
|
-
rejectEvent(event: EventService):
|
|
94
|
+
rejectEvent(event: EventService): boolean;
|
|
95
95
|
}
|
|
96
96
|
export default PseudoEventListener;
|