"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8512],{89733:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.AbstractHandler=void 0;var i=r(14212);var o=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(i.AbstractMathDocument);var a=function(){function t(t,e){if(e===void 0){e=5}this.documentClass=o;this.adaptor=t;this.priority=e}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.handlesDocument=function(t){return false};t.prototype.create=function(t,e){return new this.documentClass(t,this.adaptor,e)};t.NAME="generic";return t}();e.AbstractHandler=a},19068:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractInputJax=void 0;var n=r(36059);var i=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;this.mmlFactory=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.preFilters=new i.FunctionList;this.postFilters=new i.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.setMmlFactory=function(t){this.mmlFactory=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=e){if(s.item.renderDoc(t))return}}}catch(l){r={error:l}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}};e.prototype.renderMath=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.UNPROCESSED}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>=r){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.renderConvert=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.LAST}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>r)return;if(l.item.convert){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.findID=function(t){var e,r;try{for(var n=i(this.items),o=n.next();!o.done;o=n.next()){var a=o.value;if(a.item.id===t){return a.item}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return null};return e}(d.PrioritizedList);e.RenderList=y;e.resetOptions={all:false,processed:false,inputJax:null,outputJax:null};e.resetAllOptions={all:true,processed:true,inputJax:[],outputJax:[]};var v=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.compile=function(t){return null};return e}(l.AbstractInputJax);var m=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.typeset=function(t,e){if(e===void 0){e=null}return null};e.prototype.escaped=function(t,e){return null};return e}(u.AbstractOutputJax);var x=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(c.AbstractMathList);var b=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(p.AbstractMathItem);var g=function(){function t(e,r,n){var i=this;var o=this.constructor;this.document=e;this.options=(0,s.userOptions)((0,s.defaultOptions)({},o.OPTIONS),n);this.math=new(this.options["MathList"]||x);this.renderActions=y.create(this.options["renderActions"]);this.processed=new t.ProcessBits;this.outputJax=this.options["OutputJax"]||new m;var a=this.options["InputJax"]||[new v];if(!Array.isArray(a)){a=[a]}this.inputJax=a;this.adaptor=r;this.outputJax.setAdaptor(r);this.inputJax.map((function(t){return t.setAdaptor(r)}));this.mmlFactory=this.options["MmlFactory"]||new f.MmlFactory;this.inputJax.map((function(t){return t.setMmlFactory(i.mmlFactory)}));this.outputJax.initialize();this.inputJax.map((function(t){return t.initialize()}))}Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:false,configurable:true});t.prototype.addRenderAction=function(t){var e=[];for(var r=1;r{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var n=r(36059);var i=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.postFilters=new i.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HTMLDocument=void 0;var s=r(14212);var l=r(36059);var u=r(25815);var c=r(43845);var p=r(19062);var f=r(59719);var h=function(t){n(e,t);function e(e,r,n){var i=this;var a=o((0,l.separateOptions)(n,p.HTMLDomStrings.OPTIONS),2),s=a[0],u=a[1];i=t.call(this,e,r,s)||this;i.domStrings=i.options["DomStrings"]||new p.HTMLDomStrings(u);i.domStrings.adaptor=r;i.styles=[];return i}e.prototype.findPosition=function(t,e,r,n){var i,s;var l=this.adaptor;try{for(var u=a(n[t]),c=u.next();!c.done;c=u.next()){var p=c.value;var f=o(p,2),h=f[0],d=f[1];if(e<=d&&l.kind(h)==="#text"){return{node:h,n:Math.max(e,0),delim:r}}e-=d}}catch(y){i={error:y}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}return{node:null,n:0,delim:r}};e.prototype.mathItem=function(t,e,r){var n=t.math;var i=this.findPosition(t.n,t.start.n,t.open,r);var o=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,i,o)};e.prototype.findMath=function(t){var e,r,n,i,s,u,c,p,f;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document;t=(0,l.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var h=a(this.adaptor.getElements(t["elements"],this.document)),d=h.next();!d.done;d=h.next()){var y=d.value;var v=o([null,null],2),m=v[0],x=v[1];try{for(var b=(n=void 0,a(this.inputJax)),g=b.next();!g.done;g=b.next()){var _=g.value;var w=new this.options["MathList"];if(_.processStrings){if(m===null){s=o(this.domStrings.find(y),2),m=s[0],x=s[1]}try{for(var S=(u=void 0,a(_.findMath(m))),O=S.next();!O.done;O=S.next()){var T=O.value;w.push(this.mathItem(T,_,x))}}catch(D){u={error:D}}finally{try{if(O&&!O.done&&(c=S.return))c.call(S)}finally{if(u)throw u.error}}}else{try{for(var M=(p=void 0,a(_.findMath(y))),E=M.next();!E.done;E=M.next()){var T=E.value;var A=new this.options.MathItem(T.math,_,T.display,T.start,T.end);w.push(A)}}catch(P){p={error:P}}finally{try{if(E&&!E.done&&(f=M.return))f.call(M)}finally{if(p)throw p.error}}}this.math.merge(w)}}catch(j){n={error:j}}finally{try{if(g&&!g.done&&(i=b.return))i.call(b)}finally{if(n)throw n.error}}}}catch(I){e={error:I}}finally{try{if(d&&!d.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this};e.prototype.updateDocument=function(){if(!this.processed.isSet("updateDocument")){this.addPageElements();this.addStyleSheet();t.prototype.updateDocument.call(this);this.processed.set("updateDocument")}return this};e.prototype.addPageElements=function(){var t=this.adaptor.body(this.document);var e=this.documentPageElements();if(e){this.adaptor.append(t,e)}};e.prototype.addStyleSheet=function(){var t=this.documentStyleSheet();var e=this.adaptor;if(t&&!e.parent(t)){var r=e.head(this.document);var n=this.findSheet(r,e.getAttribute(t,"id"));if(n){e.replace(t,n)}else{e.append(r,t)}}};e.prototype.findSheet=function(t,e){var r,n;if(e){try{for(var i=a(this.adaptor.tags(t,"style")),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.adaptor.getAttribute(s,"id")===e){return s}}}catch(l){r={error:l}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}}return null};e.prototype.removeFromDocument=function(t){var e,r;if(t===void 0){t=false}if(this.processed.isSet("updateDocument")){try{for(var n=a(this.math),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.state()>=f.STATE.INSERTED){o.state(f.STATE.TYPESET,t)}}}catch(s){e={error:s}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}}this.processed.clear("updateDocument");return this};e.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)};e.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)};e.prototype.addStyles=function(t){this.styles.push(t)};e.prototype.getStyles=function(){return this.styles};e.KIND="HTML";e.OPTIONS=i(i({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,l.expandable)(i(i({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[f.STATE.INSERTED+1,"","updateStyleSheet",false]})),MathList:c.HTMLMathList,MathItem:u.HTMLMathItem,DomStrings:null});return e}(s.AbstractMathDocument);e.HTMLDocument=h},19062:function(t,e,r){var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.HTMLDomStrings=void 0;var i=r(36059);var o=function(){function t(t){if(t===void 0){t=null}var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.init();this.getPatterns()}t.prototype.init=function(){this.strings=[];this.string="";this.snodes=[];this.nodes=[];this.stack=[]};t.prototype.getPatterns=function(){var t=(0,i.makeArray)(this.options["skipHtmlTags"]);var e=(0,i.makeArray)(this.options["ignoreHtmlClass"]);var r=(0,i.makeArray)(this.options["processHtmlClass"]);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i");this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)");this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")};t.prototype.pushString=function(){if(this.string.match(/\S/)){this.strings.push(this.string);this.nodes.push(this.snodes)}this.string="";this.snodes=[]};t.prototype.extendString=function(t,e){this.snodes.push([t,e.length]);this.string+=e};t.prototype.handleText=function(t,e){if(!e){this.extendString(t,this.adaptor.value(t))}return this.adaptor.next(t)};t.prototype.handleTag=function(t,e){if(!e){var r=this.options["includeHtmlTags"][this.adaptor.kind(t)];this.extendString(t,r)}return this.adaptor.next(t)};t.prototype.handleContainer=function(t,e){this.pushString();var r=this.adaptor.getAttribute(t,"class")||"";var n=this.adaptor.kind(t)||"";var i=this.processHtmlClass.exec(r);var o=t;if(this.adaptor.firstChild(t)&&!this.adaptor.getAttribute(t,"data-MJX")&&(i||!this.skipHtmlTags.exec(n))){if(this.adaptor.next(t)){this.stack.push([this.adaptor.next(t),e])}o=this.adaptor.firstChild(t);e=(e||this.ignoreHtmlClass.exec(r))&&!i}else{o=this.adaptor.next(t)}return[o,e]};t.prototype.handleOther=function(t,e){this.pushString();return this.adaptor.next(t)};t.prototype.find=function(t){var e,r;this.init();var i=this.adaptor.next(t);var o=false;var a=this.options["includeHtmlTags"];while(t&&t!==i){var s=this.adaptor.kind(t);if(s==="#text"){t=this.handleText(t,o)}else if(a.hasOwnProperty(s)){t=this.handleTag(t,o)}else if(s){e=n(this.handleContainer(t,o),2),t=e[0],o=e[1]}else{t=this.handleOther(t,o)}if(!t&&this.stack.length){this.pushString();r=n(this.stack.pop(),2),t=r[0],o=r[1]}}this.pushString();var l=[this.strings,this.nodes];this.init();return l};t.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"};return t}();e.HTMLDomStrings=o},18512:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLHandler=void 0;var i=r(89733);var o=r(24577);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.documentClass=o.HTMLDocument;return e}e.prototype.handlesDocument=function(t){var e=this.adaptor;if(typeof t==="string"){try{t=e.parse(t,"text/html")}catch(r){}}if(t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment){return true}return false};e.prototype.create=function(e,r){var n=this.adaptor;if(typeof e==="string"){e=n.parse(e,"text/html")}else if(e instanceof n.window.HTMLElement||e instanceof n.window.DocumentFragment){var i=e;e=n.parse("","text/html");n.append(n.body(e),i)}return t.prototype.create.call(this,e,r)};return e}(i.AbstractHandler);e.HTMLHandler=a},25815:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathItem=void 0;var i=r(59719);var o=function(t){n(e,t);function e(e,r,n,i,o){if(n===void 0){n=true}if(i===void 0){i={node:null,n:0,delim:""}}if(o===void 0){o={node:null,n:0,delim:""}}return t.call(this,e,r,n,i,o)||this}Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:false,configurable:true});e.prototype.updateDocument=function(t){if(this.state()=i.STATE.TYPESET){var e=this.adaptor;var r=this.start.node;var n=e.text("");if(t){var o=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings){n=e.text(o)}else{var a=e.parse(o,"text/html");n=e.firstChild(e.body(a))}}if(e.parent(r)){e.replace(n,r)}this.start.node=this.end.node=n;this.start.n=this.end.n=0}};return e}(i.AbstractMathItem);e.HTMLMathItem=o},43845:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathList=void 0;var i=r(70020);var o=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(i.AbstractMathList);e.HTMLMathList=o},11033:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.LinkedList=e.ListItem=e.END=void 0;e.END=Symbol();var a=function(){function t(t){if(t===void 0){t=null}this.next=null;this.prev=null;this.data=t}return t}();e.ListItem=a;var s=function(){function t(){var t=[];for(var r=0;r1){var u=i.shift();var c=i.shift();u.merge(c,e);i.push(u)}if(i.length){this.list=i[0].list}return this};t.prototype.merge=function(t,r){var i,o,a,s,l;if(r===void 0){r=null}if(r===null){r=this.isBefore.bind(this)}var u=this.list.next;var c=t.list.next;while(u.data!==e.END&&c.data!==e.END){if(r(c.data,u.data)){i=n([u,c],2),c.prev.next=i[0],u.prev.next=i[1];o=n([u.prev,c.prev],2),c.prev=o[0],u.prev=o[1];a=n([t.list,this.list],2),this.list.prev.next=a[0],t.list.prev.next=a[1];s=n([t.list.prev,this.list.prev],2),this.list.prev=s[0],t.list.prev=s[1];l=n([c.next,u],2),u=l[0],c=l[1]}else{u=u.next}}if(c.data!==e.END){this.list.prev.next=t.list.next;t.list.next.prev=this.list.prev;t.list.prev.next=this.list;this.list.prev=t.list.prev;t.list.next=t.list.prev=t.list}return this};return t}();e.LinkedList=s},4180:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r}}]);