@mongodb-js/compass-aggregations 8.22.0 → 8.25.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/.depcheckrc +2 -0
- package/.eslintignore +1 -1
- package/README.md +0 -2
- package/dist/browser.js +2 -0
- package/{lib → dist}/browser.js.LICENSE.txt +0 -0
- package/{lib → dist}/index.css +311 -566
- package/dist/index.js +15 -0
- package/{lib → dist}/index.js.LICENSE.txt +0 -0
- package/package.json +44 -48
- package/tsconfig-lint.json +1 -1
- package/lib/browser.js +0 -2
- package/lib/index.js +0 -15
package/dist/browser.js
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see browser.js.LICENSE.txt */
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AggregationsPlugin=t():e.AggregationsPlugin=t()}(self,(function(){return(()=>{var e={9388:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var s={},o=[],a=0;a<e.length;a++){var u=e[a],l=r.base?u[0]+r.base:u[0],c=s[l]||0,p="".concat(l," ").concat(c);s[l]=c+1;var h=n(p),d={css:u[1],media:u[2],sourceMap:u[3]};-1!==h?(t[h].references++,t[h].updater(d)):t.push({identifier:p,updater:i(d,r),references:1}),o.push(p)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var s=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var a=n(s[o]);t[a].references--}for(var u=r(e,i),l=0;l<s.length;l++){var c=n(s[l]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=u}}},1914:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},370:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},6566:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},6053:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=n.css,i=n.media,s=n.sourceMap;i?e.setAttribute("media",i):e.removeAttribute("media"),s&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(r,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},6682:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},1595:(e,t,n)=>{var r=t,i=n(7360),s=n(6624),o=n(4770),a=n(3997)(1e3);function u(e,t,n){return o.createHmac("sha256",e).update(t,"utf8").digest(n)}function l(e,t){return o.createHash("sha256").update(e,"utf8").digest(t)}function c(e){return e.replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function p(e){return c(encodeURIComponent(e))}var h={authorization:!0,connection:!0,"x-amzn-trace-id":!0,"user-agent":!0,expect:!0,"presigned-expires":!0,range:!0};function d(e,t){"string"==typeof e&&(e=i.parse(e));var n=e.headers=e.headers||{},r=(!this.service||!this.region)&&this.matchHost(e.hostname||e.host||n.Host||n.host);this.request=e,this.credentials=t||this.defaultCredentials(),this.service=e.service||r[0]||"",this.region=e.region||r[1]||"us-east-1","email"===this.service&&(this.service="ses"),!e.method&&e.body&&(e.method="POST"),n.Host||n.host||(n.Host=e.hostname||e.host||this.createHost(),e.port&&(n.Host+=":"+e.port)),e.hostname||e.host||(e.hostname=n.Host||n.host),this.isCodeCommitGit="codecommit"===this.service&&"GIT"===e.method}d.prototype.matchHost=function(e){var t=((e||"").match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(\.cn)?$/)||[]).slice(1,3);if("es"===t[1]&&(t=t.reverse()),"s3"==t[1])t[0]="s3",t[1]="us-east-1";else for(var n=0;n<2;n++)if(/^s3-/.test(t[n])){t[1]=t[n].slice(3),t[0]="s3";break}return t},d.prototype.isSingleRegion=function(){return["s3","sdb"].indexOf(this.service)>=0&&"us-east-1"===this.region||["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0},d.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region;return("ses"===this.service?"email":this.service)+e+".amazonaws.com"},d.prototype.prepareRequest=function(){this.parsePath();var e,t=this.request,n=t.headers;t.signQuery?(this.parsedPath.query=e=this.parsedPath.query||{},this.credentials.sessionToken&&(e["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||e["X-Amz-Expires"]||(e["X-Amz-Expires"]=86400),e["X-Amz-Date"]?this.datetime=e["X-Amz-Date"]:e["X-Amz-Date"]=this.getDateTime(),e["X-Amz-Algorithm"]="AWS4-HMAC-SHA256",e["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString(),e["X-Amz-SignedHeaders"]=this.signedHeaders()):(t.doNotModifyHeaders||this.isCodeCommitGit||(!t.body||n["Content-Type"]||n["content-type"]||(n["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8"),!t.body||n["Content-Length"]||n["content-length"]||(n["Content-Length"]=Buffer.byteLength(t.body)),!this.credentials.sessionToken||n["X-Amz-Security-Token"]||n["x-amz-security-token"]||(n["X-Amz-Security-Token"]=this.credentials.sessionToken),"s3"!==this.service||n["X-Amz-Content-Sha256"]||n["x-amz-content-sha256"]||(n["X-Amz-Content-Sha256"]=l(this.request.body||"","hex")),n["X-Amz-Date"]||n["x-amz-date"]?this.datetime=n["X-Amz-Date"]||n["x-amz-date"]:n["X-Amz-Date"]=this.getDateTime()),delete n.Authorization,delete n.authorization)},d.prototype.sign=function(){return this.parsedPath||this.prepareRequest(),this.request.signQuery?this.parsedPath.query["X-Amz-Signature"]=this.signature():this.request.headers.Authorization=this.authHeader(),this.request.path=this.formatPath(),this.request},d.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,""),this.isCodeCommitGit&&(this.datetime=this.datetime.slice(0,-1))}return this.datetime},d.prototype.getDate=function(){return this.getDateTime().substr(0,8)},d.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")},d.prototype.signature=function(){var e,t,n,r=this.getDate(),i=[this.credentials.secretAccessKey,r,this.region,this.service].join(),s=a.get(i);return s||(e=u("AWS4"+this.credentials.secretAccessKey,r),t=u(e,this.region),n=u(t,this.service),s=u(n,"aws4_request"),a.set(i,s)),u(s,this.stringToSign(),"hex")},d.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),l(this.canonicalString(),"hex")].join("\n")},d.prototype.canonicalString=function(){this.parsedPath||this.prepareRequest();var e,t=this.parsedPath.path,n=this.parsedPath.query,r=this.request.headers,i="",s="s3"!==this.service,o="s3"===this.service||this.request.doNotEncodePath,a="s3"===this.service,u="s3"===this.service;if(e="s3"===this.service&&this.request.signQuery?"UNSIGNED-PAYLOAD":this.isCodeCommitGit?"":r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||l(this.request.body||"","hex"),n){var c=Object.keys(n).reduce((function(e,t){return t?(e[p(t)]=Array.isArray(n[t])&&u?n[t][0]:n[t],e):e}),{}),h=[];Object.keys(c).sort().forEach((function(e){Array.isArray(c[e])?c[e].map(p).sort().forEach((function(t){h.push(e+"="+t)})):h.push(e+"="+p(c[e]))})),i=h.join("&")}return"/"!==t&&(s&&(t=t.replace(/\/{2,}/g,"/")),"/"!==(t=t.split("/").reduce((function(e,t){return s&&".."===t?e.pop():s&&"."===t||(o&&(t=decodeURIComponent(t.replace(/\+/g," "))),e.push(p(t))),e}),[]).join("/"))[0]&&(t="/"+t),a&&(t=t.replace(/%2F/g,"/"))),[this.request.method||"GET",t,i,this.canonicalHeaders()+"\n",this.signedHeaders(),e].join("\n")},d.prototype.canonicalHeaders=function(){var e=this.request.headers;return Object.keys(e).filter((function(e){return null==h[e.toLowerCase()]})).sort((function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:1})).map((function(t){return t.toLowerCase()+":"+e[t].toString().trim().replace(/\s+/g," ")})).join("\n")},d.prototype.signedHeaders=function(){return Object.keys(this.request.headers).map((function(e){return e.toLowerCase()})).filter((function(e){return null==h[e]})).sort().join(";")},d.prototype.credentialString=function(){return[this.getDate(),this.region,this.service,"aws4_request"].join("/")},d.prototype.defaultCredentials=function(){var e=process.env;return{accessKeyId:e.AWS_ACCESS_KEY_ID||e.AWS_ACCESS_KEY,secretAccessKey:e.AWS_SECRET_ACCESS_KEY||e.AWS_SECRET_KEY,sessionToken:e.AWS_SESSION_TOKEN}},d.prototype.parsePath=function(){var e=this.request.path||"/";/[^0-9A-Za-z;,/?:@&=+$\-_.!~*'()#%]/.test(e)&&(e=encodeURI(decodeURI(e)));var t=e.indexOf("?"),n=null;t>=0&&(n=s.parse(e.slice(t+1)),e=e.slice(0,t)),this.parsedPath={path:e,query:n}},d.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;return t?(null!=t[""]&&delete t[""],e+"?"+c(s.stringify(t))):e},r.RequestSigner=d,r.sign=function(e,t){return new d(e,t).sign()}},3997:e=>{function t(e){this.capacity=0|e,this.map=Object.create(null),this.list=new n}function n(){this.firstNode=null,this.lastNode=null}function r(e,t){this.key=e,this.val=t,this.prev=null,this.next=null}e.exports=function(e){return new t(e)},t.prototype.get=function(e){var t=this.map[e];if(null!=t)return this.used(t),t.val},t.prototype.set=function(e,t){var n=this.map[e];if(null!=n)n.val=t;else{if(this.capacity||this.prune(),!this.capacity)return!1;n=new r(e,t),this.map[e]=n,this.capacity--}return this.used(n),!0},t.prototype.used=function(e){this.list.moveToFront(e)},t.prototype.prune=function(){var e=this.list.pop();null!=e&&(delete this.map[e.key],this.capacity++)},n.prototype.moveToFront=function(e){this.firstNode!=e&&(this.remove(e),null==this.firstNode?(this.firstNode=e,this.lastNode=e,e.prev=null,e.next=null):(e.prev=null,e.next=this.firstNode,e.next.prev=e,this.firstNode=e))},n.prototype.pop=function(){var e=this.lastNode;return null!=e&&this.remove(e),e},n.prototype.remove=function(e){this.firstNode==e?this.firstNode=e.next:null!=e.prev&&(e.prev.next=e.next),this.lastNode==e?this.lastNode=e.prev:null!=e.next&&(e.next.prev=e.prev)}},4719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Aggregations:()=>oE,CreateViewPlugin:()=>ay,DuplicateViewPlugin:()=>dy,PipelineStorage:()=>ci,StageEditor:()=>_d,activate:()=>Cy,configureCreateViewStore:()=>gy,configureStore:()=>_E,deactivate:()=>by,default:()=>Sy,metadata:()=>Ey});var r=n(9497),i=n.n(r),s=n(23),o=n.n(s);function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function u(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}var l=o().shape({trySubscribe:o().func.isRequired,tryUnsubscribe:o().func.isRequired,notifyNestedSubs:o().func.isRequired,isSubscribed:o().func.isRequired}),c=o().shape({subscribe:o().func.isRequired,dispatch:o().func.isRequired,getState:o().func.isRequired});i().forwardRef;const p=function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){u(s,t);var i=s.prototype;function s(n,r){var i;return(i=t.call(this,n,r)||this)[e]=n.store,i}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return r.Children.only(this.props.children)},s}(r.Component);return i.propTypes={store:c.isRequired,children:o().element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=l,t),i}();function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var m=n(3463),g=n.n(m),E=n(7677),y=n.n(E),v=n(3920),A=null,C={notify:function(){}},b=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=C}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=A,e=A},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==A&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=C)},e}(),S=void 0!==i().forwardRef,x=0,w={};function D(){}var _=Object.prototype.hasOwnProperty;function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function F(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!_.call(t,n[i])||!O(e[n[i]],t[n[i]]))return!1;return!0}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function R(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var I="function"==typeof Symbol&&Symbol.observable||"@@observable",N=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+N(),REPLACE:"@@redux/REPLACE"+N(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+N()}};function M(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function L(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(R(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(R(1));return n(L)(e,t)}if("function"!=typeof e)throw new Error(R(2));var i=e,s=t,o=[],a=o,u=!1;function l(){a===o&&(a=o.slice())}function c(){if(u)throw new Error(R(3));return s}function p(e){if("function"!=typeof e)throw new Error(R(4));if(u)throw new Error(R(5));var t=!0;return l(),a.push(e),function(){if(t){if(u)throw new Error(R(6));t=!1,l();var n=a.indexOf(e);a.splice(n,1),o=null}}}function h(e){if(!M(e))throw new Error(R(7));if(void 0===e.type)throw new Error(R(8));if(u)throw new Error(R(9));try{u=!0,s=i(s,e)}finally{u=!1}for(var t=o=a,n=0;n<t.length;n++)(0,t[n])();return e}function d(e){if("function"!=typeof e)throw new Error(R(10));i=e,h({type:P.REPLACE})}function f(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(R(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[I]=function(){return this},e}return h({type:P.INIT}),(r={dispatch:h,subscribe:p,getState:c,replaceReducer:d})[I]=f,r}function j(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var s,o=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:P.INIT}))throw new Error(R(12));if(void 0===n(void 0,{type:P.PROBE_UNKNOWN_ACTION()}))throw new Error(R(13))}))}(n)}catch(e){s=e}return function(e,t){if(void 0===e&&(e={}),s)throw s;for(var r=!1,i={},a=0;a<o.length;a++){var u=o[a],l=n[u],c=e[u],p=l(c,t);if(void 0===p)throw t&&t.type,new Error(R(14));i[u]=p,r=r||p!==c}return(r=r||o.length!==Object.keys(e).length)?i:e}}function V(e,t){return function(){return t(e.apply(this,arguments))}}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(R(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return r=U.apply(void 0,s)(n.dispatch),k(k({},n),{},{dispatch:r})}}}function q(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function W(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function H(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=W(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=W(i),i=r(t,n)),i},r}}function G(e,t,n){return d({},n,e,t)}const $=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,s=n.areMergedPropsEqual,o=!1;return function(t,n,a){var u=e(t,n,a);return o?i&&s(u,r)||(r=u):(o=!0,r=u),r}}}(e):void 0},function(e){return e?void 0:function(){return G}}];function K(e,t,n,r){return function(i,s){return n(e(i,s),t(r,s),s)}}function X(e,t,n,r,i){var s,o,a,u,l,c=i.areStatesEqual,p=i.areOwnPropsEqual,h=i.areStatePropsEqual,d=!1;return function(i,f){return d?function(i,d){var f,m,g=!p(d,o),E=!c(i,s);return s=i,o=d,g&&E?(a=e(s,o),t.dependsOnOwnProps&&(u=t(r,o)),l=n(a,u,o)):g?(e.dependsOnOwnProps&&(a=e(s,o)),t.dependsOnOwnProps&&(u=t(r,o)),l=n(a,u,o)):E?(f=e(s,o),m=!h(f,a),a=f,m&&(l=n(a,u,o)),l):l}(i,f):(a=e(s=i,o=f),u=t(r,o),l=n(a,u,o),d=!0,l)}}function J(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function Z(e,t){return e===t}const Y=(ee=(Q={}).connectHOC,te=void 0===ee?function(e,t){var n,i;void 0===t&&(t={});var s=t,o=s.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,p=s.methodName,m=void 0===p?"connectAdvanced":p,E=s.renderCountProp,A=void 0===E?void 0:E,C=s.shouldHandleStateChanges,_=void 0===C||C,O=s.storeKey,F=void 0===O?"store":O,T=s.withRef,B=void 0!==T&&T,k=f(s,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),R=F+"Subscription",I=x++,N=((n={})[F]=c,n[R]=l,n),P=((i={})[R]=l,i);return function(t){y()((0,v.isValidElementType)(t),"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=a(n),s=d({},k,{getDisplayName:a,methodName:m,renderCountProp:A,shouldHandleStateChanges:_,storeKey:F,withRef:B,displayName:i,wrappedComponentName:n,WrappedComponent:t}),o=function(n){function o(e,t){var r;return(r=n.call(this,e,t)||this).version=I,r.state={},r.renderCount=0,r.store=e[F]||t[F],r.propsMode=Boolean(e[F]),r.setWrappedInstance=r.setWrappedInstance.bind(h(h(r))),y()(r.store,'Could not find "'+F+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+F+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}u(o,n);var a=o.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[R]=t||this.context[R],e},a.componentDidMount=function(){_&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=D,this.store=null,this.selector.run=D,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return y()(B,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,s);this.selector=function(e,t){var n={run:function(r){try{var i=e(t.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(_){var e=(this.propsMode?this.props:this.context)[R];this.subscription=new b(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(w)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(B||A||this.propsMode&&this.subscription))return e;var t=d({},e);return B&&(t.ref=this.setWrappedInstance),A&&(t[A]=this.renderCount++),this.propsMode&&this.subscription&&(t[R]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,r.createElement)(t,this.addExtraProps(e.props))},o}(r.Component);return S&&(o.prototype.UNSAFE_componentWillReceiveProps=o.prototype.componentWillReceiveProps,delete o.prototype.componentWillReceiveProps),o.WrappedComponent=t,o.displayName=i,o.childContextTypes=P,o.contextTypes=N,o.propTypes=N,g()(o,t)}}:ee,re=void 0===(ne=Q.mapStateToPropsFactories)?[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:q((function(){return{}}))}]:ne,se=void 0===(ie=Q.mapDispatchToPropsFactories)?[function(e){return"function"==typeof e?H(e):void 0},function(e){return e?void 0:q((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?q((function(t){return function(e,t){if("function"==typeof e)return V(e,t);if("object"!=typeof e||null===e)throw new Error(R(16));var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=V(i,t))}return n}(e,t)})):void 0}]:ie,ae=void 0===(oe=Q.mergePropsFactories)?$:oe,le=void 0===(ue=Q.selectorFactory)?function(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,s=f(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),o=n(e,s),a=r(e,s),u=i(e,s);return(s.pure?X:K)(o,a,u,e,s)}:ue,function(e,t,n,r){void 0===r&&(r={});var i=r,s=i.pure,o=void 0===s||s,a=i.areStatesEqual,u=void 0===a?Z:a,l=i.areOwnPropsEqual,c=void 0===l?F:l,p=i.areStatePropsEqual,h=void 0===p?F:p,m=i.areMergedPropsEqual,g=void 0===m?F:m,E=f(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),y=J(e,re,"mapStateToProps"),v=J(t,se,"mapDispatchToProps"),A=J(n,ae,"mergeProps");return te(le,d({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:y,initMapDispatchToProps:v,initMergeProps:A,pure:o,areStatesEqual:u,areOwnPropsEqual:c,areStatePropsEqual:h,areMergedPropsEqual:g},E))});var Q,ee,te,ne,re,ie,se,oe,ae,ue,le,ce=n(2779),pe=n.n(ce);const he=require("@mongodb-js/compass-components"),de=require("hadron-react-buttons");var fe=n(9388),me=n.n(fe),ge=n(6053),Ee=n.n(ge),ye=n(1914),ve=n.n(ye),Ae=n(6566),Ce=n.n(Ae),be=n(370),Se=n.n(be),xe=n(6682),we=n.n(xe),De=n(3981),_e={};_e.styleTagTransform=we(),_e.setAttributes=Ce(),_e.insert=ve().bind(null,"head"),_e.domAPI=Ee(),_e.insertStyleElement=Se(),me()(De.Z,_e);const Oe=De.Z&&De.Z.locals?De.Z.locals:void 0;class Fe extends r.PureComponent{static displayName="RestorePipelineButtonComponent";static propTypes={clickHandler:o().func.isRequired};render(){const e=pe()({btn:!0,"btn-xs":!0,"btn-default":!0,[Oe["restore-pipeline-button"]]:!0});return i().createElement("div",{className:pe()(Oe["restore-pipeline"])},i().createElement(de.TextButton,{text:"Open",className:e,clickHandler:this.props.clickHandler}))}}const Te=Fe;var Be=n(1101),ke={};ke.styleTagTransform=we(),ke.setAttributes=Ce(),ke.insert=ve().bind(null,"head"),ke.domAPI=Ee(),ke.insertStyleElement=Se(),me()(Be.Z,ke);const Re=Be.Z&&Be.Z.locals?Be.Z.locals:void 0;class Ie extends r.PureComponent{static displayName="DeletePipelineButtonComponent";static propTypes={clickHandler:o().func.isRequired};render(){const e=pe()({btn:!0,"btn-xs":!0,"btn-default":!0,[Re["delete-pipeline-button"]]:!0});return i().createElement("div",{className:pe()(Re["delete-pipeline"])},i().createElement(de.IconButton,{title:"Delete",className:e,iconClassName:"fa fa-trash-o",clickHandler:this.props.clickHandler}))}}const Ne=Ie;var Pe=n(7866);Pe.MongoLogManager;const Me=Pe.MongoLogWriter,Le=Pe.mongoLogId;var je=n(4283),Ve=n.n(je),Ue=n(8957),ze=n.n(Ue);function qe(e,t,n){e?.callQuiet?.(t,n),"undefined"!=typeof process&&"function"==typeof process.emit&&process.emit(t,n)}function We(e){const t=Ve()?n(5727):null,r=new Me("",null,{write(e,n){qe(t,"compass:log",{line:e}),n()},end(e){e()}}),i=async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=n.g?.hadronApp?.isFeatureEnabled("trackUsageStatistics");if(!i)return;const s={event:e,properties:r};"function"==typeof r&&(s.properties=await r()),qe(t,"compass:track",s)},s=ze()(`mongodb-compass:${e.toLowerCase()}`);return r.on("log",(e=>{let{s:t,ctx:n,msg:r,attr:i}=e;s(r,i?{s:t,ctx:n,...i}:{s:t,ctx:n})})),{log:r.bindComponent(e),mongoLogId:Le,debug:s,track:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then((()=>i(...t))).catch((e=>s("track failed",e)))}}}const He=We;var Ge=n(2099),$e={};$e.styleTagTransform=we(),$e.setAttributes=Ce(),$e.insert=ve().bind(null,"head"),$e.domAPI=Ee(),$e.insertStyleElement=Se(),me()(Ge.Z,$e);const Ke=Ge.Z&&Ge.Z.locals?Ge.Z.locals:void 0,{track:Xe}=We("COMPASS-AGGREGATIONS-UI");class Je extends r.PureComponent{static displayName="SavePipelineCardComponent";static propTypes={restorePipelineModalToggle:o().func.isRequired,restorePipelineFrom:o().func.isRequired,deletePipeline:o().func.isRequired,objectID:o().string.isRequired,name:o().string.isRequired};handleDelete=()=>{this.props.deletePipeline(this.props.objectID),Xe("Aggregation Deleted",{id:this.props.objectID,screen:"aggregations"})};restoreClickHandler=()=>{this.props.restorePipelineFrom(this.props.objectID),this.props.restorePipelineModalToggle(1)};render(){return i().createElement("div",{className:pe()(Ke["save-pipeline-card"]),"data-pipeline-object-id":this.props.objectID},i().createElement("div",{className:pe()(Ke["save-pipeline-card-title"])},this.props.name),i().createElement(Te,{clickHandler:this.restoreClickHandler}),i().createElement(Ne,{clickHandler:this.handleDelete}))}}const Ze=Je;var Ye=n(9593),Qe={};Qe.styleTagTransform=we(),Qe.setAttributes=Ce(),Qe.insert=ve().bind(null,"head"),Qe.domAPI=Ee(),Qe.insertStyleElement=Se(),me()(Ye.Z,Qe);const et=Ye.Z&&Ye.Z.locals?Ye.Z.locals:void 0;class tt extends r.Component{static displayName="SavePipelineComponent";static propTypes={restorePipelineModalToggle:o().func.isRequired,restorePipelineFrom:o().func.isRequired,deletePipeline:o().func.isRequired,savedPipelinesListToggle:o().func.isRequired,savedPipeline:o().object.isRequired};handleSavedPipelinesClose=()=>{this.props.savedPipelinesListToggle(0)};render(){const e=this.props.savedPipeline.pipelines.map(((e,t)=>i().createElement(Ze,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,restorePipelineFrom:this.props.restorePipelineFrom,deletePipeline:this.props.deletePipeline,name:e.name,objectID:e.id,key:t}))),t=pe()({[et["save-pipeline"]]:!0,[et["save-pipeline-is-visible"]]:this.props.savedPipeline.isListVisible});return i().createElement("div",{className:t},i().createElement("div",{className:pe()(et["save-pipeline-header"])},i().createElement("div",{id:"saved-pipeline-header-title"},"Saved Pipelines"),i().createElement(de.IconButton,{title:"Close Saved Pipelines",className:"btn btn-xs btn-default",iconClassName:"fa fa-times",clickHandler:this.handleSavedPipelinesClose})),i().createElement("div",{className:pe()(et["save-pipeline-cards"])},e))}}const nt=tt,rt=6e4,it=1e5,st={$addFields:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/addFields/#pipe._S_addFields",tooltip:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value."},$bucket:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/bucket/#pipe._S_bucket",tooltip:"Categorizes incoming documents into groups, called buckets, based on specified boundaries."},$bucketAuto:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/bucketAuto/#pipe._S_bucketAuto",tooltip:"Automatically categorizes documents into a specified number of buckets, attempting even distribution if possible."},$collStats:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/collStats/#pipe._S_collStats",tooltip:"Returns statistics regarding a collection or view."},$count:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/count/#pipe._S_count",tooltip:"Returns a count of the number of documents at this stage of the aggregation pipeline."},$currentOp:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/currentOp/#pipe._S_currentOp",tooltip:""},$densify:{link:"https://docs.mongodb.com/rapid/reference/operator/aggregation/densify",tooltip:"Creates new documents in a sequence of documents where certain values in a field are missing."},$documents:{link:"https://docs.mongodb.com/v5.1/reference/operator/aggregation/documents/#mongodb-pipeline-pipe.-documents",tooltip:"Returns literal documents from input values."},$facet:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/facet/#pipe._S_facet",tooltip:"Allows for multiple parallel aggregations to be specified."},$geoNear:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/geoNear/#pipe._S_geoNear",tooltip:"Returns documents based on proximity to a geospatial point."},$graphLookup:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/graphLookup/#pipe._S_graphLookup",tooltip:"Performs a recursive search on a collection. To each output document, adds a new array field that contains the traversal results of the recursive search for that document."},$group:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/group/#pipe._S_group",tooltip:"Groups documents by a specified expression."},$indexStats:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/indexStats/#pipe._S_indexStats",tooltip:"Returns statistics regarding the use of each index for the collection."},$limit:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/limit/#pipe._S_limit",tooltip:"Limits the number of documents that flow into subsequent stages."},$listLocalSessions:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/listLocalSessions/#pipe._S_listLocalSessions",tooltip:""},$listSessions:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/listSessions/#pipe._S_listSessions",tooltip:""},$lookup:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/lookup/#pipe._S_lookup",tooltip:"Performs a join between two collections."},$match:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/match/#pipe._S_match",tooltip:"Filters the document stream to allow only matching documents to pass through to subsequent stages."},$merge:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/merge/#pipe._S_merge",tooltip:"Merges the resulting documents into a collection, optionally overriding existing documents."},$out:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/out/#pipe._S_out",tooltip:"Writes the result of a pipeline to a new or existing collection."},$project:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/project/#pipe._S_project",tooltip:"Adds new field(s) to a document with a computed value, or reassigns an existing field(s) with a computed value. Unlike $addFields, $project can also remove fields."},$redact:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/redact/#pipe._S_redact",tooltip:"Restricts the content for each document based on information stored in the documents themselves."},$replaceRoot:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/replaceRoot/#pipe._S_replaceRoot",tooltip:"Replaces a document with the specified embedded document."},$replaceWith:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/replaceWith/",tooltip:"Replaces a document with the specified embedded document."},$sample:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sample/#pipe._S_sample",tooltip:"Randomly selects the specified number of documents from its input."},$search:{link:"https://docs.atlas.mongodb.com/reference/full-text-search/query-syntax/#pipe._S_search",tooltip:"Performs a full-text search on the specified field(s)."},$searchMeta:{link:"https://docs.atlas.mongodb.com/reference/atlas-search/query-syntax-dupl/#mongodb-pipeline-pipe.-searchMeta",tooltip:"Performs a full-text search on the specified field(s) and gets back only the generated search meta data from a query."},$set:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/set/#pipe._S_set",tooltip:"Adds new fields to documents."},$skip:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/skip/#pipe._S_skip",tooltip:"Skips a specified number of documents before advancing to the next stage."},$sort:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sort/#pipe._S_sort",tooltip:"Reorders the document stream by a specified sort key and direction."},$sortByCount:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/sortByCount/#pipe._S_sortByCount",tooltip:"Groups incoming documents based on the value of a specified expression, then computes the count of documents in each distinct group."},$unset:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/unset/",tooltip:"Removes or excludes fields from documents."},$unwind:{link:"https://docs.mongodb.com/manual/reference/operator/aggregation/unwind/#pipe._S_unwind",tooltip:"Outputs a new document for each element in a specified array. "}};var ot=n(6252),at={};at.styleTagTransform=we(),at.setAttributes=Ce(),at.insert=ve().bind(null,"head"),at.domAPI=Ee(),at.insertStyleElement=Se(),me()(ot.Z,at);const ut=ot.Z&&ot.Z.locals?ot.Z.locals:void 0;class lt extends r.PureComponent{static displayName="Settings";static propTypes={isAtlasDeployed:o().bool.isRequired,isCommenting:o().bool.isRequired,isExpanded:o().bool.isRequired,limit:o().number.isRequired,largeLimit:o().number.isRequired,maxTimeMS:o().number.isRequired,settings:o().object.isRequired,toggleSettingsIsExpanded:o().func.isRequired,toggleSettingsIsCommentMode:o().func.isRequired,setSettingsSampleSize:o().func.isRequired,setSettingsMaxTimeMS:o().func.isRequired,setSettingsLimit:o().func.isRequired,applySettings:o().func.isRequired,runStage:o().func.isRequired};onCancelClicked(e){e.preventDefault(),e.stopPropagation(),this.props.toggleSettingsIsExpanded()}onCommentModeClicked(){this.props.toggleSettingsIsCommentMode()}onSampleSizeChanged(e){this.props.setSettingsSampleSize(parseInt(e.currentTarget.value,10))}onMaxTimeoutChanged(e){this.props.setSettingsMaxTimeMS(parseInt(e.currentTarget.value,10))}onLimitChanged(e){this.props.setSettingsLimit(parseInt(e.currentTarget.value,10))}onApplyClicked(e){e.preventDefault(),e.stopPropagation(),this.props.applySettings(),this.props.runStage(0,!0),this.props.toggleSettingsIsExpanded()}renderLargeLimit(){if(!this.props.isAtlasDeployed){let e=this.props.largeLimit;return this.props.settings.isDirty&&(e=this.props.settings.limit),i().createElement("div",{className:pe()(ut["input-group"])},i().createElement("div",{className:pe()(ut["input-meta"])},i().createElement(he.Label,{htmlFor:"aggregation-limit"},"Limit"),i().createElement("div",{id:"aggregation-limit-description"},i().createElement(he.Description,null,"Limits input documents before $group, $bucket, and $bucketAuto stages. Set a limit to make the preview run faster."),i().createElement(he.Description,null,"Note: this setting is only applied for the document previews, it is not applied when the pipeline is run."))),i().createElement("div",{className:pe()(ut["input-control"])},i().createElement("input",{id:"aggregation-limit","aria-describedby":"aggregation-limit-description",type:"number",min:"0",placeholder:it,value:e,onChange:this.onLimitChanged.bind(this)})))}}renderFields(){let e=this.props.isCommenting,t=this.props.limit;return this.props.settings.isDirty&&(e=this.props.settings.isCommentMode,t=this.props.settings.sampleSize),i().createElement("div",{className:pe()(ut.body)},i().createElement("div",{className:pe()(ut["input-group"])},i().createElement("div",{className:pe()(ut["input-meta"])},i().createElement(he.Label,{htmlFor:"aggregation-comment-mode"},"Comment Mode"),i().createElement(he.Description,{id:"aggregation-comment-mode-description"},"When enabled, adds helper comments to each stage. Only applies to new stages.")),i().createElement("div",{className:pe()(ut["input-control"])},i().createElement("input",{id:"aggregation-comment-mode","aria-describedby":"aggregation-comment-mode-description",type:"checkbox",checked:e,onChange:this.onCommentModeClicked.bind(this)}))),i().createElement("div",{className:pe()(ut["input-group"])},i().createElement("div",{className:pe()(ut["input-meta"])},i().createElement(he.Label,{htmlFor:"aggregation-sample-size"},"Number of Preview Documents"),i().createElement(he.Description,{id:"aggregation-sample-size-description"},"Specify the number of documents to show in the preview.")),i().createElement("div",{className:pe()(ut["input-control"])},i().createElement("input",{id:"aggregation-sample-size","aria-describedby":"aggregation-sample-size-description",type:"number",min:"0",placeholder:10,value:t,onChange:this.onSampleSizeChanged.bind(this)}))),this.renderLargeLimit())}render(){return this.props.isExpanded?i().createElement("div",{className:pe()(ut.container)},i().createElement("div",{className:pe()(ut.header)},i().createElement("div",{className:pe()(ut["header-title"])},"Settings"),i().createElement("div",{className:pe()(ut["header-btn-group"])},i().createElement(de.TextButton,{id:"aggregations-settings-cancel",className:"btn btn-default btn-xs",text:"Cancel",clickHandler:this.onCancelClicked.bind(this)}),i().createElement(de.TextButton,{id:"aggregation-settings-apply",className:"btn btn-primary btn-xs",text:"Apply",clickHandler:this.onApplyClicked.bind(this)}))),this.renderFields()):null}}const ct=lt,{track:pt}=We("COMPASS-AGGREGATIONS-UI");class ht extends r.Component{static displayName="RestorePipelineModalComponent";static propTypes={restorePipelineModalToggle:o().func.isRequired,openPipelineById:o().func.isRequired,restorePipeline:o().object.isRequired};onRestorePipelineModalToggle=()=>{this.props.restorePipelineModalToggle(0)};openPipeline=()=>{const e=this.props.restorePipeline.pipelineObjectID;pt("Aggregation Opened",{id:e,screen:"aggregations"}),this.props.openPipelineById(e)};render(){return i().createElement(he.ConfirmationModal,{title:"Are you sure you want to open this pipeline?",open:this.props.restorePipeline.isModalVisible,onConfirm:this.openPipeline,onCancel:this.onRestorePipelineModalToggle,buttonText:"Open Pipeline",trackingId:"restore_pipeline_modal"},"Opening this project will abandon ",i().createElement("b",null,"unsaved")," changes to the current pipeline you are building.")}}const dt=ht;var ft=n(5287),mt={};mt.styleTagTransform=we(),mt.setAttributes=Ce(),mt.insert=ve().bind(null,"head"),mt.domAPI=Ee(),mt.insertStyleElement=Se(),me()(ft.Z,mt);const gt=ft.Z&&ft.Z.locals?ft.Z.locals:void 0;class Et extends r.PureComponent{static displayName="ImportPipelineComponent";static propTypes={isOpen:o().bool.isRequired,closeImport:o().func.isRequired,changeText:o().func.isRequired,createNew:o().func.isRequired,text:o().string.isRequired,error:o().string};renderError(){if(this.props.error)return i().createElement("div",{className:gt["import-pipeline-error"]},this.props.error)}render(){return i().createElement(he.ConfirmationModal,{title:"New Pipeline From Plain Text",open:this.props.isOpen,onConfirm:this.props.createNew,onCancel:this.props.closeImport,buttonText:"Create New",submitDisabled:""===this.props.text,trackingId:"import_pipeline_modal"},i().createElement("div",{className:gt["import-pipeline-note"]},"Supports MongoDB Shell syntax. Pasting a pipeline will create a new pipeline."),i().createElement("div",{className:gt["import-pipeline-editor"]},i().createElement(he.Editor,{variant:he.EditorVariant.Shell,text:this.props.text,onChangeText:this.props.changeText,options:{minLines:10},name:"import-pipeline-editor"})),this.renderError())}}const yt=Et;var vt=n(1570),At={};At.styleTagTransform=we(),At.setAttributes=Ce(),At.insert=ve().bind(null,"head"),At.domAPI=Ee(),At.insertStyleElement=Se(),me()(vt.Z,At);const Ct=vt.Z&&vt.Z.locals?vt.Z.locals:void 0;class bt extends r.PureComponent{static displayName="ConfirmImportPipelineComponent";static propTypes={isConfirmationNeeded:o().bool.isRequired,isAutoPreviewing:o().bool.isRequired,closeImport:o().func.isRequired,confirmNew:o().func.isRequired,runStage:o().func.isRequired};onConfirm=()=>{this.props.confirmNew(),this.props.isAutoPreviewing&&this.props.runStage(0,!0)};render(){return i().createElement(he.ConfirmationModal,{title:"Are you sure you want to create a new pipeline?",open:this.props.isConfirmationNeeded,onConfirm:this.onConfirm,onCancel:this.props.closeImport,buttonText:"Confirm",trackingId:"confirm_import_pipeline_modal"},i().createElement("div",{className:Ct["confirm-import-pipeline-note"]},"Creating this pipeline will abandon unsaved changes to the current pipeline."))}}const St=bt;class xt extends r.PureComponent{static displayName="SavingPipelineModalComponent";static propTypes={isOpen:o().bool.isRequired,isSaveAs:o().bool.isRequired,name:o().string.isRequired,savingPipelineCancel:o().func.isRequired,savingPipelineApply:o().func.isRequired,savingPipelineNameChanged:o().func.isRequired,saveCurrentPipeline:o().func.isRequired,clonePipeline:o().func.isRequired};onNameChanged(e){this.props.savingPipelineNameChanged(e.currentTarget.value)}onSubmit(e){e.preventDefault(),e.stopPropagation(),this.save()}save(){this.props.isSaveAs&&this.props.clonePipeline(),this.props.savingPipelineApply(),this.props.saveCurrentPipeline()}render(){const e=this.props.isSaveAs?"Save Pipeline As...":"Save Pipeline";return i().createElement(he.ConfirmationModal,{title:e,open:this.props.isOpen,onConfirm:this.save.bind(this),onCancel:this.props.savingPipelineCancel,buttonText:"Save",submitDisabled:""===this.props.name,trackingId:"save_pipeline_modal"},i().createElement("form",{onSubmit:this.onSubmit.bind(this)},i().createElement("input",{id:"save-pipeline-name",type:"text",value:this.props.name,onChange:this.onNameChanged.bind(this),className:"form-control",placeholder:"Untitled"})))}}const wt=xt;var Dt=n(3777),_t={};_t.styleTagTransform=we(),_t.setAttributes=Ce(),_t.insert=ve().bind(null,"head"),_t.domAPI=Ee(),_t.insertStyleElement=Se(),me()(Dt.Z,_t);const Ot=Dt.Z&&Dt.Z.locals?Dt.Z.locals:void 0;class Ft extends r.PureComponent{static displayName="ConfirmNewPipelineComponent";static propTypes={isNewPipelineConfirm:o().bool.isRequired,setIsNewPipelineConfirm:o().func.isRequired,newPipeline:o().func.isRequired};onConfirm=()=>{this.props.newPipeline(),this.onClose()};onClose=()=>{this.props.setIsNewPipelineConfirm(!1)};render(){return i().createElement(he.ConfirmationModal,{title:"Are you sure you want to create a new pipeline?",open:this.props.isNewPipelineConfirm,onConfirm:this.onConfirm,onCancel:this.onClose,buttonText:"Confirm",trackingId:"confirm_new_pipeline_modal"},i().createElement("div",{className:Ot["confirm-new-pipeline-note"]},"Creating this pipeline will abandon unsaved changes to the current pipeline."))}}const Tt=Ft;var Bt=n(4686),kt={};kt.styleTagTransform=we(),kt.setAttributes=Ce(),kt.insert=ve().bind(null,"head"),kt.domAPI=Ee(),kt.insertStyleElement=Se(),me()(Bt.Z,kt);const Rt=Bt.Z&&Bt.Z.locals?Bt.Z.locals:void 0;n(7526),n(3354),n(5870),n(930),n(574),n(4116),n(3267),n(4614),n(9852),n(4306),n(6077),n(1072),n(183);const It=require("mongodb-ace-autocompleter"),Nt=require("mongodb-query-parser");var Pt=n.n(Nt),Mt=n(7386),Lt=n.n(Mt),jt=n(4935),Vt=n.n(jt);const Ut="Stage must be a properly formatted document.";function zt(){const e=Pt()(...arguments);if(""===e)throw new Error(Ut);return e}function qt(e,t){const n=[];if("$project"!==e.stageOperator)return n;if(Gt(e))return n;if(!t){t={};try{const n=Lt()(e.stage);t[e.stageOperator]=zt(n)}catch(e){return n}}const r=t[e.stageOperator];return Object.keys(r).map((e=>{const t=r[e];t&&n.push({name:e,value:e,score:1,meta:JSON.stringify(t),version:"0.0.0"})})),n}function Wt(e){try{return zt(Lt()(e.stage)),{isValid:!0,syntaxError:null}}catch(e){return{isValid:!1,syntaxError:Ut}}}function Ht(e){if(Gt(e))return{};const t={};try{const n=Lt()(e.stage);t[e.stageOperator]=zt(n)}catch(t){return e.syntaxError=Ut,e.isValid=!1,e.previewDocuments=[],{}}return e.projections=qt(e,t),e.isValid=!0,e.syntaxError=null,t}function Gt(e){return!e.isEnabled||!e.stageOperator||""===e.stage}function $t(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{database:n}=Vt()(e),{stage:r,stageOperator:i}=t;let s;try{s=zt(r)}catch{s={}}if("$merge"===i){const e="string"==typeof s?s:s.into;return"object"==typeof e?`${e.db}.${e.coll}`:`${n}.${e}`}if("$out"===i){if(s.s3)return null;const e=s;return"object"==typeof e?`${e.db}.${e.coll}`:`${n}.${e}`}return null}var Kt=n(9752),Xt=n.n(Kt),Jt=n(345),Zt=n(594),Yt=n.n(Zt),Qt=n(6496),en=n.n(Qt),tn=n(6625),nn=n.n(tn);function rn(e){return e?.every((e=>e===It.ATLAS))}function sn(e){return!e?.outputStage||"true"!==process?.env?.HADRON_READONLY}const on=e=>e.map(Ht).filter((e=>Object.keys(e).length>0)),an="aggregations/id/CREATE_ID",un=()=>({type:an}),ln="aggregations/projections/PROJECTIONS_CHANGED",cn=[],pn=()=>({type:ln}),hn="aggregations/is-modified/SET_IS_MODIFIED",dn=!1,fn=e=>({type:hn,isModified:e});let mn;!function(e){e.AutoPreviewToggled="compass-aggregations/autoPreviewToggled"}(mn||(mn={}));const gn=!0,En=e=>t=>{t({type:mn.AutoPreviewToggled,value:e}),e&&t(tr(0,!0))},{track:yn}=We("COMPASS-AGGREGATIONS-UI"),vn="aggregations/pipeline",An=`${vn}/STAGE_ADDED`,Cn=`${vn}/STAGE_ADDED_AFTER`,bn=`${vn}/STAGE_CHANGED`,Sn=`${vn}/STAGE_COLLAPSE_TOGGLED`,xn=`${vn}/STAGE_DELETED`,wn=`${vn}/STAGE_MOVED`,Dn=`${vn}/STAGE_OPERATOR_SELECTED`,_n=`${vn}/STAGE_TOGGLED`,On=`${vn}/STAGE_PREVIEW_UPDATED`,Fn=`${vn}/LOADING_STAGE_RESULTS`,Tn=(Object.freeze({$limit:10}),Object.freeze({$limit:it}),["$collStats","$currentOp","$indexStats","$listLocalSessions","$listSessions"]),Bn=["$group","$bucket","$bucketAuto"],kn="$out",Rn="$merge",In="$search",Nn="$searchMeta",Pn="$documents",Mn=()=>({id:(new Jt.ObjectId).toHexString(),stageOperator:"",stage:"",isValid:!0,isEnabled:!0,isExpanded:!0,isLoading:!1,isComplete:!1,previewDocuments:[],syntaxError:null,error:null,projections:[]}),Ln=[Mn()],jn=e=>e.map((e=>Object.assign({},e))),Vn=(e,t,n)=>{const r=((e,t)=>It.STAGE_OPERATORS.find((n=>n.name===e&&n.env.includes(t))))(e,n),i=(r||{}).snippet||"{\n \n}",s=(r||{}).comment||"";return(t?`${s}${i}`:i).replace(/\${[0-9]+:?([a-z0-9.()]+)?}/gi,(function(e,t){return t??""}))},Un={};Un[bn]=(e,t)=>{const n=jn(e);n[t.index].stage=t.stage,n[t.index].isComplete=!1;const{isValid:r,syntaxError:i}=Wt(n[t.index]);return n[t.index].isValid=r,n[t.index].syntaxError=i,n},Un[An]=e=>{const t=jn(e),n={...Mn()};return t.push(n),t},Un[Cn]=(e,t)=>{const n=jn(e),r={...Mn()};return n.splice(Number(t.index)+1,0,r),n},Un[xn]=(e,t)=>{const n=jn(e);return n.splice(t.index,1),n},Un[wn]=(e,t)=>{const n=jn(e);return n.splice(t.toIndex,0,n.splice(t.fromIndex,1)[0]),n},Un[Dn]=(e,t)=>{const n=t.stageOperator,r=e[t.index];if(n===r.stageOperator)return e;let i;var s,o;s=r,o=t.env,i=s.stageOperator&&s.stage&&Lt()(s.stage)!==Vn(s.stageOperator,!1,o)?r.stage:Vn(n,t.isCommenting,t.env);const a=jn(e);a[t.index].stageOperator=n,a[t.index].stage=i,a[t.index].isExpanded=!0,a[t.index].isComplete=!1,a[t.index].previewDocuments=[],a[t.index].isMissingAtlasOnlyStageSupport=!(![In,Nn,Pn].includes(n)||t.env===It.ADL||t.env===It.ATLAS);const{isValid:u,syntaxError:l}=Wt(a[t.index]);return a[t.index].isValid=u,a[t.index].syntaxError=l,a[t.index].error=null,a},Un[_n]=(e,t)=>{const n=jn(e);return n[t.index].isEnabled=!n[t.index].isEnabled,n},Un[Sn]=(e,t)=>{const n=jn(e);return n[t.index].isExpanded=!n[t.index].isExpanded,n},Un[On]=(e,t)=>{const n=jn(e);return[In,Nn,Pn].includes(n[t.index].stageOperator)&&t.env!==It.ADL&&t.env!==It.ATLAS&&t.error&&(40324===t.error.code||31082===t.error.code)?(n[t.index].previewDocuments=[],n[t.index].error=null,n[t.index].isMissingAtlasOnlyStageSupport=!0):(n[t.index].previewDocuments=null===t.error||void 0===t.error?t.documents:[],n[t.index].error=t.error?t.error.message:null,n[t.index].isMissingAtlasOnlyStageSupport=!1),n[t.index].isLoading=!1,n[t.index].isComplete=t.isComplete,n},Un[Fn]=(e,t)=>{const n=jn(e);return n[t.index].isLoading=!0,n},Un[mn.AutoPreviewToggled]=(e,t)=>!1===t.value?jn(e).map((e=>(e.error=null,e))):e;const zn=()=>(e,t)=>{const{pipeline:n}=t();yn("Aggregation Edited",{num_stages:n.length,stage_action:"stage_added",stage_name:null}),e({type:An})},qn=(e,t,n,r,i)=>({type:On,documents:e,index:t,error:n,isComplete:r,env:i}),Wn=e=>({type:Fn,index:e}),Hn=(e,t)=>{const n=e.inputDocuments.count,r=e.largeLimit||it;return e.pipeline.reduce(((i,s,o)=>(o<=t&&s.isEnabled&&(("N/A"===n&&e.sample||n>r&&Bn.includes(s.stageOperator)&&e.sample)&&i.push({$limit:r}),i.push(s.executor||Ht(s))),i)),[])},Gn=(e,t)=>{let n=!1;return $n.get(e)?.(),$n.set(e,(()=>{n=!0})),e=>{n||t(e)}},$n=new Map,Kn=new Map,Xn=(e,t,n,r,i)=>{const s=r().pipeline[i];s.executor=Ht(s),s.isValid&&s.isEnabled&&s.stageOperator&&s.stageOperator!==kn&&s.stageOperator!==Rn?er(e,t,n,r,i):n(qn([],i,null,!1,r().env))},Jn=e=>{if(Kn.has(e))return Kn.get(e);{const t=Yt()(Xn,750,{leading:!1,trailing:!0});return Kn.set(e,t),t}},Zn=function(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const o=`${r().aggregationWorkspaceId}::${i}`,a=Gn(o,n),u=Jn(o);if(s)return u.cancel(),void Xn(e,t,a,r,i);u(e,t,a,r,i)},Yn=e=>(t,n)=>{const{aggregationWorkspaceId:r}=n(),i="number"==typeof e?t=>t===`${r}::${String(e)}`:e=>e.startsWith(`${r}::`);for(const[e,t]of Kn.entries())i(e)&&(t.cancel(),Kn.delete(e));for(const[e,t]of $n.entries())i(e)&&(t(),$n.delete(e))},Qn=(e,t,n,r,i,s)=>{const o={maxTimeMS:i().maxTimeMS??rt,allowDiskUse:!0,collation:i().collationString.value??void 0};t.aggregate(n,e,o,((e,t)=>{if(e)return r(qn([],s,e,!1,i().env));t.toArray(((e,n)=>{r(qn(n||[],s,e,!0,i().env)),t.close(),r((0,Kt.globalAppRegistryEmit)("agg-pipeline-executed",{id:i().id,numStages:i().pipeline.length,stageOperators:i().pipeline.map((e=>e.stageOperator))}))}))}))},er=(e,t,n,r,i)=>{n(Wn(i));const s=((e,t)=>{const n=Hn(e,t),r=e.pipeline[e.pipeline.length-1];return n.length>0&&!Tn.includes(r.stageOperator)&&n.push({$limit:e.limit||10}),n})(r(),i);Qn(s,e,t,n,r,i)},tr=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(n,r)=>{const i=r();if(!i.autoPreview)return;if(e>=i.pipeline.length)return void n(Yn(e));""===i.id&&n(un());const{dataService:s}=i.dataService;if(s){const o=i.namespace;for(let a=e;a<i.pipeline.length;a++)Zn(s,o,n,r,a,t)}}},nr="PromiseCancelledError";class rr extends Error{name=nr}const ir=()=>new rr("The operation was cancelled.");const{log:sr,mongoLogId:or}=He("compass-aggregations"),ar={promoteValues:!1,allowDiskUse:!0,bsonRegExp:!0};async function ur(e){let{dataService:t,signal:n,namespace:r,pipeline:i,options:s,skip:o,limit:a}=e;if(n.aborted)return Promise.reject(ir());const u=t.startSession("CRUD"),l=t.aggregate(r,i.concat(o?[{$skip:o}]:[]).concat(a?[{$limit:a}]:[]),{...ar,...s,session:u}),c=()=>{Promise.all([l.close(),t.killSessions(u)]).catch((e=>{sr.warn(or(1001000105),"Aggregations","Attempting to kill the session failed",{error:e.message})}))};let p;n.addEventListener("abort",c,{once:!0});try{p=await async function(e,t){if(t.aborted)return Promise.reject(ir());const n=new AbortController,r=function(e,t){if(e.aborted)return Promise.reject(ir());let n;const r=new Promise((function(e,t){n=t})),i=()=>{t.removeEventListener("abort",s),n(ir())},s=()=>{e.removeEventListener("abort",i)};return e.addEventListener("abort",i,{once:!0}),t.addEventListener("abort",s,{once:!0}),r}(t,n.signal);try{return await Promise.race([r,e])}finally{t.aborted||n.abort()}}(l.toArray(),n)}finally{n.removeEventListener("abort",c),p=p||[]}return p}const{log:lr,mongoLogId:cr,track:pr}=We("COMPASS-AGGREGATIONS-UI");let hr;!function(e){e.AggregationStarted="compass-aggregations/aggregationStarted",e.AggregationFinished="compass-aggregations/aggregationFinished",e.AggregationFailed="compass-aggregations/aggregationFailed",e.AggregationCancelledByUser="compass-aggregations/aggregationCancelledByUser",e.LastPageReached="compass-aggregations/lastPageReached"}(hr||(hr={}));const dr={documents:[],page:1,limit:20,isLast:!1,loading:!1},fr=()=>(e,t)=>{pr("Aggregation Canceled");const{aggregation:{abortController:n}}=t();mr(n),e({type:hr.AggregationCancelledByUser})},mr=e=>{e?.abort()},gr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return async(t,n)=>{const{id:r,pipeline:i,namespace:s,maxTimeMS:o,dataService:{dataService:a},aggregation:{limit:u,abortController:l},collationString:{value:c}}=n();if(a){mr(l);try{const n=new AbortController,l=n.signal;t({type:hr.AggregationStarted,abortController:n});const p=on(i),h={maxTimeMS:o??rt,collation:c??void 0},d=p[p.length-1]??{},f=["$merge","$out"].includes(Object.keys(d)[0]),m=await ur({dataService:a,signal:l,namespace:s,pipeline:p,options:h,...!f&&{skip:(e-1)*u,limit:u}});f&&t((0,Kt.globalAppRegistryEmit)("agg-pipeline-out-executed",{id:r})),0===m.length?t({type:hr.LastPageReached,page:e}):t({type:hr.AggregationFinished,documents:m,page:e,isLast:m.length<u})}catch(n){if(n.name===nr)return;if(n.code)return t({type:hr.AggregationFailed,error:n.message,page:e}),"MaxTimeMSExpired"===n.codeName&&pr("Aggregation Timed Out",{max_time_ms:o??null}),void lr.warn(cr(1001000106),"Aggregations","Failed to run aggregation",{message:n.message});throw n}}}};let Er;!function(e){e.CountStarted="compass-aggregations/countStarted",e.CountFinished="compass-aggregations/countFinished",e.CountFailed="compass-aggregations/countFailed"}(Er||(Er={}));const yr={loading:!1};let vr;!function(e){e.WorkspaceChanged="compass-aggregations/workspaceChanged"}(vr||(vr={}));const Ar="builder",Cr=(0,he.css)({display:"flex",gap:he.spacing[2],alignItems:"center"}),br=(0,he.css)({padding:0}),Sr=(0,he.css)({border:"none",padding:0,backgroundColor:"transparent",span:{backgroundImage:"none !important"}}),xr=Y((e=>{let{pipeline:t,workspace:n}=e;return{stages:t.filter((e=>e.isEnabled)).map((e=>{let{stageOperator:t}=e;return t})).filter(Boolean),showAddNewStage:0===t.length,isResultsMode:"results"===n}}),{onStageAdded:zn,onChangeWorkspace:e=>t=>{"builder"===e&&(t(fr()),t(((e,t)=>{const{countDocuments:{abortController:n}}=t();n?.abort()}))),t({type:vr.WorkspaceChanged,view:e})}})((e=>{let{isResultsMode:t,stages:n,showAddNewStage:r,onStageAdded:s,onChangeWorkspace:o}=e;return i().createElement("div",{className:Cr,"data-testid":"toolbar-pipeline-stages"},0===n.length?i().createElement(he.Description,{className:(0,he.cx)(br)},"Your pipeline is currently empty.",r&&i().createElement(i().Fragment,null," ","To get started select the ",i().createElement(he.Link,{className:Sr,as:"button",onClick:()=>s(),hideExternalIcon:!0,"data-testid":"pipeline-toolbar-add-stage-button"},"first stage."))):i().createElement(he.Pipeline,{size:"small"},n.map(((e,t)=>i().createElement(he.Stage,{key:`${t}-${e}`},e)))),t&&i().createElement(he.Button,{"data-testid":"pipeline-toolbar-edit-button",variant:"primaryOutline",size:"small",onClick:()=>o("builder"),leftGlyph:i().createElement(he.Icon,{glyph:"Edit"})},"Edit"))})),{track:wr,debug:Dr}=We("COMPASS-AGGREGATIONS-UI"),_r=null,Or="aggregations/update-view/ERROR_UPDATING_VIEW",Fr="aggregations/update-view/DISMISS_VIEW_UPDATE_ERROR",Tr=e=>({type:Or,error:`${e}`}),Br=()=>({type:Fr}),kr=()=>(e,t)=>{e(Br());const n=t(),r=n.dataService.dataService,i=n.editViewName,s=n.pipeline.map((e=>e.executor||Ht(e))),o={viewOn:Vt()(n.namespace).collection,pipeline:s};try{Dr("calling data-service.updateCollection",i),r.updateCollection(i,o,(t=>{if(t)return Dr("error updating view",t),void e(Tr(t));e((0,Kt.globalAppRegistryEmit)("refresh-data")),wr("View Updated",{num_stages:s.length}),e((0,Kt.globalAppRegistryEmit)("compass:aggregations:update-view",{numStages:s.length}));const r={namespace:i,isReadonly:!0,sourceName:n.namespace,editViewName:null,sourceReadonly:n.isReadonly,sourceViewOn:n.sourceName,sourcePipeline:s};Dr("selecting namespace",r),e((0,Kt.globalAppRegistryEmit)("select-namespace",r))}))}catch(t){Dr("Unexpected error updating view",t),e(Tr(t))}};var Rr=n(8761),Ir=n(4208),Nr=n.n(Ir);const Pr=e=>{const t=e.stages[0],n=(0,Ir.getStageCursorKey)(t);if(!n)throw new Error("Can not find a cursor stage.");return Lr(t[n])},Mr=e=>{const t=Object.keys(e.shards)[0],n=e.shards[t];return n.stages?Pr(n):Lr(n)},Lr=e=>e.queryPlanner,jr=e=>e.queryPlanner.winningPlan.shards[0],Vr=e=>{const t=e.stages[0],n=(0,Ir.getStageCursorKey)(t);if(!n)throw new Error("Can not find a cursor stage.");const r=e.stages[e.stages.length-1],i=zr(t[n]);return i.nReturned=r.nReturned,i.stageIndexes=Wr(e.stages),i.executionTimeMillis=function(e,t){const[,...n]=t;return e.executionTimeMillis+qr(n,"executionTimeMillisEstimate")}(i,e.stages),i},Ur=e=>{const t=[];let n=[];for(const r in e.shards){const i=e.shards[r].stages?Vr(e.shards[r]):zr(e.shards[r]);t.push({shardName:r,...i}),n=n.concat(Wr(e.shards[r].stages??[],r))}const r=qr(t,"nReturned"),i=qr(t,"executionTimeMillis"),s=qr(t,"totalKeysExamined"),o=qr(t,"totalDocsExamined");return{nReturned:r,executionTimeMillis:i,totalKeysExamined:s,totalDocsExamined:o,allPlansExecution:[],executionSuccess:!0,stageIndexes:n,executionStages:{stage:1===t.length?"SINGLE_SHARD":"SHARD_MERGE",nReturned:r,executionTimeMillis:i,totalKeysExamined:s,totalDocsExamined:o,shards:t}}},zr=e=>e.executionStats;function qr(e,t){return e.reduce(((e,n)=>e+Number(n[t]??0)),0)}function Wr(e,t){return e.reduce(((e,t)=>e.concat(t?.indexesUsed??[])),[]).map((e=>({index:e,shard:t??null})))}const Hr=Symbol("ExplainPlan.kParent");class Gr{constructor(e){const t=Nr()(e),n=(e=>(0,Ir.isAggregationExplain)(e)?(e=>(0,Ir.isShardedAggregationExplain)(e)?Ur(e):Vr(e))(e):zr(e))(t);Gr.addParentStages(n.executionStages);const r=(e=>{const t=(0,Ir.isAggregationExplain)(e)?(e=>(0,Ir.isShardedAggregationExplain)(e)?Mr(e):Pr(e))(e):(e=>(0,Ir.isShardedFindExplain)(e)?jr(e):Lr(e))(e);return{namespace:t.namespace,parsedQuery:t.parsedQuery}})(t),i=n?.executionStages?.shards?.[0]??n;this.executionStats=n,this.namespace=r.namespace,this.parsedQuery=r.parsedQuery,this.executionSuccess=i.executionSuccess,this.nReturned=n.nReturned,this.executionTimeMillis=n.executionTimeMillis,this.totalKeysExamined=n.totalKeysExamined,this.totalDocsExamined=n.totalDocsExamined,this.originalExplainData=e}get usedIndexes(){const e=this.findAllStagesByName("IXSCAN"),t=this.findStageByName("IDHACK"),n=this.executionStats.stageIndexes??[];for(const r of[...e,t]){if(!r)continue;let e=null;if(this.isSharded)for(const t of Gr.getParentStages(r))if("string"==typeof t.shardName){e=t.shardName;break}const i=r===t?"_id_":r.indexName;n.push({index:i,shard:e})}if(this.isSharded)for(const e of this.executionStats.executionStages.shards)n.some((t=>t.shard===e.shardName))||n.push({index:null,shard:e.shardName});return n.filter(((e,t,n)=>n.findIndex((t=>t.index===e.index&&t.shard===e.shard))===t))}get isCovered(){return!(this.totalDocsExamined>0)&&"FETCH"!==this.findStageByName("IXSCAN")?.parentName}get isMultiKey(){return this.findAllStagesByName("IXSCAN").some((e=>e.isMultiKey))}get inMemorySort(){return 0!==this.findAllStagesByName("SORT").length}get isCollectionScan(){return null!==this.findStageByName("COLLSCAN")}get isSharded(){return!!this.executionStats.executionStages.shards}get numShards(){return this.isSharded?this.executionStats.executionStages.shards.length:0}findStageByName(e,t){for(const n of this._getStageIterator(t))if(n.stage===e)return n;return null}findAllStagesByName(e,t){return[...this._getStageIterator(t)].filter((t=>t.stage===e))}*_getStageIterator(e){const t=e??this.executionStats.executionStages;yield t;for(const e of Gr.getChildStages(t))yield*this._getStageIterator(e)}static*getChildStages(e){e.inputStage&&(yield e.inputStage),e.executionStages&&(yield e.executionStages),e.innerStage&&(yield e.innerStage),e.outerStage&&(yield e.outerStage),e.thenStage&&(yield e.thenStage),e.elseStage&&(yield e.elseStage),e.shards&&(yield*e.shards),e.inputStages&&(yield*e.inputStages)}static addParentStages(e){e[Hr]=null;for(const t of Gr.getChildStages(e))Gr.addParentStages(t),t[Hr]=e}static*getParentStages(e){let t=e;for(;t=t?.[Hr];)yield t}}const{log:$r,mongoLogId:Kr,track:Xr}=We("COMPASS-AGGREGATIONS-UI");let Jr;!function(e){e.ExplainStarted="compass-aggregations/explainStarted",e.ExplainFinished="compass-aggregations/explainFinished",e.ExplainFailed="compass-aggregations/explainFailed",e.ExplainCancelled="compass-aggregations/explainCancelled"}(Jr||(Jr={}));const Zr={isLoading:!1,isModalOpen:!1},Yr=()=>(e,t)=>{const{explain:{abortController:n}}=t();n?.abort(),e({type:Jr.ExplainCancelled})},Qr=function(e,t){return t.filter((e=>e.index)).map((t=>{const n=e.find((e=>e.name===t.index));return{name:t.index,shard:t.shard,key:n?.key??{}}})).filter(Boolean)},ei=(0,he.css)({display:"flex",gap:he.spacing[2],alignItems:"center"}),ti={onUpdateView:kr,onRunAggregation:()=>(e,t)=>{const{pipeline:n}=t();return pr("Aggregation Executed",(()=>({num_stages:on(n).length}))),e(gr())},onExportAggregationResults:()=>(e,t)=>{const{pipeline:n,namespace:r,maxTimeMS:i,countDocuments:{count:s},collationString:{value:o}}=t(),a=on(n),u={maxTimeMS:i??rt,allowDiskUse:!0,collation:o??void 0};e((0,Kt.globalAppRegistryEmit)("open-export",{namespace:r,aggregation:{stages:a,options:u},count:s}))},onExplainAggregation:()=>async(e,t)=>{const{isDataLake:n,pipeline:r,namespace:i,maxTimeMS:s,dataService:{dataService:o},indexes:a,collationString:{value:u}}=t();if(o)try{const t=new AbortController,l=t.signal;e({type:Jr.ExplainStarted,abortController:t});const c={maxTimeMS:s??rt,allowDiskUse:!0,collation:u??void 0},p=on(r),h=((e,t)=>{if(t)return Rr.ExplainVerbosity.queryPlannerExtended;const n=e[e.length-1]??{};return Object.prototype.hasOwnProperty.call(n,"$out")||Object.prototype.hasOwnProperty.call(n,"$merge")?Rr.ExplainVerbosity.queryPlanner:Rr.ExplainVerbosity.allPlansExecution})(p,n),d=await o.explainAggregate(i,p,c,{abortSignal:l,explainVerbosity:h}),f={plan:d};try{const{nReturned:t,executionTimeMillis:n,usedIndexes:r}=new Gr(d),i={executionTimeMillis:n,nReturned:t,indexes:Qr(a,r)};f.stats=i}catch(e){$r.warn(Kr(1001000137),"Explain","Failed to parse aggregation explain",{message:e.message})}finally{Xr("Aggregation Explained",{num_stages:p.length,index_used:f.stats?.indexes?.length??0}),e({type:Jr.ExplainFinished,explain:f})}}catch(t){o.isOperationCancelledError(t)||(e({type:Jr.ExplainFailed,error:t.message}),$r.error(Kr(1001000138),"Explain","Failed to run aggregation explain",{message:t.message}))}}},ni=Y((e=>{let{pipeline:t,editViewName:n,isModified:r}=e;const i=t.filter((e=>!Gt(e))),s=i[i.length-1],o=["$merge","$out"].includes(s?.stageOperator),a=i.some((e=>!e.isValid||Boolean(e.error))),u=0===t.length;return{isRunButtonDisabled:a||u,isExplainButtonDisabled:a,isExportButtonDisabled:o||a||u,showUpdateViewButton:Boolean(n),isUpdateViewButtonDisabled:!r||a||u}}),ti)((e=>{let{isOptionsVisible:t,showRunButton:n,isRunButtonDisabled:r,showExportButton:s,isExportButtonDisabled:o,showUpdateViewButton:a,isUpdateViewButtonDisabled:u,isExplainButtonDisabled:l,showExplainButton:c,onUpdateView:p,onRunAggregation:h,onToggleOptions:d,onExportAggregationResults:f,onExplainAggregation:m}=e;return i().createElement("div",{className:ei},a&&i().createElement(he.Button,{"aria-label":"Update view","data-testid":"pipeline-toolbar-update-view-aggregation-button",variant:"primary",size:"small",onClick:p,disabled:u},"Update view"),c&&i().createElement(he.Button,{"aria-label":"Explain aggregation","data-testid":"pipeline-toolbar-explain-aggregation-button",variant:"default",size:"small",onClick:m,disabled:l},"Explain"),!a&&s&&i().createElement(he.Button,{"aria-label":"Export aggregation","data-testid":"pipeline-toolbar-export-aggregation-button",variant:"default",size:"small",onClick:f,disabled:o},"Export"),!a&&n&&i().createElement(he.Button,{"aria-label":"Run aggregation","data-testid":"pipeline-toolbar-run-button",variant:"primary",size:"small",onClick:h,disabled:r},"Run"),i().createElement(he.MoreOptionsToggle,{isExpanded:!!t,"aria-controls":"pipeline-options",id:"pipeline-toolbar-options","data-testid":"pipeline-toolbar-options-button",onToggleOptions:d}))})),ri=()=>{const{remote:e}=n(5840),t=n(5315),r=process.env.MONGODB_COMPASS_AGGREGATIONS_TEST_BASE_PATH||e.app.getPath("userData");return t.join(r,"SavedPipelines")};var ii=n(2048),si=n.n(ii),oi=n(5315),ai=n.n(oi);const{debug:ui}=We("COMPASS-AGGREGATIONS-UI"),li="utf8";class ci{async loadAll(){const e=ri(),t=(await ii.promises.readdir(e)).filter((e=>e.endsWith(".json"))).map((t=>ai().join(e,t)));return(await Promise.all(t.map((e=>this._loadOne(e))))).filter(Boolean)}async _loadOne(e){try{const[t,n]=await Promise.all([this._getFileData(e),ii.promises.stat(e)]);return{...t,lastModified:n.mtimeMs}}catch(t){return ui(`Failed to load pipeline ${ai().basename(e)}`,t),null}}async _getFileData(e){const t=await ii.promises.readFile(e,li);return JSON.parse(t)}async updateAttributes(e,t){if(!e)throw new Error("pipelineId is required");const n=ai().join(ri(),`${e}.json`),r=await this._getFileData(n);return await ii.promises.writeFile(n,JSON.stringify({...r,...t}),li),this._loadOne(n)}async delete(e){const t=ai().join(ri(),`${e}.json`);return ii.promises.unlink(t)}}const{track:pi,debug:hi}=We("COMPASS-AGGREGATIONS-UI"),di="aggregations/saved-pipeline",fi=`${di}/LIST_TOGGLED`,mi=`${di}/ADD`,gi={pipelines:[],isLoaded:!1,isListVisible:!1},Ei={};Ei[fi]=(e,t)=>{const n=(e=>Object.assign({},e))(e);return n.isListVisible=!!t.index,n},Ei[mi]=(e,t)=>({...e,pipelines:t.pipelines,isLoaded:!0});const yi=e=>({type:fi,index:e}),vi=e=>({type:mi,pipelines:e}),Ai=()=>(e,t)=>{t().savedPipeline.isLoaded||e(Ci())},Ci=()=>(e,t)=>{const n=new ci,r=t();n.loadAll().then((t=>{const n=t.filter((e=>{let{namespace:t}=e;return t===r.namespace}));e(fn(!1)),e(vi(n)),e((0,Kt.globalAppRegistryEmit)("agg-pipeline-saved",{name:r.name}))})).catch((e=>{hi("Failed to load pipelines",e)}))},bi=()=>async(e,t)=>{const{promises:r}=n(2048),i=n(5315),s=t();""===t().id&&e(un());const o=s.pipeline.map((e=>({...e,previewDocuments:[]}))),{id:a,name:u,namespace:l,comments:c,sample:p,autoPreview:h,collationString:{text:d},dataService:f}=t(),m={id:a,name:u,namespace:l,comments:c,sample:p,autoPreview:h,collationString:d,pipeline:o,host:f?.dataService?.getConnectionString?.().hosts.join(",")??null};pi("Aggregation Saved",{id:m.id,num_stages:o.length});const g=ri();await r.mkdir(g,{recursive:!0});const E=i.join(g,`${m.id}.json`);await r.writeFile(E,JSON.stringify(m),{encoding:"utf8",flag:"w"}),e(Ci())},Si=(0,he.css)({display:"flex",gap:he.spacing[4],alignItems:"center"}),xi=(0,he.css)({display:"flex",gap:he.spacing[2]}),wi=(0,he.css)({border:"none",backgroundColor:"transparent",lineHeight:1,display:"flex",alignItems:"center","&:hover":{cursor:"pointer"}}),Di=(0,he.css)({display:"flex",flex:1}),_i=(0,he.css)({display:"flex",flex:"none",marginLeft:"auto"}),Oi=Y((e=>({isOpenPipelineVisible:!e.editViewName&&!e.isAtlasDeployed})),{onShowSavedPipelines:()=>e=>{e(Ai()),e(yi(1))}})((e=>{let{onShowSavedPipelines:t,showRunButton:n,showExportButton:r,showExplainButton:s,onToggleOptions:o,isOptionsVisible:a,isOpenPipelineVisible:u}=e;return i().createElement("div",{className:Si,"data-testid":"pipeline-header"},u&&i().createElement("div",{className:xi},i().createElement(he.Body,{weight:"medium"},"Pipeline"),i().createElement("button",{"data-testid":"pipeline-toolbar-open-pipelines-button",onClick:t,className:wi,"aria-label":"Open saved pipelines"},i().createElement(he.Icon,{glyph:"Folder"}),i().createElement(he.Icon,{glyph:"CaretDown"}))),i().createElement("div",{className:Di},i().createElement(xr,null)),i().createElement("div",{className:_i},i().createElement(ni,{onToggleOptions:o,isOptionsVisible:a,showRunButton:n,showExportButton:r,showExplainButton:s})))})),Fi="aggregations/collation/COLLATION_STRING_CHANGED",Ti={text:"",value:null,isValid:!0};function Bi(e){const t=Pt().isCollationValid(e);return{text:e,value:!1===t?null:t,isValid:!1!==t}}const ki=e=>({type:Fi,value:e}),Ri=n(4283),Ii=e=>()=>{Ri?n(5840).shell.openExternal(e):window.open(e,"_new")},Ni="aggregations/max-time-ms/MAX_TIME_MS_CHANGED",Pi=null,Mi=e=>({type:Ni,maxTimeMS:isNaN(e)?null:e}),Li=require("hadron-react-components");var ji=n(9430),Vi={};Vi.styleTagTransform=we(),Vi.setAttributes=Ce(),Vi.insert=ve().bind(null,"head"),Vi.domAPI=Ee(),Vi.insertStyleElement=Se(),me()(ji.Z,Vi);const Ui=ji.Z&&ji.Z.locals?ji.Z.locals:void 0;class zi extends r.PureComponent{static displayName="CollationToolbarComponent";static propTypes={collationString:o().object,collationStringChanged:o().func.isRequired,maxTimeMS:o().number,maxTimeMSChanged:o().func,openLink:o().func.isRequired};state={hasFocus:!1};onCollationChange=e=>{this.props.collationStringChanged(e.target.value)};onMaxTimeMsChanged=e=>{this.props.maxTimeMSChanged&&this.props.maxTimeMSChanged(parseInt(e.currentTarget.value,10))};_onFocus=()=>{this.setState({hasFocus:!0})};_onBlur=()=>{this.setState({hasFocus:!1})};render(){return i().createElement("div",{"data-testid":"legacy-collation-toolbar",className:Ui["collation-toolbar"]},i().createElement("div",{onBlur:this._onBlur,onFocus:this._onFocus,className:pe()(Ui["toolbar-input-wrapper"],{[Ui["has-focus"]]:this.state.hasFocus})},i().createElement("div",{className:pe()(Ui["toolbar-input-label"],{[Ui["has-error"]]:!this.props.collationString.isValid}),"data-testid":"collation-toolbar-input-label"},i().createElement(Li.InfoSprinkle,{helpLink:"https://docs.mongodb.com/master/reference/collation/",onClickHandler:this.props.openLink}),"Collation"),i().createElement("input",{"data-testid":"collation-string",placeholder:"{ locale: 'simple' }",type:"text",onChange:this.onCollationChange,value:this.props.collationString.text}),i().createElement("div",{className:pe()(Ui["max-time-ms"])},i().createElement("div",{className:pe()(Ui["toolbar-input-label"]),"data-testid":"maxtimems-toolbar-input-label"},i().createElement(Li.InfoSprinkle,{helpLink:"https://www.mongodb.com/docs/manual/reference/method/cursor.maxTimeMS/",onClickHandler:this.props.openLink}),"Max Time MS"),i().createElement("input",{"data-testid":"max-time-ms",id:"max-time-limit","aria-describedby":"max-time-limit",type:"number",min:"0",placeholder:rt,value:this.props.maxTimeMS??"",onChange:this.onMaxTimeMsChanged}))))}}const qi=zi,Wi=Y((e=>{let{collationString:t,settings:{maxTimeMS:n,isDirty:r},maxTimeMS:i}=e;return{collationString:t,maxTimeMS:r?n:i}}),{collationStringChanged:ki,maxTimeMSChanged:Mi,openLink:Ii})((e=>{let{collationString:t,collationStringChanged:n,maxTimeMS:r,maxTimeMSChanged:s,openLink:o}=e;const a={collationString:t,collationStringChanged:n,maxTimeMS:r,maxTimeMSChanged:s,openLink:o};return i().createElement(qi,a)})),Hi=()=>i().createElement("div",{"data-testid":"pipeline-options",role:"region",id:"pipeline-options","aria-labelledby":"pipeline-toolbar-options"},i().createElement(Wi,null)),Gi=()=>(e,t)=>{const n=t();e((0,Kt.localAppRegistryEmit)("open-aggregation-export-to-language",((e,t)=>`[${e.pipeline.filter(((e,n)=>e.isEnabled&&n<=t)).map((e=>function(e){const t=Ht(e);return Pt().toJSString(t)}(e))).join(", ")}]`)(n,n.pipeline.length))),e((0,Kt.globalAppRegistryEmit)("compass:export-to-language:opened",{source:"Aggregations"}))};var $i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Ki="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Xi={5:Ki,"5module":Ki+" export import",6:Ki+" const class extends export import super"},Ji=/^in(stanceof)?$/,Zi="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Yi="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",Qi=new RegExp("["+Zi+"]"),es=new RegExp("["+Zi+Yi+"]");Zi=Yi=null;var ts=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],ns=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function rs(e,t){for(var n=65536,r=0;r<t.length;r+=2){if((n+=t[r])>e)return!1;if((n+=t[r+1])>=e)return!0}}function is(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&Qi.test(String.fromCharCode(e)):!1!==t&&rs(e,ts)))}function ss(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&es.test(String.fromCharCode(e)):!1!==t&&(rs(e,ts)||rs(e,ns)))))}var os=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function as(e,t){return new os(e,{beforeExpr:!0,binop:t})}var us={beforeExpr:!0},ls={startsExpr:!0},cs={};function ps(e,t){return void 0===t&&(t={}),t.keyword=e,cs[e]=new os(e,t)}var hs={num:new os("num",ls),regexp:new os("regexp",ls),string:new os("string",ls),name:new os("name",ls),privateId:new os("privateId",ls),eof:new os("eof"),bracketL:new os("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new os("]"),braceL:new os("{",{beforeExpr:!0,startsExpr:!0}),braceR:new os("}"),parenL:new os("(",{beforeExpr:!0,startsExpr:!0}),parenR:new os(")"),comma:new os(",",us),semi:new os(";",us),colon:new os(":",us),dot:new os("."),question:new os("?",us),questionDot:new os("?."),arrow:new os("=>",us),template:new os("template"),invalidTemplate:new os("invalidTemplate"),ellipsis:new os("...",us),backQuote:new os("`",ls),dollarBraceL:new os("${",{beforeExpr:!0,startsExpr:!0}),eq:new os("=",{beforeExpr:!0,isAssign:!0}),assign:new os("_=",{beforeExpr:!0,isAssign:!0}),incDec:new os("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new os("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:as("||",1),logicalAND:as("&&",2),bitwiseOR:as("|",3),bitwiseXOR:as("^",4),bitwiseAND:as("&",5),equality:as("==/!=/===/!==",6),relational:as("</>/<=/>=",7),bitShift:as("<</>>/>>>",8),plusMin:new os("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:as("%",10),star:as("*",10),slash:as("/",10),starstar:new os("**",{beforeExpr:!0}),coalesce:as("??",1),_break:ps("break"),_case:ps("case",us),_catch:ps("catch"),_continue:ps("continue"),_debugger:ps("debugger"),_default:ps("default",us),_do:ps("do",{isLoop:!0,beforeExpr:!0}),_else:ps("else",us),_finally:ps("finally"),_for:ps("for",{isLoop:!0}),_function:ps("function",ls),_if:ps("if"),_return:ps("return",us),_switch:ps("switch"),_throw:ps("throw",us),_try:ps("try"),_var:ps("var"),_const:ps("const"),_while:ps("while",{isLoop:!0}),_with:ps("with"),_new:ps("new",{beforeExpr:!0,startsExpr:!0}),_this:ps("this",ls),_super:ps("super",ls),_class:ps("class",ls),_extends:ps("extends",us),_export:ps("export"),_import:ps("import",ls),_null:ps("null",ls),_true:ps("true",ls),_false:ps("false",ls),_in:ps("in",{beforeExpr:!0,binop:7}),_instanceof:ps("instanceof",{beforeExpr:!0,binop:7}),_typeof:ps("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ps("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ps("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ds=/\r\n?|\n|\u2028|\u2029/,fs=new RegExp(ds.source,"g");function ms(e){return 10===e||13===e||8232===e||8233===e}var gs=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Es=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ys=Object.prototype,vs=ys.hasOwnProperty,As=ys.toString;function Cs(e,t){return vs.call(e,t)}var bs=Array.isArray||function(e){return"[object Array]"===As.call(e)};function Ss(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}var xs=function(e,t){this.line=e,this.column=t};xs.prototype.offset=function(e){return new xs(this.line,this.column+e)};var ws=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Ds(e,t){for(var n=1,r=0;;){fs.lastIndex=r;var i=fs.exec(e);if(!(i&&i.index<t))return new xs(n,t-r);++n,r=i.index+i[0].length}}var _s={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Os=!1;function Fs(e,t){return 2|(e?4:0)|(t?8:0)}var Ts=function(e,t,n){this.options=e=function(e){var t={};for(var n in _s)t[n]=e&&Cs(e,n)?e[n]:_s[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Os&&"object"==typeof console&&console.warn&&(Os=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),bs(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return bs(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,s,o,a){var u={type:n?"Block":"Line",value:r,start:i,end:s};e.locations&&(u.loc=new ws(this,o,a)),e.ranges&&(u.range=[i,s]),t.push(u)}}(t,t.onComment)),t}(e),this.sourceFile=e.sourceFile,this.keywords=Ss(Xi[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=$i[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=Ss(r);var i=(r?r+" ":"")+$i.strict;this.reservedWordsStrict=Ss(i),this.reservedWordsStrictBind=Ss(i+" "+$i.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ds).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=hs.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Bs={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ts.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Bs.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Bs.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Bs.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Bs.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||256&t.flags)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Bs.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Bs.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Bs.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Bs.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Bs.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Ts.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Ts.parse=function(e,t){return new this(t,e).parse()},Ts.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},Ts.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(Ts.prototype,Bs);var ks=Ts.prototype,Rs=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;function Is(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}ks.strictDirective=function(e){for(;;){Es.lastIndex=e,e+=Es.exec(this.input)[0].length;var t=Rs.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){Es.lastIndex=e+t[0].length;var n=Es.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||ds.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,Es.lastIndex=e,e+=Es.exec(this.input)[0].length,";"===this.input[e]&&e++}},ks.eat=function(e){return this.type===e&&(this.next(),!0)},ks.isContextual=function(e){return this.type===hs.name&&this.value===e&&!this.containsEsc},ks.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},ks.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ks.canInsertSemicolon=function(){return this.type===hs.eof||this.type===hs.braceR||ds.test(this.input.slice(this.lastTokEnd,this.start))},ks.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ks.semicolon=function(){this.eat(hs.semi)||this.insertSemicolon()||this.unexpected()},ks.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},ks.expect=function(e){this.eat(e)||this.unexpected()},ks.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")},ks.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,"Parenthesized pattern")}},ks.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},ks.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ks.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var Ns=Ts.prototype;Ns.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==hs.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var Ps={kind:"loop"},Ms={kind:"switch"};Ns.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Es.lastIndex=this.pos;var t=Es.exec(this.input),n=this.pos+t[0].length,r=this.input.charCodeAt(n);if(91===r||92===r||r>55295&&r<56320)return!0;if(e)return!1;if(123===r)return!0;if(is(r,!0)){for(var i=n+1;ss(r=this.input.charCodeAt(i),!0);)++i;if(92===r||r>55295&&r<56320)return!0;var s=this.input.slice(n,i);if(!Ji.test(s))return!0}return!1},Ns.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Es.lastIndex=this.pos;var e,t=Es.exec(this.input),n=this.pos+t[0].length;return!(ds.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(ss(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},Ns.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=hs._var,r="let"),i){case hs._break:case hs._continue:return this.parseBreakContinueStatement(s,i.keyword);case hs._debugger:return this.parseDebuggerStatement(s);case hs._do:return this.parseDoStatement(s);case hs._for:return this.parseForStatement(s);case hs._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case hs._class:return e&&this.unexpected(),this.parseClass(s,!0);case hs._if:return this.parseIfStatement(s);case hs._return:return this.parseReturnStatement(s);case hs._switch:return this.parseSwitchStatement(s);case hs._throw:return this.parseThrowStatement(s);case hs._try:return this.parseTryStatement(s);case hs._const:case hs._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case hs._while:return this.parseWhileStatement(s);case hs._with:return this.parseWithStatement(s);case hs.braceL:return this.parseBlock(!0,s);case hs.semi:return this.parseEmptyStatement(s);case hs._export:case hs._import:if(this.options.ecmaVersion>10&&i===hs._import){Es.lastIndex=this.pos;var o=Es.exec(this.input),a=this.pos+o[0].length,u=this.input.charCodeAt(a);if(40===u||46===u)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===hs._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var l=this.value,c=this.parseExpression();return i===hs.name&&"Identifier"===c.type&&this.eat(hs.colon)?this.parseLabeledStatement(s,l,c,e):this.parseExpressionStatement(s,c)}},Ns.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(hs.semi)||this.insertSemicolon()?e.label=null:this.type!==hs.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(n||"loop"===i.kind))break;if(e.label&&n)break}}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},Ns.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Ns.parseDoStatement=function(e){return this.next(),this.labels.push(Ps),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(hs._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(hs.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Ns.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Ps),this.enterScope(0),this.expect(hs.parenL),this.type===hs.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===hs._var||this.type===hs._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),(this.type===hs._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===hs._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var s=this.isContextual("let"),o=!1,a=new Is,u=this.parseExpression(!(t>-1)||"await",a);return this.type===hs._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===hs._in?t>-1&&this.unexpected(t):e.await=t>-1),s&&o&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,a),this.checkLValPattern(u),this.parseForIn(e,u)):(this.checkExpressionErrors(a,!0),t>-1&&this.unexpected(t),this.parseFor(e,u))},Ns.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,js|(n?0:Vs),!1,t)},Ns.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(hs._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Ns.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(hs.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Ns.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(hs.braceL),this.labels.push(Ms),this.enterScope(0);for(var n=!1;this.type!==hs.braceR;)if(this.type===hs._case||this.type===hs._default){var r=this.type===hs._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(hs.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},Ns.parseThrowStatement=function(e){return this.next(),ds.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ls=[];Ns.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===hs._catch){var t=this.startNode();if(this.next(),this.eat(hs.parenL)){t.param=this.parseBindingAtom();var n="Identifier"===t.param.type;this.enterScope(n?32:0),this.checkLValPattern(t.param,n?4:2),this.expect(hs.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0);t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(hs._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Ns.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Ns.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Ps),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Ns.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},Ns.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Ns.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var o=this.type.isLoop?"loop":this.type===hs._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var u=this.labels[a];if(u.statementStart!==e.start)break;u.statementStart=this.start,u.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},Ns.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Ns.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(hs.braceL),e&&this.enterScope(0);this.type!==hs.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Ns.parseFor=function(e,t){return e.init=t,this.expect(hs.semi),e.test=this.type===hs.semi?null:this.parseExpression(),this.expect(hs.semi),e.update=this.type===hs.parenR?null:this.parseExpression(),this.expect(hs.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Ns.parseForIn=function(e,t){var n=this.type===hs._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(hs.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},Ns.parseVar=function(e,t,n){for(e.declarations=[],e.kind=n;;){var r=this.startNode();if(this.parseVarId(r,n),this.eat(hs.eq)?r.init=this.parseMaybeAssign(t):"const"!==n||this.type===hs._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===r.id.type||t&&(this.type===hs._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(hs.comma))break}return e},Ns.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var js=1,Vs=2;function Us(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function zs(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}Ns.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===hs.star&&t&Vs&&this.unexpected(),e.generator=this.eat(hs.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&js&&(e.id=4&t&&this.type!==hs.name?null:this.parseIdent(),!e.id||t&Vs||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fs(e.async,e.generator)),t&js||(e.id=this.type===hs.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(e,t&js?"FunctionDeclaration":"FunctionExpression")},Ns.parseFunctionParams=function(e){this.expect(hs.parenL),e.params=this.parseBindingList(hs.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Ns.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(hs.braceL);this.type!==hs.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(s&&this.raise(o.start,"Duplicate constructor in the same class"),s=!0):o.key&&"PrivateIdentifier"===o.key.type&&Us(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Ns.parseClassElement=function(e){if(this.eat(hs.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,o="method",a=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(hs.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===hs.star?a=!0:r="static"}if(n.static=a,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==hs.star||this.canInsertSemicolon()?r="async":s=!0),!r&&(t>=9||!s)&&this.eat(hs.star)&&(i=!0),!r&&!s&&!i){var u=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=u:r=u)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===hs.parenL||"method"!==o||i||s){var l=!n.static&&zs(n,"constructor"),c=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,i,s,c)}else this.parseClassField(n);return n},Ns.isClassElementNameStart=function(){return this.type===hs.name||this.type===hs.privateId||this.type===hs.num||this.type===hs.string||this.type===hs.bracketL||this.type.keyword},Ns.parseClassElementName=function(e){this.type===hs.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Ns.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&zs(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},Ns.parseClassField=function(e){if(zs(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&zs(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(hs.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},Ns.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==hs.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},Ns.parseClassId=function(e,t){this.type===hs.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},Ns.parseClassSuper=function(e){e.superClass=this.eat(hs._extends)?this.parseExprSubscripts(!1):null},Ns.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},Ns.exitClassBody=function(){for(var e=this.privateNameStack.pop(),t=e.declared,n=e.used,r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var o=n[s];Cs(t,o.name)||(i?i.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},Ns.parseExport=function(e,t){if(this.next(),this.eat(hs.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseIdent(!0),this.checkExport(t,e.exported.name,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==hs.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(hs._default)){var n;if(this.checkExport(t,"default",this.lastTokStart),this.type===hs._function||(n=this.isAsyncFunction())){var r=this.startNode();this.next(),n&&this.next(),e.declaration=this.parseFunction(r,4|js,!1,n)}else if(this.type===hs._class){var i=this.startNode();e.declaration=this.parseClass(i,"nullableID")}else e.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(e,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())e.declaration=this.parseStatement(null),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id.name,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==hs.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var s=0,o=e.specifiers;s<o.length;s+=1){var a=o[s];this.checkUnreserved(a.local),this.checkLocalExport(a.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Ns.checkExport=function(e,t,n){e&&(Cs(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},Ns.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t.name,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var o=0,a=t.elements;o<a.length;o+=1){var u=a[o];u&&this.checkPatternExport(e,u)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n?this.checkPatternExport(e,t.argument):"ParenthesizedExpression"===n&&this.checkPatternExport(e,t.expression)},Ns.checkVariableExport=function(e,t){if(e)for(var n=0,r=t;n<r.length;n+=1){var i=r[n];this.checkPatternExport(e,i.id)}},Ns.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},Ns.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(hs.braceL);!this.eat(hs.braceR);){if(n)n=!1;else if(this.expect(hs.comma),this.afterTrailingComma(hs.braceR))break;var r=this.startNode();r.local=this.parseIdent(!0),r.exported=this.eatContextual("as")?this.parseIdent(!0):r.local,this.checkExport(e,r.exported.name,r.exported.start),t.push(this.finishNode(r,"ExportSpecifier"))}return t},Ns.parseImport=function(e){return this.next(),this.type===hs.string?(e.specifiers=Ls,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===hs.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Ns.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===hs.name){var n=this.startNode();if(n.local=this.parseIdent(),this.checkLValSimple(n.local,2),e.push(this.finishNode(n,"ImportDefaultSpecifier")),!this.eat(hs.comma))return e}if(this.type===hs.star){var r=this.startNode();return this.next(),this.expectContextual("as"),r.local=this.parseIdent(),this.checkLValSimple(r.local,2),e.push(this.finishNode(r,"ImportNamespaceSpecifier")),e}for(this.expect(hs.braceL);!this.eat(hs.braceR);){if(t)t=!1;else if(this.expect(hs.comma),this.afterTrailingComma(hs.braceR))break;var i=this.startNode();i.imported=this.parseIdent(!0),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,2),e.push(this.finishNode(i,"ImportSpecifier"))}return e},Ns.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},Ns.isDirectiveCandidate=function(e){return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var qs=Ts.prototype;qs.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"!==s.type||"ArrayPattern"!==s.argument.type&&"ObjectPattern"!==s.argument.type||this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},qs.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},qs.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},qs.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==hs.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},qs.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case hs.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(hs.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case hs.braceL:return this.parseObj(!0)}return this.parseIdent()},qs.parseBindingList=function(e,t,n){for(var r=[],i=!0;!this.eat(e);)if(i?i=!1:this.expect(hs.comma),t&&this.type===hs.comma)r.push(null);else{if(n&&this.afterTrailingComma(e))break;if(this.type===hs.ellipsis){var s=this.parseRestBinding();this.parseBindingListItem(s),r.push(s),this.type===hs.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}var o=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(o),r.push(o)}return r},qs.parseBindingListItem=function(e){return e},qs.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(hs.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},qs.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(Cs(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},qs.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var o=0,a=e.elements;o<a.length;o+=1){var u=a[o];u&&this.checkLValInnerPattern(u,t,n)}break;default:this.checkLValSimple(e,t,n)}},qs.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var Ws=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},Hs={b_stat:new Ws("{",!1),b_expr:new Ws("{",!0),b_tmpl:new Ws("${",!1),p_stat:new Ws("(",!1),p_expr:new Ws("(",!0),q_tmpl:new Ws("`",!0,!0,(function(e){return e.tryReadTemplateToken()})),f_stat:new Ws("function",!1),f_expr:new Ws("function",!0),f_expr_gen:new Ws("function",!0,!1,null,!0),f_gen:new Ws("function",!1,!1,null,!0)},Gs=Ts.prototype;Gs.initialContext=function(){return[Hs.b_stat]},Gs.curContext=function(){return this.context[this.context.length-1]},Gs.braceIsBlock=function(e){var t=this.curContext();return t===Hs.f_expr||t===Hs.f_stat||(e!==hs.colon||t!==Hs.b_stat&&t!==Hs.b_expr?e===hs._return||e===hs.name&&this.exprAllowed?ds.test(this.input.slice(this.lastTokEnd,this.start)):e===hs._else||e===hs.semi||e===hs.eof||e===hs.parenR||e===hs.arrow||(e===hs.braceL?t===Hs.b_stat:e!==hs._var&&e!==hs._const&&e!==hs.name&&!this.exprAllowed):!t.isExpr)},Gs.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},Gs.updateContext=function(e){var t,n=this.type;n.keyword&&e===hs.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},Gs.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},hs.parenR.updateContext=hs.braceR.updateContext=function(){if(1!==this.context.length){var e=this.context.pop();e===Hs.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr}else this.exprAllowed=!0},hs.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?Hs.b_stat:Hs.b_expr),this.exprAllowed=!0},hs.dollarBraceL.updateContext=function(){this.context.push(Hs.b_tmpl),this.exprAllowed=!0},hs.parenL.updateContext=function(e){var t=e===hs._if||e===hs._for||e===hs._with||e===hs._while;this.context.push(t?Hs.p_stat:Hs.p_expr),this.exprAllowed=!0},hs.incDec.updateContext=function(){},hs._function.updateContext=hs._class.updateContext=function(e){!e.beforeExpr||e===hs._else||e===hs.semi&&this.curContext()!==Hs.p_stat||e===hs._return&&ds.test(this.input.slice(this.lastTokEnd,this.start))||(e===hs.colon||e===hs.braceL)&&this.curContext()===Hs.b_stat?this.context.push(Hs.f_stat):this.context.push(Hs.f_expr),this.exprAllowed=!1},hs.backQuote.updateContext=function(){this.curContext()===Hs.q_tmpl?this.context.pop():this.context.push(Hs.q_tmpl),this.exprAllowed=!1},hs.star.updateContext=function(e){if(e===hs._function){var t=this.context.length-1;this.context[t]===Hs.f_expr?this.context[t]=Hs.f_expr_gen:this.context[t]=Hs.f_gen}this.exprAllowed=!0},hs.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==hs.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var $s=Ts.prototype;function Ks(e){return"MemberExpression"===e.type&&"PrivateIdentifier"===e.property.type||"ChainExpression"===e.type&&Ks(e.expression)}$s.checkPropClash=function(e,t,n){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===e.type||this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6)"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);else{var o=t[r="$"+r];o?("init"===s?this.strict&&o.init||o.get||o.set:o.init||o[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):o=t[r]={init:!1,get:!1,set:!1},o[s]=!0}}},$s.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===hs.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(hs.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},$s.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,i=-1,s=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new Is,r=!0);var o=this.start,a=this.startLoc;this.type!==hs.parenL&&this.type!==hs.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var u=this.parseMaybeConditional(e,t);if(n&&(u=n.call(this,u,o,a)),this.type.isAssign){var l=this.startNodeAt(o,a);return l.operator=this.value,this.type===hs.eq&&(u=this.toAssignable(u,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=u.start&&(t.shorthandAssign=-1),this.type===hs.eq?this.checkLValPattern(u):this.checkLValSimple(u),l.left=u,this.next(),l.right=this.parseMaybeAssign(e),this.finishNode(l,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),u},$s.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(hs.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(hs.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},$s.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},$s.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==hs._in)&&s>r){var o=this.type===hs.logicalOR||this.type===hs.logicalAND,a=this.type===hs.coalesce;a&&(s=hs.logicalAND.binop);var u=this.value;this.next();var l=this.start,c=this.startLoc,p=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),l,c,s,i),h=this.buildBinary(t,n,e,p,u,o||a);return(o&&this.type===hs.coalesce||a&&(this.type===hs.logicalOR||this.type===hs.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,n,r,i)}return e},$s.buildBinary=function(e,t,n,r,i,s){var o=this.startNodeAt(e,t);return o.left=n,o.operator=i,o.right=r,this.finishNode(o,s?"LogicalExpression":"BinaryExpression")},$s.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var a=this.startNode(),u=this.type===hs.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,u,r),this.checkExpressionErrors(e,!0),u?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&"Identifier"===a.argument.type?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&Ks(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(a,u?"UpdateExpression":"UnaryExpression")}else{if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(s,o);l.operator=this.value,l.prefix=!1,l.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(l,"UpdateExpression")}}return n||!this.eat(hs.starstar)?i:t?void this.unexpected(this.lastTokStart):this.buildBinary(s,o,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1)},$s.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},$s.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,o=!1;;){var a=this.parseSubscript(e,t,n,r,s,o,i);if(a.optional&&(o=!0),a===e||"ArrowFunctionExpression"===a.type){if(o){var u=this.startNodeAt(t,n);u.expression=a,a=this.finishNode(u,"ChainExpression")}return a}e=a}},$s.parseSubscript=function(e,t,n,r,i,s,o){var a=this.options.ecmaVersion>=11,u=a&&this.eat(hs.questionDot);r&&u&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(hs.bracketL);if(l||u&&this.type!==hs.parenL&&this.type!==hs.backQuote||this.eat(hs.dot)){var c=this.startNodeAt(t,n);c.object=e,l?(c.property=this.parseExpression(),this.expect(hs.bracketR)):this.type===hs.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!l,a&&(c.optional=u),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(hs.parenL)){var p=new Is,h=this.yieldPos,d=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList(hs.parenR,this.options.ecmaVersion>=8,!1,p);if(i&&!u&&!this.canInsertSemicolon()&&this.eat(hs.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=h,this.awaitPos=d,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,n),m,!0,o);this.checkExpressionErrors(p,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=m,a&&(g.optional=u),e=this.finishNode(g,"CallExpression")}else if(this.type===hs.backQuote){(u||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var E=this.startNodeAt(t,n);E.tag=e,E.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(E,"TaggedTemplateExpression")}return e},$s.parseExprAtom=function(e,t){this.type===hs.slash&&this.readRegexp();var n,r=this.potentialArrowAt===this.start;switch(this.type){case hs._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),n=this.startNode(),this.next(),this.type!==hs.parenL||this.allowDirectSuper||this.raise(n.start,"super() call outside constructor of a subclass"),this.type!==hs.dot&&this.type!==hs.bracketL&&this.type!==hs.parenL&&this.unexpected(),this.finishNode(n,"Super");case hs._this:return n=this.startNode(),this.next(),this.finishNode(n,"ThisExpression");case hs.name:var i=this.start,s=this.startLoc,o=this.containsEsc,a=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(hs._function))return this.overrideContext(Hs.f_expr),this.parseFunction(this.startNodeAt(i,s),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(hs.arrow))return this.parseArrowExpression(this.startNodeAt(i,s),[a],!1,t);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===hs.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return a=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(hs.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(i,s),[a],!0,t)}return a;case hs.regexp:var u=this.value;return(n=this.parseLiteral(u.value)).regex={pattern:u.pattern,flags:u.flags},n;case hs.num:case hs.string:return this.parseLiteral(this.value);case hs._null:case hs._true:case hs._false:return(n=this.startNode()).value=this.type===hs._null?null:this.type===hs._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case hs.parenL:var l=this.start,c=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=l),e.parenthesizedBind<0&&(e.parenthesizedBind=l)),c;case hs.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(hs.bracketR,!0,!0,e),this.finishNode(n,"ArrayExpression");case hs.braceL:return this.overrideContext(Hs.b_expr),this.parseObj(!1,e);case hs._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case hs._class:return this.parseClass(this.startNode(),!1);case hs._new:return this.parseNew();case hs.backQuote:return this.parseTemplate();case hs._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},$s.parseExprImport=function(){var e=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var t=this.parseIdent(!0);switch(this.type){case hs.parenL:return this.parseDynamicImport(e);case hs.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},$s.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(hs.parenR)){var t=this.start;this.eat(hs.comma)&&this.eat(hs.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},$s.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},$s.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},$s.parseParenExpression=function(){this.expect(hs.parenL);var e=this.parseExpression();return this.expect(hs.parenR),e},$s.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,u=this.startLoc,l=[],c=!0,p=!1,h=new Is,d=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==hs.parenR;){if(c?c=!1:this.expect(hs.comma),s&&this.afterTrailingComma(hs.parenR,!0)){p=!0;break}if(this.type===hs.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===hs.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,h,this.parseParenItem))}var m=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(hs.parenR),e&&!this.canInsertSemicolon()&&this.eat(hs.arrow))return this.checkPatternErrors(h,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=f,this.parseParenArrowList(r,i,l,t);l.length&&!p||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(h,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((n=this.startNodeAt(a,u)).expressions=l,this.finishNodeAt(n,"SequenceExpression",m,g)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var E=this.startNodeAt(r,i);return E.expression=n,this.finishNode(E,"ParenthesizedExpression")}return n},$s.parseParenItem=function(e){return e},$s.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,r)};var Xs=[];$s.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode(),t=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(hs.dot)){e.meta=t;var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc,s=this.type===hs._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),r,i,!0,!1),s&&"ImportExpression"===e.callee.type&&this.raise(r,"Cannot use new with import()"),this.eat(hs.parenL)?e.arguments=this.parseExprList(hs.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Xs,this.finishNode(e,"NewExpression")},$s.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===hs.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value,cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===hs.backQuote,this.finishNode(n,"TemplateElement")},$s.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===hs.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(hs.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(hs.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},$s.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===hs.name||this.type===hs.num||this.type===hs.string||this.type===hs.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===hs.star)&&!ds.test(this.input.slice(this.lastTokEnd,this.start))},$s.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(hs.braceR);){if(r)r=!1;else if(this.expect(hs.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(hs.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},$s.parseProperty=function(e,t){var n,r,i,s,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(hs.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===hs.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(this.type===hs.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),o.argument=this.parseMaybeAssign(!1,t),this.type===hs.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(hs.star)));var a=this.containsEsc;return this.parsePropertyName(o),!e&&!a&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(hs.star),this.parsePropertyName(o,t)):r=!1,this.parsePropertyValue(o,e,n,r,i,s,t,a),this.finishNode(o,"Property")},$s.parsePropertyValue=function(e,t,n,r,i,s,o,a){if((n||r)&&this.type===hs.colon&&this.unexpected(),this.eat(hs.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===hs.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r);else if(t||a||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===hs.comma||this.type===hs.braceR||this.type===hs.eq)this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),e.kind="init",t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===hs.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected();else{(n||r)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u="get"===e.kind?0:1;if(e.value.params.length!==u){var l=e.value.start;"get"===e.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}},$s.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(hs.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(hs.bracketR),e.key;e.computed=!1}return e.key=this.type===hs.num||this.type===hs.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},$s.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},$s.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Fs(t,r.generator)|(n?128:0)),this.expect(hs.parenL),r.params=this.parseBindingList(hs.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},$s.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|Fs(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},$s.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==hs.braceL,s=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);s&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var u=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!s&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=u}this.exitScope()},$s.isSimpleParamList=function(e){for(var t=0,n=e;t<n.length;t+=1)if("Identifier"!==n[t].type)return!1;return!0},$s.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},$s.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(hs.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===hs.comma?o=null:this.type===hs.ellipsis?(o=this.parseSpread(r),r&&this.type===hs.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r),i.push(o)}return i},$s.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===r&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==r&&"await"!==r||this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(t,n).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},$s.parseIdent=function(e,t){var n=this.startNode();return this.type===hs.name?n.name=this.value:this.type.keyword?(n.name=this.type.keyword,"class"!==n.name&&"function"!==n.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(n,"Identifier"),e||(this.checkUnreserved(n),"await"!==n.name||this.awaitIdentPos||(this.awaitIdentPos=n.start)),n},$s.parsePrivateIdent=function(){var e=this.startNode();return this.type===hs.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e),e},$s.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===hs.semi||this.canInsertSemicolon()||this.type!==hs.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(hs.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},$s.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Js=Ts.prototype;Js.raise=function(e,t){var n=Ds(this.input,e);t+=" ("+n.line+":"+n.column+")";var r=new SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},Js.raiseRecoverable=Js.raise,Js.curPosition=function(){if(this.options.locations)return new xs(this.curLine,this.pos-this.lineStart)};var Zs=Ts.prototype,Ys=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Zs.enterScope=function(e){this.scopeStack.push(new Ys(e))},Zs.exitScope=function(){this.scopeStack.pop()},Zs.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},Zs.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(e)>-1&&!(32&a.flags&&a.lexical[0]===e)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(e)>-1){r=!0;break}if(a.var.push(e),this.inModule&&1&a.flags&&delete this.undefinedExports[e],259&a.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},Zs.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},Zs.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Zs.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},Zs.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var Qs=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new ws(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},eo=Ts.prototype;function to(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}eo.startNode=function(){return new Qs(this,this.start,this.startLoc)},eo.startNodeAt=function(e,t){return new Qs(this,e,t)},eo.finishNode=function(e,t){return to.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},eo.finishNodeAt=function(e,t,n,r){return to.call(this,e,t,n,r)},eo.copyNode=function(e){var t=new Qs(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var no="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ro=no+" Extended_Pictographic",io={9:no,10:ro,11:ro,12:"ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS Extended_Pictographic EBase EComp EMod EPres ExtPict"},so="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",oo="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ao=oo+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",uo={9:oo,10:ao,11:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",12:"Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi"},lo={};function co(e){var t=lo[e]={binary:Ss(io[e]+" "+so),nonBinary:{General_Category:Ss(so),Script:Ss(uo[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}co(9),co(10),co(11),co(12);var po=Ts.prototype,ho=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":""),this.unicodeProperties=lo[e.options.ecmaVersion>=12?12:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function fo(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function mo(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function go(e){return e>=65&&e<=90||e>=97&&e<=122}function Eo(e){return go(e)||95===e}function yo(e){return Eo(e)||vo(e)}function vo(e){return e>=48&&e<=57}function Ao(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Co(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function bo(e){return e>=48&&e<=55}ho.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchN=r&&this.parser.options.ecmaVersion>=9},ho.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},ho.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-56613888:i},ho.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!t&&!this.switchU||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},ho.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},ho.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},ho.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},ho.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},po.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=0;r<n.length;r++){var i=n.charAt(r);-1===t.indexOf(i)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(i,r+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},po.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},po.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t<n.length;t+=1){var r=n[t];-1===e.groupNames.indexOf(r)&&e.raise("Invalid named capture referenced")}},po.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},po.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},po.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):!!(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},po.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},po.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},po.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},po.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},po.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},po.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},po.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},po.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},po.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},po.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},po.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!mo(t)&&(e.lastIntValue=t,e.advance(),!0)},po.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!mo(n);)e.advance();return e.pos!==t},po.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},po.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e))return-1!==e.groupNames.indexOf(e.lastStringValue)&&e.raise("Duplicate capture group name"),void e.groupNames.push(e.lastStringValue);e.raise("Invalid group")}},po.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},po.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=fo(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=fo(e.lastIntValue);return!0}return!1},po.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return is(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},po.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return ss(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},po.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},po.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},po.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},po.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},po.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},po.regexp_eatZero=function(e){return 48===e.current()&&!vo(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},po.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},po.regexp_eatControlLetter=function(e){var t=e.current();return!!go(t)&&(e.lastIntValue=t%32,e.advance(),!0)},po.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(i&&s>=55296&&s<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(a>=56320&&a<=57343)return e.lastIntValue=1024*(s-55296)+(a-56320)+65536,!0}e.pos=o,e.lastIntValue=s}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(n=e.lastIntValue)>=0&&n<=1114111)return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},po.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},po.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1},po.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),!0;if(e.switchU&&this.options.ecmaVersion>=9&&(80===t||112===t)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(e)&&e.eat(125))return!0;e.raise("Invalid property name")}return!1},po.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i),!0}return!1},po.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Cs(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},po.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},po.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Eo(t=e.current());)e.lastStringValue+=fo(t),e.advance();return""!==e.lastStringValue},po.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";yo(t=e.current());)e.lastStringValue+=fo(t),e.advance();return""!==e.lastStringValue},po.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},po.regexp_eatCharacterClass=function(e){if(e.eat(91)){if(e.eat(94),this.regexp_classRanges(e),e.eat(93))return!0;e.raise("Unterminated character class")}return!1},po.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},po.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||bo(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},po.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},po.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!vo(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},po.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},po.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;vo(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},po.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ao(n=e.current());)e.lastIntValue=16*e.lastIntValue+Co(n),e.advance();return e.pos!==t},po.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},po.regexp_eatOctalDigit=function(e){var t=e.current();return bo(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},po.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!Ao(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+Co(i),e.advance()}return!0};var So=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new ws(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},xo=Ts.prototype;function wo(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}function Do(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}xo.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new So(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},xo.getToken=function(){return this.next(),new So(this)},"undefined"!=typeof Symbol&&(xo[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===hs.eof,value:t}}}}),xo.nextToken=function(){var e=this.curContext();return e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(hs.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},xo.readToken=function(e){return is(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},xo.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},xo.skipBlockComment=function(){var e,t=this.options.onComment&&this.curPosition(),n=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(-1===r&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations)for(fs.lastIndex=n;(e=fs.exec(this.input))&&e.index<this.pos;)++this.curLine,this.lineStart=e.index+e[0].length;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,r),n,this.pos,t,this.curPosition())},xo.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ms(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},xo.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(e>8&&e<14||e>=5760&&gs.test(String.fromCharCode(e))))break e;++this.pos}}},xo.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},xo.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(hs.ellipsis)):(++this.pos,this.finishToken(hs.dot))},xo.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(hs.assign,2):this.finishOp(hs.slash,1)},xo.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?hs.star:hs.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=hs.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(hs.assign,n+1):this.finishOp(r,n)},xo.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(hs.assign,3):this.finishOp(124===e?hs.logicalOR:hs.logicalAND,2):61===t?this.finishOp(hs.assign,2):this.finishOp(124===e?hs.bitwiseOR:hs.bitwiseAND,1)},xo.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(hs.assign,2):this.finishOp(hs.bitwiseXOR,1)},xo.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!ds.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(hs.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(hs.assign,2):this.finishOp(hs.plusMin,1)},xo.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(hs.assign,n+1):this.finishOp(hs.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(hs.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},xo.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(hs.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(hs.arrow)):this.finishOp(61===e?hs.eq:hs.prefix,1)},xo.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(hs.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(hs.assign,3):this.finishOp(hs.coalesce,2)}return this.finishOp(hs.question,1)},xo.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,is(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(hs.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Do(e)+"'")},xo.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(hs.parenL);case 41:return++this.pos,this.finishToken(hs.parenR);case 59:return++this.pos,this.finishToken(hs.semi);case 44:return++this.pos,this.finishToken(hs.comma);case 91:return++this.pos,this.finishToken(hs.bracketL);case 93:return++this.pos,this.finishToken(hs.bracketR);case 123:return++this.pos,this.finishToken(hs.braceL);case 125:return++this.pos,this.finishToken(hs.braceR);case 58:return++this.pos,this.finishToken(hs.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(hs.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(hs.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Do(e)+"'")},xo.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},xo.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(ds.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(s);var a=this.regexpState||(this.regexpState=new ho(this));a.reset(n,i,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var u=null;try{u=new RegExp(i,o)}catch(e){}return this.finishToken(hs.regexp,{pattern:i,flags:o,value:u})},xo.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,o=0,a=0,u=0,l=null==t?1/0:t;u<l;++u,++this.pos){var c=this.input.charCodeAt(this.pos),p=void 0;if(r&&95===c)i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===u&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=c;else{if((p=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;a=c,o=o*e+p}}return r&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t?null:o},xo.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=wo(this.input.slice(t,this.pos)),++this.pos):is(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(hs.num,n)},xo.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=wo(this.input.slice(t,this.pos));return++this.pos,is(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(hs.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),is(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var s,o=(s=this.input.slice(t,this.pos),n?parseInt(s,8):parseFloat(s.replace(/_/g,"")));return this.finishToken(hs.num,o)},xo.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},xo.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ms(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(hs.string,t)};var _o={};xo.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==_o)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},xo.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw _o;this.raise(e,t)},xo.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==hs.template&&this.type!==hs.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(hs.template,e)):36===n?(this.pos+=2,this.finishToken(hs.dollarBraceL)):(++this.pos,this.finishToken(hs.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ms(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},xo.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(hs.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},xo.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Do(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;return this.invalidStringToken(n,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return ms(t)?"":String.fromCharCode(t)}},xo.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},xo.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(ss(i,r))this.pos+=i<=65535?1:2;else{if(92!==i)break;this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?is:ss)(o,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=Do(o),n=this.pos}t=!1}return e+this.input.slice(n,this.pos)},xo.readWord=function(){var e=this.readWord1(),t=hs.name;return this.keywords.test(e)&&(t=cs[e]),this.finishToken(t,e)},Ts.acorn={Parser:Ts,version:"8.5.0",defaultOptions:_s,Position:xs,SourceLocation:ws,getLineInfo:Ds,Node:Qs,TokenType:os,tokTypes:hs,keywordTypes:cs,TokContext:Ws,tokContexts:Hs,isIdentifierChar:ss,isIdentifierStart:is,Token:So,isNewLine:ms,lineBreak:ds,lineBreakG:fs,nonASCIIwhitespace:gs};var Oo="✖";function Fo(e){return e.name===Oo}function To(){}var Bo=function(e,t){if(void 0===t&&(t={}),this.toks=this.constructor.BaseParser.tokenizer(e,t),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:hs.eof,start:0,end:0},this.tok.validateRegExpFlags=To,this.tok.validateRegExpPattern=To,this.options.locations){var n=this.toks.curPosition();this.tok.loc=new ws(this.toks,n,n)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};Bo.prototype.startNode=function(){return new Qs(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},Bo.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},Bo.prototype.startNodeAt=function(e){return this.options.locations?new Qs(this.toks,e[0],e[1]):new Qs(this.toks,e)},Bo.prototype.finishNode=function(e,t){return e.type=t,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e},Bo.prototype.dummyNode=function(e){var t=this.startNode();return t.type=e,t.end=t.start,this.options.locations&&(t.loc.end=t.loc.start),this.options.ranges&&(t.range[1]=t.start),this.last={type:hs.name,start:t.start,end:t.start,loc:t.loc},t},Bo.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=Oo,e},Bo.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=Oo,e},Bo.prototype.eat=function(e){return this.tok.type===e&&(this.next(),!0)},Bo.prototype.isContextual=function(e){return this.tok.type===hs.name&&this.tok.value===e},Bo.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(hs.name)},Bo.prototype.canInsertSemicolon=function(){return this.tok.type===hs.eof||this.tok.type===hs.braceR||ds.test(this.input.slice(this.last.end,this.tok.start))},Bo.prototype.semicolon=function(){return this.eat(hs.semi)},Bo.prototype.expect=function(e){if(this.eat(e))return!0;for(var t=1;t<=2;t++)if(this.lookAhead(t).type===e){for(var n=0;n<t;n++)this.next();return!0}},Bo.prototype.pushCx=function(){this.context.push(this.curIndent)},Bo.prototype.popCx=function(){this.curIndent=this.context.pop()},Bo.prototype.lineEnd=function(e){for(;e<this.input.length&&!ms(this.input.charCodeAt(e));)++e;return e},Bo.prototype.indentationAfter=function(e){for(var t=0;;++e){var n=this.input.charCodeAt(e);if(32===n)++t;else{if(9!==n)return t;t+=this.options.tabSize}}},Bo.prototype.closes=function(e,t,n,r){return this.tok.type===e||this.tok.type===hs.eof||n!==this.curLineStart&&this.curIndent<t&&this.tokenStartsLine()&&(!r||this.nextLineStart>=this.input.length||this.indentationAfter(this.nextLineStart)<t)},Bo.prototype.tokenStartsLine=function(){for(var e=this.tok.start-1;e>=this.curLineStart;--e){var t=this.input.charCodeAt(e);if(9!==t&&32!==t)return!1}return!0},Bo.prototype.extend=function(e,t){this[e]=t(this[e])},Bo.prototype.parse=function(){return this.next(),this.parseTopLevel()},Bo.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},Bo.parse=function(e,t){return new this(e,t).parse()},Bo.BaseParser=Ts;var ko=Bo.prototype;function Ro(e){return e<14&&e>8||32===e||160===e||ms(e)}ko.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},ko.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===hs.dot&&"."===this.input.substr(this.toks.end,1)&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=hs.ellipsis),new So(this.toks)}catch(s){if(!(s instanceof SyntaxError))throw s;var e=s.message,t=s.raisedAt,n=!0;if(/unterminated/i.test(e))if(t=this.lineEnd(s.pos+1),/string/.test(e))n={start:s.pos,end:t,type:hs.string,value:this.input.slice(s.pos+1,t)};else if(/regular expr/i.test(e)){var r=this.input.slice(s.pos,t);try{r=new RegExp(r)}catch(e){}n={start:s.pos,end:t,type:hs.regexp,value:r}}else n=!!/template/.test(e)&&{start:s.pos,end:t,type:hs.template,value:this.input.slice(s.pos,t)};else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix/i.test(e))for(;t<this.input.length&&!Ro(this.input.charCodeAt(t));)++t;else if(/character escape|expected hexadecimal/i.test(e))for(;t<this.input.length;){var i=this.input.charCodeAt(t++);if(34===i||39===i||ms(i))break}else if(/unexpected character/i.test(e))t++,n=!1;else{if(!/regular expression/i.test(e))throw s;n=!0}if(this.resetTo(t),!0===n&&(n={start:t,end:t,type:hs.name,value:Oo}),n)return this.options.locations&&(n.loc=new ws(this.toks,Ds(this.input,n.start),Ds(this.input,n.end))),n}},ko.resetTo=function(e){this.toks.pos=e;var t,n=this.input.charAt(e-1);if(this.toks.exprAllowed=!n||/[[{(,;:?/*=+\-~!|&%^<>]/.test(n)||/[enwfd]/.test(n)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations)for(this.toks.curLine=1,this.toks.lineStart=fs.lastIndex=0;(t=fs.exec(this.input))&&t.index<e;)++this.toks.curLine,this.toks.lineStart=t.index+t[0].length},ko.lookAhead=function(e){for(;e>this.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var Io=Bo.prototype;Io.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,Ds(this.input,0)]:0);for(e.body=[];this.tok.type!==hs.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType=this.options.sourceType,this.finishNode(e,"Program")},Io.parseStatement=function(){var e,t=this.tok.type,n=this.startNode();switch(this.toks.isLet()&&(t=hs._var,e="let"),t){case hs._break:case hs._continue:this.next();var r=t===hs._break;return this.semicolon()||this.canInsertSemicolon()?n.label=null:(n.label=this.tok.type===hs.name?this.parseIdent():null,this.semicolon()),this.finishNode(n,r?"BreakStatement":"ContinueStatement");case hs._debugger:return this.next(),this.semicolon(),this.finishNode(n,"DebuggerStatement");case hs._do:return this.next(),n.body=this.parseStatement(),n.test=this.eat(hs._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(n,"DoWhileStatement");case hs._for:this.next();var i=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(hs.parenL),this.tok.type===hs.semi)return this.parseFor(n,null);var s=this.toks.isLet();if(s||this.tok.type===hs._var||this.tok.type===hs._const){var o=this.parseVar(this.startNode(),!0,s?"let":this.tok.value);return 1!==o.declarations.length||this.tok.type!==hs._in&&!this.isContextual("of")?this.parseFor(n,o):(this.options.ecmaVersion>=9&&this.tok.type!==hs._in&&(n.await=i),this.parseForIn(n,o))}var a=this.parseExpression(!0);return this.tok.type===hs._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==hs._in&&(n.await=i),this.parseForIn(n,this.toAssignable(a))):this.parseFor(n,a);case hs._function:return this.next(),this.parseFunction(n,!0);case hs._if:return this.next(),n.test=this.parseParenExpression(),n.consequent=this.parseStatement(),n.alternate=this.eat(hs._else)?this.parseStatement():null,this.finishNode(n,"IfStatement");case hs._return:return this.next(),this.eat(hs.semi)||this.canInsertSemicolon()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,"ReturnStatement");case hs._switch:var u,l=this.curIndent,c=this.curLineStart;for(this.next(),n.discriminant=this.parseParenExpression(),n.cases=[],this.pushCx(),this.expect(hs.braceL);!this.closes(hs.braceR,l,c,!0);)if(this.tok.type===hs._case||this.tok.type===hs._default){var p=this.tok.type===hs._case;u&&this.finishNode(u,"SwitchCase"),n.cases.push(u=this.startNode()),u.consequent=[],this.next(),u.test=p?this.parseExpression():null,this.expect(hs.colon)}else u||(n.cases.push(u=this.startNode()),u.consequent=[],u.test=null),u.consequent.push(this.parseStatement());return u&&this.finishNode(u,"SwitchCase"),this.popCx(),this.eat(hs.braceR),this.finishNode(n,"SwitchStatement");case hs._throw:return this.next(),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,"ThrowStatement");case hs._try:if(this.next(),n.block=this.parseBlock(),n.handler=null,this.tok.type===hs._catch){var h=this.startNode();this.next(),this.eat(hs.parenL)?(h.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(hs.parenR)):h.param=null,h.body=this.parseBlock(),n.handler=this.finishNode(h,"CatchClause")}return n.finalizer=this.eat(hs._finally)?this.parseBlock():null,n.handler||n.finalizer?this.finishNode(n,"TryStatement"):n.block;case hs._var:case hs._const:return this.parseVar(n,!1,e||this.tok.value);case hs._while:return this.next(),n.test=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WhileStatement");case hs._with:return this.next(),n.object=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WithStatement");case hs.braceL:return this.parseBlock();case hs.semi:return this.next(),this.finishNode(n,"EmptyStatement");case hs._class:return this.parseClass(!0);case hs._import:if(this.options.ecmaVersion>10){var d=this.lookAhead(1).type;if(d===hs.parenL||d===hs.dot)return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"ExpressionStatement")}return this.parseImport();case hs._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(n,!0,!0);var f=this.parseExpression();return Fo(f)?(this.next(),this.tok.type===hs.eof?this.finishNode(n,"EmptyStatement"):this.parseStatement()):t===hs.name&&"Identifier"===f.type&&this.eat(hs.colon)?(n.body=this.parseStatement(),n.label=f,this.finishNode(n,"LabeledStatement")):(n.expression=f,this.semicolon(),this.finishNode(n,"ExpressionStatement"))}},Io.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(hs.braceL);var t=this.curIndent,n=this.curLineStart;for(e.body=[];!this.closes(hs.braceR,t,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(hs.braceR),this.finishNode(e,"BlockStatement")},Io.parseFor=function(e,t){return e.init=t,e.test=e.update=null,this.eat(hs.semi)&&this.tok.type!==hs.semi&&(e.test=this.parseExpression()),this.eat(hs.semi)&&this.tok.type!==hs.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(hs.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")},Io.parseForIn=function(e,t){var n=this.tok.type===hs._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.popCx(),this.expect(hs.parenR),e.body=this.parseStatement(),this.finishNode(e,n)},Io.parseVar=function(e,t,n){e.kind=n,this.next(),e.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(hs.eq)?this.parseMaybeAssign(t):null,e.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(hs.comma));if(!e.declarations.length){var i=this.startNode();i.id=this.dummyIdent(),e.declarations.push(this.finishNode(i,"VariableDeclarator"))}return t||this.semicolon(),this.finishNode(e,"VariableDeclaration")},Io.parseClass=function(e){var t=this.startNode();this.next(),this.tok.type===hs.name?t.id=this.parseIdent():t.id=!0===e?this.dummyIdent():null,t.superClass=this.eat(hs._extends)?this.parseExpression():null,t.body=this.startNode(),t.body.body=[],this.pushCx();var n=this.curIndent+1,r=this.curLineStart;for(this.eat(hs.braceL),this.curIndent+1<n&&(n=this.curIndent,r=this.curLineStart);!this.closes(hs.braceR,n,r);){var i=this.parseClassElement();i&&t.body.body.push(i)}return this.popCx(),this.eat(hs.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.semicolon(),this.finishNode(t.body,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},Io.parseClassElement=function(){if(this.eat(hs.semi))return null;var e=this.options,t=e.ecmaVersion,n=e.locations,r=this.curIndent,i=this.curLineStart,s=this.startNode(),o="",a=!1,u=!1,l="method";if(s.static=!1,this.eatContextual("static")&&(this.isClassElementNameStart()||this.toks.type===hs.star?s.static=!0:o="static"),!o&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.toks.type!==hs.star||this.canInsertSemicolon()?o="async":u=!0),!o){a=this.eat(hs.star);var c=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=c:o=c)}if(o)s.computed=!1,s.key=this.startNodeAt(n?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),s.key.name=o,this.finishNode(s.key,"Identifier");else if(this.parseClassElementName(s),Fo(s.key))return Fo(this.parseMaybeAssign())&&this.next(),this.eat(hs.comma),null;if(t<13||this.toks.type===hs.parenL||"method"!==l||a||u){var p=!s.computed&&!s.static&&!a&&!u&&"method"===l&&("Identifier"===s.key.type&&"constructor"===s.key.name||"Literal"===s.key.type&&"constructor"===s.key.value);s.kind=p?"constructor":l,s.value=this.parseMethod(a,u),this.finishNode(s,"MethodDefinition")}else{if(this.eat(hs.eq))if(this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine())s.value=null;else{var h=this.inAsync,d=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,s.value=this.parseMaybeAssign(),this.inAsync=h,this.inGenerator=d}else s.value=null;this.semicolon(),this.finishNode(s,"PropertyDefinition")}return s},Io.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},Io.parseClassElementName=function(e){this.toks.type===hs.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},Io.parseFunction=function(e,t,n){var r=this.inAsync,i=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(hs.star)),this.options.ecmaVersion>=8&&(e.async=!!n),this.tok.type===hs.name?e.id=this.parseIdent():!0===t&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=r,this.inGenerator=i,this.inFunction=s,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},Io.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(hs.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(hs._default)){var t;if(this.tok.type===hs._function||(t=this.toks.isAsyncFunction())){var n=this.startNode();this.next(),t&&this.next(),e.declaration=this.parseFunction(n,"nullableID",t)}else this.tok.type===hs._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")},Io.parseImport=function(){var e,t=this.startNode();return this.next(),this.tok.type===hs.string?(t.specifiers=[],t.source=this.parseExprAtom()):(this.tok.type===hs.name&&"from"!==this.tok.value&&((e=this.startNode()).local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(hs.comma)),t.specifiers=this.parseImportSpecifiers(),t.source=this.eatContextual("from")&&this.tok.type===hs.string?this.parseExprAtom():this.dummyString(),e&&t.specifiers.unshift(e)),this.semicolon(),this.finishNode(t,"ImportDeclaration")},Io.parseImportSpecifiers=function(){var e=[];if(this.tok.type===hs.star){var t=this.startNode();this.next(),t.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(t,"ImportNamespaceSpecifier"))}else{var n=this.curIndent,r=this.curLineStart,i=this.nextLineStart;for(this.pushCx(),this.eat(hs.braceL),this.curLineStart>i&&(i=this.curLineStart);!this.closes(hs.braceR,n+(this.curLineStart<=i?1:0),r);){var s=this.startNode();if(this.eat(hs.star))s.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),this.finishNode(s,"ImportNamespaceSpecifier");else{if(this.isContextual("from"))break;if(s.imported=this.parseIdent(),Fo(s.imported))break;s.local=this.eatContextual("as")?this.parseIdent():s.imported,this.finishNode(s,"ImportSpecifier")}e.push(s),this.eat(hs.comma)}this.eat(hs.braceR),this.popCx()}return e},Io.parseExportSpecifierList=function(){var e=[],t=this.curIndent,n=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(hs.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(hs.braceR,t+(this.curLineStart<=r?1:0),n)&&!this.isContextual("from");){var i=this.startNode();if(i.local=this.parseIdent(),Fo(i.local))break;i.exported=this.eatContextual("as")?this.parseIdent():i.local,this.finishNode(i,"ExportSpecifier"),e.push(i),this.eat(hs.comma)}return this.eat(hs.braceR),this.popCx(),e};var No=Bo.prototype;No.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}},No.parseExpression=function(e){var t=this.storeCurrentPos(),n=this.parseMaybeAssign(e);if(this.tok.type===hs.comma){var r=this.startNodeAt(t);for(r.expressions=[n];this.eat(hs.comma);)r.expressions.push(this.parseMaybeAssign(e));return this.finishNode(r,"SequenceExpression")}return n},No.parseParenExpression=function(){this.pushCx(),this.expect(hs.parenL);var e=this.parseExpression();return this.popCx(),this.expect(hs.parenR),e},No.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var t=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==hs.star&&!this.tok.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(hs.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}var n=this.storeCurrentPos(),r=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var i=this.startNodeAt(n);return i.operator=this.tok.value,i.left=this.tok.type===hs.eq?this.toAssignable(r):this.checkLVal(r),this.next(),i.right=this.parseMaybeAssign(e),this.finishNode(i,"AssignmentExpression")}return r},No.parseMaybeConditional=function(e){var t=this.storeCurrentPos(),n=this.parseExprOps(e);if(this.eat(hs.question)){var r=this.startNodeAt(t);return r.test=n,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(hs.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return n},No.parseExprOps=function(e){var t=this.storeCurrentPos(),n=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,n,r)},No.parseExprOp=function(e,t,n,r,i,s){if(this.curLineStart!==s&&this.curIndent<i&&this.tokenStartsLine())return e;var o=this.tok.type.binop;if(null!=o&&(!r||this.tok.type!==hs._in)&&o>n){var a=this.startNodeAt(t);if(a.left=e,a.operator=this.tok.value,this.next(),this.curLineStart!==s&&this.curIndent<i&&this.tokenStartsLine())a.right=this.dummyIdent();else{var u=this.storeCurrentPos();a.right=this.parseExprOp(this.parseMaybeUnary(!1),u,o,r,i,s)}return this.finishNode(a,/&&|\|\||\?\?/.test(a.operator)?"LogicalExpression":"BinaryExpression"),this.parseExprOp(a,t,n,r,i,s)}return e},No.parseMaybeUnary=function(e){var t,n=this.storeCurrentPos();if(this.options.ecmaVersion>=8&&this.toks.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))t=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var r=this.startNode(),i=this.tok.type===hs.incDec;i||(e=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),i&&(r.argument=this.checkLVal(r.argument)),t=this.finishNode(r,i?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===hs.ellipsis){var s=this.startNode();this.next(),s.argument=this.parseMaybeUnary(e),t=this.finishNode(s,"SpreadElement")}else for(t=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(n);o.operator=this.tok.value,o.prefix=!1,o.argument=this.checkLVal(t),this.next(),t=this.finishNode(o,"UpdateExpression")}if(!e&&this.eat(hs.starstar)){var a=this.startNodeAt(n);return a.operator="**",a.left=t,a.right=this.parseMaybeUnary(!1),this.finishNode(a,"BinaryExpression")}return t},No.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)},No.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=11,o=!1;;){if(this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine()){if(this.tok.type!==hs.dot||this.curIndent!==r)break;--r}var a="Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon(),u=s&&this.eat(hs.questionDot);if(u&&(o=!0),u&&this.tok.type!==hs.parenL&&this.tok.type!==hs.bracketL&&this.tok.type!==hs.backQuote||this.eat(hs.dot)){var l=this.startNodeAt(t);l.object=e,this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,s&&(l.optional=u),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===hs.bracketL){this.pushCx(),this.next();var c=this.startNodeAt(t);c.object=e,c.property=this.parseExpression(),c.computed=!0,s&&(c.optional=u),this.popCx(),this.expect(hs.bracketR),e=this.finishNode(c,"MemberExpression")}else if(n||this.tok.type!==hs.parenL){if(this.tok.type!==hs.backQuote)break;var p=this.startNodeAt(t);p.tag=e,p.quasi=this.parseTemplate(),e=this.finishNode(p,"TaggedTemplateExpression")}else{var h=this.parseExprList(hs.parenR);if(a&&this.eat(hs.arrow))return this.parseArrowExpression(this.startNodeAt(t),h,!0);var d=this.startNodeAt(t);d.callee=e,d.arguments=h,s&&(d.optional=u),e=this.finishNode(d,"CallExpression")}}if(o){var f=this.startNodeAt(t);f.expression=e,e=this.finishNode(f,"ChainExpression")}return e},No.parseExprAtom=function(){var e;switch(this.tok.type){case hs._this:case hs._super:var t=this.tok.type===hs._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,t);case hs.name:var n=this.storeCurrentPos(),r=this.parseIdent(),i=!1;if("async"===r.name&&!this.canInsertSemicolon()){if(this.eat(hs._function))return this.parseFunction(this.startNodeAt(n),!1,!0);this.tok.type===hs.name&&(r=this.parseIdent(),i=!0)}return this.eat(hs.arrow)?this.parseArrowExpression(this.startNodeAt(n),[r],i):r;case hs.regexp:e=this.startNode();var s=this.tok.value;return e.regex={pattern:s.pattern,flags:s.flags},e.value=s.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case hs.num:case hs.string:return(e=this.startNode()).value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===hs.num&&110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case hs._null:case hs._true:case hs._false:return(e=this.startNode()).value=this.tok.type===hs._null?null:this.tok.type===hs._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case hs.parenL:var o=this.storeCurrentPos();this.next();var a=this.parseExpression();if(this.expect(hs.parenR),this.eat(hs.arrow)){var u=a.expressions||[a];return u.length&&Fo(u[u.length-1])&&u.pop(),this.parseArrowExpression(this.startNodeAt(o),u)}if(this.options.preserveParens){var l=this.startNodeAt(o);l.expression=a,a=this.finishNode(l,"ParenthesizedExpression")}return a;case hs.bracketL:return(e=this.startNode()).elements=this.parseExprList(hs.bracketR,!0),this.finishNode(e,"ArrayExpression");case hs.braceL:return this.parseObj();case hs._class:return this.parseClass(!1);case hs._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case hs._new:return this.parseNew();case hs.backQuote:return this.parseTemplate();case hs._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},No.parseExprImport=function(){var e=this.startNode(),t=this.parseIdent(!0);switch(this.tok.type){case hs.parenL:return this.parseDynamicImport(e);case hs.dot:return e.meta=t,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}},No.parseDynamicImport=function(e){return e.source=this.parseExprList(hs.parenR)[0]||this.dummyString(),this.finishNode(e,"ImportExpression")},No.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")},No.parseNew=function(){var e=this.startNode(),t=this.curIndent,n=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(hs.dot))return e.meta=r,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var i=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),i,!0,t,n),this.tok.type===hs.parenL?e.arguments=this.parseExprList(hs.parenR):e.arguments=[],this.finishNode(e,"NewExpression")},No.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===hs.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,"\n"),cooked:this.tok.value},this.next(),e.tail=this.tok.type===hs.backQuote,this.finishNode(e,"TemplateElement")},No.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(hs.braceR)?t=this.parseTemplateElement():((t=this.startNode()).value={cooked:"",raw:""},t.tail=!0,this.finishNode(t,"TemplateElement")),e.quasis.push(t);return this.expect(hs.backQuote),this.finishNode(e,"TemplateLiteral")},No.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var t=this.curIndent+1,n=this.curLineStart;for(this.eat(hs.braceL),this.curIndent+1<t&&(t=this.curIndent,n=this.curLineStart);!this.closes(hs.braceR,t,n);){var r=this.startNode(),i=void 0,s=void 0,o=void 0;if(this.options.ecmaVersion>=9&&this.eat(hs.ellipsis))r.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(r,"SpreadElement")),this.eat(hs.comma);else if(this.options.ecmaVersion>=6&&(o=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,i=this.eat(hs.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(hs.star),this.parsePropertyName(r)):s=!1,Fo(r.key))Fo(this.parseMaybeAssign())&&this.next(),this.eat(hs.comma);else{if(this.eat(hs.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===hs.parenL||this.tok.type===hs.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(i,s);else if(this.options.ecmaVersion>=5&&"Identifier"===r.key.type&&!r.computed&&("get"===r.key.name||"set"===r.key.name)&&this.tok.type!==hs.comma&&this.tok.type!==hs.braceR&&this.tok.type!==hs.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(hs.eq)){var a=this.startNodeAt(o);a.operator="=",a.left=r.key,a.right=this.parseMaybeAssign(),r.value=this.finishNode(a,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}e.properties.push(this.finishNode(r,"Property")),this.eat(hs.comma)}}return this.popCx(),this.eat(hs.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")},No.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(hs.bracketL))return e.computed=!0,e.key=this.parseExpression(),void this.expect(hs.bracketR);e.computed=!1}var t=this.tok.type===hs.num||this.tok.type===hs.string?this.parseExprAtom():this.parseIdent();e.key=t||this.dummyIdent()},No.parsePropertyAccessor=function(){return this.tok.type===hs.name||this.tok.type.keyword?this.parseIdent():this.tok.type===hs.privateId?this.parsePrivateIdent():void 0},No.parseIdent=function(){var e=this.tok.type===hs.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();var t=this.startNode();return this.next(),t.name=e,this.finishNode(t,"Identifier")},No.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")},No.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},No.toAssignable=function(e,t){if(!e||"Identifier"===e.type||"MemberExpression"===e.type&&!t);else if("ParenthesizedExpression"===e.type)this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if("ObjectExpression"===e.type){e.type="ObjectPattern";for(var n=0,r=e.properties;n<r.length;n+=1){var i=r[n];this.toAssignable(i,t)}}else if("ArrayExpression"===e.type)e.type="ArrayPattern",this.toAssignableList(e.elements,t);else if("Property"===e.type)this.toAssignable(e.value,t);else if("SpreadElement"===e.type)e.type="RestElement",this.toAssignable(e.argument,t);else{if("AssignmentExpression"!==e.type)return this.dummyIdent();e.type="AssignmentPattern",delete e.operator}}return e},No.toAssignableList=function(e,t){for(var n=0,r=e;n<r.length;n+=1){var i=r[n];this.toAssignable(i,t)}return e},No.parseFunctionParams=function(e){return e=this.parseExprList(hs.parenR),this.toAssignableList(e,!0)},No.parseMethod=function(e,t){var n=this.startNode(),r=this.inAsync,i=this.inGenerator,s=this.inFunction;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=!!e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inAsync=n.async,this.inGenerator=n.generator,this.inFunction=!0,n.params=this.parseFunctionParams(),n.body=this.parseBlock(),this.toks.adaptDirectivePrologue(n.body.body),this.inAsync=r,this.inGenerator=i,this.inFunction=s,this.finishNode(n,"FunctionExpression")},No.parseArrowExpression=function(e,t,n){var r=this.inAsync,i=this.inGenerator,s=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(t,!0),e.expression=this.tok.type!==hs.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=r,this.inGenerator=i,this.inFunction=s,this.finishNode(e,"ArrowFunctionExpression")},No.parseExprList=function(e,t){this.pushCx();var n=this.curIndent,r=this.curLineStart,i=[];for(this.next();!this.closes(e,n+1,r);)if(this.eat(hs.comma))i.push(t?null:this.dummyIdent());else{var s=this.parseMaybeAssign();if(Fo(s)){if(this.closes(e,n,r))break;this.next()}else i.push(s);this.eat(hs.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),i},No.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},_s.tabSize=4;const{stringify:Po}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const Mo={"||":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},Lo=17,jo={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:Lo,ClassExpression:Lo,FunctionExpression:Lo,ObjectExpression:Lo,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function Vo(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i<r;i++){const r=t[i];e.write(", "),n[r.type](r,e)}}e.write(")")}function Uo(e,t,n,r){const i=e.expressionsPrecedence[t.type];if(i===Lo)return!0;const s=e.expressionsPrecedence[n.type];return i!==s?!r&&15===i&&14===s&&"**"===n.operator||i<s:(13===i||14===i)&&("**"===t.operator&&"**"===n.operator?!r:r?Mo[t.operator]<=Mo[n.operator]:Mo[t.operator]<Mo[n.operator])}function zo(e,t,n,r){const{generator:i}=e;Uo(e,t,n,r)?(e.write("("),i[t.type](t,e),e.write(")")):i[t.type](t,e)}function qo(e,t,n,r){const i=t.split("\n"),s=i.length-1;if(e.write(i[0].trim()),s>0){e.write(r);for(let t=1;t<s;t++)e.write(n+i[t].trim()+r);e.write(n+i[s].trim())}}function Wo(e,t,n,r){const{length:i}=t;for(let s=0;s<i;s++){const i=t[s];e.write(n),"L"===i.type[0]?e.write("// "+i.value.trim()+"\n",i):(e.write("/*"),qo(e,i.value,n,r),e.write("*/"+r))}}function Ho(e,t){const{generator:n}=e,{declarations:r}=t;e.write(t.kind+" ");const{length:i}=r;if(i>0){n.VariableDeclarator(r[0],e);for(let t=1;t<i;t++)e.write(", "),n.VariableDeclarator(r[t],e)}}let Go,$o,Ko,Xo,Jo,Zo;const Yo={Program(e,t){const n=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:i}=t;i&&null!=e.comments&&Wo(t,e.comments,n,r);const s=e.body,{length:o}=s;for(let e=0;e<o;e++){const o=s[e];i&&null!=o.comments&&Wo(t,o.comments,n,r),t.write(n),this[o.type](o,t),t.write(r)}i&&null!=e.trailingComments&&Wo(t,e.trailingComments,n,r)},BlockStatement:Zo=function(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,s=n+t.indent;t.write("{");const o=e.body;if(null!=o&&o.length>0){t.write(r),i&&null!=e.comments&&Wo(t,e.comments,s,r);const{length:a}=o;for(let e=0;e<a;e++){const n=o[e];i&&null!=n.comments&&Wo(t,n.comments,s,r),t.write(s),this[n.type](n,t),t.write(r)}t.write(n)}else i&&null!=e.comments&&(t.write(r),Wo(t,e.comments,s,r),t.write(n));i&&null!=e.trailingComments&&Wo(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:Zo,EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){const n=t.expressionsPrecedence[e.expression.type];n===Lo||3===n&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t;t.indentLevel++;const s=n+t.indent,o=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);const{cases:a}=e,{length:u}=a;for(let e=0;e<u;e++){const n=a[e];i&&null!=n.comments&&Wo(t,n.comments,s,r),n.test?(t.write(s+"case "),this[n.test.type](n.test,t),t.write(":"+r)):t.write(s+"default:"+r);const{consequent:u}=n,{length:l}=u;for(let e=0;e<l;e++){const n=u[e];i&&null!=n.comments&&Wo(t,n.comments,o,r),t.write(o),this[n.type](n,t),t.write(r)}}t.indentLevel-=2,t.write(n+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){const{handler:n}=e;null==n.param?t.write(" catch "):(t.write(" catch ("),this[n.param.type](n.param,t),t.write(") ")),this[n.body.type](n.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){const{init:n}=e;"V"===n.type[0]?Ho(t,n):this[n.type](n,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:Go=function(e,t){t.write(`for ${e.await?"await ":""}(`);const{left:n}=e;"V"===n.type[0]?Ho(t,n):this[n.type](n,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:Go,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:$o=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),Vo(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:$o,VariableDeclaration(e,t){Ho(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");const{superClass:n}=e,{type:r}=n,i=t.expressionsPrecedence[r];"C"===r[0]&&"l"===r[1]&&"E"===r[5]||!(i===Lo||i<t.expressionsPrecedence.ClassExpression)?this[n.type](n,t):(t.write("("),this[e.superClass.type](n,t),t.write(")")),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");const{specifiers:n}=e,{length:r}=n;let i=0;if(r>0){for(;i<r;){i>0&&t.write(", ");const e=n[i],r=e.type[6];if("D"===r)t.write(e.local.name,e),i++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),i++}}if(i<r){for(t.write("{");;){const e=n[i],{name:s}=e.imported;if(t.write(s,e),s!==e.local.name&&t.write(" as "+e.local.name),!(++i<r))break;t.write(", ")}t.write("}")}t.write(" from ")}this.Literal(e.source,t),t.write(";")},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");const{specifiers:n}=e,{length:r}=n;if(r>0)for(let e=0;;){const i=n[e],{name:s}=i.local;if(t.write(s,i),s!==i.exported.name&&t.write(" as "+i.exported.name),!(++e<r))break;t.write(", ")}t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),t.write(";")}},ExportAllDeclaration(e,t){null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");const n=e.kind[0];"g"!==n&&"s"!==n||t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),Vo(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);const{params:n}=e;null!=n&&(1===n.length&&"I"===n[0].type[0]?t.write(n[0].name,n[0]):Vo(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:Ko=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:Ko,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),zo(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e<i;e++){const i=r[e],s=n[e];t.write(s.value.raw,s),t.write("${"),this[i.type](i,t),t.write("}")}const s=n[n.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){this[e.tag.type](e.tag,t),this[e.quasi.type](e.quasi,t)},ArrayExpression:Jo=function(e,t){if(t.write("["),e.elements.length>0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e<r)){null==i&&t.write(", ");break}t.write(", ")}}t.write("]")},ArrayPattern:Jo,ObjectExpression(e,t){const n=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:i}=t,s=n+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),i&&null!=e.comments&&Wo(t,e.comments,s,r);const o=","+r,{properties:a}=e,{length:u}=a;for(let e=0;;){const n=a[e];if(i&&null!=n.comments&&Wo(t,n.comments,s,r),t.write(s),this[n.type](n,t),!(++e<u))break;t.write(o)}t.write(r),i&&null!=e.trailingComments&&Wo(t,e.trailingComments,s,r),t.write(n+"}")}else i?null!=e.comments?(t.write(r),Wo(t,e.comments,s,r),null!=e.trailingComments&&Wo(t,e.trailingComments,s,r),t.write(n+"}")):null!=e.trailingComments?(t.write(r),Wo(t,e.trailingComments,s,r),t.write(n+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e<r;)t.write(", ")}t.write("}")},SequenceExpression(e,t){Vo(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){const{operator:n,argument:r,argument:{type:i}}=e;t.write(n);const s=Uo(t,r,e);s||!(n.length>1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),s?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:Xo=function(e,t){const n="in"===e.operator;n&&t.write("("),zo(t,e.left,e,!1),t.write(" "+e.operator+" "),zo(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:Xo,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===Lo||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===Lo||n<t.expressionsPrecedence.CallExpression||function(e){let t=e;for(;null!=t;){const{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),Vo(t,e.arguments)},CallExpression(e,t){const n=t.expressionsPrecedence[e.callee.type];n===Lo||n<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),Vo(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){const n=t.expressionsPrecedence[e.object.type];n===Lo||n<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(Po(e.value),e)},RegExpLiteral(e,t){const{regex:n}=e;t.write(`/${n.pattern}/${n.flags}`,e)}},Qo={};class ea{constructor(e){const t=null==e?Qo:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:Yo,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:jo,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){const{type:n}=t;if("L"===n[0]&&"n"===n[2])return this.column=0,void this.line++;if(null!=t.loc){const{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===n[0]&&"E"===n[8]||"L"===n[0]&&"i"===n[1]&&"string"==typeof t.value){const{length:t}=e;let{column:n,line:r}=this;for(let i=0;i<t;i++)"\n"===e[i]?(n=0,r++):n++;return this.column=n,void(this.line=r)}}const{length:n}=e,{lineEnd:r}=this;n>0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}function ta(e,t){const n=new ea(t);return n.generator[e.type](e,n),n.output}const na=n(1227)("mongodb-aggregations:modules:import-pipeline"),ra="aggregations/import-pipeline",ia=`${ra}/NEW_PIPELINE_FROM_TEXT`,sa=`${ra}/CLOSE_IMPORT`,oa=`${ra}/CHANGE_TEXT`,aa=`${ra}/CREATE_NEW`,ua=`${ra}/CONFIRM_NEW`,la={isOpen:!1,text:"",isConfirmationNeeded:!1,syntaxError:null},ca={[ia]:e=>({...e,isOpen:!0,text:""}),[sa]:e=>({...e,isOpen:!1,isConfirmationNeeded:!1,syntaxError:null}),[oa]:(e,t)=>({...e,text:t.text}),[aa]:e=>({...e,isOpen:!1,isConfirmationNeeded:!0})},pa=()=>({type:ia}),ha=e=>{try{return function(e){const t=function(e){if(!e.body||1!==e.body.length)return;const t=e.body[0];if("ExpressionStatement"!==t.type)return;const{type:n,elements:r}=t.expression||{};return"ArrayExpression"!==n||r.find((e=>!function(e){return"ObjectExpression"===e.type&&e.properties&&1===e.properties.length}(e)))?void 0:r.map((e=>function(e){const{key:t,value:n}=e.properties[0];return{operator:t.name||t.value,source:ta(n,{comments:!0,indent:" "})}}(e)))}(function(e){try{const t=function(e,t){return Bo.parse(e,{ecmaVersion:6})}(e);return t}catch(e){const t=new Error(`Unable to parse the pipeline source: ${e.message}`);throw t.stack=e.stack,t}}(e));if(!t)throw new Error("Unable to extract pipeline stages: the provided input is not an array of objects.");return t}(e).map((e=>da(e.operator,e.source,null)))}catch(e){return na(e),[da(null,"",e.message)]}},da=(e,t,n)=>({...Mn(),stageOperator:e,stage:t,isValid:!n,syntaxError:n});var fa=n(6160),ma=n.n(fa);const ga="aggregations/data-service/DATA_SERVICE_CONNECTED",Ea={error:null,dataService:null};function ya(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ea,t=arguments.length>1?arguments[1]:void 0;return t.type===ga?{error:t.error,dataService:t.dataService}:e}const va=(e,t)=>({type:ga,error:e,dataService:t}),Aa="aggregations/fields/FIELDS_CHANGED",Ca=[],ba=null,Sa="aggregations/source-name/SOURCE_NAME_CHANGED",xa=null,wa=n(1227)("mongodb-aggregations:modules:input-document"),Da="aggregations/input-documents",_a=`${Da}/TOGGLE_INPUT_COLLAPSED`,Oa=`${Da}/UPDATE_INPUT_DOCUMENTS`,Fa=`${Da}/LOADING_INPUT_DOCUMENTS`,Ta={count:0,documents:[],error:null,isExpanded:!0,isLoading:!1},Ba=(e,t,n)=>({type:Oa,count:e,documents:t,error:n}),ka=()=>(e,t)=>{const n=t(),r=n.dataService.dataService,i=n.namespace,s={maxTimeMS:n.settings.maxTimeMS},o=[{$limit:n.settings.sampleSize}];r&&r.isConnected()?(e({type:Fa}),r.estimatedCount(i,s,((t,n)=>{r.aggregate(i,o,s,((r,i)=>{if(r)return e(Ba(t?"N/A":n,[],r));i.toArray(((r,s)=>{e(Ba(t?"N/A":n,s,r)),i.close()}))}))}))):r&&!r.isConnected()&&wa("warning: trying to refresh aggregation but dataService is disconnected",r)},Ra="aggregations/namespace/NAMESPACE_CHANGED",Ia=e=>({type:Ra,namespace:e}),Na="aggregations/env/ENV_CHANGED",Pa=It.ON_PREM,Ma="aggregations/env/IS_TIME_SERIES_CHANGED",La=!1,ja="aggregations/server-version/SERVER_VERSION_CHANGED",Va="4.0.0",Ua="aggregations/name/NAME_CHANGED",za="aggregations/limit/LIMIT_CHANGED",qa="aggregations/large-limit/LARGE_LIMIT_CHANGED",Wa=it,Ha="aggregations/is-atlas-deployed/SET_IS_ATLAS_DEPLOYED",Ga=!1,$a="aggregations/is-readonly/IS_READONLY_CHANGED",Ka=!1,Xa="aggregations/comments/TOGGLE_COMMENTS",Ja=!0,Za="aggregations/sample/TOGGLE_SAMPLE",Ya=!0,Qa="agreggations/restore-pipeline",eu=`${Qa}/MODAL_TOGGLE`,tu=`${Qa}/OBJECT_ID`,nu={isModalVisible:!1,pipelineObjectID:""},ru="aggregations/is-overview-on/TOGGLE_OVERVIEW",iu=!1,su="aggregations/settings",ou=`${su}/TOGGLE_IS_EXPANDED`,au=`${su}/TOGGLE_COMMENT_MODE`,uu=`${su}/SET_SAMPLE_SIZE`,lu=`${su}/SET_MAX_TIME_MS`,cu=`${su}/SET_LIMIT`,pu=`${su}/APPLY_SETTINGS`,hu={isExpanded:!1,isCommentMode:!0,isDirty:!1,sampleSize:10,maxTimeMS:rt,limit:it},du=()=>({type:ou}),fu="aggregations/is-fullscreen-on/TOGGLE_FULLSCREEN",mu=!1,gu="aggregations/saving-pipeline/NAME_CHANGED",Eu="aggregations/saving-pipeline/APPLY",yu="aggregations/saving-pipeline/CANCEL",vu="aggregations/saving-pipeline/OPEN",Au={isOpen:!1,name:"",isSaveAs:!1},Cu=function(){let{name:e="",isSaveAs:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:vu,isSaveAs:t,name:e}},bu="aggregations/out-results-fn/OUT_RESULTS_FN_CHANGED",Su=null,xu="aggregations/is-new-pipeline-confirm/SET_IS_NEW_PIPELINE_CONFIRM",wu=!1,Du=e=>({type:xu,isNewPipelineConfirm:e});var _u;!function(e){e.SetDataLake="compass-aggregations/setDataLake"}(_u||(_u={}));const Ou=!1,Fu=e=>({type:_u.SetDataLake,dataLake:e});let Tu;!function(e){e.IndexesFetched="compass-aggregations/indexesFetched"}(Tu||(Tu={}));const Bu=[],{track:ku,debug:Ru}=We("COMPASS-AGGREGATIONS-UI"),Iu={appRegistry:Kt.INITIAL_STATE,dataService:Ea,fields:Ca,inputDocuments:Ta,namespace:"",env:Pa,isTimeSeries:La,serverVersion:Va,pipeline:Ln,savedPipeline:gi,restorePipeline:nu,name:"",collationString:Ti,isAtlasDeployed:Ga,isReadonly:Ka,isOverviewOn:iu,comments:Ja,sample:Ya,autoPreview:gn,id:"",isModified:dn,importPipeline:la,settings:hu,limit:10,largeLimit:Wa,maxTimeMS:Pi,isFullscreenOn:mu,savingPipeline:Au,projections:cn,outResultsFn:Su,editViewName:ba,sourceName:xa,isNewPipelineConfirm:wu,updateViewError:_r,aggregation:dr,workspace:Ar,countDocuments:yr,explain:Zr,isDataLake:Ou,indexes:Bu},Nu="aggregations/CLEAR_PIPELINE",Pu="aggregations/RESTORE_PIPELINE",Mu="aggregations/NEW_PIPELINE",Lu="aggregations/CLONE_PIPELINE",ju="aggregations/NEW_FROM_PASTE",Vu="aggregations/MODIFY_VIEW",Uu=j({appRegistry:Xt(),comments:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ja,t=arguments.length>1?arguments[1]:void 0;return t.type===Xa?!e:e},sample:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ya,t=arguments.length>1?arguments[1]:void 0;return t.type===Za?!e:e},autoPreview:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gn,t=arguments.length>1?arguments[1]:void 0;return t.type===mn.AutoPreviewToggled?t.value:e},dataService:ya,fields:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ca,t=arguments.length>1?arguments[1]:void 0;return t.type===Aa?t.fields:e},inputDocuments:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ta,t=arguments.length>1?arguments[1]:void 0;return t.type===_a?{...e,isExpanded:!e.isExpanded}:t.type===Fa?{...e,isLoading:!0}:t.type===Oa?{...e,count:t.count,documents:t.documents,error:t.error,isLoading:!1}:e},namespace:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===Ra?t.namespace:e},env:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pa,t=arguments.length>1?arguments[1]:void 0;return t.type===Na?t.env:e},isTimeSeries:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:La,t=arguments.length>1?arguments[1]:void 0;return t.type===Ma?t.isTimeSeries:e},serverVersion:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Va,t=arguments.length>1?arguments[1]:void 0;return t.type===ja&&t.version||e},savedPipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:gi,t=arguments.length>1?arguments[1]:void 0;const n=Ei[t.type];return n?n(e,t):e},restorePipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nu,t=arguments.length>1?arguments[1]:void 0;return t.type===eu?{...e,isModalVisible:!!t.index}:t.type===tu?{...e,pipelineObjectID:t.objectID}:e},pipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[Mn()],t=arguments.length>1?arguments[1]:void 0;const n=Un[t.type];return n?n(e,t):e},name:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===Ua?t.name:e},collationString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ti,t=arguments.length>1?arguments[1]:void 0;return t.type===Fi?Bi(t.value):e},id:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===an?(new Jt.ObjectId).toHexString():e},isModified:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dn,t=arguments.length>1?arguments[1]:void 0;return t.type===hn?t.isModified:e},isAtlasDeployed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ga,t=arguments.length>1?arguments[1]:void 0;return t.type===Ha?t.isAtlasDeployed:e},isReadonly:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ka,t=arguments.length>1?arguments[1]:void 0;return t.type===$a?t.isReadonly:e},importPipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:la,t=arguments.length>1?arguments[1]:void 0;const n=ca[t.type];return n?n(e,t):e},isOverviewOn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iu;return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu,t=arguments.length>1?arguments[1]:void 0;return t.type===ou?0==!e.isExpanded&&!0===e.isDirty?{...e,...hu}:{...e,isExpanded:!e.isExpanded}:t.type===au?{...e,isCommentMode:!e.isCommentMode,isDirty:!0}:t.type===uu?{...e,sampleSize:t.value,isDirty:!0}:t.type===lu?{...e,maxTimeMS:t.value,isDirty:!0}:t.type===cu?{...e,limit:t.value,isDirty:!0}:(t.type,e)},limit:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=arguments.length>1?arguments[1]:void 0;return t.type===za?t.limit:e},largeLimit:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wa,t=arguments.length>1?arguments[1]:void 0;return t.type===qa?t.largeLimit:e},maxTimeMS:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pi,t=arguments.length>1?arguments[1]:void 0;return t.type===Ni?t.maxTimeMS:e},isFullscreenOn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:mu,t=arguments.length>1?arguments[1]:void 0;return t.type===fu?!e:e},savingPipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Au,t=arguments.length>1?arguments[1]:void 0;return t.type===gu?{...e,name:t.name}:t.type===vu?{...e,isOpen:!0,isSaveAs:t.isSaveAs,name:t.name}:t.type===yu?{...e,name:"",isOpen:!1}:e},projections:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cn;return e},editViewName:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ba;return e},sourceName:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xa,t=arguments.length>1?arguments[1]:void 0;return t.type===Sa?t.sourceName:e},outResultsFn:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Su,t=arguments.length>1?arguments[1]:void 0;return t.type===bu?t.outResultsFn:e},isNewPipelineConfirm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wu,t=arguments.length>1?arguments[1]:void 0;return t.type===xu?t.isNewPipelineConfirm:e},updateViewError:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_r,t=arguments.length>1?arguments[1]:void 0;return t.type===Or?t.error:t.type===Fr?null:e},aggregation:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vr.WorkspaceChanged:return dr;case hr.AggregationStarted:return{...e,loading:!0,error:void 0,documents:[],abortController:t.abortController,previousPageData:{page:e.page,documents:e.documents,isLast:e.isLast}};case hr.AggregationFinished:return{...e,isLast:t.isLast,page:t.page,documents:t.documents,loading:!1,abortController:void 0,error:void 0,previousPageData:void 0};case hr.AggregationFailed:return{...e,documents:[],loading:!1,abortController:void 0,error:t.error,page:t.page,previousPageData:void 0};case hr.AggregationCancelledByUser:return{...e,loading:!1,abortController:void 0,documents:e.previousPageData?.documents||[],page:e.previousPageData?.page||1,isLast:e.previousPageData?.isLast||!1,previousPageData:void 0};case hr.LastPageReached:return{...e,isLast:!0,loading:!1,page:t.page};default:return e}},workspace:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ar,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vr.WorkspaceChanged:return t.view;case hr.AggregationStarted:return"results";default:return e}},countDocuments:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vr.WorkspaceChanged:return yr;case Er.CountStarted:return{loading:!0,abortController:t.abortController};case Er.CountFinished:return{loading:!1,abortController:void 0,count:t.count};case Er.CountFailed:return{...e,loading:!1,abortController:void 0};default:return e}},aggregationWorkspaceId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Jt.UUID).toHexString();return e},explain:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zr,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Jr.ExplainStarted:return{isModalOpen:!0,isLoading:!0,explain:void 0,error:void 0,abortController:t.abortController};case Jr.ExplainFinished:return{isModalOpen:!0,isLoading:!1,explain:t.explain,error:void 0,abortController:void 0};case Jr.ExplainFailed:return{isModalOpen:!0,isLoading:!1,explain:void 0,error:t.error,abortController:void 0};case Jr.ExplainCancelled:return Zr;default:return e}},isDataLake:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ou,t=arguments.length>1?arguments[1]:void 0;return t.type===_u.SetDataLake?t.dataLake:e},indexes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bu,t=arguments.length>1?arguments[1]:void 0;return t.type===Tu.IndexesFetched?t.indexes:e}}),zu={[Ra]:(e,t)=>{const n={...Iu,aggregationWorkspaceId:e.aggregationWorkspaceId,env:e.env,isTimeSeries:e.isTimeSeries,isReadonly:e.isReadonly,sourceName:e.sourceName,isAtlasDeployed:e.isAtlasDeployed,outResultsFn:e.outResultsFn,serverVersion:e.serverVersion,dataService:e.dataService,appRegistry:e.appRegistry};return Uu(n,t)},"aggregations/reset":e=>({...Iu,aggregationWorkspaceId:e.aggregationWorkspaceId}),[Pu]:(e,t)=>{const{id:n,name:r,comments:i,sample:s,autoPreview:o,collationString:a,pipeline:u}=t.restoreState;return{...e,id:n,name:r,comments:i,sample:s,autoPreview:o,collationString:Bi(a),pipeline:u,savedPipeline:{...e.savedPipeline,isListVisible:!1},restorePipeline:{isModalVisible:!1,pipelineObjectID:""}}},[Nu]:e=>({...e,pipeline:[],limit:10,largeLimit:Wa,maxTimeMS:Pi,isAtlasDeployed:e.isAtlasDeployed,outResultsFn:e.outResultsFn,savedPipeline:{...e.savedPipeline,isListVisible:!0}}),[Mu]:e=>({...Iu,aggregationWorkspaceId:e.aggregationWorkspaceId,appRegistry:e.appRegistry,namespace:e.namespace,env:e.env,isTimeSeries:e.isTimeSeries,isReadonly:e.isReadonly,sourceName:e.sourceName,fields:e.fields,serverVersion:e.serverVersion,dataService:e.dataService,isAtlasDeployed:e.isAtlasDeployed,outResultsFn:e.outResultsFn,inputDocuments:e.inputDocuments}),[Lu]:e=>({...e,id:(new Jt.ObjectId).toHexString(),name:`${e.name} (copy)`,isModified:!0}),[ua]:e=>{const t=ha(e.importPipeline.text),n=t.length>0?t[0].syntaxError:null;return n||ku("Aggregation Imported From Text",{num_stages:t.length}),{...e,name:"",collationString:Ti,id:(new Jt.ObjectId).toHexString(),pipeline:n?[]:t,importPipeline:{isOpen:!!n,isConfirmationNeeded:!1,text:n?e.importPipeline.text:"",syntaxError:n}}},[ru]:e=>{const t={...e,isOverviewOn:!e.isOverviewOn};return t.pipeline&&t.pipeline.forEach((e=>{e.isExpanded=!t.isOverviewOn})),t.inputDocuments&&(t.inputDocuments.isExpanded=!t.isOverviewOn),t},[pu]:e=>{const t={...e,limit:e.settings.sampleSize,largeLimit:e.settings.limit,comments:e.settings.isCommentMode,maxTimeMS:e.settings.maxTimeMS};return t.settings.isDirty=!1,t},[Eu]:e=>{const t={...e,name:e.savingPipeline.name};return t.savingPipeline.isOpen=!1,t},[ln]:e=>{const t={...e,projections:[]};return t.pipeline.map(((e,n)=>{e.projections=qt(e,null),e.projections.map((e=>{e.index=n,t.projections.push(e)}))})),t},[ju]:(e,t)=>{const n=ha(t.text),r=n.length>0?n[0].syntaxError:null;return r||e.pipeline.length>1?e:{...e,name:"",collationString:Ti,id:(new Jt.ObjectId).toHexString(),pipeline:n,importPipeline:{isOpen:!1,isConfirmationNeeded:!1,text:t.text,syntaxError:r}}},[Vu]:(e,t)=>{const n=t.pipeline.map((e=>da(Object.keys(e)[0],(0,Nt.toJSString)(Object.values(e)[0]," "),null)));return{...e,editViewName:t.name,isReadonly:t.isReadonly,sourceName:t.sourceName,collationString:Ti,id:(new Jt.ObjectId).toHexString(),pipeline:n,importPipeline:{isOpen:!1,isConfirmationNeeded:!1,text:"",syntaxError:null}}}},qu=(e,t)=>{const n=zu[t.type];return n?n(e,t):Uu(e,t)},Wu=()=>({type:Nu}),Hu=e=>({type:Pu,restoreState:e}),Gu=e=>t=>{t(Wu()),t(Hu(e)),t((0,Kt.globalAppRegistryEmit)("compass:aggregations:pipeline-opened")),t(tr(0,!0))},$u=()=>(e,t)=>{const n=t(),r={source:n.namespace,pipeline:n.pipeline.map((e=>e.executor||Ht(e))).filter((e=>!ma()(e)))};Ru("emitting","open-create-view",r),e((0,Kt.localAppRegistryEmit)("open-create-view",r))};function Ku(e){let{onAction:t,title:n,glyph:s,menuItems:o,"data-testid":a}=e;const[u,l]=(0,r.useState)(!1),c=(0,r.useCallback)((e=>{e.stopPropagation(),l(!1),t(e.currentTarget.dataset.action)}),[t]);return i().createElement(he.Menu,{"data-testid":`${a}-content`,open:u,setOpen:l,justify:"start",trigger:e=>{let{onClick:t,children:r}=e;return i().createElement(he.Button,{"data-testid":a,title:n,"aria-label":n,variant:"primary",size:"xsmall",leftGlyph:i().createElement(he.Icon,{glyph:s}),onClick:e=>{e.stopPropagation(),t()}},n,r)}},o.map((e=>i().createElement(he.MenuItem,{key:e.title,"data-action":e.action,"data-testid":`${a}-${e.action}`,onClick:c,"aria-label":e.title},e.title))))}const Xu=Y((e=>{let{name:t,serverVersion:n}=e;return{pipelineName:t,isCreateViewAvailable:nn().gte(n,"3.4.0")}}),{onSave:e=>""===e?Cu():bi(),onSaveAs:e=>""===e?Cu():Cu({name:e,isSaveAs:!0}),onCreateView:()=>$u()})((e=>{let{pipelineName:t,isCreateViewAvailable:n,onSave:r,onSaveAs:s,onCreateView:o}=e;return i().createElement(Ku,{"data-testid":"save-menu",title:"Save",glyph:"Save",onAction:e=>{switch(e){case"save":return r(t);case"saveAs":return s(t);case"createView":return o()}},menuItems:[{action:"save",title:"Save"},{action:"saveAs",title:"Save as"},n&&{action:"createView",title:"Create view"}].filter(Boolean)})})),Ju=Y(null,(e=>({onCreatePipeline:()=>e(Du(!0)),onCreatePipelineFromText:()=>e(pa())})))((e=>{let{onCreatePipeline:t,onCreatePipelineFromText:n}=e;return i().createElement(Ku,{"data-testid":"create-new-menu",title:"Create new",glyph:"Plus",onAction:e=>{switch(e){case"createPipleine":return t();case"createPipleineFromText":return n()}},menuItems:[{action:"createPipleine",title:"Pipeline"},{action:"createPipleineFromText",title:"Pipeline from text"}]})})),Zu=(0,he.css)({display:"flex",alignItems:"center"}),Yu=(0,he.css)({maxWidth:"100px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}),Qu=(0,he.css)({fontStyle:"italic",whiteSpace:"nowrap"}),el=Y((e=>{let{name:t,isModified:n}=e;return{name:t,isModified:n}}))((e=>{let{name:t,isModified:n}=e;return i().createElement(he.Body,{className:Zu,"data-testid":"pipeline-name"},""===t?"Untitled":i().createElement(he.Tooltip,{trigger:e=>{let{children:n,...r}=e;return i().createElement("span",d({},r,{className:Yu}),n,t)}},i().createElement(he.Body,null,t)),n&&i().createElement("span",{className:Qu}," – modified"))})),tl=(0,he.css)({display:"flex",gap:he.spacing[2],justifyItems:"center"}),nl=(0,he.css)({display:"flex",alignItems:"center",gap:he.spacing[1]}),rl=(0,he.css)({marginBottom:0,padding:0,textTransform:"uppercase"}),il=Y((e=>{let{autoPreview:t}=e;return{isAutoPreview:t}}),{onToggleAutoPreview:En,onToggleSettings:du})((e=>{let{isAutoPreview:t,onToggleAutoPreview:n,onToggleSettings:r}=e;return i().createElement("div",{className:tl,"data-testid":"pipeline-toolbar-extra-settings"},i().createElement("div",{className:nl},i().createElement(he.Toggle,{id:"auto-preview",size:"xsmall","aria-label":"Toggle Auto Preview",onChange:e=>{n(e)},"data-testid":"pipeline-toolbar-preview-toggle",checked:t}),i().createElement(he.Label,{className:rl,htmlFor:"auto-preview"},"Auto Preview")),i().createElement(he.IconButton,{"aria-label":"More Settings",onClick:()=>r(),"data-testid":"pipeline-toolbar-settings-button"},i().createElement(he.Icon,{glyph:"Settings"})))})),sl=(0,he.css)({display:"grid",gap:he.spacing[2],gridTemplateAreas:'"settings extraSettings"',gridTemplateColumns:"1fr min-content",alignItems:"center",whiteSpace:"nowrap"}),ol=(0,he.css)({display:"flex",gap:he.spacing[2],alignItems:"center"}),al=(0,he.css)({gridArea:"extraSettings",display:"flex"}),ul=Y((e=>({isSavePipelineEnabled:!e.editViewName&&!e.isAtlasDeployed,isCreatePipelineEnabled:!e.editViewName})),{onExportToLanguage:Gi})((e=>{let{isSavePipelineEnabled:t,isCreatePipelineEnabled:n,onExportToLanguage:r}=e;return i().createElement("div",{className:sl,"data-testid":"pipeline-settings"},i().createElement("div",{className:ol},t&&i().createElement(i().Fragment,null,i().createElement(el,null),i().createElement(Xu,null)),n&&i().createElement(Ju,null),i().createElement(he.Button,{variant:"primaryOutline",size:"xsmall",leftGlyph:i().createElement(he.Icon,{glyph:"Export"}),onClick:r,"data-testid":"pipeline-toolbar-export-button"},"Export to language")),i().createElement("div",{className:al},i().createElement(il,null)))})),ll=(0,he.css)({paddingTop:he.spacing[3],paddingRight:he.spacing[5],paddingBottom:he.spacing[3],paddingLeft:he.spacing[3]}),cl=(0,he.css)({display:"grid",gap:he.spacing[3],gridTemplateAreas:'\n "headerAndOptionsRow"\n ',marginLeft:he.spacing[1],marginRight:he.spacing[1]}),pl=(0,he.css)({gridTemplateAreas:'\n "headerAndOptionsRow"\n "settingsRow"\n '}),hl=(0,he.css)({gridArea:"headerAndOptionsRow",border:"1px solid",borderRadius:"6px",borderColor:he.uiColors.gray.light2,padding:he.spacing[2]}),dl=(0,he.css)({gridArea:"settingsRow"}),fl=(0,he.css)({marginTop:he.spacing[2]}),ml=Y((e=>{let{workspace:t}=e;return{isSettingsVisible:"builder"===t}}))((e=>{let{isSettingsVisible:t,showRunButton:n,showExportButton:s,showExplainButton:o}=e;const[a,u]=(0,r.useState)(!1);return i().createElement(he.Toolbar,{className:(0,he.cx)(ll,cl,t&&pl),"data-testid":"pipeline-toolbar"},i().createElement(i().Fragment,null,i().createElement("div",{className:hl},i().createElement(Oi,{isOptionsVisible:a,onToggleOptions:()=>u(!a),showRunButton:n,showExportButton:s,showExplainButton:o}),a&&i().createElement("div",{className:fl},i().createElement(Hi,null))),t&&i().createElement("div",{className:dl},i().createElement(ul,null))))})),gl=require("@mongodb-js/compass-crud");n(8423);var El=n(161),yl=n.n(El),vl=n(4622),Al=n.n(vl),Cl=n(4772),bl=n.n(Cl),Sl=n(4537),xl=n.n(Sl),wl=n(3958),Dl=n.n(wl);const _l=Symbol.for("@@mdb.decryptedKeys");function Ol(e,t){t.isValueDecrypted()&&(e[_l]||Object.defineProperty(e,_l,{value:[],writable:!0,configurable:!0,enumerable:!1}),e[_l].push(String(t.currentKey)))}const Fl=class{static generate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){const n={};for(const r of e)t.excludeInternalFields&&r.isInternalField()||r.isRemoved()||""===r.currentKey||(n[r.currentKey]=r.generateObject(t),Ol(n,r));return n}return e}static generateOriginal(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){const n={};for(const r of e)t.excludeInternalFields&&r.isInternalField()||r.isAdded()||(n[r.key]=r.generateOriginalObject(t),Ol(n,r));return n}return e}static generateArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){const n=[];for(const r of e)t.excludeInternalFields&&r.isInternalField()||r.isRemoved()||(r.elements?n.push(r.generateObject(t)):n.push(r.currentValue),Ol(n,r));return n}return e}static generateOriginalArray(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){const n=[];for(const r of e)t.excludeInternalFields&&r.isInternalField()||(r.originalExpandableValue?n.push(r.generateOriginalObject(t)):r.isAdded()||n.push(r.value),Ol(n,r));return n}return e}};var Tl=n(8875),Bl=n.n(Tl);const kl={Added:"Element::Added",Edited:"Element::Edited",Removed:"Element::Removed",Reverted:"Element::Reverted",Converted:"Element::Converted",Invalid:"Element::Invalid",Valid:"Element::Valid"};function Rl(e){const t=String(e).length;return 0===t?1:t}function Il(e){if(e&&"object"==typeof e)for(const t of Object.keys(e)){const n=e[t];"object"==typeof n&&null!==n&&(n.$numberInt?e[t]=+n.$numberInt:n.$numberDouble?e[t]=+n.$numberDouble:Il(n))}}const Nl=/^(\[|\{)(.+)(\]|\})$/;class Pl{constructor(e){this.element=e,this.type=e.currentType,this.editing=!1}edit(e){const t=this.element.currentType;try{const n=Bl().cast(e,t);this.element.edit(n)}catch(n){this.element.setInvalid(e,t,n.message)}}paste(e){Nl.exec(e)?(this.edit(JSON.parse(e)),this.element._bubbleUp(kl.Converted,this.element)):this.edit(e)}size(){return Rl(this.element.currentValue)}value(){return String(this.element.currentValue)}start(){this.editing=!0}complete(){this.editing=!1}}class Ml extends Pl{constructor(e){super(e)}complete(){super.complete(),this.element.isCurrentTypeValid()&&this.element.edit(Bl().cast(this._formattedValue(),"Date"))}edit(e){try{"Invalid Date"===Bl().cast(e,"Date").toString()?this.element.setInvalid(e,"Date",`${String(e)} is not in a valid date format`):(this.element.currentValue=e,this.element.setValid(),this.element._bubbleUp(kl.Edited,this.element))}catch(t){this.element.setInvalid(e,this.element.currentType,t.message)}}size(e){const t=this.element.currentValue;return e?Rl(t):this.element.isCurrentTypeValid()?Rl(this._formattedValue()):Rl(t)}start(){super.start(),this.element.isCurrentTypeValid()&&this.edit(this._formattedValue())}value(){const e=this.element.currentValue;return!this.editing&&this.element.isCurrentTypeValid()?this._formattedValue():String(e)}_formattedValue(){return new Date(this.element.currentValue).toISOString().replace("Z","+00:00")}}const Ll=["Binary","Code","MinKey","MaxKey","Timestamp","BSONRegExp","Undefined","Null","DBRef"];class jl extends(yl()){cancel(){if(this.elements)for(const e of Array.from(this.elements))e.cancel();this.isModified()&&this.revert()}constructor(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;super(),this.uuid=(new Jt.UUID).toHexString(),this.key=e,this.currentKey=e,this.parent=i,this.previousElement=s,this.nextElement=o,this.added=r,this.removed=!1,this.type=Bl().type(t),this.currentType=this.type,this.level=this._getLevel(),this.setValid(),this._isExpandable(t)?(this.elements=this._generateElements(t),this.originalExpandableValue=t):(this.value=t,this.currentValue=t),this.parent&&(n=this.parent.isRoot()?this.parent.doc:this.parent.originalExpandableValue);const a=n&&n[Symbol.for("@@mdb.decryptedKeys")];this.decrypted=(a||[]).map(String).includes(String(e))}_getLevel(){let e=-1,t=this.parent;for(;t;)e++,t=t.parent;return e}edit(e){this.currentType=Bl().type(e),this._isExpandable(e)&&!this._isExpandable(this.currentValue)?(this.currentValue=null,this.elements=this._generateElements(e)):!this._isExpandable(e)&&this.elements?(this.currentValue=e,this.elements=void 0):this.currentValue=e,this.setValid(),this._bubbleUp(kl.Edited,this)}changeType(e){if("Object"===e)this.edit("{"),this.next();else if("Array"===e)this.edit("["),this.next();else try{if("Date"===e){const e=new Ml(this);e.edit(this.generateObject()),e.complete()}else this.edit(Bl().cast(this.generateObject(),e))}catch(t){this.setInvalid(this.currentValue,e,t.message)}}getRoot(){let e=this.parent;for(;e?.parent;)e=e.parent;return e}get(e){return this.elements?.get(e)}at(e){return this.elements?.at(e)}next(){return"{"===this.currentValue?this._convertToEmptyObject():"["===this.currentValue?this._convertToEmptyArray():this._next()}rename(e){if(this.parent){const t=this.parent.elements._map[this.currentKey];delete this.parent.elements._map[this.currentKey],this.parent.elements._map[e]=t}this.currentKey=e,this._bubbleUp(kl.Edited,this)}generateObject(e){return"Array"===this.currentType?Fl.generateArray(this.elements,e):"Object"===this.currentType?Fl.generate(this.elements,e):this.currentValue}generateOriginalObject(e){if("Array"===this.type){const t=this._generateElements(this.originalExpandableValue);return Fl.generateOriginalArray(t,e)}if("Object"===this.type){const t=this._generateElements(this.originalExpandableValue);return Fl.generateOriginal(t,e)}return this.value}insertAfter(e,t,n){if(!this.elements)throw new Error("Cannot insert values on non-array/non-object elements");"Array"===this.currentType&&(""===e.currentKey&&this.elements.handleEmptyKeys(e),t=e.currentKey+1);const r=this.elements.insertAfter(e,t,n,!0,this);return"Array"===this.currentType&&this.elements.updateKeys(r,1),r._bubbleUp(kl.Added,r,this),r}insertEnd(e,t){if(!this.elements)throw new Error("Cannot insert values on non-array/non-object elements");"Array"===this.currentType&&(this.elements.flush(),e=0,this.elements.lastElement&&(""===this.elements.lastElement.currentKey&&this.elements.handleEmptyKeys(this.elements.lastElement),e=this.elements.lastElement.currentKey+1));const n=this.elements.insertEnd(e,t,!0,this);return this._bubbleUp(kl.Added,n),n}insertPlaceholder(){return this.insertEnd("","")}insertSiblingPlaceholder(){return this.parent.insertAfter(this,"","")}isAdded(){return this.added||!!this.parent?.isAdded()}isBlank(){return""===this.currentKey&&""===this.currentValue}isCurrentTypeValid(){return!!this.currentTypeValid}setValid(){this.currentTypeValid=!0,this.invalidTypeMessage=void 0,this._bubbleUp(kl.Valid,this)}setInvalid(e,t,n){this.currentValue=e,this.currentType=t,this.currentTypeValid=!1,this.invalidTypeMessage=n,this._bubbleUp(kl.Invalid,this)}isDuplicateKey(e){if(""===e)return!1;for(const t of this.parent?.elements??[])if(t.uuid!==this.uuid&&t.currentKey===e)return!0;return!1}isEdited(){return(this.isRenamed()||!this._valuesEqual()||this.type!==this.currentType)&&!this.isAdded()}_valuesEqual(){return"Date"===this.currentType&&en()(this.currentValue)?Dl()(this.value,new Date(this.currentValue)):"ObjectId"===this.currentType&&en()(this.currentValue)?this._isObjectIdEqual():Dl()(this.value,this.currentValue)}_isObjectIdEqual(){try{return this.value.toHexString()===this.currentValue}catch(e){return!1}}isLast(){return this.parent?.elements?.lastElement===this}isRenamed(){return!(this.parent&&!this.parent.isRoot()&&"Object"!==this.parent.currentType)&&this.key!==this.currentKey}isRevertable(){return this.isEdited()||this.isRemoved()}isRemovable(){return!this.parent.isRemoved()}isNotActionable(){return("_id"===this.key||this.isInternalField())&&!this.isAdded()||!this.isRemovable()}isValueDecrypted(){return this.decrypted}containsDecryptedChildren(){if(this.isValueDecrypted())return!0;for(const e of this.elements||[])if(e.containsDecryptedChildren())return!0;return!1}isValueEditable(){return this._isKeyLegallyEditable()&&!Ll.includes(this.currentType)}isParentEditable(){return!(this.parent&&!this.parent.isRoot())||this.parent._isKeyLegallyEditable()}_isKeyLegallyEditable(){return this.isParentEditable()&&(this.isAdded()||"_id"!==this.currentKey&&!this.isInternalField())}isKeyEditable(){return this._isKeyLegallyEditable()&&!this.containsDecryptedChildren()}isInternalField(){return!(!this.parent||(this.parent.isRoot()||!this.parent.isInternalField())&&(!this.parent.isRoot()||(e=this.currentKey,"string"!=typeof e||!/^__safeContent__($|\.)/.test(e))));var e}isModified(){if(this.elements)for(const e of this.elements)if(e.isModified())return!0;return this.isAdded()||this.isEdited()||this.isRemoved()}isRemoved(){return this.removed}isRoot(){return!1}remove(){this.revert(),this.removed=!0,this.parent&&this._bubbleUp(kl.Removed,this,this.parent)}revert(){this.isAdded()?("Array"===this.parent?.currentType&&this.parent.elements.updateKeys(this,-1),this.parent.elements.remove(this),this._bubbleUp(kl.Removed,this,this.parent),this.parent=null):(this.originalExpandableValue?(this.elements=this._generateElements(this.originalExpandableValue),this.currentValue=void 0):(null===this.currentValue&&null!==this.value?this.elements=null:this._removeAddedElements(),this.currentValue=this.value),this.currentKey=this.key,this.currentType=this.type,this.removed=!1),this.setValid(),this._bubbleUp(kl.Reverted,this)}_bubbleUp(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.emit(e,...n);const i=this.parent;i&&(i.isRoot()?i.emit(e,...n):i._bubbleUp(e,...n))}_convertToEmptyObject(){this.edit({}),this.insertPlaceholder()}_convertToEmptyArray(){this.edit([]),this.insertPlaceholder()}_isElementEmpty(e){return!!e&&e.isAdded()&&e.isBlank()}_isExpandable(e){return bl()(e)||xl()(e)}_generateElements(e){return new Vl(this,e)}_key(e,t){return"Array"===this.currentType?t:e}_next(){this._isElementEmpty(this.nextElement)||this._isElementEmpty(this)||this.parent.insertAfter(this,"","")}_removeAddedElements(){if(this.elements)for(const e of this.elements)e.isAdded()&&this.elements.remove(e)}static get Events(){return kl}}class Vl{at(e){if(this.flush(),!Number.isInteger(e))return;let t=this.firstElement;for(let n=0;n<e;n++){if(!t)return;t=t.nextElement}return null===t?void 0:t}get(e){return this.flush(),this._map[e]}constructor(e,t){this.firstElement=null,this.lastElement=null,this.doc=e,this.originalDoc=t,this.keys=Al()(this.originalDoc),"Array"===this.doc.currentType&&(this.keys=this.keys.map((e=>parseInt(e,10)))),this.size=this.keys.length,this.loaded=0,this._map={}}insertAfter(e,t,n,r,i){return this.flush(),this._insertAfter(e,t,n,r,i)}updateKeys(e,t){for(this.flush();e.nextElement;)e.nextElement.currentKey+=t,e=e.nextElement}handleEmptyKeys(e){if(""===e.currentKey){let t=e;for(;""===t.currentKey;){if(!t.previousElement){t.currentKey=0;break}t=t.previousElement}for(;t.nextElement;)t.nextElement.currentKey=t.currentKey+1,t=t.nextElement}}insertBefore(e,t,n,r,i){return this.flush(),this._insertBefore(e,t,n,r,i)}insertBeginning(e,t,n,r){return this.flush(),this._insertBeginning(e,t,n,r)}insertEnd(e,t,n,r){return this.flush(),this.lastElement?this.insertAfter(this.lastElement,e,t,n,r):this.insertBeginning(e,t,n,r)}flush(){if(this.loaded<this.size)for(const e of this)e?.elements?.flush()}*[Symbol.iterator](){let e,t=0;for(;;)if(this._needsLazyLoad(t)){const n=this.keys[t];t+=1,e=this._lazyInsertEnd(n),yield e}else{if(!this._needsStandardIteration(t))break;if(e=e?e.nextElement:this.firstElement,!e)break;t+=1,yield e}}_needsLazyLoad(e){return 0===e&&0===this.loaded&&this.size>0||this.loaded<=e&&e<this.size}_needsStandardIteration(e){return this.loaded>0&&e<this.loaded&&e<this.size}_lazyInsertEnd(e){return this.size-=1,this._insertEnd(e,this.originalDoc[e],this.doc.cloned,this.doc)}_insertEnd(e,t,n,r){return this.lastElement?this._insertAfter(this.lastElement,e,t,n,r):this._insertBeginning(e,t,n,r)}_insertBefore(e,t,n,r,i){const s=new jl(t,n,r,i,e.previousElement,e);return e.previousElement?e.previousElement.nextElement=s:this.firstElement=s,e.previousElement=s,this._map[s.key]=s,this.size+=1,this.loaded+=1,s}_insertBeginning(e,t,n,r){if(!this.firstElement){const i=new jl(e,t,n,r,null,null);return this.firstElement=this.lastElement=i,this.size+=1,this.loaded+=1,this._map[i.key]=i,i}const i=this.insertBefore(this.firstElement,e,t,n,r);return this._map[i.key]=i,i}_insertAfter(e,t,n,r,i){const s=new jl(t,n,r,i,e,e.nextElement);return e.nextElement?e.nextElement.previousElement=s:this.lastElement=s,e.nextElement=s,this._map[s.key]=s,this.size+=1,this.loaded+=1,s}remove(e){return this.flush(),e.previousElement?e.previousElement.nextElement=e.nextElement:this.firstElement=e.nextElement,e.nextElement?e.nextElement.previousElement=e.previousElement:this.lastElement=e.previousElement,e.nextElement=e.previousElement=null,delete this._map[e.currentKey],this.size-=1,this.loaded-=1,this}findIndex(e){let t=0;for(const n of this){if(n===e)return t;t++}return-1}}const Ul={Cancel:"Document::Cancel"};class zl extends(yl()){cancel(){for(const e of Array.from(this.elements))e.cancel();this.emit(Ul.Cancel)}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];super(),this.uuid=(new Jt.UUID).toHexString(),this.doc=e,this.cloned=t||!1,this.isUpdatable=!0,this.elements=this._generateElements(),this.type="Document",this.currentType="Document"}apply(e){"function"==typeof e?.generateObject&&(e=e.generateObject());const t=[];let n=null;for(const[r,i]of Object.entries(e))this.get(r)?this.get(r).edit(i):n?this.insertAfter(this.get(n),r,i):this.insertBeginning(r,i),n=r,t.push(r);for(const e of[...this.elements])t.includes(e.currentKey)||e.remove()}generateObject(e){return Fl.generate(this.elements,e)}generateOriginalObject(e){return Fl.generateOriginal(this.elements,e)}generateUpdateUnlessChangedInBackgroundQuery(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=this.getOriginalKeysAndValuesForFieldsThatWereUpdated(e),n={_id:this.getId(),...t},r=this.getSetUpdateForDocumentChanges(),i=this.getUnsetUpdateForDocumentChanges(),s={};return r&&Object.keys(r).length>0&&(s.$set=r),i&&Object.keys(i).length>0&&(s.$unset=i),{query:n,updateDoc:s}}get(e){return this.elements.get(e)}getChild(e){if(!e)return;let t=this.elements.get(e[0]),n=1;for(;n<e.length;){if(void 0===t)return;t="Array"===t.currentType?t.at(e[n]):t.get(e[n]),n++}return t}getId(){const e=this.get("_id");return e?e.generateObject():null}getOriginalKeysAndValuesForFieldsThatWereUpdated(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t={};if(this.elements)for(const n of this.elements)(n.isModified()&&!n.isAdded()||e&&n.key in e)&&(t[n.key]=n.generateOriginalObject()),n.isAdded()&&""!==n.currentKey&&(t[n.currentKey]={$exists:!1});return t}getOriginalKeysAndValuesForSpecifiedKeys(e){const t={};if(this.elements)for(const n of this.elements)n.key in e&&(t[n.key]=n.generateOriginalObject());return t}getSetUpdateForDocumentChanges(){const e={};if(this.elements)for(const t of this.elements)!t.isRemoved()&&""!==t.currentKey&&t.isModified()&&(e[t.currentKey]=t.generateObject());return e}getStringId(){const e=this.get("_id");return e?"Array"===e.currentType||"Object"===e.currentType?JSON.stringify(e.generateObject()):String(e.value):null}getUnsetUpdateForDocumentChanges(){const e={};if(this.elements)for(const t of this.elements)!t.isAdded()&&t.isRemoved()&&""!==t.key&&(e[t.key]=!0),!t.isAdded()&&t.isRenamed()&&""!==t.key&&(e[t.key]=!0);return e}insertPlaceholder(){return this.insertEnd("","")}insertBeginning(e,t){const n=this.elements.insertBeginning(e,t,!0,this);return n._bubbleUp(kl.Added,n,this),n}insertEnd(e,t){const n=this.elements.insertEnd(e,t,!0,this);return n._bubbleUp(kl.Added,n,this),n}insertAfter(e,t,n){const r=this.elements.insertAfter(e,t,n,!0,this);return r._bubbleUp(kl.Added,r,this),r}isAdded(){return!1}isModified(){for(const e of this.elements)if(e.isModified())return!0;return!1}isRemoved(){return!1}isRoot(){return!0}next(){this.elements.flush();const e=this.elements.lastElement;e&&e.isAdded()&&e.isBlank()?e.remove():this.insertPlaceholder()}_generateElements(){return new Vl(this,this.doc)}static get Events(){return Ul}static FromEJSON(e){const t=Jt.EJSON.parse(e,{relaxed:!1});return new zl(t)}static FromEJSONArray(e){const t=Jt.EJSON.parse(e,{relaxed:!1});return Array.isArray(t)?t.map((e=>new zl(e))):[new zl(t)]}toEJSON(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Jt.EJSON.serialize(e,{relaxed:!1});return Il(n),JSON.stringify(n,null,"indent"in t?t.indent:2)}("original"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"current")?this.generateOriginalObject():this.generateObject(),e)}}const ql=zl;class Wl extends Pl{constructor(e){super(e)}}class Hl extends Pl{constructor(e){super(e)}complete(){super.complete(),this.element.isCurrentTypeValid()&&this.element.edit(Bl().cast(this.element.currentValue,"Decimal128"))}edit(e){try{Bl().cast(e,"Decimal128"),this.element.currentValue=e,this.element.setValid(),this.element._bubbleUp(kl.Edited,this.element)}catch(t){this.element.setInvalid(e,this.element.currentType,t.message)}}}class Gl extends Pl{constructor(e){super(e)}size(){return Rl(this.element.currentValue.valueOf())}}class $l extends Pl{constructor(e){super(e)}complete(){super.complete(),this.element.isCurrentTypeValid()&&this.element.edit(Bl().cast(this.element.currentValue,"Int64"))}edit(e){try{Bl().cast(e,"Int64"),this.element.currentValue=e,this.element.setValid(),this.element._bubbleUp(kl.Edited,this.element)}catch(t){this.element.setInvalid(e,this.element.currentType,t.message)}}}class Kl extends Pl{constructor(e){super(e)}complete(){super.complete(),this.element.isCurrentTypeValid()&&this.element.edit(Bl().cast(this.element.currentValue,"Double"))}edit(e){try{const t=Bl().cast(e,"Double");isNaN(t.value)?this.element.setInvalid(e,"Double",`${String(e)} is not a valid double format`):(this.element.currentValue=e,this.element.setValid(),this.element._bubbleUp(kl.Edited,this.element))}catch(t){this.element.setInvalid(e,this.element.currentType,t.message)}}size(){const e=this.element.currentValue;return Rl("function"==typeof e.valueOf?e.valueOf():e)}}class Xl extends Pl{constructor(e){super(e)}size(){return 4}value(){return"null"}}const Jl="undefined";class Zl extends Pl{constructor(e){super(e)}size(){return Jl.length}value(){return Jl}}class Yl extends Pl{constructor(e){super(e)}complete(){super.complete(),this.element.isCurrentTypeValid()&&this.element.edit(Bl().cast(this.element.currentValue,"ObjectId"))}edit(e){try{Bl().cast(e,"ObjectId"),this.element.currentValue=e,this.element.setValid(),this.element._bubbleUp(kl.Edited,this.element)}catch(t){this.element.setInvalid(e,this.element.currentType,t.message)}}start(){super.start(),this.element.isCurrentTypeValid()&&this.edit(String(this.element.currentValue))}}Object.assign((e=>({Standard:new Pl(e),String:new Wl(e),Decimal128:new Hl(e),Date:new Ml(e),Double:new Kl(e),Int32:new Gl(e),Int64:new $l(e),Null:new Xl(e),Undefined:new Zl(e),ObjectId:new Yl(e)})),{DateEditor:Ml,StandardEditor:Pl,StringEditor:Wl,Decimal128Editor:Hl,DoubleEditor:Kl,Int32Editor:Gl,Int64Editor:$l,NullEditor:Xl,UndefinedEditor:Zl,ObjectIdEditor:Yl});const Ql=ql,ec=e=>{let{direction:t}=e;return 1===t?i().createElement(he.Icon,{glyph:"ArrowUp"}):-1===t?i().createElement(he.Icon,{glyph:"ArrowDown"}):i().createElement(i().Fragment,null,"(",String(t),")")},tc=(0,he.css)({display:"flex",flexDirection:"column",gap:he.spacing[1]}),nc=(0,he.css)({marginTop:he.spacing[1],marginBottom:he.spacing[1]}),rc=(0,he.css)({marginTop:he.spacing[1],"*:not(:last-child)":{marginRight:he.spacing[1]}}),ic=(0,he.css)({color:he.uiColors.gray.dark1}),sc=e=>{let{indexes:t}=e;return 0===t.length?null:i().createElement("div",{className:tc},t.map(((e,t)=>{let{name:n,shard:r,key:s}=e;const o=r?i().createElement(i().Fragment,null,n," ",i().createElement("span",{className:ic},"(",r,")")):n;return i().createElement("div",{className:nc,key:t},i().createElement(he.Accordion,{text:o,"data-testid":`explain-index-button-${n}-${r??""}`},i().createElement("div",{className:rc,"data-testid":`explain-index-content-${n}-${r??""}`},Object.entries(s).map(((e,t)=>{let[n,r]=e;return i().createElement(he.Badge,{variant:he.BadgeVariant.LightGray,key:t},n," ",i().createElement(ec,{direction:r}))})))))})))},oc=(0,he.css)({display:"flex",gap:he.spacing[3],flexDirection:"column"}),ac=(0,he.css)({gap:he.spacing[1],display:"flex",flexDirection:"column"}),uc=(0,he.css)({display:"flex",gap:he.spacing[1],alignItems:"baseline"}),lc=(0,he.css)({whiteSpace:"nowrap"}),cc=e=>{let{nReturned:t,executionTimeMillis:n,indexes:r}=e;return i().createElement("div",{className:oc,"data-testid":"pipeline-explain-results-summary"},i().createElement(he.Subtitle,null,"Query Performance Summary"),i().createElement("div",{className:ac},"number"==typeof t&&i().createElement("div",{className:uc},i().createElement(he.Body,null,"Documents returned:"),i().createElement(he.Body,{weight:"medium"},t)),n>0&&i().createElement("div",{className:uc},i().createElement(he.Body,null,"Actual query execution time (ms):"),i().createElement(he.Body,{weight:"medium"},n)),r.length>0&&i().createElement("div",{className:uc},i().createElement(he.Body,{className:lc},"Query used the following indexes:"),i().createElement(he.Body,{weight:"medium"},r.length)),i().createElement(sc,{indexes:r})))},pc=(0,he.css)({gap:he.spacing[4],display:"grid",gridTemplateRows:"auto 1fr",height:"100%"}),hc=(0,he.css)({gridTemplateAreas:"\n 'stats'\n 'card'\n "}),dc=(0,he.css)({gridTemplateAreas:"\n 'card'\n "}),fc=(0,he.css)({gridArea:"stats"}),mc=(0,he.css)({gridArea:"card",maxHeight:"50vh",overflowY:"scroll"}),gc=e=>{let{plan:t,stats:n}=e;return i().createElement("div",{className:(0,he.cx)(n?hc:dc,pc),"data-testid":"pipeline-explain-results"},n&&i().createElement("div",{className:fc},i().createElement(cc,{nReturned:n.nReturned,executionTimeMillis:n.executionTimeMillis,indexes:n.indexes})),i().createElement(he.Card,{className:mc,"data-testid":"pipeline-explain-results-json"},i().createElement(gl.Document,{doc:t,editable:!1,copyToClipboard:()=>{navigator.clipboard.writeText(new Ql(t).toEJSON())}})))},Ec=(0,he.css)({display:"grid",gap:he.spacing[3],gridTemplateRows:"auto 1fr auto"}),yc=(0,he.css)({gridTemplateAreas:"\n 'header'\n 'content'\n 'footer'\n "}),vc=(0,he.css)({gridTemplateAreas:"\n 'header'\n 'content'\n "}),Ac=(0,he.css)({gridArea:"header"}),Cc=(0,he.css)({gridArea:"content"}),bc=(0,he.css)({gridArea:"footer",paddingRight:0,paddingBottom:0}),Sc=(0,he.css)({display:"flex",justifyContent:"center",height:"100%"}),xc=()=>window.innerWidth<=he.breakpoints.XLDesktop?"default":"large",wc=Y((e=>{let{explain:{isModalOpen:t,isLoading:n,error:r,explain:i}}=e;return{isModalOpen:t,isLoading:n,error:r,explain:i}}),{onCloseModal:()=>e=>{e(Yr())},onCancelExplain:Yr})((e=>{let{isModalOpen:t,isLoading:n,error:s,explain:o,onCloseModal:a,onCancelExplain:u}=e;const[l,c]=(0,r.useState)(xc());(0,r.useEffect)((()=>{if(!t)return;const e=()=>{c(xc())};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[t]),(0,r.useEffect)((()=>{c(xc())}),[t]);let p=null;return n?p=i().createElement("div",{className:Sc},i().createElement(he.CancelLoader,{"data-testid":"pipeline-explain-cancel",cancelText:"Cancel",onCancel:()=>u(),progressText:"Running explain"})):s?p=i().createElement(he.ErrorSummary,{"data-testid":"pipeline-explain-error",errors:s}):o&&(p=i().createElement(gc,{plan:o.plan,stats:o.stats})),p?i().createElement(he.Modal,{size:l,setOpen:a,open:t,"data-testid":"pipeline-explain-modal",contentClassName:(0,he.cx)(n?vc:yc,Ec)},i().createElement(he.H3,{className:Ac},"Explain Plan"),i().createElement("div",{className:Cc},p),!n&&i().createElement(he.ModalFooter,{className:bc},i().createElement(he.Button,{onClick:a,"data-testid":"pipeline-explain-footer-close-button"},"Close"))):null}));var Dc,_c=(Dc=function(e,t){return Dc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Dc(e,t)},function(e,t){function n(){this.constructor=e}Dc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Oc=function(){return Oc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Oc.apply(this,arguments)},Fc={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},Tc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return _c(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:Oc(Oc({position:"absolute",userSelect:"none"},Fc[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),Bc=n(6238),kc=n.n(Bc),Rc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ic=function(){return Ic=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ic.apply(this,arguments)},Nc={width:"auto",height:"auto"},Pc=kc()((function(e,t,n){return Math.max(Math.min(e,n),t)})),Mc=kc()((function(e,t){return Math.round(e/t)*t})),Lc=kc()((function(e,t){return new RegExp(e,"i").test(t)})),jc=function(e){return Boolean(e.touches&&e.touches.length)},Vc=kc()((function(e,t,n){void 0===n&&(n=0);var r=t.reduce((function(n,r,i){return Math.abs(r-e)<Math.abs(t[n]-e)?i:n}),0),i=Math.abs(t[r]-e);return 0===n||i<n?t[r]:e})),Uc=kc()((function(e,t){return e.substr(e.length-t.length,t.length)===t})),zc=kc()((function(e){return"auto"===(e=e.toString())||Uc(e,"px")||Uc(e,"%")||Uc(e,"vh")||Uc(e,"vw")||Uc(e,"vmax")||Uc(e,"vmin")?e:e+"px"})),qc=function(e,t,n,r){if(e&&"string"==typeof e){if(Uc(e,"px"))return Number(e.replace("px",""));if(Uc(e,"%"))return t*(Number(e.replace("%",""))/100);if(Uc(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(Uc(e,"vh"))return r*(Number(e.replace("vh",""))/100)}return e},Wc=kc()((function(e,t,n,r,i,s,o){return r=qc(r,e.width,t,n),i=qc(i,e.height,t,n),s=qc(s,e.width,t,n),o=qc(o,e.height,t,n),{maxWidth:void 0===r?void 0:Number(r),maxHeight:void 0===i?void 0:Number(i),minWidth:void 0===s?void 0:Number(s),minHeight:void 0===o?void 0:Number(o)}})),Hc=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Gc="__resizable_base__",$c=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add(Gc):t.className+=Gc,e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return Rc(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||Nc},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,r=this.resizable.offsetHeight,i=this.resizable.style.position;"relative"!==i&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:r,this.resizable.style.position=i}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&Uc(e.propsSize[t].toString(),"%")){if(Uc(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return zc(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?zc(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?zc(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var r={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),r},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,r,i=this.props.boundsByDirection,s=this.state.direction,o=i&&Lc("left",s),a=i&&Lc("top",s);if("parent"===this.props.bounds){var u=this.parentNode;u&&(n=o?this.resizableRight-this.parentLeft:u.offsetWidth+(this.parentLeft-this.resizableLeft),r=a?this.resizableBottom-this.parentTop:u.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,r=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),r=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),r&&Number.isFinite(r)&&(t=t&&t<r?t:r),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,r=this.props.resizeRatio||1,i=this.state,s=i.direction,o=i.original,a=this.props,u=a.lockAspectRatio,l=a.lockAspectRatioExtraHeight,c=a.lockAspectRatioExtraWidth,p=o.width,h=o.height,d=l||0,f=c||0;return Lc("right",s)&&(p=o.width+(e-o.x)*r/n,u&&(h=(p-f)/this.ratio+d)),Lc("left",s)&&(p=o.width-(e-o.x)*r/n,u&&(h=(p-f)/this.ratio+d)),Lc("bottom",s)&&(h=o.height+(t-o.y)*r/n,u&&(p=(h-d)*this.ratio+f)),Lc("top",s)&&(h=o.height-(t-o.y)*r/n,u&&(p=(h-d)*this.ratio+f)),{newWidth:p,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,r){var i=this.props,s=i.lockAspectRatio,o=i.lockAspectRatioExtraHeight,a=i.lockAspectRatioExtraWidth,u=void 0===r.width?10:r.width,l=void 0===n.width||n.width<0?e:n.width,c=void 0===r.height?10:r.height,p=void 0===n.height||n.height<0?t:n.height,h=o||0,d=a||0;if(s){var f=(c-h)*this.ratio+d,m=(p-h)*this.ratio+d,g=(u-d)/this.ratio+h,E=(l-d)/this.ratio+h,y=Math.max(u,f),v=Math.min(l,m),A=Math.max(c,g),C=Math.min(p,E);e=Pc(e,y,v),t=Pc(t,A,C)}else e=Pc(e,u,l),t=Pc(t,c,p);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var r=this.resizable.getBoundingClientRect(),i=r.left,s=r.top,o=r.right,a=r.bottom;this.resizableLeft=i,this.resizableRight=o,this.resizableTop=s,this.resizableBottom=a}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,r=0,i=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(r=e.nativeEvent.clientX,i=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&jc(e.nativeEvent)&&(r=e.nativeEvent.touches[0].clientX,i=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart&&this.resizable&&!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var s=this.window.getComputedStyle(this.resizable);if("auto"!==s.flexBasis){var o=this.parentNode;if(o){var a=this.window.getComputedStyle(o).flexDirection;this.flexDir=a.startsWith("row")?"row":"column",n=s.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:r,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Ic(Ic({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(u)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&jc(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,r=t.maxHeight,i=t.minWidth,s=t.minHeight,o=jc(e)?e.touches[0].clientX:e.clientX,a=jc(e)?e.touches[0].clientY:e.clientY,u=this.state,l=u.direction,c=u.original,p=u.width,h=u.height,d=this.getParentSize(),f=Wc(d,this.window.innerWidth,this.window.innerHeight,n,r,i,s);n=f.maxWidth,r=f.maxHeight,i=f.minWidth,s=f.minHeight;var m=this.calculateNewSizeFromDirection(o,a),g=m.newHeight,E=m.newWidth,y=this.calculateNewMaxFromBoundary(n,r),v=this.calculateNewSizeFromAspectRatio(E,g,{width:y.maxWidth,height:y.maxHeight},{width:i,height:s});if(E=v.newWidth,g=v.newHeight,this.props.grid){var A=Mc(E,this.props.grid[0]),C=Mc(g,this.props.grid[1]),b=this.props.snapGap||0;E=0===b||Math.abs(A-E)<=b?A:E,g=0===b||Math.abs(C-g)<=b?C:g}this.props.snap&&this.props.snap.x&&(E=Vc(E,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(g=Vc(g,this.props.snap.y,this.props.snapGap));var S={width:E-c.width,height:g-c.height};p&&"string"==typeof p&&(Uc(p,"%")?E=E/d.width*100+"%":Uc(p,"vw")?E=E/this.window.innerWidth*100+"vw":Uc(p,"vh")&&(E=E/this.window.innerHeight*100+"vh")),h&&"string"==typeof h&&(Uc(h,"%")?g=g/d.height*100+"%":Uc(h,"vw")?g=g/this.window.innerWidth*100+"vw":Uc(h,"vh")&&(g=g/this.window.innerHeight*100+"vh"));var x={width:this.createSizeForCssProperty(E,"width"),height:this.createSizeForCssProperty(g,"height")};"row"===this.flexDir?x.flexBasis=x.width:"column"===this.flexDir&&(x.flexBasis=x.height),this.setState(x),this.props.onResize&&this.props.onResize(e,l,this.resizable,S)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,r=t.direction,i=t.original;if(n&&this.resizable){var s={width:this.size.width-i.width,height:this.size.height-i.height};this.props.onResizeStop&&this.props.onResizeStop(e,r,this.resizable,s),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Ic(Ic({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,i=t.handleStyles,s=t.handleClasses,o=t.handleWrapperStyle,a=t.handleWrapperClass,u=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(Tc,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:i&&i[t],className:s&&s[t]},u&&u[t]?u[t]:null):null}));return r.createElement("div",{className:a,style:o},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==Hc.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=Ic(Ic(Ic({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return r.createElement(i,Ic({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);function Kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xc(e,t){if(e){if("string"==typeof e)return Kc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kc(e,t):void 0}}function Jc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);o=!0);}catch(e){a=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return s}}(e,t)||Xc(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){T(e,t,n[t])}))}return e}function Yc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ep(e,t,n){return t&&Qc(e.prototype,t),n&&Qc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tp(e){return tp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tp(e)}function np(e,t){if(t&&("object"===tp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rp(e)}function ip(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}const sp=require("react-dom");var op=function(){function e(){Yc(this,e),T(this,"refs",{})}return ep(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(ap)}}]),e}();function ap(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function up(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var lp={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},cp=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function pp(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function hp(e,t){e.style["".concat(cp,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function dp(e,t){e.style["".concat(cp,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function fp(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function mp(e,t,n){return Math.max(e,Math.min(n,t))}function gp(e){return"px"===e.substr(-2)?parseFloat(e):0}function Ep(e){var t=window.getComputedStyle(e);return{bottom:gp(t.marginBottom),left:gp(t.marginLeft),right:gp(t.marginRight),top:gp(t.marginTop)}}function yp(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function vp(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function Ap(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Cp(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function bp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:bp(e.parentNode,t,r)}}function Sp(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function xp(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,s=t,o="px";if("string"==typeof t){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);y()(null!==a,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),s=parseFloat(t),o=a[1]}return y()(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",t),"%"===o&&(i=i*n/100,s=s*r/100),{x:i,y:s}}function wp(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];y()(2===i.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Jc(i,2),o=s[0],a=s[1];return[xp({height:t,lockOffset:o,width:n}),xp({height:t,lockOffset:a,width:n})]}function Dp(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:Dp(e.parentNode):null}function _p(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:gp(t.gridColumnGap),y:gp(t.gridRowGap)}:{x:0,y:0}}var Op="BUTTON",Fp="INPUT",Tp="OPTION",Bp="TEXTAREA",kp="SELECT";function Rp(e){var t,n="input, textarea, select, canvas, [contenteditable]",r=e.querySelectorAll(n),i=e.cloneNode(!0);return(t=i.querySelectorAll(n),function(e){if(Array.isArray(e))return Kc(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Xc(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).forEach((function(e,t){"file"!==e.type&&(e.value=r[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&r[t].width>0&&r[t].height>0&&e.getContext("2d").drawImage(r[t],0,0)})),i}function Ip(e){return null!=e.sortableHandle}var Np=function(){function e(t,n){Yc(this,e),this.container=t,this.onScrollCallback=n}return ep(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,i=e.maxTranslate,s=e.width,o=e.height,a={x:0,y:0},u={x:1,y:1},l=this.container,c=l.scrollTop,p=l.scrollLeft,h=l.scrollHeight,d=l.scrollWidth,f=0===c,m=h-c-l.clientHeight==0,g=0===p,E=d-p-l.clientWidth==0;n.y>=i.y-o/2&&!m?(a.y=1,u.y=10*Math.abs((i.y-o/2-n.y)/o)):n.x>=i.x-s/2&&!E?(a.x=1,u.x=10*Math.abs((i.x-s/2-n.x)/s)):n.y<=r.y+o/2&&!f?(a.y=-1,u.y=10*Math.abs((n.y-o/2-r.y)/o)):n.x<=r.x+s/2&&!g&&(a.x=-1,u.x=10*Math.abs((n.x-s/2-r.x)/s)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===a.x&&0===a.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:u.x*a.x,top:u.y*a.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}(),Pp={axis:o().oneOf(["x","y","xy"]),contentWindow:o().any,disableAutoscroll:o().bool,distance:o().number,getContainer:o().func,getHelperDimensions:o().func,helperClass:o().string,helperContainer:o().oneOfType([o().func,"undefined"==typeof HTMLElement?o().any:o().instanceOf(HTMLElement)]),hideSortableGhost:o().bool,keyboardSortingTransitionDuration:o().number,lockAxis:o().string,lockOffset:o().oneOfType([o().number,o().string,o().arrayOf(o().oneOfType([o().number,o().string]))]),lockToContainerEdges:o().bool,onSortEnd:o().func,onSortMove:o().func,onSortOver:o().func,onSortStart:o().func,pressDelay:o().number,pressThreshold:o().number,keyCodes:o().shape({lift:o().arrayOf(o().number),drop:o().arrayOf(o().number),cancel:o().arrayOf(o().number),up:o().arrayOf(o().number),down:o().arrayOf(o().number)}),shouldCancelStart:o().func,transitionDuration:o().number,updateBeforeSortStart:o().func,useDragHandle:o().bool,useWindowAsScrollContainer:o().bool},Mp={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},Lp={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Mp,shouldCancelStart:function(e){return-1!==[Fp,Bp,kp,Tp,Op].indexOf(e.target.tagName)||!!fp(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},jp=Object.keys(Pp);function Vp(e){y()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Up(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var zp=(0,r.createContext)({manager:{}}),qp={index:o().number.isRequired,collection:o().oneOfType([o().number,o().string]),disabled:o().bool},Wp=Object.keys(qp),Hp=n(6667),Gp={};Gp.styleTagTransform=we(),Gp.setAttributes=Ce(),Gp.insert=ve().bind(null,"head"),Gp.domAPI=Ee(),Gp.insertStyleElement=Se(),me()(Hp.Z,Gp);const $p=Hp.Z&&Hp.Z.locals?Hp.Z.locals:void 0;class Kp extends r.PureComponent{render(){return i().createElement("div",{className:$p["resize-handle"]})}}var Xp=n(9262),Jp={};Jp.styleTagTransform=we(),Jp.setAttributes=Ce(),Jp.insert=ve().bind(null,"head"),Jp.domAPI=Ee(),Jp.insertStyleElement=Se(),me()(Xp.Z,Jp);const Zp=Xp.Z&&Xp.Z.locals?Xp.Z.locals:void 0;class Yp extends r.PureComponent{static displayName="DeleteStageComponent";static propTypes={index:o().number.isRequired,runStage:o().func.isRequired,stageDeleted:o().func.isRequired,setIsModified:o().func.isRequired};onStageDeleted=()=>{this.props.stageDeleted(this.props.index),this.props.setIsModified(!0),this.props.runStage(this.props.index,!0)};render(){return i().createElement("div",{className:pe()(Zp["delete-stage"])},i().createElement("button",{"data-test-id":"delete-stage",type:"button",title:"Delete Stage",className:"btn btn-default btn-xs",onClick:this.onStageDeleted},i().createElement("i",{className:"fa fa-trash-o","aria-hidden":!0})))}}const Qp=Yp;var eh=n(2884),th={};th.styleTagTransform=we(),th.setAttributes=Ce(),th.insert=ve().bind(null,"head"),th.domAPI=Ee(),th.insertStyleElement=Se(),me()(eh.Z,th);const nh=eh.Z&&eh.Z.locals?eh.Z.locals:void 0;class rh extends r.PureComponent{static displayName="AddAfterStageComponent";static propTypes={index:o().number.isRequired,stageAddedAfter:o().func.isRequired};onStageAddedAfter=()=>{this.props.stageAddedAfter(this.props.index)};render(){return i().createElement("div",{className:pe()(nh["add-after-stage"]),"data-tip":"Add stage below","data-place":"top","data-for":"add-after-stage"},i().createElement("button",{"data-test-id":"add-after-stage",type:"button",title:"Add After Stage",className:"btn btn-default btn-xs",onClick:this.onStageAddedAfter},"+"),i().createElement(Li.Tooltip,{id:"add-after-stage"}))}}const ih=rh;var sh=n(2347),oh={};oh.styleTagTransform=we(),oh.setAttributes=Ce(),oh.insert=ve().bind(null,"head"),oh.domAPI=Ee(),oh.insertStyleElement=Se(),me()(sh.Z,oh);const ah=sh.Z&&sh.Z.locals?sh.Z.locals:void 0;class uh extends r.PureComponent{static displayName="ToggleStageComponent";static propTypes={isEnabled:o().bool.isRequired,index:o().number.isRequired,runStage:o().func.isRequired,stageToggled:o().func.isRequired,setIsModified:o().func.isRequired};onStageToggled=()=>{this.props.stageToggled(this.props.index),this.props.setIsModified(!0),this.props.runStage(this.props.index,!0)};render(){const e=this.props.isEnabled?"Exclude stage from pipeline":"Include stage in pipeline";return i().createElement("div",{className:ah["toggle-stage"],"data-for":"toggle-stage","data-tip":e,"data-place":"top"},i().createElement(he.Toggle,{id:"toggle-stage-button",checked:this.props.isEnabled,onChange:this.onStageToggled,className:ah["toggle-stage-button"],"aria-label":e,size:"small"}),i().createElement(Li.Tooltip,{id:"toggle-stage"}))}}const lh=uh;var ch=n(5884),ph={};ph.styleTagTransform=we(),ph.setAttributes=Ce(),ph.insert=ve().bind(null,"head"),ph.domAPI=Ee(),ph.insertStyleElement=Se(),me()(ch.Z,ph);const hh=ch.Z&&ch.Z.locals?ch.Z.locals:void 0;class dh extends r.PureComponent{static displayName="StageGrabberComponent";render(){return i().createElement("div",{className:hh["stage-grabber"]},i().createElement("i",{className:"fa fa-bars fa-rotate-90","aria-hidden":!0}))}}const fh=dh;var mh=n(1103),gh={};gh.styleTagTransform=we(),gh.setAttributes=Ce(),gh.insert=ve().bind(null,"head"),gh.domAPI=Ee(),gh.insertStyleElement=Se(),me()(mh.Z,gh);const Eh=mh.Z&&mh.Z.locals?mh.Z.locals:void 0;class yh extends r.PureComponent{static displayName="StageCollapserComponent";static propTypes={isExpanded:o().bool.isRequired,index:o().number.isRequired,stageCollapseToggled:o().func.isRequired,setIsModified:o().func.isRequired};onStageCollapseToggled=()=>{this.props.stageCollapseToggled(this.props.index),this.props.setIsModified(!0)};render(){const e=this.props.isExpanded?"fa fa-angle-down":"fa fa-angle-right",t=this.props.isExpanded?"Collapse":"Expand";return i().createElement("div",{className:pe()(Eh["stage-collapser"])},i().createElement("button",{type:"button",title:t,onClick:this.onStageCollapseToggled,className:"btn btn-default btn-xs"},i().createElement("i",{className:e,"aria-hidden":!0})))}}const vh=yh;var Ah=n(8726),Ch=function(e){var t=e.onMouseDown;return i().createElement("span",{className:"Select-arrow",onMouseDown:t})};Ch.propTypes={onMouseDown:o().func};var bh=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],Sh=function(e){for(var t=0;t<bh.length;t++)e=e.replace(bh[t].letters,bh[t].base);return e},xh=function(e){return null!=e&&""!==e},wh=function(e,t,n,r){return r.ignoreAccents&&(t=Sh(t)),r.ignoreCase&&(t=t.toLowerCase()),r.trimFilter&&(t=t.replace(/^\s+|\s+$/g,"")),n&&(n=n.map((function(e){return e[r.valueKey]}))),e.filter((function(e){if(n&&n.indexOf(e[r.valueKey])>-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var i=e[r.valueKey],s=e[r.labelKey],o=xh(i),a=xh(s);if(!o&&!a)return!1;var u=o?String(i):null,l=a?String(s):null;return r.ignoreAccents&&(u&&"label"!==r.matchProp&&(u=Sh(u)),l&&"value"!==r.matchProp&&(l=Sh(l))),r.ignoreCase&&(u&&"label"!==r.matchProp&&(u=u.toLowerCase()),l&&"value"!==r.matchProp&&(l=l.toLowerCase())),"start"===r.matchPos?u&&"label"!==r.matchProp&&u.substr(0,t.length)===t||l&&"value"!==r.matchProp&&l.substr(0,t.length)===t:u&&"label"!==r.matchProp&&u.indexOf(t)>=0||l&&"value"!==r.matchProp&&l.indexOf(t)>=0}))},Dh=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,s=e.instancePrefix,o=e.onFocus,a=e.onOptionRef,u=e.onSelect,l=e.optionClassName,c=e.optionComponent,p=e.optionGroupComponent,h=e.optionRenderer,d=e.options,f=e.removeValue,m=e.selectValue,g=e.valueArray,E=e.valueKey,y=p,v=c,A=h;return function e(c){return c.map((function(c,p){if(function(e){return e&&Array.isArray(e.options)}(c)){var h=pe()({"Select-option-group":!0});return i().createElement(y,{className:h,key:"option-group-"+p,label:A(c),option:c,optionIndex:p},e(c.options))}var d=g&&g.indexOf(c)>-1,C=c===t,b=pe()(l,{"Select-option":!0,"is-selected":d,"is-focused":C,"is-disabled":c.disabled});return i().createElement(v,{className:b,focusOption:n,inputValue:r,instancePrefix:s,isDisabled:c.disabled,isFocused:C,isSelected:d,key:"option-"+p+"-"+c[E],onFocus:o,onSelect:u,option:c,optionIndex:p,ref:function(e){a(e,C)},removeValue:f,selectValue:m},A(c,p))}))}(d)};Dh.propTypes={focusOption:o().func,focusedOption:o().object,inputValue:o().string,instancePrefix:o().string,onFocus:o().func,onOptionRef:o().func,onSelect:o().func,optionClassName:o().string,optionComponent:o().func,optionRenderer:o().func,options:o().array,removeValue:o().func,selectValue:o().func,valueArray:o().array,valueKey:o().string};var _h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oh=(function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var o=t[n](r),a=o.value;a instanceof e?Promise.resolve(a.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):s(o.done?"return":"normal",o.value)}catch(e){s("throw",e)}}function s(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(s,o){var a={key:e,arg:t,resolve:s,reject:o,next:null};r?r=r.next=a:(n=r=a,i(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),Fh=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Th=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Bh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kh=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Rh=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Ih=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Nh=function(e){function t(){return Oh(this,t),Ih(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return kh(t,e),Fh(t,[{key:"render",value:function(){return this.props.children}}]),t}(i().Component);Nh.propTypes={children:o().node};var Ph=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},Mh=function(e){function t(e){Oh(this,t);var n=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return kh(t,e),Fh(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,s=pe()(this.props.className,t.className);return t.disabled?i().createElement("div",{className:s,onMouseDown:Ph,onClick:Ph},this.props.children):i().createElement("div",{className:s,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(i().Component);Mh.propTypes={children:o().node,className:o().string,instancePrefix:o().string.isRequired,isDisabled:o().bool,isFocused:o().bool,isSelected:o().bool,onFocus:o().func,onSelect:o().func,onUnfocus:o().func,option:o().object.isRequired,optionIndex:o().number};var Lh=function(e){function t(e){Oh(this,t);var n=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return kh(t,e),Fh(t,[{key:"blockEvent",value:function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)}},{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation()}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(e){this.dragging=!0}},{key:"handleTouchStart",value:function(e){this.dragging=!1}},{key:"render",value:function(){var e=this.props.option,t=pe()(this.props.className,e.className);return e.disabled?i().createElement("div",{className:t,onMouseDown:this.blockEvent,onClick:this.blockEvent},this.props.children):i().createElement("div",{className:t,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,title:e.title},i().createElement("div",{className:"Select-option-group-label"},this.props.label),this.props.children)}}]),t}(i().Component);Lh.propTypes={children:o().any,className:o().string,label:o().node,option:o().object.isRequired};var jh=function(e){function t(e){Oh(this,t);var n=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return kh(t,e),Fh(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return i().createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){var e="Select-value-label";return this.props.onClick||this.props.value.href?i().createElement("a",{className:e,href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):i().createElement("span",{className:e,role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return i().createElement("div",{className:pe()("Select-value",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(i().Component);function Vh(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}jh.propTypes={children:o().node,disabled:o().bool,id:o().string,onClick:o().func,onRemove:o().func,value:o().object.isRequired};var Uh=function(e){return"string"==typeof e?e:null!==e&&JSON.stringify(e)||""},zh=o().oneOfType([o().string,o().node]),qh=(o().oneOfType([o().string,o().number]),1),Wh=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},Hh=function(e){function t(e){Oh(this,t);var n=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach((function(e){return n[e]=n[e].bind(n)})),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return kh(t,e),Fh(t,[{key:"componentWillMount",value:function(){this._flatOptions=this.flattenOptions(this.props.options),this._instancePrefix="react-select-"+(this.props.instanceId||++qh)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:Wh(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){void 0!==this.props.autofocus&&"undefined"!=typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&(this._flatOptions=this.flattenOptions(e.options));var t=this.getValueArray(e.value,e);!e.isOpen&&this.props.isOpen?this.closeMenu():e.isOpen&&!this.props.isOpen&&this.setState({isOpen:!0}),e.required?this.setState({required:Wh(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=(0,sp.findDOMNode)(this.focused),r=(0,sp.findDOMNode)(this.menu),i=r.scrollTop,s=i+r.offsetHeight,o=n.offsetTop,a=o+n.offsetHeight;(i>o||s<a)&&(r.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var u=(0,sp.findDOMNode)(this.focused),l=(0,sp.findDOMNode)(this.menu),c=u.getBoundingClientRect(),p=l.getBoundingClientRect();c.bottom>p.bottom?l.scrollTop=u.offsetTop+u.clientHeight-l.offsetHeight:c.top<p.top&&(l.scrollTop=u.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var h=this.menuContainer.getBoundingClientRect();window.innerHeight<h.bottom+this.props.menuBuffer&&window.scrollBy(0,h.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var d=this.state.isOpen?this.props.onOpen:this.props.onClose;d&&d()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){e?!document.addEventListener&&document.attachEvent?document.attachEvent("ontouchstart",this.handleTouchOutside):document.addEventListener("touchstart",this.handleTouchOutside):!document.removeEventListener&&document.detachEvent?document.detachEvent("ontouchstart",this.handleTouchOutside):document.removeEventListener("touchstart",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))if("INPUT"!==e.target.tagName){if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"==typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}else this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1}):(this._openAfterFocus=this.props.openOnClick,this.focus())}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(!this.menu||this.menu!==document.activeElement&&!this.menu.contains(document.activeElement)){this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}else this.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":_h(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==(void 0===t?"undefined":_h(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!(this.props.disabled||"function"==typeof this.props.onInputKeyDown&&(this.props.onInputKeyDown(e),e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:e.preventDefault(),!this.state.inputValue&&this.props.deleteRemoves&&this.popValue()}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r="object"===(void 0===n?"undefined":_h(n))?n:this.props;if(r.multi){if("string"==typeof e&&(e=e.split(r.delimiter)),!Array.isArray(e)){if(null==e)return[];e=[e]}return e.map((function(e){return t.expandValue(e,r)})).filter((function(e){return e}))}var i=this.expandValue(e,r);return i?[i]:[]}},{key:"expandValue",value:function(e,t){var n=void 0===e?"undefined":_h(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.labelKey,i=t.renderInvalidValues,s=t.valueKey,o=this._flatOptions;if(o){for(var a=0;a<o.length;a++)if(String(o[a][s])===String(e))return o[a];var u;if(i)return this._invalidOptions=this._invalidOptions||{},this._invalidOptions[e]=this._invalidOptions[e]||(Th(u={invalid:!0},r,e),Th(u,s,e),u),this._invalidOptions[e]}}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=Wh(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(n){return n[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter((function(e){return!e.disabled})),r=n.indexOf(e);this.setValue(t.concat(e)),n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1])}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,i=0;i<t.length;i++)if(this._focusedOption===t[i].option){r=i;break}if("next"===e&&-1!==r)r=(r+1)%t.length;else if("previous"===e)r>0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var s=r-this.props.pageSize;r=s<0?0:s}else if("page_down"===e){var o=r+this.props.pageSize;r=o>t.length-1?t.length-1:o}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return i().createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},i().createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,s=this.props.valueComponent;if(!e.length){var o=function(e,t,n){var r=e.inputValue,i=e.isPseudoFocused,s=e.isFocused,o=t.onSelectResetsInput;return!r||!o&&!n&&!i&&!s}(this.state,this.props,t);return o?i().createElement("div",{className:"Select-placeholder"},this.props.placeholder):null}var a,u,l,c,p,h,d=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(e,t){return i().createElement(s,{disabled:n.props.disabled||!1===e.clearableValue,id:n._instancePrefix+"-value-"+t,instancePrefix:n._instancePrefix,key:"value-"+t+"-"+e[n.props.valueKey],onClick:d,onRemove:n.removeValue,placeholder:n.props.placeholder,value:e},r(e,t),i().createElement("span",{className:"Select-aria-only"}," "))})):(a=this.state,u=this.props,l=a.inputValue,c=a.isPseudoFocused,p=a.isFocused,h=u.onSelectResetsInput,l&&(h||!p&&c||p&&!c)?void 0:(t&&(d=null),i().createElement(s,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:d,placeholder:this.props.placeholder,value:e[0]},r(e[0]))))}},{key:"renderInput",value:function(e,t){var n,r=this,s=pe()("Select-input",this.props.inputProps.className),o=this.state.isOpen,a=pe()((Th(n={},this._instancePrefix+"-list",o),Th(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=this.state.inputValue;!u||this.props.onSelectResetsInput||this.state.isFocused||(u="");var l=Bh({},this.props.inputProps,{"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+o,"aria-haspopup":""+o,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":a,className:s,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:u});if(this.props.inputRenderer)return this.props.inputRenderer(l);if(this.props.disabled||!this.props.searchable){var c=Rh(this.props.inputProps,[]),p=pe()(Th({},this._instancePrefix+"-list",o));return i().createElement("div",Bh({},c,{"aria-expanded":o,"aria-owns":p,"aria-activedescendant":o?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:s,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?i().createElement(Ah.Z,Bh({id:this.props.id},l,{minWidth:"5"})):i().createElement("div",{className:s,key:"input-wrap"},i().createElement("input",Bh({id:this.props.id},l)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return i().createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?i().createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterFlatOptions",value:function(e){var t=this.state.inputValue,n=this._flatOptions;return this.props.filterOptions?("function"==typeof this.props.filterOptions?this.props.filterOptions:wh)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey}):n}},{key:"flattenOptions",value:function(e,t){if(!e)return[];for(var n,r=[],i=0;i<e.length;i++){var s=Vh(e[i]);t&&(s.group=t),(n=s)&&Array.isArray(n.options)?(r=r.concat(this.flattenOptions(s.options,s)),s.options=[]):r.push(s)}return r}},{key:"unflattenOptions",value:function(e){var t=[],n=void 0,r=void 0;return e.forEach((function(e){for(e.isInTree=!1,n=e.group;n;)n.isInTree&&(n.options=[],n.isInTree=!1),n=n.group})),e.forEach((function(e){for(n=(r=e).group;n;)r.isInTree||(n.options.push(r),r.isInTree=!0),n=(r=n).group;r.isInTree||(t.push(r),r.isInTree=!0)})),e.forEach((function(e){delete e.isInTree})),t}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionGroupComponent:this.props.optionGroupComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?i().createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return Uh(e[t.props.valueKey])})).join(this.props.delimiter);return i().createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map((function(e,n){return i().createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:Uh(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var i=-1;if(t.some((function(e,t){var s=e[n]===r[n];return s&&(i=t),s})),-1!==i)return i}for(var s=0;s<t.length;s++)if(!t[s].disabled)return s;return null}},{key:"renderOuter",value:function(e,t,n){var r=this,s=this.props.dropdownComponent,o=this.renderMenu(e,t,n);return o?i().createElement(s,null,i().createElement("div",{ref:function(e){return r.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},i().createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return r.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},o))):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value);this._visibleOptions=this.filterFlatOptions(this.props.multi&&this.props.removeSelected?t:null);var n=this.unflattenOptions(this._visibleOptions),r="boolean"==typeof this.props.isOpen?this.props.isOpen:this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(r=!1);var s,o=this.getFocusableOptionIndex(t[0]);s=this._focusedOption=null!==o?this._visibleOptions[o]:null;var a=pe()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":r,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),u=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(u=i().createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),i().createElement("div",{ref:function(t){return e.wrapper=t},className:a,style:this.props.wrapperStyle},this.renderHiddenField(t),i().createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},i().createElement("span",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,r),this.renderInput(t,o)),u,this.renderLoading(),this.renderClear(),this.renderArrow()),r?this.renderOuter(n,t,s):null)}}]),t}(i().Component);Hh.propTypes={"aria-describedby":o().string,"aria-label":o().string,"aria-labelledby":o().string,arrowRenderer:o().func,autoBlur:o().bool,autoFocus:o().bool,autofocus:o().bool,autosize:o().bool,backspaceRemoves:o().bool,backspaceToRemoveMessage:o().string,className:o().string,clearAllText:zh,clearRenderer:o().func,clearValueText:zh,clearable:o().bool,closeOnSelect:o().bool,deleteRemoves:o().bool,delimiter:o().string,disabled:o().bool,dropdownComponent:o().func,escapeClearsValue:o().bool,filterOption:o().func,filterOptions:o().any,id:o().string,ignoreAccents:o().bool,ignoreCase:o().bool,inputProps:o().object,inputRenderer:o().func,instanceId:o().string,isLoading:o().bool,isOpen:o().bool,joinValues:o().bool,labelKey:o().string,matchPos:o().string,matchProp:o().string,menuBuffer:o().number,menuContainerStyle:o().object,menuRenderer:o().func,menuStyle:o().object,multi:o().bool,name:o().string,noResultsText:zh,onBlur:o().func,onBlurResetsInput:o().bool,onChange:o().func,onClose:o().func,onCloseResetsInput:o().bool,onFocus:o().func,onInputChange:o().func,onInputKeyDown:o().func,onMenuScrollToBottom:o().func,onOpen:o().func,onSelectResetsInput:o().bool,onValueClick:o().func,openOnClick:o().bool,openOnFocus:o().bool,optionClassName:o().string,optionComponent:o().func,optionGroupComponent:o().func,optionRenderer:o().func,options:o().array,pageSize:o().number,placeholder:zh,removeSelected:o().bool,renderInvalidValues:o().bool,required:o().bool,resetValue:o().any,rtl:o().bool,scrollMenuIntoView:o().bool,searchable:o().bool,simpleValue:o().bool,style:o().object,tabIndex:o().string,tabSelectsValue:o().bool,trimFilter:o().bool,value:o().any,valueComponent:o().func,valueKey:o().string,valueRenderer:o().func,wrapperStyle:o().object},Hh.defaultProps={arrowRenderer:Ch,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:function(){return i().createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})},clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,dropdownComponent:Nh,escapeClearsValue:!0,filterOptions:wh,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:Dh,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:Mh,optionGroupComponent:Lh,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:jh,valueKey:"value"};var Gh={autoload:o().bool.isRequired,cache:o().any,children:o().func.isRequired,ignoreAccents:o().bool,ignoreCase:o().bool,loadOptions:o().func.isRequired,loadingPlaceholder:o().oneOfType([o().string,o().node]),multi:o().bool,noResultsText:o().oneOfType([o().string,o().node]),onChange:o().func,onInputChange:o().func,options:o().array.isRequired,placeholder:o().oneOfType([o().string,o().node]),searchPromptText:o().oneOfType([o().string,o().node]),value:o().any},$h={},Kh={autoload:!0,cache:$h,children:function(e){return i().createElement(Hh,e)},ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},Xh=function(e){function t(e,n){Oh(this,t);var r=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._cache=e.cache===$h?{}:e.cache,r.state={inputValue:"",isLoading:!1,options:e.options},r.onInputChange=r.onInputChange.bind(r),r}return kh(t,e),Fh(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,r=this._cache;if(r&&Object.prototype.hasOwnProperty.call(r,e))return this._callback=null,void this.setState({isLoading:!1,options:r[e]});var i=function n(i,s){var o=s&&s.options||[];r&&(r[e]=o),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:o}))};this._callback=i;var s=n(e,i);s&&s.then((function(e){return i(0,e)}),(function(e){return i()})),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.ignoreCase,i=t.onInputChange,s=e;if(i){var o=i(s);null!=o&&"object"!==(void 0===o?"undefined":_h(o))&&(s=""+o)}var a=s;return n&&(a=Sh(a)),r&&(a=a.toLowerCase()),this.setState({inputValue:s}),this.loadOptions(a),s}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,r=e.searchPromptText,i=this.state,s=i.inputValue;return i.isLoading?t:s&&n?n:r}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.loadingPlaceholder,i=t.placeholder,s=this.state,o=s.isLoading,a=s.options,u={noResultsText:this.noResultsText(),placeholder:o?r:i,options:o&&r?[]:a,ref:function(t){return e.select=t}};return n(Bh({},this.props,u,{isLoading:o,onInputChange:this.onInputChange}))}}]),t}(r.Component);Xh.propTypes=Gh,Xh.defaultProps=Kh;var Jh=function(e){function t(e,n){Oh(this,t);var r=Ih(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.filterOptions=r.filterOptions.bind(r),r.menuRenderer=r.menuRenderer.bind(r),r.onInputKeyDown=r.onInputKeyDown.bind(r),r.onInputChange=r.onInputChange.bind(r),r.onOptionSelect=r.onOptionSelect.bind(r),r}return kh(t,e),Fh(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,i=e.options,s=void 0===i?[]:i;if(t({label:this.inputValue})){var o=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:o,options:s})&&(r?r(o):(s.unshift(o),this.select.selectValue(o)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,r=e.promptTextCreator,i=(arguments.length<=2?void 0:arguments[2])||[],s=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var o=this.props.newOptionCreator,a=o({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey}),u=this.isOptionUnique({option:a,options:i.concat(s)});if(u){var l=r(this.inputValue);this._createPlaceholderOption=o({label:l,labelKey:this.labelKey,valueKey:this.valueKey}),s.unshift(this._createPlaceholderOption)}}return s}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,r=this.props.isOptionUnique;return n=n||this.select.filterFlatOptions(),r({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(Bh({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,r=t.onInputKeyDown,i=this.select.getFocusedOption();i&&i===this._createPlaceholderOption&&n({keyCode:e.keyCode})?(this.createNewOption(),e.preventDefault()):r&&r(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,r=Rh(t,["ref"]),i=this.props.children;return i||(i=Zh),i(Bh({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(i().Component),Zh=function(e){return i().createElement(Hh,e)},Yh=function(e){var t=e.option,n=e.options,r=e.labelKey,i=e.valueKey;return!n||!n.length||0===n.filter((function(e){return e[r]===t[r]||e[i]===t[i]})).length},Qh=function(e){return!!e.label},ed=function(e){var t=e.label,n=e.labelKey,r={};return r[e.valueKey]=t,r[n]=t,r.className="Select-create-option-placeholder",r},td=function(e){return'Create option "'+e+'"'},nd=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};Jh.isOptionUnique=Yh,Jh.isValidNewOption=Qh,Jh.newOptionCreator=ed,Jh.promptTextCreator=td,Jh.shouldKeyDownEventCreateNewOption=nd,Jh.defaultProps={filterOptions:wh,isOptionUnique:Yh,isValidNewOption:Qh,menuRenderer:Dh,newOptionCreator:ed,promptTextCreator:td,shouldKeyDownEventCreateNewOption:nd},Jh.propTypes={children:o().func,filterOptions:o().any,isOptionUnique:o().func,isValidNewOption:o().func,menuRenderer:o().any,newOptionCreator:o().func,onInputChange:o().func,onInputKeyDown:o().func,onNewOptionClick:o().func,options:o().array,promptTextCreator:o().func,ref:o().func,shouldKeyDownEventCreateNewOption:o().func};var rd=function(e){function t(){return Oh(this,t),Ih(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return kh(t,e),Fh(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return i().createElement(Xh,this.props,(function(t){var n=t.ref,r=Rh(t,["ref"]),s=n;return i().createElement(Jh,r,(function(t){var n=t.ref,r=Rh(t,["ref"]),i=n;return e.props.children(Bh({},r,{ref:function(t){i(t),s(t),e.select=t}}))}))}))}}]),t}(i().Component);rd.propTypes={children:o().func.isRequired},rd.defaultProps={children:function(e){return i().createElement(Hh,e)}},Hh.Async=Xh,Hh.AsyncCreatable=rd,Hh.Creatable=Jh,Hh.Value=jh,Hh.Option=Mh;const id=Hh;var sd=n(173),od={};od.styleTagTransform=we(),od.setAttributes=Ce(),od.insert=ve().bind(null,"head"),od.domAPI=Ee(),od.insertStyleElement=Se(),me()(sd.Z,od);const ad=sd.Z&&sd.Z.locals?sd.Z.locals:void 0;class ud extends r.Component{static propTypes={option:o().object.isRequired,className:o().string,children:o().node};render(){const{option:e}=this.props;return i().createElement("div",{"data-tip":e.description,"data-place":"right","data-for":`select-option-${e.name}`},i().createElement(Mh,d({},this.props,{className:ad.option+" "+this.props.className}),this.props.children,rn(e.env)&&i().createElement(he.AtlasLogoMark,{size:12,className:ad.optionIcon})),i().createElement(Li.Tooltip,{className:ad.tooltip,id:`select-option-${e.name}`}))}}const ld=ud;var cd=n(6125),pd={};pd.styleTagTransform=we(),pd.setAttributes=Ce(),pd.insert=ve().bind(null,"head"),pd.domAPI=Ee(),pd.insertStyleElement=Se(),me()(cd.Z,pd);const hd=cd.Z&&cd.Z.locals?cd.Z.locals:void 0;class dd extends r.PureComponent{static displayName="StageOperatorSelectComponent";static propTypes={env:o().string.isRequired,isTimeSeries:o().bool.isRequired,isReadonly:o().bool.isRequired,sourceName:o().string,stageOperator:o().string,index:o().number.isRequired,isEnabled:o().bool.isRequired,isCommenting:o().bool.isRequired,stageOperatorSelected:o().func.isRequired,serverVersion:o().string.isRequired,setIsModified:o().func.isRequired};onStageOperatorSelected=e=>{this.props.stageOperatorSelected(this.props.index,e,this.props.isCommenting,this.props.env),this.props.setIsModified(!0)};render(){const e=(e=>{let{serverVersion:t,env:n,isTimeSeries:r,sourceName:i}=e;const s=r?It.TIME_SERIES:i?It.VIEW:It.COLLECTION;return It.STAGE_OPERATORS.filter(sn).filter((e=>function(e,t){const n=nn().coerce(t);return nn().gte(n,e?.version)}(e,t))).filter((e=>function(e,t){return e?.namespaces?.includes(t)}(e,s))).filter((e=>rn(e.env)||function(e,t){return e?.env?.includes(t)}(e,n))).map((e=>({...e})))})({serverVersion:this.props.serverVersion,env:this.props.env,isTimeSeries:this.props.isTimeSeries,isReadonly:this.props.isReadonly,sourceName:this.props.sourceName});return i().createElement("div",{className:hd["stage-operator-select"]},i().createElement(id,{optionComponent:ld,simpleValue:!0,searchable:!0,openOnClick:!0,openOnFocus:!0,clearable:!1,disabled:!this.props.isEnabled,className:hd["stage-operator-select-control"],options:e,value:this.props.stageOperator,onChange:this.onStageOperatorSelected}))}}const fd=dd;var md=n(2891),gd={};gd.styleTagTransform=we(),gd.setAttributes=Ce(),gd.insert=ve().bind(null,"head"),gd.domAPI=Ee(),gd.insertStyleElement=Se(),me()(md.Z,gd);const Ed=md.Z&&md.Z.locals?md.Z.locals:void 0,yd={$out:"The $out operator will cause the pipeline to persist the results to the specified location (collection, S3, or Atlas). If the collection exists it will be replaced.",$merge:"The $merge operator will cause the pipeline to persist the results to the specified location."},vd=Object.keys(yd);function Ad(e){let{stageOperator:t}=e;return vd.includes(t)?i().createElement(he.Tooltip,{trigger:e=>{let{children:t,...n}=e;return i().createElement("span",d({},n,{className:Ed["tooltip-icon"]}),t,i().createElement(he.Icon,{glyph:"InfoWithCircle"}))}},i().createElement(he.Body,null,yd[t])):null}Ad.propTypes={stageOperator:o().string.isRequired};class Cd extends r.PureComponent{static displayName="StageEditorToolbar";static propTypes={env:o().string.isRequired,isTimeSeries:o().bool.isRequired,isReadonly:o().bool.isRequired,sourceName:o().string,error:o().string,isExpanded:o().bool.isRequired,isEnabled:o().bool.isRequired,stageOperator:o().string,index:o().number.isRequired,serverVersion:o().string.isRequired,stageOperatorSelected:o().func.isRequired,stageCollapseToggled:o().func.isRequired,stageToggled:o().func.isRequired,stageAddedAfter:o().func.isRequired,stageDeleted:o().func.isRequired,setIsModified:o().func.isRequired,isCommenting:o().bool.isRequired,runStage:o().func.isRequired,isAutoPreviewing:o().bool};render(){return i().createElement("div",{className:pe()(Ed["stage-editor-toolbar"],{[Ed["stage-editor-toolbar-errored"]]:this.props.error})},i().createElement(fh,null),i().createElement(vh,{isExpanded:this.props.isExpanded,index:this.props.index,setIsModified:this.props.setIsModified,stageCollapseToggled:this.props.stageCollapseToggled}),i().createElement(fd,{env:this.props.env,isTimeSeries:this.props.isTimeSeries,isReadonly:this.props.isReadonly,sourceName:this.props.sourceName,stageOperator:this.props.stageOperator,index:this.props.index,isEnabled:this.props.isEnabled,isCommenting:this.props.isCommenting,stageOperatorSelected:this.props.stageOperatorSelected,setIsModified:this.props.setIsModified,serverVersion:this.props.serverVersion}),i().createElement(lh,{index:this.props.index,isEnabled:this.props.isEnabled,runStage:this.props.runStage,setIsModified:this.props.setIsModified,stageToggled:this.props.stageToggled}),i().createElement("div",{className:Ed["stage-editor-toolbar-right"]},!this.props.isAutoPreviewing&&i().createElement(Ad,{stageOperator:this.props.stageOperator}),i().createElement(Qp,{index:this.props.index,runStage:this.props.runStage,setIsModified:this.props.setIsModified,stageDeleted:this.props.stageDeleted}),i().createElement(ih,{index:this.props.index,stageAddedAfter:this.props.stageAddedAfter})))}}const bd=Cd;var Sd=n(8915),xd={};xd.styleTagTransform=we(),xd.setAttributes=Ce(),xd.insert=ve().bind(null,"head"),xd.domAPI=Ee(),xd.insertStyleElement=Se(),me()(Sd.Z,xd);const wd=Sd.Z&&Sd.Z.locals?Sd.Z.locals:void 0;class Dd extends r.Component{static displayName="StageEditorComponent";static propTypes={stage:o().string,stageOperator:o().string,error:o().string,syntaxError:o().string,runStage:o().func.isRequired,index:o().number.isRequired,serverVersion:o().string.isRequired,fields:o().array.isRequired,stageChanged:o().func.isRequired,isValid:o().bool.isRequired,setIsModified:o().func.isRequired,projections:o().array.isRequired,projectionsChanged:o().func.isRequired,newPipelineFromPaste:o().func.isRequired};static defaultProps={fields:[],projections:[]};constructor(e){super(e),this.completer=new It.StageAutoCompleter(this.props.serverVersion,he.EditorTextCompleter,this.getFieldsAndProjections(),this.props.stageOperator)}shouldComponentUpdate(e){return e.stageOperator!==this.props.stageOperator||e.error!==this.props.error||e.syntaxError!==this.props.syntaxError||e.index!==this.props.index||e.serverVersion!==this.props.serverVersion||e.fields.length!==this.props.fields.length||e.projections.length!==this.props.projections.length||e.isValid!==this.props.isValid}componentDidUpdate(e){this.completer.update(this.getFieldsAndProjections(),this.props.stageOperator),this.completer.version=this.props.serverVersion,this.props.stageOperator!==e.stageOperator&&this.editor&&this.editor.focus()}onStageChange=e=>{if(null===this.props.stageOperator&&e&&"["===e.charAt(0))return this.props.newPipelineFromPaste(e),void this.props.runStage(0);this.props.stageChanged(e,this.props.index)};getFieldsAndProjections(){const{fields:e,projections:t,index:n}=this.props,r=t.filter((e=>e.index<n));return[].concat.call([],e,r)}renderError(){if(this.props.error)return i().createElement("div",{"data-test-id":"stage-editor-error-message",className:wd["stage-editor-errormsg"],title:this.props.error},this.props.error)}renderSyntaxError(){if(!this.props.isValid&&this.props.syntaxError)return i().createElement("div",{className:wd["stage-editor-syntax-error"],title:this.props.syntaxError},this.props.syntaxError)}render(){return i().createElement("div",{className:wd["stage-editor-container"]},i().createElement("div",{className:wd["stage-editor"]},i().createElement(he.Editor,{text:this.props.stage,onChangeText:this.onStageChange,variant:he.EditorVariant.Shell,className:wd["stage-editor-ace-editor"],name:`aggregations-stage-editor-${this.props.index}`,options:{minLines:5},completer:this.completer,showPrintMargin:!1,onLoad:e=>{this.editor=e}})),this.renderSyntaxError(),this.renderError())}}const _d=Dd;var Od=n(7130),Fd={};Fd.styleTagTransform=we(),Fd.setAttributes=Ce(),Fd.insert=ve().bind(null,"head"),Fd.domAPI=Ee(),Fd.insertStyleElement=Se(),me()(Od.Z,Fd);const Td=Od.Z&&Od.Z.locals?Od.Z.locals:void 0;class Bd extends r.PureComponent{static displayName="LoadingOverlay";static propTypes={text:o().string.isRequired};render(){return i().createElement("div",{className:Td["loading-overlay"]},i().createElement("div",{className:Td["loading-overlay-box"]},i().createElement("i",{className:"fa fa-circle-o-notch fa-spin","aria-hidden":!0}),i().createElement("div",{className:Td["loading-overlay-box-text"]},this.props.text)))}}const kd=Bd;var Rd=n(9877),Id={};Id.styleTagTransform=we(),Id.setAttributes=Ce(),Id.insert=ve().bind(null,"head"),Id.domAPI=Ee(),Id.insertStyleElement=Se(),me()(Rd.Z,Id);const Nd=Rd.Z&&Rd.Z.locals?Rd.Z.locals:void 0,{track:Pd}=He("COMPASS-AGGREGATIONS-UI");class Md extends r.Component{static displayName="StagePreview";static propTypes={runOutStage:o().func.isRequired,gotoOutResults:o().func.isRequired,gotoMergeResults:o().func.isRequired,documents:o().array.isRequired,error:o().string,isValid:o().bool.isRequired,isEnabled:o().bool.isRequired,isLoading:o().bool.isRequired,isComplete:o().bool.isRequired,isMissingAtlasOnlyStageSupport:o().bool,openLink:o().func.isRequired,index:o().number.isRequired,stageOperator:o().string,stage:o().string};onGotoMergeResults=()=>{this.props.gotoMergeResults(this.props.index)};onGotoOutResults=()=>{const e=Lt()(this.props.stage).replace(/['"]+/g,"");this.props.gotoOutResults(e)};onSaveDocuments=()=>{this.props.runOutStage(this.props.index)};onAtlasSignupCtaClicked=()=>{Pd("Atlas Link Clicked",{screen:"agg_builder"}),this.props.openLink("https://www.mongodb.com/cloud/atlas/lp/search-1?utm_campaign=atlas_search&utm_source=compass&utm_medium=product&utm_content=v1")};renderMergeSection(){return this.props.isComplete?this.props.error?i().createElement("div",{className:Nd["stage-preview-out"]}):i().createElement("div",{className:Nd["stage-preview-out"]},i().createElement("div",{className:Nd["stage-preview-out-text"]},"Documents persisted to collection specified by $merge."),i().createElement(he.Link,{"data-test-id":"go-to-merge-collection",as:"button",className:Nd["stage-preview-out-link"],onClick:this.onGotoMergeResults},"Go to collection.")):i().createElement("div",{className:Nd["stage-preview-out"]},i().createElement("div",{className:Nd["stage-preview-out-text"]},"The $merge operator will cause the pipeline to persist the results to the specified location."))}renderOutSection(){return this.props.isComplete?this.props.error?i().createElement("div",{className:Nd["stage-preview-out"]}):i().createElement(he.Body,{className:Nd["stage-preview-out"]},i().createElement("div",{className:Nd["stage-preview-out-text"]},"Documents persisted to collection: ",Lt()(this.props.stage),"."),i().createElement(he.Link,{"data-test-id":"go-to-out-collection",as:"button",className:Nd["stage-preview-out-link"],onClick:this.onGotoOutResults},"Go to collection.")):i().createElement(he.Body,{className:Nd["stage-preview-out"]},i().createElement("div",{className:Nd["stage-preview-out-text"]},"The $out operator will cause the pipeline to persist the results to the specified location (collection, S3, or Atlas). If the collection exists it will be replaced."))}renderAtlasOnlyStagePreviewSection(){return i().createElement("div",{className:Nd["stage-preview-missing-search-support"]},i().createElement(he.AtlasLogoMark,{size:30,className:Nd["stage-preview-missing-search-support-icon"]}),i().createElement("div",{"data-test-id":"stage-preview-missing-search-support",className:Nd["stage-preview-missing-search-support-text"]},"This stage is only available with MongoDB Atlas. Create a free cluster or connect to an Atlas cluster to build search indexes and use ",this.props.stageOperator," aggregation stage to run fast, relevant search queries."),i().createElement(de.TextButton,{text:"Create Free Cluster",className:"btn btn-xs btn-primary",clickHandler:this.onAtlasSignupCtaClicked}))}renderPreview(){if(this.props.isMissingAtlasOnlyStageSupport)return this.renderAtlasOnlyStagePreviewSection();if(this.props.isValid&&this.props.isEnabled){if(this.props.stageOperator===kn)return this.renderOutSection();if(this.props.stageOperator===Rn)return this.renderMergeSection();if(this.props.documents.length>0){const e=this.props.documents.map(((e,t)=>i().createElement("div",{key:t,className:Nd["stage-preview-document-card-container"]},i().createElement("div",{className:Nd["stage-preview-document-card"]},i().createElement(gl.Document,{doc:e,editable:!1})))));return i().createElement("div",{className:Nd["stage-preview-documents"]},e)}}return this.props.isLoading?void 0:i().createElement("div",{className:Nd["stage-preview-empty"]},i().createElement("div",null,i().createElement("svg",{width:"44",height:"60",viewBox:"0 0 44 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"M21.9297 38.2988C23.4783 35.1247 27.7679 30.0989 32.5375 35.3879"}),i().createElement("path",{d:"M1 10.7831V51.3133L9.61538 59M1 10.7831L35.4615 1L43 5.19277M1 10.7831L10.1538 15.6747M9.61538 59L43 45.7229C39.9487 34.0763 38 22.5957 43 5.19277M9.61538 59C5.5 34.9362 7.46154 20.3333 10.1538 15.6747M43 5.19277L10.1538 15.6747"}),i().createElement("path",{d:"M19.7174 26.7113C19.7734 27.324 19.6719 27.8684 19.4884 28.2491C19.2999 28.6402 19.0726 28.7786 18.9038 28.7941C18.7349 28.8095 18.4862 28.7146 18.2299 28.3642C17.9804 28.0232 17.7818 27.5063 17.7257 26.8935C17.6696 26.2808 17.7711 25.7364 17.9546 25.3557C18.1432 24.9646 18.3704 24.8262 18.5393 24.8107C18.7082 24.7953 18.9568 24.8902 19.2132 25.2406C19.4627 25.5816 19.6613 26.0985 19.7174 26.7113Z",fill:"#89979B"}),i().createElement("path",{d:"M32.481 23.5351C32.5371 24.1479 32.4356 24.6923 32.2521 25.0729C32.0636 25.464 31.8363 25.6025 31.6674 25.6179C31.4985 25.6334 31.2499 25.5385 30.9935 25.1881C30.744 24.847 30.5454 24.3301 30.4894 23.7174C30.4333 23.1046 30.5348 22.5602 30.7183 22.1796C30.9068 21.7885 31.1341 21.65 31.303 21.6346C31.4719 21.6191 31.7205 21.714 31.9769 22.0644C32.2264 22.4055 32.425 22.9224 32.481 23.5351Z",fill:"#89979B"}))),i().createElement("div",null,i().createElement("i",{"data-test-id":"stage-preview-empty"},"No Preview Documents")))}renderLoading(){if(this.props.isLoading)return this.props.stageOperator===kn?i().createElement(kd,{text:"Persisting Documents..."}):i().createElement(kd,{text:"Loading Preview Documents..."})}render(){return i().createElement("div",{className:Nd["stage-preview"]},this.renderLoading(),this.renderPreview())}}const Ld=Md;var jd=n(462),Vd={};Vd.styleTagTransform=we(),Vd.setAttributes=Ce(),Vd.insert=ve().bind(null,"head"),Vd.domAPI=Ee(),Vd.insertStyleElement=Se(),me()(jd.Z,Vd);const Ud=jd.Z&&jd.Z.locals?jd.Z.locals:void 0,zd=/s3:/,qd=/atlas:/;class Wd extends r.PureComponent{static displayName="StagePreviewToolbar";static propTypes={error:o().string,isEnabled:o().bool.isRequired,isValid:o().bool.isRequired,stageOperator:o().string,stageValue:o().any,count:o().number.isRequired,openLink:o().func.isRequired};getWord(){return 1===this.props.count?"document":"documents"}getOutText(){try{const e=Lt()(this.props.stageValue);return e.match(zd)?"Documents will be saved to S3.":e.match(qd)?"Documents will be saved to Atlas cluster.":`Documents will be saved to the collection: ${e}`}catch(e){return"Unable to parse the destination for the out stage."}}getText(){if(this.props.isEnabled){if(this.props.stageOperator){if(this.props.stageOperator===kn&&this.props.isValid)return this.getOutText();const e=st[this.props.stageOperator];let t=null;return t=e?i().createElement(he.Link,{as:"button",className:Ud["stage-preview-toolbar-link"],onClick:this.props.openLink.bind(this,e.link)},this.props.stageOperator):i().createElement("span",{className:Ud["stage-preview-toolbar-link-invalid"]},this.props.stageOperator),i().createElement("div",null,i().createElement("span",null,"Output after ",t," stage"),this.renderInfoSprinkle(e),i().createElement("span",{"data-test-id":"stage-preview-toolbar-tooltip"},"(Sample of ",this.props.count," ",this.getWord(),")"))}return"A sample of the aggregated results from this stage will be shown below"}return"Stage is disabled. Results not passed in the pipeline."}renderInfoSprinkle(e){if(this.props.stageOperator)return e?i().createElement("span",{"data-tip":e.tooltip,"data-for":"stage-tooltip","data-place":"top","data-html":"true"},i().createElement(Li.InfoSprinkle,{onClickHandler:this.props.openLink,helpLink:e.link}),i().createElement(Li.Tooltip,{id:"stage-tooltip"})):i().createElement("span",null," ")}render(){return i().createElement("div",{className:pe()(Ud["stage-preview-toolbar"],{[Ud["stage-preview-toolbar-errored"]]:this.props.error})},this.getText())}}const Hd=Wd;var Gd=n(7295),$d={};$d.styleTagTransform=we(),$d.setAttributes=Ce(),$d.insert=ve().bind(null,"head"),$d.domAPI=Ee(),$d.insertStyleElement=Se(),me()(Gd.Z,$d);const Kd=Gd.Z&&Gd.Z.locals?Gd.Z.locals:void 0,Xd=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Yc(this,n);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return T(h(h(t=np(this,(e=rp(n)).call.apply(e,[this].concat(s))))),"wrappedInstance",(0,r.createRef)()),t}return ip(n,t),ep(n,[{key:"componentDidMount",value:function(){(0,sp.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,r.createElement)(e,d({ref:t},this.props))}}]),n}(r.Component),T(t,"displayName",yp("sortableHandle",e)),n}((e=>i().createElement(bd,e))),Jd={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class Zd extends r.Component{static displayName="StageComponent";static propTypes={env:o().string.isRequired,isTimeSeries:o().bool.isRequired,isReadonly:o().bool.isRequired,sourceName:o().string,stage:o().string.isRequired,stageOperator:o().string,error:o().string,syntaxError:o().string,isValid:o().bool.isRequired,isEnabled:o().bool.isRequired,isExpanded:o().bool.isRequired,isLoading:o().bool.isRequired,isComplete:o().bool.isRequired,isMissingAtlasOnlyStageSupport:o().bool,previewDocuments:o().array.isRequired,index:o().number.isRequired,isCommenting:o().bool.isRequired,isAutoPreviewing:o().bool.isRequired,runStage:o().func.isRequired,runOutStage:o().func.isRequired,gotoOutResults:o().func.isRequired,gotoMergeResults:o().func.isRequired,serverVersion:o().string.isRequired,stageChanged:o().func.isRequired,stageCollapseToggled:o().func.isRequired,stageAddedAfter:o().func.isRequired,stageDeleted:o().func.isRequired,stageMoved:o().func.isRequired,stageOperatorSelected:o().func.isRequired,stageToggled:o().func.isRequired,openLink:o().func.isRequired,fields:o().array.isRequired,setIsModified:o().func.isRequired,projections:o().array.isRequired,projectionsChanged:o().func.isRequired,newPipelineFromPaste:o().func.isRequired};shouldComponentUpdate(e){return e.stageOperator!==this.props.stageOperator||e.error!==this.props.error||e.syntaxError!==this.props.syntaxError||e.isValid!==this.props.isValid||e.isEnabled!==this.props.isEnabled||e.isExpanded!==this.props.isExpanded||e.isLoading!==this.props.isLoading||e.isComplete!==this.props.isComplete||e.isMissingAtlasOnlyStageSupport!==this.props.isMissingAtlasOnlyStageSupport||e.index!==this.props.index||e.isCommenting!==this.props.isCommenting||e.isAutoPreviewing!==this.props.isAutoPreviewing||e.serverVersion!==this.props.serverVersion||e.fields.length!==this.props.fields.length||e.projections.length!==this.props.projections.length||"$out"===this.props.stageOperator&&e.stage!==this.props.stage}getOpacity(){return this.props.isEnabled?1:.6}renderEditor(){return i().createElement(i().Fragment,null,i().createElement(Xd,{env:this.props.env,isTimeSeries:this.props.isTimeSeries,isReadonly:this.props.isReadonly,sourceName:this.props.sourceName,isExpanded:this.props.isExpanded,isEnabled:this.props.isEnabled,stageOperator:this.props.stageOperator,index:this.props.index,stageOperatorSelected:this.props.stageOperatorSelected,stageCollapseToggled:this.props.stageCollapseToggled,stageToggled:this.props.stageToggled,runStage:this.props.runStage,isCommenting:this.props.isCommenting,stageAddedAfter:this.props.stageAddedAfter,stageDeleted:this.props.stageDeleted,setIsModified:this.props.setIsModified,serverVersion:this.props.serverVersion,isAutoPreviewing:this.props.isAutoPreviewing}),this.props.isExpanded&&i().createElement(_d,{stage:this.props.stage,stageOperator:this.props.stageOperator,error:this.props.error,syntaxError:this.props.syntaxError,isValid:this.props.isValid,runStage:this.props.runStage,index:this.props.index,serverVersion:this.props.serverVersion,setIsModified:this.props.setIsModified,isAutoPreviewing:this.props.isAutoPreviewing,fields:this.props.fields,stageChanged:this.props.stageChanged,projections:this.props.projections,projectionsChanged:this.props.projectionsChanged,newPipelineFromPaste:this.props.newPipelineFromPaste}))}renderResizableEditor(){const{isAutoPreviewing:e}=this.props,t=this.renderEditor();return e?i().createElement($c,{className:Kd["stage-editor"],defaultSize:{width:"388px",height:"auto"},minWidth:"260px",maxWidth:"92%",enable:Jd,ref:e=>{this.resizableRef=e},handleWrapperClass:Kd["stage-resize-handle-wrapper"],handleComponent:{right:i().createElement(Kp,null)}},t):i().createElement("div",{className:Kd["stage-editor-no-preview"]},t)}renderPreview(){return i().createElement("div",{className:Kd["stage-preview-container"]},i().createElement(Hd,{isEnabled:this.props.isEnabled,isValid:this.props.isValid,stageOperator:this.props.stageOperator,stageValue:this.props.stage,count:this.props.previewDocuments.length,openLink:this.props.openLink}),this.props.isExpanded&&i().createElement(Ld,{documents:this.props.previewDocuments,isValid:this.props.isValid,isEnabled:this.props.isEnabled,isLoading:this.props.isLoading,isComplete:this.props.isComplete,isMissingAtlasOnlyStageSupport:this.props.isMissingAtlasOnlyStageSupport,error:this.props.error,stageOperator:this.props.stageOperator,stage:this.props.stage,index:this.props.index,runOutStage:this.props.runOutStage,gotoOutResults:this.props.gotoOutResults,gotoMergeResults:this.props.gotoMergeResults,openLink:this.props.openLink}))}render(){const e=this.getOpacity();return i().createElement("div",{"data-test-id":"stage-container","data-stage-index":this.props.index,className:pe()(Kd["stage-container"],{[Kd["stage-container-is-first"]]:0===this.props.index})},i().createElement("div",{className:pe()(Kd.stage,{[Kd["stage-errored"]]:this.props.error}),style:{opacity:e}},this.renderResizableEditor(),this.props.isAutoPreviewing&&this.renderPreview()))}}const Yd=Zd;var Qd=n(1849),ef={};ef.styleTagTransform=we(),ef.setAttributes=Ce(),ef.insert=ve().bind(null,"head"),ef.domAPI=Ee(),ef.insertStyleElement=Se(),me()(Qd.Z,ef);const tf=Qd.Z&&Qd.Z.locals?Qd.Z.locals:void 0;class nf extends r.PureComponent{static displayName="InputCollapserComponent";static propTypes={isExpanded:o().bool.isRequired,toggleInputDocumentsCollapsed:o().func.isRequired};render(){const e=this.props.isExpanded?"fa fa-angle-down":"fa fa-angle-right",t=this.props.isExpanded?"Collapse":"Expand";return i().createElement("div",{className:pe()(tf["input-collapser"])},i().createElement("button",{type:"button",title:t,onClick:this.props.toggleInputDocumentsCollapsed,className:"btn btn-default btn-xs"},i().createElement("i",{className:e,"aria-hidden":!0})))}}const rf=nf;var sf=n(9865),of={};of.styleTagTransform=we(),of.setAttributes=Ce(),of.insert=ve().bind(null,"head"),of.domAPI=Ee(),of.insertStyleElement=Se(),me()(sf.Z,of);const af=sf.Z&&sf.Z.locals?sf.Z.locals:void 0;class uf extends r.PureComponent{static displayName="InputDocumentsCountComponent";static propTypes={count:o().oneOfType([o().number,o().string]).isRequired};render(){const e=pe()({fa:!0,"fa-database":!0,[af["input-documents-count-db"]]:!0});return i().createElement("div",{className:pe()(af["input-documents-count"])},i().createElement("i",{className:e,"aria-hidden":!0}),i().createElement("div",{className:pe()(af["input-documents-count-label"])},this.props.count," Documents in the Collection"))}}const lf=uf;var cf=n(8910),pf={};pf.styleTagTransform=we(),pf.setAttributes=Ce(),pf.insert=ve().bind(null,"head"),pf.domAPI=Ee(),pf.insertStyleElement=Se(),me()(cf.Z,pf);const hf=cf.Z&&cf.Z.locals?cf.Z.locals:void 0;class df extends r.PureComponent{static displayName="InputRefreshComponent";static propTypes={refreshInputDocuments:o().func.isRequired};render(){return i().createElement("div",{className:hf["input-refresh"]},i().createElement("button",{type:"button",title:"Refresh Documents",onClick:this.props.refreshInputDocuments,className:"btn btn-default btn-xs"},i().createElement("i",{className:"fa fa-repeat","aria-hidden":!0})))}}const ff=df;var mf=n(8608),gf={};gf.styleTagTransform=we(),gf.setAttributes=Ce(),gf.insert=ve().bind(null,"head"),gf.domAPI=Ee(),gf.insertStyleElement=Se(),me()(mf.Z,gf);const Ef=mf.Z&&mf.Z.locals?mf.Z.locals:void 0;class yf extends r.PureComponent{static displayName="InputBuilderToolbar";static propTypes={toggleInputDocumentsCollapsed:o().func.isRequired,refreshInputDocuments:o().func.isRequired,isExpanded:o().bool.isRequired,count:o().oneOfType([o().number,o().string]).isRequired};render(){return i().createElement("div",{className:pe()(Ef["input-builder-toolbar"])},i().createElement(rf,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,isExpanded:this.props.isExpanded}),i().createElement(lf,{count:this.props.count}),i().createElement(ff,{refreshInputDocuments:this.props.refreshInputDocuments}))}}const vf=yf;var Af=n(4145),Cf={};Cf.styleTagTransform=we(),Cf.setAttributes=Ce(),Cf.insert=ve().bind(null,"head"),Cf.domAPI=Ee(),Cf.insertStyleElement=Se(),me()(Af.Z,Cf);const bf=Af.Z&&Af.Z.locals?Af.Z.locals:void 0,Sf=()=>i().createElement("div",{className:pe()(bf["input-preview-toolbar"])},i().createElement("div",{className:pe()(bf["input-preview-toolbar-text"])},"Preview of Documents in the Collection"));Sf.displayName="InputPreviewToolbar";const xf=Sf;var wf=n(6102),Df={};Df.styleTagTransform=we(),Df.setAttributes=Ce(),Df.insert=ve().bind(null,"head"),Df.domAPI=Ee(),Df.insertStyleElement=Se(),me()(wf.Z,Df);const _f=wf.Z&&wf.Z.locals?wf.Z.locals:void 0;class Of extends r.PureComponent{static displayName="InputToolbarComponent";static propTypes={toggleInputDocumentsCollapsed:o().func.isRequired,refreshInputDocuments:o().func.isRequired,isExpanded:o().bool.isRequired,count:o().oneOfType([o().number,o().string]).isRequired};render(){return i().createElement("div",{className:_f["input-toolbar"]},i().createElement(vf,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,isExpanded:this.props.isExpanded,count:this.props.count}),i().createElement(xf,null))}}const Ff=Of;var Tf=n(8056),Bf={};Bf.styleTagTransform=we(),Bf.setAttributes=Ce(),Bf.insert=ve().bind(null,"head"),Bf.domAPI=Ee(),Bf.insertStyleElement=Se(),me()(Tf.Z,Bf);const kf=Tf.Z&&Tf.Z.locals?Tf.Z.locals:void 0;class Rf extends r.PureComponent{static displayName="InputBuilderComponent";render(){return i().createElement("div",{className:kf["input-builder"]},"Select an operator to construct expressions used in the aggregation pipeline stages. ",i().createElement(he.Link,{href:"https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/"},"Learn more"))}}const If=Rf;var Nf=n(969),Pf={};Pf.styleTagTransform=we(),Pf.setAttributes=Ce(),Pf.insert=ve().bind(null,"head"),Pf.domAPI=Ee(),Pf.insertStyleElement=Se(),me()(Nf.Z,Pf);const Mf=Nf.Z&&Nf.Z.locals?Nf.Z.locals:void 0;class Lf extends r.Component{static displayName="InputPreview";static propTypes={documents:o().array.isRequired,isLoading:o().bool.isRequired};render(){const e=(this.props.documents||[]).map(((e,t)=>i().createElement("div",{key:t,className:Mf["input-preview-document-card-container"]},i().createElement("div",{className:Mf["input-preview-document-card"]},i().createElement(gl.Document,{doc:e,editable:!1})))));return i().createElement("div",{className:Mf["input-preview"]},this.props.isLoading?i().createElement(kd,{text:"Sampling Documents..."}):null,i().createElement("div",{className:Mf["input-preview-documents"]},e))}}const jf=Lf;var Vf=n(3279),Uf={};Uf.styleTagTransform=we(),Uf.setAttributes=Ce(),Uf.insert=ve().bind(null,"head"),Uf.domAPI=Ee(),Uf.insertStyleElement=Se(),me()(Vf.Z,Uf);const zf=Vf.Z&&Vf.Z.locals?Vf.Z.locals:void 0,qf={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1};class Wf extends r.PureComponent{static displayName="InputWorkspace";static propTypes={documents:o().array.isRequired,isLoading:o().bool.isRequired};render(){return i().createElement("div",{className:zf["input-workspace"]},i().createElement($c,{defaultSize:{width:"388px",height:"auto"},minWidth:"220px",maxWidth:"92%",enable:qf,ref:e=>{this.resizableRef=e},handleWrapperClass:zf["stage-resize-handle-wrapper"],handleComponent:{right:i().createElement(Kp,null)}},i().createElement(If,null)),i().createElement(jf,{documents:this.props.documents,isLoading:this.props.isLoading}))}}const Hf=Wf;var Gf=n(6546),$f={};$f.styleTagTransform=we(),$f.setAttributes=Ce(),$f.insert=ve().bind(null,"head"),$f.domAPI=Ee(),$f.insertStyleElement=Se(),me()(Gf.Z,$f);const Kf=Gf.Z&&Gf.Z.locals?Gf.Z.locals:void 0;class Xf extends r.PureComponent{static displayName="InputComponent";static propTypes={toggleInputDocumentsCollapsed:o().func.isRequired,refreshInputDocuments:o().func.isRequired,documents:o().array.isRequired,isLoading:o().bool.isRequired,isExpanded:o().bool.isRequired,count:o().oneOfType([o().number,o().string]).isRequired};render(){const e=this.props.isExpanded?i().createElement(Hf,{documents:this.props.documents,isLoading:this.props.isLoading}):null;return i().createElement("div",{className:Kf.input},i().createElement(Ff,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,isExpanded:this.props.isExpanded,count:this.props.count}),e)}}const Jf=Xf;var Zf=n(9867),Yf={};Yf.styleTagTransform=we(),Yf.setAttributes=Ce(),Yf.insert=ve().bind(null,"head"),Yf.domAPI=Ee(),Yf.insertStyleElement=Se(),me()(Zf.Z,Yf);const Qf=Zf.Z&&Zf.Z.locals?Zf.Z.locals:void 0;class em extends r.PureComponent{static displayName="AddStageComponent";static propTypes={stageAdded:o().func.isRequired};render(){return i().createElement("div",{className:Qf["add-stage-container"]},i().createElement("div",{className:Qf["add-stage"]},i().createElement(de.TextButton,{dataTestId:"add-stage",text:"Add Stage",className:"btn btn-xs btn-default",clickHandler:this.props.stageAdded})))}}const tm=em;var nm=n(1266),rm={};rm.styleTagTransform=we(),rm.setAttributes=Ce(),rm.insert=ve().bind(null,"head"),rm.domAPI=Ee(),rm.insertStyleElement=Se(),me()(nm.Z,rm);const im=nm.Z&&nm.Z.locals?nm.Z.locals:void 0,sm=e=>i().createElement(he.Badge,{className:im["modify-source-banner"],variant:he.BadgeVariant.Blue},'Modifying pipeline backing "',e.editViewName,'"');sm.propTypes={editViewName:o().string.isRequired};const om=sm;var am=n(310),um={};um.styleTagTransform=we(),um.setAttributes=Ce(),um.insert=ve().bind(null,"head"),um.domAPI=Ee(),um.insertStyleElement=Se(),me()(am.Z,um);const lm=am.Z&&am.Z.locals?am.Z.locals:void 0,cm=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Yc(this,n);for(var i=arguments.length,s=new Array(i),o=0;o<i;o++)s[o]=arguments[o];return T(h(h(t=np(this,(e=rp(n)).call.apply(e,[this].concat(s))))),"wrappedInstance",(0,r.createRef)()),t}return ip(n,t),ep(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,i=(0,sp.findDOMNode)(this);i.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=i,this.ref={node:i},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,r.createElement)(e,d({ref:t},up(this.props,Wp)))}}]),n}(r.Component),T(t,"displayName",yp("sortableElement",e)),T(t,"contextType",zp),T(t,"propTypes",qp),T(t,"defaultProps",{collection:0}),n}((e=>{let{idx:t,...n}=e;return i().createElement(Yd,d({index:t},n))})),pm=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;Yc(this,n),T(h(h(t=np(this,rp(n).call(this,e)))),"state",{}),T(h(h(t)),"handleStart",(function(e){var n=t.props,r=n.distance,i=n.shouldCancelStart;if(2!==e.button&&!i(e)){t.touched=!0,t.position=Ap(e);var s=fp(e.target,(function(e){return null!=e.sortableInfo}));if(s&&s.sortableInfo&&t.nodeIsChild(s)&&!t.state.sorting){var o=t.props.useDragHandle,a=s.sortableInfo,u=a.index,l=a.collection;if(a.disabled)return;if(o&&!fp(e.target,Ip))return;t.manager.active={collection:l,index:u},Cp(e)||"A"!==e.target.tagName||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),T(h(h(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),T(h(h(t)),"handleMove",(function(e){var n=t.props,r=n.distance,i=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var s=Ap(e),o={x:t.position.x-s.x,y:t.position.y-s.y},a=Math.abs(o.x)+Math.abs(o.y);t.delta=o,r||i&&!(a>=i)?r&&a>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),T(h(h(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),T(h(h(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),T(h(h(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n=h.sortableInfo.index,r=Ep(h),i=_p(t.container),l=t.scrollContainer.getBoundingClientRect(),m=o({index:n,node:h,collection:d});if(t.node=h,t.margin=r,t.gridGap=i,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=h.getBoundingClientRect(),t.containerBoundingRect=l,t.index=n,t.newIndex=n,t.axis={x:s.indexOf("x")>=0,y:s.indexOf("y")>=0},t.offsetEdge=bp(h,t.container),t.initialOffset=Ap(f?Zc({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(Rp(h)),pp(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-r.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-r.top,"px"),width:"".concat(t.width,"px")}),f&&t.helper.focus(),u&&(t.sortableGhost=h,pp(h,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},f){var g=p?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,E=g.top,y=g.left,v=g.width,A=E+g.height,C=y+v;t.axis.x&&(t.minTranslate.x=y-t.boundingClientRect.left,t.maxTranslate.x=C-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=E-t.boundingClientRect.top,t.maxTranslate.y=A-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(p?0:l.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(p?t.contentWindow.innerWidth:l.left+l.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(p?0:l.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(p?t.contentWindow.innerHeight:l.top+l.height)-t.boundingClientRect.top-t.height/2);a&&a.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?e.target:t.contentWindow,f?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(lp.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),lp.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:n}),c&&c({node:h,index:n,collection:d,isKeySorting:f,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),f&&t.keyMove(0)},i=t.props,s=i.axis,o=i.getHelperDimensions,a=i.helperClass,u=i.hideSortableGhost,l=i.updateBeforeSortStart,c=i.onSortStart,p=i.useWindowAsScrollContainer,h=n.node,d=n.collection,f=t.manager.isKeySorting,m=function(){if("function"==typeof l){t._awaitingUpdateBeforeSortStart=!0;var n=Up((function(){var t=h.sortableInfo.index;return Promise.resolve(l({collection:d,index:t,node:h,isKeySorting:f},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return m&&m.then?m.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),T(h(h(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),T(h(h(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,i=n.onSortEnd,s=t.manager,o=s.active.collection,a=s.isKeySorting,u=t.manager.getOrderedRefs();t.listenerNode&&(a?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(lp.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),lp.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&pp(t.sortableGhost,{opacity:"",visibility:""});for(var l=0,c=u.length;l<c;l++){var p=u[l],h=p.node;p.edgeOffset=null,p.boundingClientRect=null,hp(h,null),dp(h,null),p.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof i&&i({collection:o,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:a,nodes:u},e),t.touched=!1})),T(h(h(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=Zc({},t.translate),i=0,s=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),i=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),s=t.translate.y-r.y),t.translate=r,hp(t.helper,t.translate),t.scrollContainer.scrollLeft+=i,void(t.scrollContainer.scrollTop+=s)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),T(h(h(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),T(h(h(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,i=r.shouldCancelStart,s=r.keyCodes,o=Zc({},Mp,void 0===s?{}:s);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||o.lift.includes(n)&&!i(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),o.lift.includes(n)&&!t.manager.active?t.keyLift(e):o.drop.includes(n)&&t.manager.active?t.keyDrop(e):o.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):o.up.includes(n)?t.keyMove(-1):o.down.includes(n)&&t.keyMove(1))})),T(h(h(t)),"keyLift",(function(e){var n=e.target,r=fp(n,(function(e){return null!=e.sortableInfo})).sortableInfo,i=r.index,s=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:i,collection:s},t.handlePress(e)})),T(h(h(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,i=t.newIndex+e,s=t.newIndex;if(!(i<0||i>r)){t.prevIndex=s,t.newIndex=i;var o=Sp(t.newIndex,t.prevIndex,t.index),a=n.find((function(e){return e.node.sortableInfo.index===o})),u=a.node,l=t.containerScrollDelta,c=a.boundingClientRect||vp(u,l),p=a.translate||{x:0,y:0},h=c.top+p.y-l.top,d=c.left+p.x-l.left,f=s<i,m=f&&t.axis.x?u.offsetWidth-t.width:0,g=f&&t.axis.y?u.offsetHeight-t.height:0;t.handleSortMove({pageX:d+m,pageY:h+g,ignoreTransition:0===e})}})),T(h(h(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),T(h(h(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),T(h(h(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,i=fp(r,(function(e){return null!=e.sortableInfo}));return i&&i.sortableInfo&&!i.sortableInfo.disabled&&(n?Ip(r):r.sortableInfo)}));var i=new op;return Vp(e),t.manager=i,t.wrappedInstance=(0,r.createRef)(),t.sortableContextValue={manager:i},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return ip(n,t),ep(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:Dp(e.container)||e.container,e.autoScroller=new Np(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return lp[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return lp[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,i=t.lockToContainerEdges,s=t.transitionDuration,o=t.keyboardSortingTransitionDuration,a=void 0===o?s:o,u=this.manager.isKeySorting,l=e.ignoreTransition,c=Ap(e),p={x:c.x-this.initialOffset.x,y:c.y-this.initialOffset.y};if(p.y-=window.pageYOffset-this.initialWindowScroll.top,p.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=p,i){var h=Jc(wp({height:this.height,lockOffset:r,width:this.width}),2),d=h[0],f=h[1],m={x:this.width/2-d.x,y:this.height/2-d.y},g={x:this.width/2-f.x,y:this.height/2-f.y};p.x=mp(this.minTranslate.x+m.x,this.maxTranslate.x-g.x,p.x),p.y=mp(this.minTranslate.y+m.y,this.maxTranslate.y-g.y,p.y)}"x"===n?p.y=0:"y"===n&&(p.x=0),u&&a&&!l&&dp(this.helper,a),hp(this.helper,p)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,i=this.containerScrollDelta,s=this.windowScrollDelta,o=this.manager.getOrderedRefs(),a=this.offsetEdge.left+this.translate.x+i.left,u=this.offsetEdge.top+this.translate.y+i.top,l=this.manager.isKeySorting,c=this.newIndex;this.newIndex=null;for(var p=0,h=o.length;p<h;p++){var d=o[p].node,f=d.sortableInfo.index,m=d.offsetWidth,g=d.offsetHeight,E={height:this.height>g?g/2:this.height/2,width:this.width>m?m/2:this.width/2},y=l&&f>this.index&&f<=c,v=l&&f<this.index&&f>=c,A={x:0,y:0},C=o[p].edgeOffset;C||(C=bp(d,this.container),o[p].edgeOffset=C,l&&(o[p].boundingClientRect=vp(d,i)));var b=p<o.length-1&&o[p+1],S=p>0&&o[p-1];b&&!b.edgeOffset&&(b.edgeOffset=bp(b.node,this.container),l&&(b.boundingClientRect=vp(b.node,i))),f!==this.index?(t&&dp(d,t),this.axis.x?this.axis.y?v||f<this.index&&(a+s.left-E.width<=C.left&&u+s.top<=C.top+E.height||u+s.top+E.height<=C.top)?(A.x=this.width+this.marginOffset.x,C.left+A.x>this.containerBoundingRect.width-E.width&&b&&(A.x=b.edgeOffset.left-C.left,A.y=b.edgeOffset.top-C.top),null===this.newIndex&&(this.newIndex=f)):(y||f>this.index&&(a+s.left+E.width>=C.left&&u+s.top+E.height>=C.top||u+s.top+E.height>=C.top+g))&&(A.x=-(this.width+this.marginOffset.x),C.left+A.x<this.containerBoundingRect.left+E.width&&S&&(A.x=S.edgeOffset.left-C.left,A.y=S.edgeOffset.top-C.top),this.newIndex=f):y||f>this.index&&a+s.left+E.width>=C.left?(A.x=-(this.width+this.marginOffset.x),this.newIndex=f):(v||f<this.index&&a+s.left<=C.left+E.width)&&(A.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=f)):this.axis.y&&(y||f>this.index&&u+s.top+E.height>=C.top?(A.y=-(this.height+this.marginOffset.y),this.newIndex=f):(v||f<this.index&&u+s.top<=C.top+E.height)&&(A.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=f))),hp(d,A),o[p].translate=A):n&&(this.sortableGhost=d,pp(d,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),l&&(this.newIndex=c);var x=l?this.prevIndex:c;r&&this.newIndex!==x&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:x,isKeySorting:l,nodes:o,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return y()(i.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,sp.findDOMNode)(this):e(i.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=i.withRef?this.wrappedInstance:null;return(0,r.createElement)(zp.Provider,{value:this.sortableContextValue},(0,r.createElement)(e,d({ref:t},up(this.props,jp))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(r.Component),T(t,"displayName",yp("sortableList",e)),T(t,"defaultProps",Lp),T(t,"propTypes",Pp),n}((e=>{let{children:t}=e;return i().createElement("div",null,t)}));class hm extends r.PureComponent{static displayName="PipelineWorkspace";static propTypes={editViewName:o().string,env:o().string.isRequired,isTimeSeries:o().bool.isRequired,isReadonly:o().bool.isRequired,sourceName:o().string,pipeline:o().array.isRequired,toggleInputDocumentsCollapsed:o().func.isRequired,refreshInputDocuments:o().func.isRequired,stageAdded:o().func.isRequired,setIsModified:o().func.isRequired,openLink:o().func.isRequired,isCommenting:o().bool.isRequired,isAutoPreviewing:o().bool.isRequired,inputDocuments:o().object.isRequired,runStage:o().func.isRequired,runOutStage:o().func.isRequired,gotoOutResults:o().func.isRequired,gotoMergeResults:o().func.isRequired,serverVersion:o().string.isRequired,stageChanged:o().func.isRequired,stageCollapseToggled:o().func.isRequired,stageAddedAfter:o().func.isRequired,stageDeleted:o().func.isRequired,stageMoved:o().func.isRequired,stageOperatorSelected:o().func.isRequired,stageToggled:o().func.isRequired,fields:o().array.isRequired,isOverviewOn:o().bool.isRequired,projections:o().array.isRequired,projectionsChanged:o().func.isRequired,newPipelineFromPaste:o().func.isRequired};onStageMoved=e=>{let{oldIndex:t,newIndex:n}=e;t!==n&&(this.props.stageMoved(t,n),this.props.runStage(0,!0))};renderModifyingViewSourceBanner(){if(this.props.editViewName)return i().createElement(om,{editViewName:this.props.editViewName})}renderStage=(e,t)=>i().createElement(cm,{key:e.id,idx:t,index:t,env:this.props.env,isTimeSeries:this.props.isTimeSeries,isReadonly:this.props.isReadonly,sourceName:this.props.sourceName,stage:e.stage,stageOperator:e.stageOperator,error:e.error,syntaxError:e.syntaxError,isValid:e.isValid,isEnabled:e.isEnabled,isLoading:e.isLoading,isComplete:e.isComplete,isMissingAtlasOnlyStageSupport:e.isMissingAtlasOnlyStageSupport,isExpanded:e.isExpanded,isCommenting:this.props.isCommenting,isAutoPreviewing:this.props.isAutoPreviewing,previewDocuments:e.previewDocuments,runStage:this.props.runStage,openLink:this.props.openLink,runOutStage:this.props.runOutStage,gotoOutResults:this.props.gotoOutResults,gotoMergeResults:this.props.gotoMergeResults,serverVersion:this.props.serverVersion,stageChanged:this.props.stageChanged,stageCollapseToggled:this.props.stageCollapseToggled,stageAddedAfter:this.props.stageAddedAfter,stageDeleted:this.props.stageDeleted,stageMoved:this.props.stageMoved,stageOperatorSelected:this.props.stageOperatorSelected,stageToggled:this.props.stageToggled,fields:this.props.fields,setIsModified:this.props.setIsModified,isOverviewOn:this.props.isOverviewOn,projections:this.props.projections,projectionsChanged:this.props.projectionsChanged,newPipelineFromPaste:this.props.newPipelineFromPaste});renderStageList=()=>i().createElement(pm,{axis:"y",lockAxis:"y",onSortEnd:this.onStageMoved,useDragHandle:!0,transitionDuration:0,helperContainer:()=>this.stageListContainerRef??document.body,helperClass:"dragging",distance:10},this.props.pipeline.map(((e,t)=>this.renderStage(e,t))));render(){const e=this.props.inputDocuments;return i().createElement("div",{"data-testid":"pipeline-builder-workspace",className:lm["pipeline-workspace-container-container"],ref:e=>{this.stageListContainerRef=e}},i().createElement("div",{className:lm["pipeline-workspace-container"]},i().createElement("div",{className:lm["pipeline-workspace"]},this.renderModifyingViewSourceBanner(),i().createElement(Jf,{toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,documents:e.documents,isLoading:e.isLoading,isExpanded:e.isExpanded,openLink:this.props.openLink,count:e.count,isOverviewOn:this.props.isOverviewOn}),this.renderStageList(),i().createElement(tm,{stageAdded:this.props.stageAdded,setIsModified:this.props.setIsModified}))))}}const dm=hm,fm=(0,he.css)({ol:{padding:0},marginLeft:he.spacing[3]+he.spacing[1],marginRight:he.spacing[4]+he.spacing[1]}),mm=e=>{let{documents:t,view:n}=e;const s=(0,r.useMemo)((()=>({docs:t.map((e=>new Ql(e))),isEditable:!1,copyToClipboard(e){const t=e.toEJSON();navigator.clipboard.writeText(t)}})),[t]);if(0===t.length)return null;const o="document"===n?gl.DocumentListView:gl.DocumentJsonView;return i().createElement("div",{className:fm},i().createElement(o,s))},gm=(0,he.css)({display:"flex",gap:he.spacing[3],justifyContent:"center",alignItems:"center",flexDirection:"column"}),Em=(0,he.css)({color:he.uiColors.green.dark2,fontWeight:"normal"}),ym=(0,he.css)({fontWeight:"normal"}),vm=()=>i().createElement("div",{className:gm,"data-testid":"pipeline-empty-results"},i().createElement("svg",{className:"document-list-zero-state-graphic",xmlns:"http://www.w3.org/2000/svg",width:"38",height:"48",viewBox:"0 0 38 48"},i().createElement("g",{fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",transform:"translate(1 1)"},i().createElement("polyline",{stroke:"#116149",points:"30 .002 30 6.002 36 6.002"}),i().createElement("polyline",{stroke:"#116149",points:"30 26.002 30 32.002 36 32.002"}),i().createElement("line",{y1:".002",y2:"2.002",stroke:"#116149"}),i().createElement("line",{y1:"12.002",y2:"14.002",stroke:"#116149"}),i().createElement("polyline",{stroke:"#116149",points:"0 6.002 0 8.002 2 8.002"}),i().createElement("line",{y1:"18.002",y2:"20.002",stroke:"#116149"}),i().createElement("line",{y1:"24.002",y2:"26.002",stroke:"#116149"}),i().createElement("line",{y1:"30.002",y2:"32.002",stroke:"#116149"}),i().createElement("polyline",{stroke:"#116149",points:"0 36.002 0 38.002 2 38.002"}),i().createElement("line",{x1:"6",x2:"8",y1:"8.002",y2:"8.002",stroke:"#116149"}),i().createElement("line",{x1:"12",x2:"14",y1:"8.002",y2:"8.002",stroke:"#116149"}),i().createElement("line",{x1:"18",x2:"20",y1:"8.002",y2:"8.002",stroke:"#116149"}),i().createElement("line",{x1:"6",x2:"8",y1:"38.002",y2:"38.002",stroke:"#116149"}),i().createElement("line",{x1:"12",x2:"14",y1:"38.002",y2:"38.002",stroke:"#116149"}),i().createElement("line",{x1:"18",x2:"20",y1:"38.002",y2:"38.002",stroke:"#116149"}),i().createElement("polygon",{stroke:"#16CC62",points:"36 20.002 20 20.002 20 .002 30 .002 36 6.002"}),i().createElement("polygon",{stroke:"#16CC62",points:"36 46.002 20 46.002 20 26.002 30 26.002 36 32.002"}))),i().createElement(he.H2,{className:Em},"No results"),i().createElement(he.Subtitle,{className:ym},"Try to modify your pipeline to get results")),Am=(0,he.css)({backgroundColor:"transparent",border:"none",display:"inline",height:he.spacing[4]+he.spacing[1],":focus":{outline:`${he.spacing[1]}px auto ${he.uiColors.focus}`}}),Cm={onCount:()=>async(e,t)=>{const{pipeline:n,namespace:r,maxTimeMS:i,dataService:{dataService:s},collationString:{value:o}}=t();if(s)try{const t=new AbortController,a=t.signal;e({type:Er.CountStarted,abortController:t});const u=on(n),l={maxTimeMS:i??rt,collation:o??void 0},[{count:c}]=await ur({dataService:s,signal:a,namespace:r,pipeline:[...u,{$count:"count"}],options:l});e({type:Er.CountFinished,count:Number(c)})}catch(t){e({type:Er.CountFailed})}}},bm=Y((e=>{let{countDocuments:{loading:t,count:n}}=e;return{loading:t,count:n}}),Cm)((e=>{let{loading:t,count:n,onCount:r}=e;const s="pipeline-pagination-count";return t?i().createElement("div",{"data-testid":s},i().createElement(he.SpinLoader,null)):void 0!==n?i().createElement("div",{"data-testid":s},i().createElement(he.Body,null,"of ",n)):i().createElement("div",{"data-testid":s},i().createElement(he.Tooltip,{trigger:e=>{let{children:t,...n}=e;return i().createElement(he.Link,d({},n,{"aria-label":"count results",as:"button","data-testid":"pipeline-pagination-count-action",hideExternalIcon:!0,className:Am,onClick:()=>r()}),t,"count results")}},i().createElement(he.Body,null,"\n In order to have the final count of documents we need to run the\n aggregation again. This will be the equivalent of adding a\n $count as the last stage of the pipeline.\n ")))})),Sm=(0,he.css)({display:"flex",alignItems:"center",gap:he.spacing[2]}),xm=(0,he.css)({display:"flex",gap:he.spacing[1],alignItems:"center"}),wm=Y((e=>{let{aggregation:{documents:t,isLast:n,page:r,limit:i,loading:s,error:o},countDocuments:{count:a}}=e;const u=(e=>{let{limit:t,page:n}=e;return(n-1)*t+1})({limit:i,page:r}),l=(e=>{let{limit:t,page:n,documentCount:r}=e;return(n-1)*t+(r||t)})({limit:i,page:r,documentCount:t.length});return{showingFrom:u,showingTo:l,isCountDisabled:Boolean(o),isPrevDisabled:r<=1||s||Boolean(o),isNextDisabled:n||s||Boolean(o)||a===l}}),{onPrev:()=>async(e,t)=>{const{aggregation:{page:n}}=t();if(!(n<=1))return e(gr(n-1))},onNext:()=>async(e,t)=>{const{aggregation:{isLast:n,page:r}}=t();if(!n)return e(gr(r+1))}})((e=>{let{showingFrom:t,showingTo:n,isCountDisabled:r,isPrevDisabled:s,isNextDisabled:o,onPrev:a,onNext:u}=e;return i().createElement("div",{className:Sm,"data-testid":"pipeline-pagination"},!r&&i().createElement("div",{className:xm},i().createElement(he.Body,{"data-testid":"pipeline-pagination-desc"},"Showing ",t," – ",n),i().createElement(bm,null)),i().createElement("div",null,i().createElement(he.IconButton,{"data-testid":"pipeline-pagination-prev-action","aria-label":"Previous page",disabled:s,onClick:()=>a()},i().createElement(he.Icon,{glyph:"ChevronLeft"})),i().createElement(he.IconButton,{"data-testid":"pipeline-pagination-next-action","aria-label":"Next page",disabled:o,onClick:()=>u()},i().createElement(he.Icon,{glyph:"ChevronRight"}))))}));function Dm(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var _m={};Dm(_m,"SSRProvider",(()=>Tm)),Dm(_m,"useSSRSafeId",(()=>km)),Dm(_m,"useIsSSR",(()=>Rm));const Om={prefix:String(Math.round(1e10*Math.random())),current:0},Fm=i().createContext(Om);function Tm(e){let t=(0,r.useContext)(Fm),n=(0,r.useMemo)((()=>({prefix:t===Om?"":`${t.prefix}-${++t.current}`,current:0})),[t]);return i().createElement(Fm.Provider,{value:n},e.children)}let Bm=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement);function km(e){let t=(0,r.useContext)(Fm);return t!==Om||Bm||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),(0,r.useMemo)((()=>e||`react-aria${t.prefix}-${++t.current}`),[e])}function Rm(){let e=(0,r.useContext)(Fm)!==Om,[t,n]=(0,r.useState)(e);return"undefined"!=typeof window&&e&&(0,r.useLayoutEffect)((()=>{n(!1)}),[]),t}function Im(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Im(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Nm(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Im(e))&&(r&&(r+=" "),r+=t);return r}function Pm(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function Mm(e,t,n){let[i,s]=(0,r.useState)(e||t),o=(0,r.useRef)(void 0!==e),a=o.current,u=void 0!==e,l=(0,r.useRef)(i);a!==u&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),o.current=u;let c=(0,r.useCallback)(((e,...t)=>{let r=(e,...t)=>{n&&(Object.is(l.current,e)||n(e,...t)),u||(l.current=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),s(((n,...i)=>{let s=e(u?l.current:n,...i);return r(s,...t),u?n:s}))):(u||s(e),r(e,...t))}),[u,n]);return u?l.current=e:e=i,[e,c]}Pm({},"useControlledState",(()=>Mm));var Lm={};function jm(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Vm(e,t,n,r){let i=(e-(isNaN(t)?0:t))%r,s=2*Math.abs(i)>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i;isNaN(t)?!isNaN(n)&&s>n&&(s=Math.floor(n/r)*r):s<t?s=t:!isNaN(n)&&s>n&&(s=t+Math.floor((n-t)/r)*r);let o=r.toString(),a=o.indexOf("."),u=a>=0?o.length-a:0;if(u>0){let e=Math.pow(10,u);s=Math.round(s*e)/e}return s}function Um(e,t,n=10){const r=Math.pow(n,t);return Math.round(e*r)/r}function zm(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}Pm(Lm,"clamp",(()=>jm)),Pm(Lm,"snapValueToStep",(()=>Vm)),Pm(Lm,"toFixedNumber",(()=>Um));var qm={};zm(qm,"useId",(()=>Gm)),zm(qm,"mergeIds",(()=>$m)),zm(qm,"useSlotId",(()=>Km)),zm({},"useLayoutEffect",(()=>Wm));const Wm="undefined"!=typeof window?i().useLayoutEffect:()=>{};let Hm=new Map;function Gm(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(null),s=km(t),o=(0,r.useCallback)((e=>{i.current=e}),[]);return Hm.set(s,o),Wm((()=>{let e=s;return()=>{Hm.delete(e)}}),[s]),(0,r.useEffect)((()=>{let e=i.current;e&&(i.current=null,n(e))})),s}function $m(e,t){if(e===t)return e;let n=Hm.get(e);if(n)return n(t),t;let r=Hm.get(t);return r?(r(e),e):t}function Km(e=[]){let t=Gm(),[n,i]=Lg(t),s=(0,r.useCallback)((()=>{i((function*(){yield t,yield document.getElementById(t)?t:null}))}),[t,i]);return Wm(s,[t,s,...e]),n}function Xm(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function Jm(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let e in r){let n=t[e],i=r[e];"function"==typeof n&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&e.charCodeAt(2)<=90?t[e]=Xm(n,i):"className"!==e&&"UNSAFE_className"!==e||"string"!=typeof n||"string"!=typeof i?"id"===e&&n&&i?t.id=$m(n,i):t[e]=void 0!==i?i:n:t[e]=Nm(n,i)}}return t}function Zm(...e){return t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}zm({},"chain",(()=>Xm)),zm({},"mergeProps",(()=>Jm)),zm({},"mergeRefs",(()=>Zm)),zm({},"filterDOMProps",(()=>tg));const Ym=new Set(["id"]),Qm=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),eg=/^(data-.*)$/;function tg(e,t={}){let{labelable:n,propNames:r}=t,i={};for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(Ym.has(t)||n&&Qm.has(t)||(null==r?void 0:r.has(t))||eg.test(t))&&(i[t]=e[t]);return i}function ng(e){if(function(){if(null==rg){rg=!1;try{document.createElement("div").focus({get preventScroll(){return rg=!0,!0}})}catch(e){}}return rg}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}zm({},"focusWithoutScrolling",(()=>ng));let rg=null;function ig(e,t,n="horizontal"){let r=e.getBoundingClientRect();return t?"horizontal"===n?r.right:r.bottom:"horizontal"===n?r.left:r.top}zm({},"getOffset",(()=>ig));var sg={};zm(sg,"clamp",(()=>jm)),zm(sg,"snapValueToStep",(()=>Vm)),zm({},"runAfterTransition",(()=>lg));let og=new Map,ag=new Set;function ug(){if("undefined"==typeof window)return;let e=t=>{let n=og.get(t.target);if(n&&(n.delete(t.propertyName),0===n.size&&(t.target.removeEventListener("transitioncancel",e),og.delete(t.target)),0===og.size)){for(let e of ag)e();ag.clear()}};document.body.addEventListener("transitionrun",(t=>{let n=og.get(t.target);n||(n=new Set,og.set(t.target,n),t.target.addEventListener("transitioncancel",e)),n.add(t.propertyName)})),document.body.addEventListener("transitionend",e)}function lg(e){requestAnimationFrame((()=>{0===og.size?e():ag.add(e)}))}"undefined"!=typeof document&&("loading"!==document.readyState?ug():document.addEventListener("DOMContentLoaded",ug)),zm({},"useDrag1D",(()=>pg));const cg=[];function pg(e){console.warn("useDrag1D is deprecated, please use `useMove` instead https://react-spectrum.adobe.com/react-aria/useMove.html");let{containerRef:t,reverse:n,orientation:i,onHover:s,onDrag:o,onPositionChange:a,onIncrement:u,onDecrement:l,onIncrementToMax:c,onDecrementToMin:p,onCollapseToggle:h}=e,d=e=>{let r=ig(t.current,n,i),s=(e=>"horizontal"===i?e.clientX:e.clientY)(e);return n?r-s:s-r},f=(0,r.useRef)(!1),m=(0,r.useRef)(0),g=(0,r.useRef)({onPositionChange:a,onDrag:o});g.current.onDrag=o,g.current.onPositionChange=a;let E=e=>{e.preventDefault();let t=d(e);f.current||(f.current=!0,g.current.onDrag&&g.current.onDrag(!0),g.current.onPositionChange&&g.current.onPositionChange(t)),m.current!==t&&(m.current=t,a&&a(t))},y=e=>{const t=e.target;f.current=!1;let n=d(e);g.current.onDrag&&g.current.onDrag(!1),g.current.onPositionChange&&g.current.onPositionChange(n),cg.splice(cg.indexOf(t),1),window.removeEventListener("mouseup",y,!1),window.removeEventListener("mousemove",E,!1)};return{onMouseDown:e=>{const t=e.currentTarget;cg.some((e=>t.contains(e)))||(cg.push(t),window.addEventListener("mousemove",E,!1),window.addEventListener("mouseup",y,!1))},onMouseEnter:()=>{s&&s(!0)},onMouseOut:()=>{s&&s(!1)},onKeyDown:e=>{switch(e.key){case"Left":case"ArrowLeft":"horizontal"===i&&(e.preventDefault(),l&&!n?l():u&&n&&u());break;case"Up":case"ArrowUp":"vertical"===i&&(e.preventDefault(),l&&!n?l():u&&n&&u());break;case"Right":case"ArrowRight":"horizontal"===i&&(e.preventDefault(),u&&!n?u():l&&n&&l());break;case"Down":case"ArrowDown":"vertical"===i&&(e.preventDefault(),u&&!n?u():l&&n&&l());break;case"Home":e.preventDefault(),p&&p();break;case"End":e.preventDefault(),c&&c();break;case"Enter":e.preventDefault(),h&&h()}}}}function hg(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)(((t,n,r,i)=>{let s=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:s,options:i}),t.addEventListener(n,r,i)}),[]),n=(0,r.useCallback)(((t,n,r,i)=>{var s;let o=(null===(s=e.current.get(r))||void 0===s?void 0:s.fn)||r;t.removeEventListener(n,o,i),e.current.delete(r)}),[]),i=(0,r.useCallback)((()=>{e.current.forEach(((e,t)=>{n(e.eventTarget,e.type,t,e.options)}))}),[n]);return(0,r.useEffect)((()=>i),[i]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:i}}function dg(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;if(n=Gm(n),i&&r){let e=new Set([...i.trim().split(/\s+/),n]);i=[...e].join(" ")}else i&&(i=i.trim().split(/\s+/).join(" "));return r||i||!t||(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function fg(e){const t=(0,r.useRef)();return Wm((()=>{e&&("function"==typeof e?e(t.current):e.current=t.current)}),[e]),t}function mg(e,t){const n=(0,r.useRef)(!0);(0,r.useEffect)((()=>{n.current?n.current=!1:e()}),t)}function gg(e){const{ref:t,onResize:n}=e;(0,r.useEffect)((()=>{let e=null==t?void 0:t.current;if(e){if(void 0===window.ResizeObserver)return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)};{const t=new window.ResizeObserver((e=>{e.length&&n()}));return t.observe(e),()=>{e&&t.unobserve(e)}}}}),[n,t])}function Eg(e,t){Wm((()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}}),[e,t])}function yg(e){for(;e&&!vg(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function vg(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}zm({},"useGlobalListeners",(()=>hg)),zm({},"useLabels",(()=>dg)),zm({},"useObjectRef",(()=>fg)),zm({},"useUpdateEffect",(()=>mg)),zm({},"useResizeObserver",(()=>gg)),zm({},"useSyncRef",(()=>Eg)),zm({},"getScrollParent",(()=>yg)),zm({},"useViewportSize",(()=>Cg));let Ag="undefined"!=typeof window&&window.visualViewport;function Cg(){let[e,t]=(0,r.useState)((()=>bg()));return(0,r.useEffect)((()=>{let e=()=>{t((e=>{let t=bg();return t.width===e.width&&t.height===e.height?e:t}))};return Ag?Ag.addEventListener("resize",e):window.addEventListener("resize",e),()=>{Ag?Ag.removeEventListener("resize",e):window.removeEventListener("resize",e)}}),[]),e}function bg(){return{width:(null==Ag?void 0:Ag.width)||window.innerWidth,height:(null==Ag?void 0:Ag.height)||window.innerHeight}}zm({},"useDescription",(()=>wg));let Sg=0;const xg=new Map;function wg(e){let[t,n]=(0,r.useState)(null);return Wm((()=>{if(!e)return;let t=xg.get(e);if(t)n(t.element.id);else{let r="react-aria-description-"+Sg++;n(r);let i=document.createElement("div");i.id=r,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},xg.set(e,t)}return t.refCount++,()=>{0==--t.refCount&&(t.element.remove(),xg.delete(e))}}),[e]),{"aria-describedby":e?t:void 0}}var Dg={};function _g(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent))}function Og(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test((window.navigator.userAgentData||window.navigator).platform)}function Fg(){return Og(/^Mac/i)}function Tg(){return Og(/^iPhone/i)}function Bg(){return Og(/^iPad/i)||Fg()&&navigator.maxTouchPoints>1}function kg(){return Tg()||Bg()}function Rg(){return Fg()||kg()}function Ig(){return _g(/AppleWebKit/i)&&!Ng()}function Ng(){return _g(/Chrome/i)}function Pg(){return _g(/Android/i)}function Mg(e,t,n,i){let s=(0,r.useRef)(n);s.current=n;let o=null==n;(0,r.useEffect)((()=>{if(o)return;let n=e.current,r=e=>s.current.call(this,e);return n.addEventListener(t,r,i),()=>{n.removeEventListener(t,r,i)}}),[e,t,i,o])}function Lg(e){let[t,n]=(0,r.useState)(e),i=(0,r.useRef)(t),s=(0,r.useRef)(null);i.current=t;let o=(0,r.useRef)(null);o.current=()=>{let e=s.current.next();e.done?s.current=null:t===e.value?o.current():n(e.value)},Wm((()=>{s.current&&o.current()}));let a=(0,r.useCallback)((e=>{s.current=e(i.current),o.current()}),[s,o]);return[t,a]}function jg(e,t){let n=Vg(e,t,"left"),r=Vg(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,o=e.scrollLeft,a=e.scrollTop,u=o+e.offsetWidth,l=a+e.offsetHeight;n<=o?o=n:n+i>u&&(o+=n+i-u),r<=a?a=r:r+s>l&&(a+=r+s-l),e.scrollLeft=o,e.scrollTop=a}function Vg(e,t,n){const r="left"===n?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}zm(Dg,"isMac",(()=>Fg)),zm(Dg,"isIPhone",(()=>Tg)),zm(Dg,"isIPad",(()=>Bg)),zm(Dg,"isIOS",(()=>kg)),zm(Dg,"isAppleDevice",(()=>Rg)),zm(Dg,"isWebKit",(()=>Ig)),zm(Dg,"isChrome",(()=>Ng)),zm(Dg,"isAndroid",(()=>Pg)),zm({},"useEvent",(()=>Mg)),zm({},"useValueEffect",(()=>Lg)),zm({},"scrollIntoView",(()=>jg));const Ug=(0,he.css)({display:"flex",alignItems:"center",gap:he.spacing[2],flex:"none"}),zg=e=>{let{value:t,onChange:n}=e;const r=Gm(),s=Gm();return i().createElement("div",{className:Ug,"data-testid":"pipeline-results-view-controls"},i().createElement(he.Overline,{as:"label",id:r,htmlFor:s,"aria-label":"Show documents as"},"View"),i().createElement(he.SegmentedControl,{id:s,"aria-labelledby":r,size:"small",value:t,onChange:n},i().createElement(he.SegmentedControlOption,{"aria-label":"Document list",value:"document"},i().createElement(he.Icon,{size:"small",glyph:"Menu"})),i().createElement(he.SegmentedControlOption,{"aria-label":"JSON list",value:"json"},i().createElement(he.Icon,{size:"small",glyph:"CurlyBraces"}))))},qg=(0,he.css)({display:"flex",gap:he.spacing[2],justifyContent:"flex-end",alignItems:"center"}),Wg=e=>{let{onChangeResultsView:t,resultsView:n}=e;return i().createElement("div",{"data-testid":"pipeline-results-header"},i().createElement("div",{className:qg},i().createElement(wm,null),i().createElement(zg,{value:n,onChange:t})))},Hg=(0,he.css)({overflow:"hidden",display:"grid",gridTemplateRows:"min-content 1fr",gridTemplateColumns:"1fr",marginBottom:he.spacing[3]}),Gg=(0,he.css)({paddingLeft:he.spacing[3]+he.spacing[1],paddingRight:he.spacing[5]+he.spacing[1]}),$g=(0,he.css)({height:"100%",overflowY:"auto","&:not(:first-child)":{height:`calc(100% - ${he.spacing[3]}px)`,marginTop:he.spacing[3]}}),Kg=(0,he.css)({display:"flex",alignItems:"flex-start",paddingLeft:he.spacing[3]+he.spacing[1],paddingRight:he.spacing[5]+he.spacing[1]}),Xg=(0,he.css)({width:"100%",height:"100%",paddingTop:2*he.spacing[6],justifyContent:"center"}),Jg=e=>{let{children:t,center:n}=e;return i().createElement("div",{className:(0,he.cx)(Kg,n&&Xg)},t)},Zg=(0,he.css)({display:"flex",flexDirection:"column",alignItems:"center",gap:he.spacing[2],maxWidth:8*he.spacing[6],marginTop:he.spacing[2],marginBottom:he.spacing[2]}),Yg=(0,he.css)({color:he.uiColors.green.dark2,textAlign:"center"}),Qg=e=>{let{namespace:t,onClick:n}=e;return i().createElement("div",{className:Zg},i().createElement(he.Subtitle,{className:Yg},"Results persisted",t?` in ${t} namespace`:""),t&&i().createElement(he.Button,{"data-testid":"pipeline-results-go-to-collection",variant:"primaryOutline",onClick:n},"Go to collection"))},eE=Y((e=>{let{pipeline:t,namespace:n,aggregation:{documents:r,loading:i,error:s}}=e;const o=t.filter((e=>!Gt(e))),a=o[o.length-1];return{documents:r,isLoading:i,error:s,isError:Boolean(s),isEmpty:0===r.length,isMergeOrOutPipeline:["$merge","$out"].includes(a?.stageOperator),mergeOrOutDestination:$t(n,a)}}),{onCancel:fr,onRetry:()=>(e,t)=>{const{aggregation:{page:n}}=t();return e(gr(n))},onOutClick:e=>(0,Kt.globalAppRegistryEmit)("aggregations-open-result-namespace",e)})((e=>{let{documents:t,isLoading:n,error:s,isError:o,isEmpty:a,isMergeOrOutPipeline:u,mergeOrOutDestination:l,onOutClick:c,onRetry:p,onCancel:h}=e;const[d,f]=(0,r.useState)("document");let m=null;return m=o&&s?i().createElement(Jg,null,i().createElement(he.ErrorSummary,{"data-testid":"pipeline-results-error",errors:s,onAction:p,actionText:"Retry"})):n?i().createElement(Jg,{center:!0},i().createElement(he.CancelLoader,{"data-testid":"pipeline-results-loader",progressText:u?"Persisting documents"+(l?` to ${l} namespace`:""):"Running aggregation",cancelText:"Stop",onCancel:h})):u?i().createElement(Jg,{center:!0},i().createElement(Qg,{namespace:l,onClick:()=>{l&&c?.(l)}})):a?i().createElement(Jg,{center:!0},i().createElement(vm,null)):i().createElement(mm,{documents:t,view:d}),i().createElement("div",{"data-testid":"pipeline-results-workspace",className:Hg},!u&&i().createElement("div",{className:Gg},i().createElement(Wg,{resultsView:d,onChangeResultsView:f})),i().createElement("div",{className:$g},m))}));class tE extends r.PureComponent{static displayName="PipelineComponent";static propTypes={env:o().string.isRequired,isAtlasDeployed:o().bool.isRequired,openPipelineById:o().func.isRequired,savedPipelinesListToggle:o().func.isRequired,getSavedPipelines:o().func.isRequired,toggleComments:o().func.isRequired,toggleSample:o().func.isRequired,toggleAutoPreview:o().func.isRequired,restorePipelineModalToggle:o().func.isRequired,restorePipelineFrom:o().func.isRequired,restorePipeline:o().object.isRequired,deletePipeline:o().func.isRequired,pipeline:o().array.isRequired,serverVersion:o().string.isRequired,stageAdded:o().func.isRequired,stageAddedAfter:o().func.isRequired,stageChanged:o().func.isRequired,stageCollapseToggled:o().func.isRequired,stageDeleted:o().func.isRequired,stageMoved:o().func.isRequired,stageOperatorSelected:o().func.isRequired,stageToggled:o().func.isRequired,savedPipeline:o().object.isRequired,saveCurrentPipeline:o().func.isRequired,newPipeline:o().func.isRequired,newPipelineFromText:o().func.isRequired,closeImport:o().func.isRequired,clonePipeline:o().func.isRequired,changeText:o().func.isRequired,createNew:o().func.isRequired,confirmNew:o().func.isRequired,runStage:o().func.isRequired,importPipelineText:o().string.isRequired,exportToLanguage:o().func.isRequired,fields:o().array.isRequired,nameChanged:o().func.isRequired,isModified:o().bool.isRequired,isCommenting:o().bool.isRequired,isSampling:o().bool.isRequired,isAutoPreviewing:o().bool.isRequired,isImportPipelineOpen:o().bool.isRequired,isImportConfirmationNeeded:o().bool.isRequired,setIsModified:o().func.isRequired,gotoOutResults:o().func.isRequired,gotoMergeResults:o().func.isRequired,name:o().string,dismissViewError:o().func.isRequired,editViewName:o().string,updateView:o().func.isRequired,updateViewError:o().string,importPipelineError:o().string,collationString:o().object,collationStringChanged:o().func.isRequired,openLink:o().func.isRequired,isOverviewOn:o().bool.isRequired,toggleOverview:o().func.isRequired,settings:o().object.isRequired,toggleSettingsIsExpanded:o().func.isRequired,toggleSettingsIsCommentMode:o().func.isRequired,setSettingsSampleSize:o().func.isRequired,setSettingsMaxTimeMS:o().func.isRequired,setSettingsLimit:o().func.isRequired,limit:o().number.isRequired,largeLimit:o().number.isRequired,maxTimeMS:o().number,applySettings:o().func.isRequired,isFullscreenOn:o().bool.isRequired,toggleFullscreen:o().func.isRequired,savingPipelineNameChanged:o().func.isRequired,savingPipelineApply:o().func.isRequired,savingPipelineCancel:o().func.isRequired,savingPipelineOpen:o().func.isRequired,savingPipeline:o().object.isRequired,projections:o().array.isRequired,projectionsChanged:o().func.isRequired,newPipelineFromPaste:o().func.isRequired,openCreateView:o().func.isRequired,isNewPipelineConfirm:o().bool.isRequired,setIsNewPipelineConfirm:o().func.isRequired,inputDocuments:o().object.isRequired,workspace:o().string.isRequired,runOutStage:o().func.isRequired,isTimeSeries:o().bool.isRequired,isReadonly:o().bool.isRequired,sourceName:o().string,toggleInputDocumentsCollapsed:o().func.isRequired,refreshInputDocuments:o().func.isRequired,showExportButton:o().bool.isRequired,showRunButton:o().bool.isRequired,showExplainButton:o().bool.isRequired};static defaultProps={projections:[],maxTimeMS:rt,limit:10,largeLimit:it};renderModifyingViewSourceError(){if(this.props.updateViewError)return i().createElement("div",{className:Rt["pipeline-error-banner-container"]},i().createElement(he.Banner,{variant:"danger",dismissible:!0,onClose:this.props.dismissViewError},this.props.updateViewError))}renderRestoreModal(){return this.props.restorePipeline.isModalVisible?i().createElement(dt,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,openPipelineById:this.props.openPipelineById,restorePipeline:this.props.restorePipeline}):null}renderSavePipeline(){if(!this.props.isAtlasDeployed)return i().createElement(nt,{restorePipelineModalToggle:this.props.restorePipelineModalToggle,restorePipelineFrom:this.props.restorePipelineFrom,deletePipeline:this.props.deletePipeline,savedPipelinesListToggle:this.props.savedPipelinesListToggle,savedPipeline:this.props.savedPipeline})}renderPipelineToolbar(){return i().createElement(ml,{showRunButton:this.props.showRunButton,showExportButton:this.props.showExportButton,showExplainButton:this.props.showExplainButton})}renderPipelineWorkspace(){return"results"===this.props.workspace?i().createElement(eE,null):i().createElement(dm,{editViewName:this.props.editViewName,env:this.props.env,isTimeSeries:this.props.isTimeSeries,isReadonly:this.props.isReadonly,sourceName:this.props.sourceName,pipeline:this.props.pipeline,toggleInputDocumentsCollapsed:this.props.toggleInputDocumentsCollapsed,refreshInputDocuments:this.props.refreshInputDocuments,stageAdded:this.props.stageAdded,setIsModified:this.props.setIsModified,openLink:this.props.openLink,isCommenting:this.props.isCommenting,isAutoPreviewing:this.props.isAutoPreviewing,inputDocuments:this.props.inputDocuments,runStage:this.props.runStage,runOutStage:this.props.runOutStage,gotoOutResults:this.props.gotoOutResults,gotoMergeResults:this.props.gotoMergeResults,serverVersion:this.props.serverVersion,stageChanged:this.props.stageChanged,stageCollapseToggled:this.props.stageCollapseToggled,stageAddedAfter:this.props.stageAddedAfter,stageDeleted:this.props.stageDeleted,stageMoved:this.props.stageMoved,stageOperatorSelected:this.props.stageOperatorSelected,stageToggled:this.props.stageToggled,fields:this.props.fields,isOverviewOn:this.props.isOverviewOn,projections:this.props.projections,projectionsChanged:this.props.projectionsChanged,newPipelineFromPaste:this.props.newPipelineFromPaste})}render(){const e=i().createElement(yt,{isOpen:this.props.isImportPipelineOpen,closeImport:this.props.closeImport,changeText:this.props.changeText,createNew:this.props.createNew,error:this.props.importPipelineError,text:this.props.importPipelineText}),t=i().createElement(St,{isConfirmationNeeded:this.props.isImportConfirmationNeeded,closeImport:this.props.closeImport,isAutoPreviewing:this.props.isAutoPreviewing,runStage:this.props.runStage,confirmNew:this.props.confirmNew}),n=i().createElement(Tt,{isNewPipelineConfirm:this.props.isNewPipelineConfirm,setIsNewPipelineConfirm:this.props.setIsNewPipelineConfirm,newPipeline:this.props.newPipeline}),r=i().createElement(wt,{name:this.props.savingPipeline.name,isOpen:this.props.savingPipeline.isOpen,isSaveAs:this.props.savingPipeline.isSaveAs,saveCurrentPipeline:this.props.saveCurrentPipeline,savingPipelineNameChanged:this.props.savingPipelineNameChanged,savingPipelineApply:this.props.savingPipelineApply,savingPipelineCancel:this.props.savingPipelineCancel,savingPipelineOpen:this.props.savingPipelineOpen,clonePipeline:this.props.clonePipeline});return i().createElement("div",{className:pe()(Rt.pipeline,!!this.props.isFullscreenOn&&Rt["pipeline-fullscreen"])},this.renderPipelineToolbar(),this.renderModifyingViewSourceError(),this.renderPipelineWorkspace(),this.renderSavePipeline(),i().createElement(wc,null),i().createElement(ct,{isAtlasDeployed:this.props.isAtlasDeployed,isExpanded:this.props.settings.isExpanded,toggleSettingsIsExpanded:this.props.toggleSettingsIsExpanded,toggleSettingsIsCommentMode:this.props.toggleSettingsIsCommentMode,setSettingsSampleSize:this.props.setSettingsSampleSize,setSettingsMaxTimeMS:this.props.setSettingsMaxTimeMS,setSettingsLimit:this.props.setSettingsLimit,isCommenting:this.props.isCommenting,toggleComments:this.props.toggleComments,limit:this.props.limit,largeLimit:this.props.largeLimit,maxTimeMS:this.props.maxTimeMS,applySettings:this.props.applySettings,runStage:this.props.runStage,settings:this.props.settings}),this.renderRestoreModal(),e,t,r,n)}}const nE=tE;var rE=n(8817),iE={};iE.styleTagTransform=we(),iE.setAttributes=Ce(),iE.insert=ve().bind(null,"head"),iE.domAPI=Ee(),iE.insertStyleElement=Se(),me()(rE.Z,iE);const sE=rE.Z&&rE.Z.locals?rE.Z.locals:void 0;class oE extends r.Component{static displayName="AggregationsComponent";render(){return i().createElement("div",{className:sE.aggregations},i().createElement(nE,this.props))}}const aE=Y((e=>({fields:e.fields,inputDocuments:e.inputDocuments,namespace:e.namespace,env:e.env,isTimeSeries:e.isTimeSeries,isReadonly:e.isReadonly,sourceName:e.sourceName,serverVersion:e.serverVersion,pipeline:e.pipeline,savedPipeline:e.savedPipeline,restorePipeline:e.restorePipeline,name:e.name,collationString:e.collationString,isModified:e.isModified,isCommenting:e.comments,isSampling:e.sample,isAtlasDeployed:e.isAtlasDeployed,isAutoPreviewing:e.autoPreview,isImportPipelineOpen:e.importPipeline.isOpen,isImportConfirmationNeeded:e.importPipeline.isConfirmationNeeded,importPipelineText:e.importPipeline.text,importPipelineError:e.importPipeline.syntaxError,settings:e.settings,isOverviewOn:e.isOverviewOn,limit:e.limit,largeLimit:e.largeLimit,maxTimeMS:e.maxTimeMS,isFullscreenOn:e.isFullscreenOn,savingPipeline:e.savingPipeline,projections:e.projections,editViewName:e.editViewName,isNewPipelineConfirm:e.isNewPipelineConfirm,setIsNewPipelineConfirm:e.setIsNewPipelineConfirm,updateViewError:e.updateViewError,workspace:e.workspace})),{namespaceChanged:Ia,nameChanged:e=>({type:Ua,name:e}),collationStringChanged:ki,toggleInputDocumentsCollapsed:()=>({type:_a}),refreshInputDocuments:ka,toggleOverview:()=>({type:ru}),toggleComments:()=>({type:Xa}),toggleSample:()=>({type:Za}),toggleAutoPreview:En,deletePipeline:e=>async(t,n)=>{const r=new ci;await r.delete(e),t(Ci()),t(Wu()),t((0,Kt.globalAppRegistryEmit)("agg-pipeline-deleted",{name:n().name}))},runStage:tr,runOutStage:e=>(t,n)=>{const r=n(),{dataService:i}=r.dataService;i&&(((e,t,n,r,i)=>{n(Wn(i));const s=Hn(r(),i);Qn(s,e,t,n,r,i)})(i,r.namespace,t,n,e),t((0,Kt.globalAppRegistryEmit)("agg-pipeline-out-executed",{id:r.id})))},gotoOutResults:e=>(t,n)=>{const r=n(),i=`${Vt()(r.namespace).database}.${e.replace(/"/g,"")}`;r.outResultsFn?r.outResultsFn(i):t((0,Kt.globalAppRegistryEmit)("aggregations-open-result-namespace",i))},gotoMergeResults:e=>(t,n)=>{const r=n(),i=((e,t)=>{const n=Ht(t).$merge;if(en()(n))return`${e}.${n}`;const r=n.into;return en()(r)?`${e}.${r}`:`${r.db||e}.${r.coll}`})(Vt()(r.namespace).database,r.pipeline[e]);r.outResultsFn?r.outResultsFn(i):t((0,Kt.globalAppRegistryEmit)("aggregations-open-result-namespace",i))},stageAdded:zn,stageAddedAfter:e=>(t,n)=>{const{pipeline:r}=n();yn("Aggregation Edited",{num_stages:r.length,stage_action:"stage_added",stage_name:null}),t({type:Cn,index:e})},stageChanged:(e,t)=>n=>{n({type:bn,index:t,stage:e}),n(pn()),n(fn(!0)),n(tr(t))},stageCollapseToggled:e=>({type:Sn,index:e}),stageDeleted:e=>(t,n)=>{const{pipeline:r}=n();yn("Aggregation Edited",{num_stages:r.length,stage_action:"stage_removed",stage_name:r[e].stageOperator}),t({type:xn,index:e})},stageMoved:(e,t)=>(n,r)=>{if(e===t)return;const{pipeline:i}=r();yn("Aggregation Edited",{num_stages:i.length,stage_action:"stage_reordered",stage_name:i[e].stageOperator}),n({type:wn,fromIndex:e,toIndex:t})},stageOperatorSelected:(e,t,n,r)=>(i,s)=>{const{pipeline:o}=s();o[e].stageOperator!==t&&(yn("Aggregation Edited",{num_stages:o.length,stage_action:"stage_renamed",stage_name:t}),i({type:Dn,index:e,stageOperator:t,isCommenting:n,env:r}))},stageToggled:e=>({type:_n,index:e}),toggleSettingsIsExpanded:du,toggleSettingsIsCommentMode:()=>({type:au}),setSettingsSampleSize:e=>({type:uu,value:e}),setSettingsMaxTimeMS:e=>({type:lu,value:e}),setSettingsLimit:e=>({type:cu,value:e}),exportToLanguage:Gi,savedPipelinesListToggle:yi,saveCurrentPipeline:bi,savedPipelineAdd:vi,getSavedPipelines:Ai,restorePipelineModalToggle:e=>({type:eu,index:e}),restorePipelineFrom:e=>({type:tu,objectID:e}),restoreSavedPipeline:Hu,newPipeline:()=>({type:Mu}),newPipelineFromText:pa,closeImport:()=>({type:sa}),clonePipeline:()=>({type:Lu}),changeText:e=>({type:oa,text:e}),createNew:()=>({type:aa}),confirmNew:()=>({type:ua}),openLink:Ii,openPipelineById:e=>async t=>{const n=ai().join(ri(),`${e}.json`);try{const e=await si().promises.readFile(n,"utf8");t(Gu(JSON.parse(e)))}catch(e){Ru(e)}},applySettings:e=>(t,n)=>{t((e=>({type:pu,settings:e}))(e)),t((0,Kt.globalAppRegistryEmit)("compass:aggregations:settings-applied",{settings:n().settings}))},setIsModified:fn,limitChanged:e=>({type:za,limit:e}),largeLimitChanged:e=>({type:qa,largeLimit:e}),maxTimeMSChanged:Mi,toggleFullscreen:()=>({type:fu}),savingPipelineNameChanged:e=>({type:gu,name:e}),savingPipelineApply:()=>({type:Eu}),savingPipelineCancel:()=>({type:yu}),savingPipelineOpen:Cu,projectionsChanged:pn,newPipelineFromPaste:e=>t=>{t((e=>({type:ju,text:e}))(e)),t((0,Kt.globalAppRegistryEmit)("compass:aggregations:pipeline-imported"))},updateView:kr,openCreateView:$u,setIsNewPipelineConfirm:Du,dismissViewError:Br})(oE),uE=aE;function lE(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var cE=lE();cE.withExtraArgument=lE;const pE=cE,hE=e=>{e.dispatch(ka())},dE=(e,t)=>{e.dispatch({type:Ha,isAtlasDeployed:t})},fE=(e,t,n)=>{e.dispatch(va(t,n))},mE=(e,t)=>{Vt()(t).collection&&(e.dispatch(Ia(t)),hE(e))},gE=(e,t)=>{e.dispatch((e=>({type:bu,outResultsFn:e}))(t))},EE=(e,t)=>{e.dispatch((e=>({type:ja,version:e}))(t))},yE=(e,t)=>{e.dispatch((e=>({type:Aa,fields:e}))(t))},vE=(e,t)=>{e.dispatch((e=>({type:Tu.IndexesFetched,indexes:e}))(t.map((e=>e.getAttributes({props:!0},!0)))))},AE=(e,t)=>{e.dispatch((0,Kt.localAppRegistryActivated)(t))},CE=(e,t)=>{e.dispatch((0,Kt.globalAppRegistryActivated)(t))},bE=(e,t,n,r,i)=>{var s,o,a,u;e.dispatch((s=t,o=n,a=r,u=i,e=>{e(((e,t,n,r)=>({type:Vu,name:e,pipeline:t,isReadonly:n,sourceName:r}))(s,o,a,u)),e(tr(0,!0))}))},SE=(e,t)=>{e.dispatch((e=>({type:Na,env:e}))(t))},xE=(e,t)=>{e.dispatch((e=>({type:Ma,isTimeSeries:e}))(t))},wE=(e,t)=>{e.dispatch((e=>({type:$a,isReadonly:e}))(t))},DE=(e,t)=>{e.dispatch((e=>({type:Sa,sourceName:e}))(t))},_E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=L(qu,z(pE));if(e.localAppRegistry){const n=e.localAppRegistry;AE(t,n),n.on("refresh-data",(()=>{hE(t)})),n.on("fields-changed",(e=>{yE(t,e.aceFields)})),n.on("indexes-changed",(e=>{vE(t,e)}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;CE(t,n),n.on("refresh-data",(()=>{hE(t)})),n.on("import-finished",(e=>{let{ns:n}=e;const{namespace:r}=t.getState();n===r&&hE(t)})),n.on("compass:deployment-awareness:topology-changed",(e=>{SE(t,e.env)}))}if(e.dataProvider&&fE(t,e.dataProvider.error,e.dataProvider.dataProvider),null!==e.isAtlasDeployed&&void 0!==e.isAtlasDeployed&&dE(t,e.isAtlasDeployed),e.namespace&&mE(t,e.namespace),e.serverVersion&&EE(t,e.serverVersion),e.fields&&yE(t,e.fields),e.outResultsFn&&gE(t,e.outResultsFn),e.editViewName&&bE(t,e.editViewName,e.sourcePipeline,e.isReadonly,e.sourceName),e.env)SE(t,e.env);else if(n.g&&n.g.hadronApp&&n.g.hadronApp.appRegistry){const e=n.g.hadronApp.appRegistry.getStore("DeploymentAwareness.Store");e&&SE(t,e.state.env)}return e.isTimeSeries&&xE(t,e.isTimeSeries),e.isReadonly&&wE(t,e.isReadonly),e.sourceName&&DE(t,e.sourceName),e.aggregation&&Gu(e.aggregation)(t.dispatch),e.isDataLake&&t.dispatch(Fu(e.isDataLake)),t};class OE extends r.Component{static displayName="AggregationsPlugin";static propTypes={store:o().object.isRequired,showExportButton:o().bool,showRunButton:o().bool,showExplainButton:o().bool};static defaultProps={showExportButton:!1,showRunButton:!1,showExplainButton:!1};render(){return i().createElement(p,{store:this.props.store},i().createElement(uE,{showExportButton:this.props.showExportButton,showRunButton:this.props.showRunButton,showExplainButton:this.props.showExplainButton}))}}const FE=OE,TE="aggregations/create-view/source/SET",BE="aggregations/create-view/pipeline/SET",kE=[],RE="aggregations/create-view/is-running/TOGGLE_IS_RUNNING",IE=!1,NE=e=>({type:RE,isRunning:e}),PE="aggregations/create-view/is-visible/TOGGLE_IS_VISIBLE",ME=!1,LE=e=>({type:PE,isVisible:e}),jE="aggregations/create-view/is-duplicating/TOGGLE_IS_DUPLICATING",VE=!1,UE="aggregations/create-view/name/CHANGE_NAME",zE=e=>({type:UE,name:e}),qE="aggregations/create-view/error",WE=`${qE}/HANDLE_ERROR`,HE=`${qE}/CLEAR_ERROR`,GE=null,$E="aggregations/create-view/reset",{track:KE,debug:XE}=We("COMPASS-AGGREGATIONS-UI"),JE=n(4935),ZE="aggregations/create-view/OPEN",YE={isRunning:IE,isVisible:ME,isDuplicating:VE,name:"",error:GE,source:"",pipeline:kE},QE=j({appRegistry:Xt(),isRunning:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:IE,t=arguments.length>1?arguments[1]:void 0;return t.type===RE?t.isRunning:e},isDuplicating:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:VE,t=arguments.length>1?arguments[1]:void 0;return t.type===jE?t.isDuplicating:e},isVisible:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ME,t=arguments.length>1?arguments[1]:void 0;return t.type===PE?t.isVisible:e},name:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===UE?t.name:e},error:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:GE,t=arguments.length>1?arguments[1]:void 0;return t.type===WE?t.error:t.type===HE?null:e},source:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===TE?t.source:e},pipeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kE,t=arguments.length>1?arguments[1]:void 0;return t.type===BE?t.pipeline:e},dataService:ya}),ey=(e,t)=>{if(t.type===$E)return{...e,...YE};if(t.type===ZE){const n={...e,...YE,isVisible:!0,isDuplicating:t.duplicate,source:t.source,pipeline:t.pipeline};return XE("handling open",{newState:n}),n}return QE(e,t)},ty=(e,t)=>(e(NE(!1)),e({type:WE,error:t})),ny=(e,t,n)=>({type:ZE,source:e,pipeline:t,duplicate:n}),ry=()=>(e,t)=>{XE("creating view!");const n=t(),r=n.dataService.dataService,i=n.name,s=n.source,{database:o}=JE(n.source),a=n.pipeline,u={};e({type:HE});try{e(NE(!0)),XE("calling data-service.createView",i,s,a,u),r.createView(i,s,a,u,(t=>{if(t)return XE("error creating view",t),ty(e,t);XE("View created!"),KE("Aggregation Saved As View",{num_stages:a.length}),e((0,Kt.globalAppRegistryEmit)("compass:aggregations:create-view",{numStages:a.length})),e((0,Kt.globalAppRegistryEmit)("aggregations-open-result-namespace",`${o}.${i}`)),e({type:$E})}))}catch(t){return XE("Unexpected error creating view",t),ty(e,t)}};class iy extends r.PureComponent{static displayName="CreateViewModalComponent";static propTypes={createView:o().func.isRequired,isVisible:o().bool.isRequired,toggleIsVisible:o().func.isRequired,name:o().string,changeViewName:o().func.isRequired,isDuplicating:o().bool.isRequired,source:o().string.isRequired,pipeline:o().array.isRequired,isRunning:o().bool.isRequired,error:o().object};static defaultProps={name:"",source:"",pipeline:[],isRunning:!1,isVisible:!1,isDuplicating:!1};onNameChange=e=>{this.props.changeViewName(e.target.value)};onFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.props.createView()};onCancel=()=>{this.props.toggleIsVisible(!1)};render(){return i().createElement(he.ConfirmationModal,{title:this.props.isDuplicating?"Duplicate View":"Create a View",open:this.props.isVisible,onConfirm:this.props.createView,onCancel:this.onCancel,buttonText:"Create",trackingId:"create_view_modal"},i().createElement("form",{name:"create-view-modal-form",onSubmit:this.onFormSubmit.bind(this),"data-test-id":"create-view-modal"},i().createElement(Li.ModalInput,{id:"create-view-name",name:"Enter a View Name",value:this.props.name||"",onChangeHandler:this.onNameChange}),this.props.error?i().createElement(Li.ModalStatusMessage,{icon:"times",message:this.props.error.message,type:"error"}):null,this.props.isRunning?i().createElement(Li.ModalStatusMessage,{icon:"spinner",message:"Create in Progress",type:"in-progress"}):null))}}const sy=Y((e=>({isRunning:e.isRunning,isVisible:e.isVisible,isDuplicating:e.isDuplicating,name:e.name,error:e.error,source:e.source,pipeline:e.pipeline})),{createView:ry,changeViewName:zE,toggleIsVisible:LE})(iy);class oy extends r.Component{static displayName="CreateViewPlugin";static propTypes={store:o().object.isRequired};render(){return i().createElement(p,{store:this.props.store},i().createElement(sy,null))}}const ay=oy;class uy extends r.PureComponent{static displayName="DuplicateViewModalComponent";static propTypes={createView:o().func.isRequired,isVisible:o().bool.isRequired,toggleIsVisible:o().func.isRequired,name:o().string,changeViewName:o().func.isRequired,source:o().string.isRequired,pipeline:o().array.isRequired,isRunning:o().bool.isRequired,error:o().object};static defaultProps={name:"",source:"",pipeline:[],isRunning:!1,isVisible:!1};onNameChange=e=>{this.props.changeViewName(e.target.value)};onFormSubmit=e=>{e.preventDefault(),e.stopPropagation(),this.props.createView()};onCancel=()=>{this.props.toggleIsVisible(!1)};render(){return i().createElement(he.ConfirmationModal,{title:"Duplicate a View",open:this.props.isVisible,onConfirm:this.props.createView,onCancel:this.onCancel,buttonText:"Duplicate",trackingId:"duplicate_view_modal"},i().createElement("form",{name:"create-view-modal-form",onSubmit:this.onFormSubmit.bind(this),"data-test-id":"create-view-modal"},i().createElement(Li.ModalInput,{id:"create-view-name",name:"Enter a View Name",value:this.props.name||"",onChangeHandler:this.onNameChange}),this.props.error?i().createElement(Li.ModalStatusMessage,{icon:"times",message:this.props.error.message,type:"error"}):null,this.props.isRunning?i().createElement(Li.ModalStatusMessage,{icon:"spinner",message:"Duplicate in Progress",type:"in-progress"}):null))}}const ly=Y((e=>({isRunning:e.isRunning,isVisible:e.isVisible,name:e.name,error:e.error,source:e.source,pipeline:e.pipeline})),{createView:ry,changeViewName:zE,toggleIsVisible:LE})(uy),cy=L(ey,z(pE));cy.onActivated=e=>{cy.dispatch((0,Kt.globalAppRegistryActivated)(e)),e.on("data-service-connected",((e,t)=>{cy.dispatch(va(e,t))})),e.on("open-create-view",(e=>{cy.dispatch(ny(e.source,e.pipeline,e.duplicate))}))};const py=cy;class hy extends r.Component{static displayName="DuplicateViewPlugin";render(){return i().createElement(p,{store:py},i().createElement(ly,null))}}const dy=hy,fy=n(1227)("mongodb-aggregations:stores:create-view"),my=(e,t,n)=>{e.dispatch(va(t,n))},gy=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=L(ey,z(pE));if(e.localAppRegistry){const n=e.localAppRegistry;t.dispatch((0,Kt.localAppRegistryActivated)(n)),n.on("open-create-view",(e=>{fy("open-create-view",e.source,e.pipeline),t.dispatch(ny(e.source,e.pipeline,!1))}))}if(e.globalAppRegistry){const n=e.globalAppRegistry;t.dispatch((0,Kt.globalAppRegistryActivated)(n))}return e.dataProvider&&my(t,e.dataProvider.error,e.dataProvider.dataProvider),t},Ey=JSON.parse('{"name":"@mongodb-js/compass-aggregations","productName":"Aggregations plugin","version":"8.25.0","apiVersion":"3.0.0","description":"Compass Aggregation Pipeline Builder","main":"dist/index.js","compass:main":"src/index.js","exports":{"browser":"./dist/browser.js","require":"./dist/index.js"},"compass:exports":{".":"./src/index.js"},"scripts":{"prepublishOnly":"npm run compile && compass-scripts check-exports-exist","compile":"npm run webpack -- --mode production","prewebpack":"rimraf ./dist","webpack":"webpack-compass","start":"npm run webpack serve -- --mode development","analyze":"npm run webpack -- --mode production --analyze","typecheck":"tsc --noEmit","depcheck":"depcheck","eslint":"eslint","lint":"npm run eslint .","check":"npm run typecheck && npm run lint && npm run depcheck","check-ci":"npm run check","test":"mocha","test-electron":"xvfb-maybe electron-mocha --no-sandbox","test-cov":"nyc -x \\"**/*.spec.*\\" --reporter=lcov --reporter=text --reporter=html npm run test","test-watch":"npm run test -- --watch","test-ci":"npm run test-cov","test-ci-electron":"npm run test-electron"},"license":"SSPL","peerDependencies":{"@mongodb-js/compass-components":"^0.16.0","@mongodb-js/compass-crud":"^12.25.0","@mongodb-js/compass-export-to-language":"^7.24.0","@mongodb-js/compass-field-store":"^7.24.0","async":"^3.2.0","bson":"*","electron":"^13.5.1","hadron-react-buttons":"^5.9.0","hadron-react-components":"^5.16.0","mongodb-ace-autocompleter":"*","mongodb-data-service":"^21.22.0","mongodb-query-parser":"^2.4.6","prop-types":"^15.7.2","react":"^16.14.0","react-bootstrap":"^0.32.4","react-dom":"^16.14.0"},"devDependencies":{"@mongodb-js/compass-components":"^0.16.0","@mongodb-js/compass-crud":"^12.25.0","@mongodb-js/compass-export-to-language":"^7.24.0","@mongodb-js/compass-field-store":"^7.24.0","@mongodb-js/eslint-config-compass":"^0.10.0","@mongodb-js/mocha-config-compass":"^0.11.0","@mongodb-js/prettier-config-compass":"^0.5.0","@mongodb-js/tsconfig-compass":"^0.6.0","@mongodb-js/webpack-config-compass":"^0.10.0","@react-aria/utils":"^3.13.1","@testing-library/react":"^12.1.4","@testing-library/user-event":"^13.5.0","@types/decomment":"^0.9.2","@types/lodash.debounce":"^4.0.7","@types/lodash.isempty":"^4.4.6","@types/semver":"^7.3.9","async":"^3.2.0","chai":"^4.3.6","classnames":"^2.2.6","debug":"4.3.0","depcheck":"^1.4.1","electron":"^13.5.1","enzyme":"^3.11.0","eslint":"^7.25.0","hadron-app":"^4.24.0","hadron-app-registry":"^8.13.0","hadron-document":"^7.12.0","hadron-react-buttons":"^5.9.0","hadron-react-components":"^5.16.0","mocha":"^8.4.0","mongodb-ace-autocompleter":"^1.1.1","mongodb-connection-model":"^21.18.0","mongodb-data-service":"^21.22.0","mongodb-query-parser":"^2.4.6","mongodb-reflux-store":"^0.0.1","nyc":"^15.1.0","prop-types":"^15.7.2","react":"^16.14.0","react-dom":"^16.14.0","react-sortable-hoc":"^2.0.0","reflux":"^0.4.1","reflux-state-mixin":"github:mongodb-js/reflux-state-mixin","rimraf":"^3.0.0","sinon":"^9.2.3","xvfb-maybe":"^0.2.1"},"dependencies":{"@mongodb-js/compass-logging":"^0.13.0","@mongodb-js/explain-plan-helper":"^0.10.0","@mongodb-js/mongodb-redux-common":"^1.13.0","acorn-loose":"^8.0.2","astring":"^1.7.0","bson":"*","decomment":"^0.9.2","is-electron-renderer":"^2.0.1","lodash.debounce":"^4.0.8","lodash.isempty":"^4.4.0","lodash.isstring":"^4.0.1","mongodb":"^4.6.0","mongodb-ns":"^2.4.0","re-resizable":"^6.9.0","react-bootstrap":"^0.32.4","react-redux":"^5.0.6","react-select-plus":"^1.2.0","redux":"^4.1.2","redux-thunk":"^2.3.0","semver":"^5.7.1"},"homepage":"https://github.com/mongodb-js/compass","bugs":{"url":"https://jira.mongodb.org/projects/COMPASS/issues","email":"compass@mongodb.com"},"repository":{"type":"git","url":"https://github.com/mongodb-js/compass.git"},"gitHead":"a4e705ec6d13393d2e14e906838bb67548e7ae35"}'),yy={name:"Aggregations",component:FE,order:2,configureStore:_E,configureActions:()=>{},storeName:"Aggregations.Store",actionName:"Aggregations.Actions"},vy={name:"Create View",component:ay,configureStore:gy,storeName:"Aggregations.CreateViewStore",configureActions:()=>{},actionName:"Aggregations.Actions"},Ay={name:"Duplicate View",component:dy},Cy=e=>{e.registerRole("Collection.Tab",yy),e.registerRole("Collection.ScopedModal",vy),e.registerRole("Global.Modal",Ay),e.registerStore("Aggregations.DuplicateViewStore",py)},by=e=>{e.deregisterRole("Collection.Tab",yy),e.deregisterRole("Collection.ScopedModal",vy),e.deregisterRole("Global.Modal",Ay),e.deregisterStore("Aggregations.DuplicateViewStore")},Sy=FE},5727:(e,t,n)=>{"use strict";const r=n(4283);let i=!1;try{i="string"!=typeof n(5840)}catch(e){}!function(){if(!i)return console.warn("Unsupported environment for hadron-ipc"),{};const t=n(r?677:5663);e.exports=t,r?e.exports.ipcRenderer=t:e.exports.ipcMain=t}()},1563:(e,t)=>{"use strict";t._=e=>`hadron-ipc-${e}-response`},5663:(e,t,n)=>{"use strict";const r=n(1563)._,i=n(4749),s=n(4772),o=n(9320),a=n(5840),u=a.BrowserWindow,l=a.ipcMain,c=n(2069)("hadron-ipc:main");(t=l).respondTo=(e,n)=>{if(s(e))return i(e,((e,n)=>{t.respondTo(n,e)})),t;const a=r(e),p=`${a}-error`;return l.on(e,(function(t){const r=u.fromWebContents(t.sender);if(!r)return;const i=n=>{if(c(`responding with result for ${e}`,n),r.isDestroyed())return c("browserWindow went away. nothing to send response to.");t.sender.send(a,n)},s=n=>{if(c(`responding with error for ${e}`,n),r.isDestroyed())return c("browserWindow went away. nothing to send response to.");t.sender.send(p,n)};for(var l=arguments.length,h=new Array(l>1?l-1:0),d=1;d<l;d++)h[d-1]=arguments[d];c(`calling ${e} handler with args`,h);const f=n(r,...h);o(f)?f.then(i).catch(s):f instanceof Error?s(f):i(f)})),t},t.broadcast=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u.getAllWindows().forEach((t=>{t.webContents&&t.webContents.send(e,...n)}))},t.broadcastFocused=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u.getAllWindows().forEach((t=>{t.webContents&&t.isFocused()&&t.webContents.send(e,...n)}))},t.remove=(e,t)=>{l.removeListener(e,t)},e.exports=t},677:(e,t,n)=>{"use strict";const r=n(1563)._,i=n(5840).ipcRenderer,s=n(2069)("hadron-ipc:renderer");function o(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),o=2;o<n;o++)s[o-2]=arguments[o];e(`calling ${t} with args`,s);const a=r(t),u=`${a}-error`;return new Promise((function(n,r){i.on(a,(function(r,s){e(`got response for ${t} from main`,s),i.removeAllListeners(a),i.removeAllListeners(u),n(s)})),i.on(u,(function(n,s){e(`error for ${t} from main`,s),i.removeAllListeners(a),i.removeAllListeners(u),r(s)})),i.send(t,...s)}))}(t=i).callQuiet=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o((()=>{}),e,...n)},t.call=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o(s,e,...n)},e.exports=t},8875:(e,t,n)=>{e.exports=n(2473)},2473:(e,t,n)=>{const{isPlainObject:r,isArray:i,isString:s,isNumber:o,hasIn:a,keys:u,without:l,toNumber:c,toString:p}=n(6635),{ObjectId:h,MinKey:d,MaxKey:f,Long:m,Double:g,Int32:E,Decimal128:y,Binary:v,BSONRegExp:A,Code:C,BSONSymbol:b,Timestamp:S,Map:x}=n(345),w="Long",D="Int64",_="_bsontype",O=/\[object (\w+)\]/,F=2147483647,T=-2147483648,B=Math.pow(2,63)-1,k=-B,R=/^-?\d+$/,I=["Long","Int32","Double","Decimal128"],N={Array:e=>i(e)?e:r(e)?[]:[e],Binary:e=>new v(""+e,v.SUBTYPE_DEFAULT),Boolean:e=>{if(s(e)){if("true"===e.toLowerCase())return!0;if("false"===e.toLowerCase())return!1;throw new Error(`'${e}' is not a valid boolean string`)}return!!e},Code:e=>new C(""+e,{}),Date:e=>new Date(e),Decimal128:e=>(a(e,_)&&I.includes(e._bsontype)&&(e=e._bsontype===w?e.toString():e.valueOf()),y.fromString(""+e)),Double:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Double value`);if(s(e)&&e.endsWith("."))throw new Error("Please enter at least one digit after the decimal");const t=c(e);return new g(t)},Int32:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Int32 value`);const t=c(e);if(t>=T&&t<=F)return new E(t);throw new Error(`Value ${t} is outside the valid Int32 range`)},Int64:e=>{if("-"===e||""===e)throw new Error(`Value '${e}' is not a valid Int64 value`);const t=c(e);if(t>=k&&t<=B)return e.value||"number"==typeof e?m.fromNumber(t):"object"==typeof e?m.fromString(e.toString()):m.fromString(e);throw new Error(`Value ${e.toString()} is outside the valid Int64 range`)},MaxKey:()=>new f,MinKey:()=>new d,Null:()=>null,Object:e=>r(e)?e:{},ObjectId:e=>s(e)&&""!==e?h.createFromHexString(e):new h,BSONRegExp:e=>new A(""+e),String:p,BSONSymbol:e=>new b(""+e),Timestamp:e=>{const t=c(e);return S.fromNumber(t)},Undefined:()=>{}},P=u(N),M=new class{test(e){if(R.test(e)){var t=c(e);return t>=T&&t<=F}return!1}},L=new class{test(e){return!!R.test(e)&&Number.isSafeInteger(c(e))}};e.exports=new class{cast(e,t){var n=N[t],r=e;return n&&(r=n(e)),"[object Object]"===r?"":r}type(e){return a(e,_)?e._bsontype===w?D:"ObjectID"===e._bsontype?"ObjectId":"Symbol"===e._bsontype?"BSONSymbol":e._bsontype:o(e)?(t=p(e),M.test(t)?"Int32":L.test(t)?D:"Double"):r(e)?"Object":i(e)?"Array":Object.prototype.toString.call(e).replace(O,"$1");var t}castableTypes(){return!0===(arguments.length>0&&void 0!==arguments[0]&&arguments[0])?P:l(P,"Decimal128")}}},4208:(e,t,n)=>{"use strict";n(7526),n(3354),n(5870),n(930),n(574),n(4116),n(3267),n(4614),n(9852),n(4306),n(6077),n(1072),n(183);const r=Symbol("kDepth"),i=Symbol("kSBENodes");function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=t(e,n),i=r||{};return e.inputStage&&(i.inputStage=s(e.inputStage,t,e)),e.innerStage&&(i.innerStage=s(e.innerStage,t,e)),e.outerStage&&(i.outerStage=s(e.outerStage,t,e)),e.thenStage&&(i.thenStage=s(e.thenStage,t,e)),e.elseStage&&(i.elseStage=s(e.elseStage,t,e)),e.inputStages&&(i.inputStages=e.inputStages.map((n=>s(n,t,e)))),e.shards&&(i.shards=e.shards.map((t=>s(t,e)))),e.executionStages&&(i.executionStages=e.executionStages.map((n=>s(n,t,e)))),r}function o(e){return s(e,(t=>e===t?{...e}:void 0))}function a(e,t){const n=new Map;s(e,(e=>{e.planNodeId&&(n.set(e.planNodeId,e),e[i]=[])})),s(t,((e,t)=>{e[r]=t?t[r]+1:0,e.planNodeId&&n.get(e.planNodeId)[i].push(e)}));for(const e of n.values())e[i].sort(((e,t)=>e[r]-t[r]));return s(e,(e=>{const t=e[i],n=t[0]||{};return{...o(n),...o(e),executionTimeMillisEstimate:n.executionTimeMillis||n.executionTimeMillisEstimate,docsExamined:t.filter((e=>"seek"===e.stage||"scan"===e.stage)).map((e=>e.numReads||0)).reduce(((e,t)=>e+t),0),keysExamined:t.filter((e=>"ixseek"===e.stage||"ixscan"===e.stage)).map((e=>e.numReads||0)).reduce(((e,t)=>e+t),0)}}))}function u(e){return function(e){return!!e.stages}(e)||l(e)}function l(e){return!!e.shards}function c(e){const{mongosPlannerVersion:t}=e.queryPlanner??{};return!isNaN(t)}function p(e){return Object.keys(e).find((e=>e.match(/^\$.*cursor/i)))}function h(e){if(!e.stages||0===e.stages.length)return e;const t=e.stages.map((e=>{if(!function(e){return!!p(e)}(e))return e;const t=p(e);return e[t]=f(e[t]),e}));return e.stages=t,e}function d(e){return f(e)}function f(e){if(e.queryPlanner&&e.queryPlanner.winningPlan&&e.queryPlanner.winningPlan.queryPlan){e.queryPlanner.plannerVersion=1;const t=e.queryPlanner.winningPlan.queryPlan;e.queryPlanner.winningPlan=t,e.executionStats.executionStages=a(t,e.executionStats.executionStages)}return e}e.exports=function(e){return(e=JSON.parse(JSON.stringify(e))).explainVersion&&e.explainVersion<2?e:(delete e.explainVersion,e=u(e)?l(e)?function(e){if(!e.shards)return e;const t={};for(const n in e.shards)e.shards[n].stages?t[n]=h(e.shards[n]):t[n]=d(e.shards[n]);return e.shards=t,e}(e):h(e):c(e)?function(e){const t=e.queryPlanner,n=e.executionStats;return t.winningPlan.shards?(t.winningPlan.shards.forEach(((e,r)=>{const i=e.winningPlan.queryPlan;if(i){const e=a(i,n.executionStages.shards[r].executionStages);t.winningPlan.shards[r].winningPlan=i,n.executionStages.shards[r].executionStages=e}})),e.queryPlanner=t,e.executionStats=n,e):e}(e):d(e),JSON.parse(JSON.stringify(e)))},e.exports.getStageCursorKey=p,e.exports.isAggregationExplain=u,e.exports.isShardedAggregationExplain=l,e.exports.isShardedFindExplain=c},9752:e=>{const t="@mongodb-js/mongodb-redux-common/app-registry",n=`${t}/LOCAL_APP_REGISTRY_ACTIVATED`,r=`${t}/GLOBAL_APP_REGISTRY_ACTIVATED`,i={localAppRegistry:null,globalAppRegistry:null},s=function(e,t){if(e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];e.emit(t,...r)}};e.exports=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;return t.type===n?{...e,localAppRegistry:t.appRegistry}:t.type===r?{...e,globalAppRegistry:t.appRegistry}:e},e.exports.LOCAL_APP_REGISTRY_ACTIVATED=n,e.exports.GLOBAL_APP_REGISTRY_ACTIVATED=r,e.exports.INITIAL_STATE=i,e.exports.localAppRegistryActivated=e=>({type:n,appRegistry:e}),e.exports.globalAppRegistryActivated=e=>({type:r,appRegistry:e}),e.exports.localAppRegistryEmit=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(t,r)=>{s(r().appRegistry.localAppRegistry,e,...n)}},e.exports.globalAppRegistryEmit=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(t,r)=>{s(r().appRegistry.globalAppRegistry,e,...n)}}},2779:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},3819:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},1176:(e,t,n)=>{var r=n(5052);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},9540:(e,t,n)=>{var r=n(905),i=n(4237),s=n(3231),o=function(e){return function(t,n,o){var a,u=r(t),l=i(u.length),c=s(o,l);if(e&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},7079:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},1589:(e,t,n)=>{var r=n(1601),i=n(7079),s=n(95)("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),s))?n:o?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},1250:(e,t,n)=>{"use strict";var r=n(1176),i=n(3819);e.exports=function(){for(var e,t=r(this),n=i(t.delete),s=!0,o=0,a=arguments.length;o<a;o++)e=n.call(t,arguments[o]),s=s&&e;return!!s}},7081:(e,t,n)=>{var r=n(816),i=n(4826),s=n(7933),o=n(1787);e.exports=function(e,t){for(var n=i(t),a=o.f,u=s.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||a(e,c,u(t,c))}}},5762:(e,t,n)=>{var r=n(7400),i=n(1787),s=n(5358);e.exports=r?function(e,t,n){return i.f(e,t,s(1,n))}:function(e,t,n){return e[t]=n,e}},5358:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7400:(e,t,n)=>{var r=n(4229);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2635:(e,t,n)=>{var r=n(9859),i=n(5052),s=r.document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},598:(e,t,n)=>{var r=n(1333);e.exports=r("navigator","userAgent")||""},6358:(e,t,n)=>{var r,i,s=n(9859),o=n(598),a=s.process,u=s.Deno,l=a&&a.versions||u&&u.version,c=l&&l.v8;c?i=(r=c.split("."))[0]<4?1:r[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},3837:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3103:(e,t,n)=>{var r=n(9859),i=n(7933).f,s=n(5762),o=n(7487),a=n(2079),u=n(7081),l=n(6541);e.exports=function(e,t){var n,c,p,h,d,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||a(f,{}):(r[f]||{}).prototype)for(c in t){if(h=t[c],p=e.noTargetGet?(d=i(n,c))&&d.value:n[c],!l(m?c:f+(g?".":"#")+c,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;u(h,p)}(e.sham||p&&p.sham)&&s(h,"sham",!0),o(n,c,h,e)}}},4229:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7636:(e,t,n)=>{var r=n(3819);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},1333:(e,t,n)=>{var r=n(9859),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},8830:(e,t,n)=>{var r=n(1589),i=n(5495),s=n(95)("iterator");e.exports=function(e){if(null!=e)return e[s]||e["@@iterator"]||i[r(e)]}},8403:(e,t,n)=>{var r=n(1176),i=n(8830);e.exports=function(e,t){var n=arguments.length<2?i(e):t;if("function"!=typeof n)throw TypeError(String(e)+" is not iterable");return r(n.call(e))}},9585:e=>{e.exports=function(e){return Map.prototype.entries.call(e)}},9859:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},816:(e,t,n)=>{var r=n(2991),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},5977:e=>{e.exports={}},4394:(e,t,n)=>{var r=n(7400),i=n(4229),s=n(2635);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},9337:(e,t,n)=>{var r=n(4229),i=n(7079),s="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s.call(e,""):Object(e)}:Object},8511:(e,t,n)=>{var r=n(5353),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},6407:(e,t,n)=>{var r,i,s,o=n(8694),a=n(9859),u=n(5052),l=n(5762),c=n(816),p=n(5353),h=n(4399),d=n(5977),f="Object already initialized",m=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new m),E=g.get,y=g.has,v=g.set;r=function(e,t){if(y.call(g,e))throw new TypeError(f);return t.facade=e,v.call(g,e,t),t},i=function(e){return E.call(g,e)||{}},s=function(e){return y.call(g,e)}}else{var A=h("state");d[A]=!0,r=function(e,t){if(c(e,A))throw new TypeError(f);return t.facade=e,l(e,A,t),t},i=function(e){return c(e,A)?e[A]:{}},s=function(e){return c(e,A)}}e.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(!u(t)||(n=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},1943:(e,t,n)=>{var r=n(95),i=n(5495),s=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||o[s]===e)}},6541:(e,t,n)=>{var r=n(4229),i=/#|\.prototype\./,s=function(e,t){var n=a[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=s.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";e.exports=s},5052:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},4231:e=>{e.exports=!1},9395:(e,t,n)=>{var r=n(1333),i=n(6969);e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return"function"==typeof t&&Object(e)instanceof t}},9003:(e,t,n)=>{var r=n(1176),i=n(1943),s=n(4237),o=n(7636),a=n(8403),u=n(8830),l=n(7281),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var p,h,d,f,m,g,E,y=n&&n.that,v=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),b=o(t,y,1+v+C),S=function(e){return p&&l(p,"normal",e),new c(!0,e)},x=function(e){return v?(r(e),C?b(e[0],e[1],S):b(e[0],e[1])):C?b(e,S):b(e)};if(A)p=e;else{if("function"!=typeof(h=u(e)))throw TypeError("Target is not iterable");if(i(h)){for(d=0,f=s(e.length);f>d;d++)if((m=x(e[d]))&&m instanceof c)return m;return new c(!1)}p=a(e,h)}for(g=p.next;!(E=g.call(p)).done;){try{m=x(E.value)}catch(e){l(p,"throw",e)}if("object"==typeof m&&m&&m instanceof c)return m}return new c(!1)}},7281:(e,t,n)=>{var r=n(1176);e.exports=function(e,t,n){var i,s;r(e);try{if(void 0===(i=e.return)){if("throw"===t)throw n;return n}i=i.call(e)}catch(e){s=!0,i=e}if("throw"===t)throw n;if(s)throw i;return r(i),n}},5495:e=>{e.exports={}},3839:(e,t,n)=>{var r=n(6358),i=n(4229);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8694:(e,t,n)=>{var r=n(9859),i=n(8511),s=r.WeakMap;e.exports="function"==typeof s&&/native code/.test(i(s))},1787:(e,t,n)=>{var r=n(7400),i=n(4394),s=n(1176),o=n(9310),a=Object.defineProperty;t.f=r?a:function(e,t,n){if(s(e),t=o(t),s(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},7933:(e,t,n)=>{var r=n(7400),i=n(9195),s=n(5358),o=n(905),a=n(9310),u=n(816),l=n(4394),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=a(t),l)try{return c(e,t)}catch(e){}if(u(e,t))return s(!i.f.call(e,t),e[t])}},8151:(e,t,n)=>{var r=n(140),i=n(3837).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},894:(e,t)=>{t.f=Object.getOwnPropertySymbols},140:(e,t,n)=>{var r=n(816),i=n(905),s=n(9540).indexOf,o=n(5977);e.exports=function(e,t){var n,a=i(e),u=0,l=[];for(n in a)!r(o,n)&&r(a,n)&&l.push(n);for(;t.length>u;)r(a,n=t[u++])&&(~s(l,n)||l.push(n));return l}},9195:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},2914:(e,t,n)=>{var r=n(5052);e.exports=function(e,t){var n,i;if("string"===t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if("string"!==t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},4826:(e,t,n)=>{var r=n(1333),i=n(8151),s=n(894),o=n(1176);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=s.f;return n?t.concat(n(e)):t}},7487:(e,t,n)=>{var r=n(9859),i=n(5762),s=n(816),o=n(2079),a=n(8511),u=n(6407),l=u.get,c=u.enforce,p=String(String).split("String");(e.exports=function(e,t,n,a){var u,l=!!a&&!!a.unsafe,h=!!a&&!!a.enumerable,d=!!a&&!!a.noTargetGet;"function"==typeof n&&("string"!=typeof t||s(n,"name")||i(n,"name",t),(u=c(n)).source||(u.source=p.join("string"==typeof t?t:""))),e!==r?(l?!d&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||a(this)}))},8885:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},9989:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2079:(e,t,n)=>{var r=n(9859);e.exports=function(e,t){try{Object.defineProperty(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},4399:(e,t,n)=>{var r=n(3036),i=n(1441),s=r("keys");e.exports=function(e){return s[e]||(s[e]=i(e))}},5353:(e,t,n)=>{var r=n(9859),i=n(2079),s="__core-js_shared__",o=r[s]||i(s,{});e.exports=o},3036:(e,t,n)=>{var r=n(4231),i=n(5353);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},7942:(e,t,n)=>{var r=n(1176),i=n(3819),s=n(95)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||null==(n=r(o)[s])?t:i(n)}},966:(e,t,n)=>{var r=n(6051),i=n(3326),s=n(8885),o=function(e){return function(t,n){var o,a,u=i(s(t)),l=r(n),c=u.length;return l<0||l>=c?e?"":void 0:(o=u.charCodeAt(l))<55296||o>56319||l+1===c||(a=u.charCodeAt(l+1))<56320||a>57343?e?u.charAt(l):o:e?u.slice(l,l+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},3231:(e,t,n)=>{var r=n(6051),i=Math.max,s=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):s(n,t)}},905:(e,t,n)=>{var r=n(9337),i=n(8885);e.exports=function(e){return r(i(e))}},6051:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},4237:(e,t,n)=>{var r=n(6051),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},2991:(e,t,n)=>{var r=n(8885);e.exports=function(e){return Object(r(e))}},2066:(e,t,n)=>{var r=n(5052),i=n(9395),s=n(2914),o=n(95)("toPrimitive");e.exports=function(e,t){if(!r(e)||i(e))return e;var n,a=e[o];if(void 0!==a){if(void 0===t&&(t="default"),n=a.call(e,t),!r(n)||i(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},9310:(e,t,n)=>{var r=n(2066),i=n(9395);e.exports=function(e){var t=r(e,"string");return i(t)?t:String(t)}},1601:(e,t,n)=>{var r={};r[n(95)("toStringTag")]="z",e.exports="[object z]"===String(r)},3326:(e,t,n)=>{var r=n(9395);e.exports=function(e){if(r(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}},1441:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},6969:(e,t,n)=>{var r=n(3839);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},95:(e,t,n)=>{var r=n(9859),i=n(3036),s=n(816),o=n(1441),a=n(3839),u=n(6969),l=i("wks"),c=r.Symbol,p=u?c:c&&c.withoutSetter||o;e.exports=function(e){return s(l,e)&&(a||"string"==typeof l[e])||(a&&s(c,e)?l[e]=c[e]:l[e]=p("Symbol."+e)),l[e]}},7526:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1250);r({target:"Map",proto:!0,real:!0,forced:i},{deleteAll:function(){return s.apply(this,arguments)}})},3354:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(7636),a=n(9585),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{every:function(e){var t=s(this),n=a(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return!u(n,(function(e,n,i){if(!r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},5870:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1333),o=n(1176),a=n(3819),u=n(7636),l=n(7942),c=n(9585),p=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{filter:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,s("Map"))),h=a(i.set);return p(n,(function(e,n){r(n,e,t)&&h.call(i,e,n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},574:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(7636),a=n(9585),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{findKey:function(e){var t=s(this),n=a(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i(e)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},930:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(7636),a=n(9585),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{find:function(e){var t=s(this),n=a(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i(n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},4116:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(9585),a=n(9989),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{includes:function(e){return u(o(s(this)),(function(t,n,r){if(a(n,e))return r()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},3267:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(9585),a=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{keyOf:function(e){return a(o(s(this)),(function(t,n,r){if(n===e)return r(t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).result}})},4614:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1333),o=n(1176),a=n(3819),u=n(7636),l=n(7942),c=n(9585),p=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{mapKeys:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,s("Map"))),h=a(i.set);return p(n,(function(e,n){h.call(i,r(n,e,t),n)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},9852:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1333),o=n(1176),a=n(3819),u=n(7636),l=n(7942),c=n(9585),p=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{mapValues:function(e){var t=o(this),n=c(t),r=u(e,arguments.length>1?arguments[1]:void 0,3),i=new(l(t,s("Map"))),h=a(i.set);return p(n,(function(e,n){h.call(i,e,r(n,e,t))}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),i}})},4306:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(3819),a=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{merge:function(e){for(var t=s(this),n=o(t.set),r=arguments.length,i=0;i<r;)a(arguments[i++],n,{that:t,AS_ENTRIES:!0});return t}})},6077:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(3819),a=n(9585),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{reduce:function(e){var t=s(this),n=a(t),r=arguments.length<2,i=r?void 0:arguments[1];if(o(e),u(n,(function(n,s){r?(r=!1,i=s):i=e(i,s,n,t)}),{AS_ENTRIES:!0,IS_ITERATOR:!0}),r)throw TypeError("Reduce of empty map with no initial value");return i}})},1072:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(7636),a=n(9585),u=n(9003);r({target:"Map",proto:!0,real:!0,forced:i},{some:function(e){var t=s(this),n=a(t),r=o(e,arguments.length>1?arguments[1]:void 0,3);return u(n,(function(e,n,i){if(r(n,e,t))return i()}),{AS_ENTRIES:!0,IS_ITERATOR:!0,INTERRUPTED:!0}).stopped}})},183:(e,t,n)=>{"use strict";var r=n(3103),i=n(4231),s=n(1176),o=n(3819);r({target:"Map",proto:!0,real:!0,forced:i},{update:function(e,t){var n=s(this),r=arguments.length;o(t);var i=n.has(e);if(!i&&r<3)throw TypeError("Updating absent value");var a=i?n.get(e):o(r>2?arguments[2]:void 0)(e,n);return n.set(e,t(a,e,n)),n}})},8423:(e,t,n)=>{"use strict";var r=n(3103),i=n(966).charAt;r({target:"String",proto:!0,forced:n(4229)((function(){return"𠮷"!=="𠮷".at(0)}))},{at:function(e){return i(this,e)}})},9867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".add-stage-module-add-stage-container__L3KcT {\n margin: 0px;\n padding-bottom: 15px;\n position: relative;\n}\n.add-stage-module-add-stage-container__L3KcT:after {\n position: absolute;\n left: 6px;\n top: 2px;\n content: '';\n width: 10px;\n height: 10px;\n border-radius: 50%;\n border: 5px solid #dee0e3;\n}\n.add-stage-module-add-stage-container__L3KcT .add-stage-module-add-stage__3hDT6 {\n flex-shrink: 0;\n display: flex;\n justify-content: center;\n position: relative;\n margin: 0px 20px 0px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n width: 370px;\n}\n.add-stage-module-add-stage-container__L3KcT .add-stage-module-add-stage__3hDT6 button {\n margin: 10px 0px 10px 0px;\n}\n",""]),i.locals={"add-stage-container":"add-stage-module-add-stage-container__L3KcT","add-stage":"add-stage-module-add-stage__3hDT6"};const s=i},8817:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".aggregations-module-aggregations__12xcN {\n display: flex;\n align-items: flex-start;\n background-color: #f5f6f7;\n position: relative;\n width: 100%;\n z-index: 0;\n height: 100%;\n}\n",""]),i.locals={aggregations:"aggregations-module-aggregations__12xcN"};const s=i},8608:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-builder-toolbar-module-input-builder-toolbar__1H2sc {\n width: 350px;\n margin: 0px 15px 0px 18px;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n position: relative;\n height: 30px;\n align-items: center;\n}\n",""]),i.locals={"input-builder-toolbar":"input-builder-toolbar-module-input-builder-toolbar__1H2sc"};const s=i},8056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-builder-module-input-builder__KDDTC {\n flex-grow: 1;\n position: relative;\n margin: 15px 18px 15px 18px;\n padding: 10px 0px 10px 0px;\n min-height: 54px;\n text-align: center;\n}\n",""]),i.locals={"input-builder":"input-builder-module-input-builder__KDDTC"};const s=i},1849:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-collapser-module-input-collapser__2CIHy {\n position: relative;\n}\n.input-collapser-module-input-collapser__2CIHy button {\n width: 30px;\n}\n",""]),i.locals={"input-collapser":"input-collapser-module-input-collapser__2CIHy"};const s=i},9865:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-documents-count-module-input-documents-count__2sCxl {\n height: 30px;\n display: flex;\n align-items: center;\n flex-grow: 4;\n}\n.input-documents-count-module-input-documents-count-db__2xqQF {\n font-size: 12px;\n padding-left: 10px;\n color: #494747;\n}\n.input-documents-count-module-input-documents-count-label__Q3Y3L {\n font-size: 12px;\n padding-left: 5px;\n color: #494747;\n}\n",""]),i.locals={"input-documents-count":"input-documents-count-module-input-documents-count__2sCxl","input-documents-count-db":"input-documents-count-module-input-documents-count-db__2xqQF","input-documents-count-label":"input-documents-count-module-input-documents-count-label__Q3Y3L"};const s=i},4145:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-preview-toolbar-module-input-preview-toolbar__34ttN {\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n border-left: 1px solid #dee0e3;\n}\n.input-preview-toolbar-module-input-preview-toolbar-text__3gBhM {\n font-size: 12px;\n padding-left: 10px;\n color: #494747;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n",""]),i.locals={"input-preview-toolbar":"input-preview-toolbar-module-input-preview-toolbar__34ttN","input-preview-toolbar-text":"input-preview-toolbar-module-input-preview-toolbar-text__3gBhM"};const s=i},969:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-preview-module-input-preview__2di5A {\n display: flex;\n align-items: center;\n overflow: auto;\n flex-grow: 1;\n width: 100%;\n position: relative;\n}\n.input-preview-module-input-preview-documents__1878X {\n display: flex;\n align-items: flex-start;\n overflow-x: scroll;\n margin: 8px;\n padding: 8px;\n}\n.input-preview-module-input-preview-document-card-container__3ko-A {\n flex: none;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);\n width: 350px;\n overflow: scroll;\n min-height: 150px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n}\n.input-preview-module-input-preview-document-card-container__3ko-A:not(:first-child) {\n margin-left: 16px;\n}\n.input-preview-module-input-preview-document-card__ZvCA5 {\n flex-basis: 150px;\n flex-grow: 1;\n flex-shrink: 0;\n overflow: auto;\n padding: 0;\n}\n.input-preview-module-input-preview-document-card__ZvCA5::-webkit-scrollbar {\n display: none;\n}\n.input-preview-module-input-preview__2di5A::-webkit-scrollbar {\n display: none;\n}\n",""]),i.locals={"input-preview":"input-preview-module-input-preview__2di5A","input-preview-documents":"input-preview-module-input-preview-documents__1878X","input-preview-document-card-container":"input-preview-module-input-preview-document-card-container__3ko-A","input-preview-document-card":"input-preview-module-input-preview-document-card__ZvCA5"};const s=i},8910:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-refresh-module-input-refresh__1jTIT {\n flex-grow: 0;\n}\n",""]),i.locals={"input-refresh":"input-refresh-module-input-refresh__1jTIT"};const s=i},6102:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-toolbar-module-input-toolbar__32jT7 {\n border-bottom: 1px solid #dee0e3;\n display: flex;\n align-items: center;\n position: relative;\n height: 40px;\n width: 100%;\n}\n",""]),i.locals={"input-toolbar":"input-toolbar-module-input-toolbar__32jT7"};const s=i},3279:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-workspace-module-input-workspace__1ivct {\n display: flex;\n align-items: center;\n}\n",""]),i.locals={"input-workspace":"input-workspace-module-input-workspace__1ivct"};const s=i},6546:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".input-module-input__2mTmO {\n position: relative;\n margin: 18px;\n margin-left: 20px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n}\n",""]),i.locals={input:"input-module-input__2mTmO"};const s=i},7130:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".loading-overlay-module-loading-overlay__3jA58 {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n background-color: rgba(0, 0, 0, 0.08);\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.loading-overlay-module-loading-overlay-box__1EYpR {\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 300px;\n height: 50px;\n background-color: #FFFFFF;\n}\n.loading-overlay-module-loading-overlay-box-text__1RHOh {\n font-size: 16px;\n margin-left: 5px;\n}\n.loading-overlay-module-loading-overlay-box__1EYpR i {\n font-size: 20px;\n color: #168B46;\n}\n",""]),i.locals={"loading-overlay":"loading-overlay-module-loading-overlay__3jA58","loading-overlay-box":"loading-overlay-module-loading-overlay-box__1EYpR","loading-overlay-box-text":"loading-overlay-module-loading-overlay-box-text__1RHOh"};const s=i},1266:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".modify-source-banner-module-modify-source-banner__zkRAk {\n text-align: center;\n margin: 5px auto;\n margin-top: 20px;\n z-index: 500;\n}\n",""]),i.locals={"modify-source-banner":"modify-source-banner-module-modify-source-banner__zkRAk"};const s=i},310:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".pipeline-builder-workspace-module-pipeline-workspace-container__2j1ec {\n position: relative;\n width: 100%;\n height: 100%;\n}\n.pipeline-builder-workspace-module-pipeline-workspace__2aYaj {\n display: flex;\n flex-direction: column;\n overflow-y: scroll;\n width: 100%;\n flex-grow: 1;\n}\n.pipeline-builder-workspace-module-pipeline-workspace-container-container__1y8gu {\n flex-grow: 1;\n width: 100%;\n position: relative;\n overflow-y: scroll;\n}\n",""]),i.locals={"pipeline-workspace-container":"pipeline-builder-workspace-module-pipeline-workspace-container__2j1ec","pipeline-workspace":"pipeline-builder-workspace-module-pipeline-workspace__2aYaj","pipeline-workspace-container-container":"pipeline-builder-workspace-module-pipeline-workspace-container-container__1y8gu"};const s=i},9430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,'.collation-toolbar-module-collation-toolbar__31baA {\n display: flex;\n width: 100%;\n flex-shrink: 0;\n align-items: center;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU {\n width: 100%;\n height: 30px;\n position: relative;\n display: flex;\n border-radius: 14px;\n border: 1px #bfbfbe solid;\n background: #fff;\n overflow: hidden;\n padding: 4px;\n margin-right: 5px;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-toolbar-input-label__2z_dD {\n background: #bfbfbe;\n color: #fff;\n white-space: nowrap;\n border-radius: 14px;\n padding: 2px 8px 2px 4px;\n margin-right: 5px;\n text-transform: uppercase;\n font-weight: bold;\n font-family: "Akzidenz", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 11px;\n flex-grow: 0;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-toolbar-input-label__2z_dD i {\n margin-right: 3px;\n margin-left: 0px;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-has-error__1DJu7 {\n background: #ef4c4c;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU input {\n border: 0;\n width: 100%;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU input:focus {\n outline-width: 0;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-max-time-ms__2yHVs {\n display: flex;\n min-width: 170px;\n}\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-max-time-ms__2yHVs input[type=number]::-webkit-inner-spin-button,\n.collation-toolbar-module-toolbar-input-wrapper__nLxwU .collation-toolbar-module-max-time-ms__2yHVs input[type=number]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.collation-toolbar-module-has-focus__3yMBL {\n border-color: #43b1e5;\n}\n',""]),i.locals={"collation-toolbar":"collation-toolbar-module-collation-toolbar__31baA","toolbar-input-wrapper":"collation-toolbar-module-toolbar-input-wrapper__nLxwU","toolbar-input-label":"collation-toolbar-module-toolbar-input-label__2z_dD","has-error":"collation-toolbar-module-has-error__1DJu7","max-time-ms":"collation-toolbar-module-max-time-ms__2yHVs","has-focus":"collation-toolbar-module-has-focus__3yMBL"};const s=i},1570:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".confirm-import-pipeline-module-confirm-import-pipeline-note__3qDU3 {\n padding: 0px;\n}\n",""]),i.locals={"confirm-import-pipeline-note":"confirm-import-pipeline-module-confirm-import-pipeline-note__3qDU3"};const s=i},3777:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".confirm-new-pipeline-module-confirm-new-pipeline-note__2n2EL {\n padding: 0px;\n}\n",""]),i.locals={"confirm-new-pipeline-note":"confirm-new-pipeline-module-confirm-new-pipeline-note__2n2EL"};const s=i},5287:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".import-pipeline-module-import-pipeline-note__vDPrD {\n color: steelblue;\n background-color: #B0E0E6;\n border-radius: 5px;\n padding: 10px;\n margin-bottom: 10px;\n}\n.import-pipeline-module-import-pipeline-editor__2L-TC {\n flex-shrink: 0;\n position: relative;\n padding: 10px 0px 10px 0px;\n overflow: scroll;\n background: #f5f6f7;\n border-left: 2px solid #E4E4E4;\n min-height: 180px;\n max-height: 300px;\n}\n.import-pipeline-module-import-pipeline-error__92RZw {\n flex-shrink: 0;\n position: relative;\n margin: 10px 0px;\n padding: 10px;\n border-radius: 3px;\n overflow: auto;\n background: #ff473a;\n max-height: 100px;\n color: #f5f6f7;\n font-size: x-small;\n font-weight: bold;\n}\n",""]),i.locals={"import-pipeline-note":"import-pipeline-module-import-pipeline-note__vDPrD","import-pipeline-editor":"import-pipeline-module-import-pipeline-editor__2L-TC","import-pipeline-error":"import-pipeline-module-import-pipeline-error__92RZw"};const s=i},4686:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".pipeline-module-pipeline__1nWUF {\n display: flex;\n flex-grow: 1;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n position: relative;\n}\n.pipeline-module-pipeline-collation-toolbar-container__2S68M {\n padding: 6px 10px 6px 15px;\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n}\n.pipeline-module-pipeline-error-banner-container__19QTd {\n margin-left: 20px;\n margin-right: 36px;\n}\n.pipeline-module-pipeline-fullscreen__2QlA5 {\n position: absolute;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n}\n",""]),i.locals={pipeline:"pipeline-module-pipeline__1nWUF","pipeline-collation-toolbar-container":"pipeline-module-pipeline-collation-toolbar-container__2S68M","pipeline-error-banner-container":"pipeline-module-pipeline-error-banner-container__19QTd","pipeline-fullscreen":"pipeline-module-pipeline-fullscreen__2QlA5"};const s=i},6667:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".resize-handle-module-resize-handle__1rugm {\n position: absolute;\n background: #dee0e3;\n width: 1.1px;\n height: 100%;\n}\n",""]),i.locals={"resize-handle":"resize-handle-module-resize-handle__1rugm"};const s=i},1101:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".delete-pipeline-button-module-delete-pipeline__Ch_2o {\n margin: 0px 10px 0px 0px;\n flex-grow: 0;\n visibility: hidden;\n}\n",""]),i.locals={"delete-pipeline":"delete-pipeline-button-module-delete-pipeline__Ch_2o"};const s=i},3981:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".restore-pipeline-button-module-restore-pipeline__NGnMs {\n margin-right: 2px;\n flex-grow: 0;\n visibility: hidden;\n}\n",""]),i.locals={"restore-pipeline":"restore-pipeline-button-module-restore-pipeline__NGnMs"};const s=i},2099:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".save-pipeline-card-module-save-pipeline-card__2EPNA {\n border: 1px solid #dee0e3;\n box-shadow: 0 0 3px #dee0e3;\n margin: 10px;\n display: flex;\n align-items: center;\n background: #fff;\n}\n.save-pipeline-card-module-save-pipeline-card__2EPNA:hover button {\n visibility: visible;\n}\n.save-pipeline-card-module-save-pipeline-card-title__272aN {\n font-size: 12px;\n padding: 8px;\n line-height: 20px;\n font-weight: bold;\n flex-grow: 5;\n color: #494747;\n overflow-wrap: break-word;\n overflow: auto;\n}\n",""]),i.locals={"save-pipeline-card":"save-pipeline-card-module-save-pipeline-card__2EPNA","save-pipeline-card-title":"save-pipeline-card-module-save-pipeline-card-title__272aN"};const s=i},9593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".save-pipeline-module-save-pipeline__1r5sb {\n border-right: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #f8f8f8;\n position: absolute;\n width: 400px;\n height: 100%;\n top: 0;\n left: -401px;\n transition: left 0.2s ease-in-out;\n font-size: 1em;\n z-index: 500;\n}\n.save-pipeline-module-save-pipeline-is-visible__3bNUE {\n left: 0px;\n transition: left 0.2s ease-in-out;\n}\n.save-pipeline-module-save-pipeline-header__1G3Ck {\n height: 34px;\n display: flex;\n padding: 10px;\n font-size: 12px;\n line-height: 20px;\n font-weight: bold;\n color: #494747;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n}\n.save-pipeline-module-save-pipeline-cards__2__gs {\n overflow-y: scroll;\n}\n.save-pipeline-module-save-pipeline-close__2mTMD {\n cursor: pointer;\n}\n.save-pipeline-module-save-pipeline-cards__2__gs::-webkit-scrollbar {\n display: none;\n}\n",""]),i.locals={"save-pipeline":"save-pipeline-module-save-pipeline__1r5sb","save-pipeline-is-visible":"save-pipeline-module-save-pipeline-is-visible__3bNUE","save-pipeline-header":"save-pipeline-module-save-pipeline-header__1G3Ck","save-pipeline-cards":"save-pipeline-module-save-pipeline-cards__2__gs","save-pipeline-close":"save-pipeline-module-save-pipeline-close__2mTMD"};const s=i},6252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,'.settings-module-container__3sWua {\n border-left: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #f8f8f8;\n position: absolute;\n width: 580px;\n height: 100%;\n top: 0;\n right: 0px;\n transition: right 0.2s ease-in-out;\n font-size: 1em;\n z-index: 500;\n}\n.settings-module-header__1rot3 {\n height: 32px;\n display: flex;\n padding: 5px;\n font-size: 12px;\n line-height: 20px;\n font-weight: bold;\n color: #494747;\n align-items: center;\n justify-content: space-between;\n border-bottom: 1px solid #dee0e3;\n box-shadow: 1px 1px 1px #dee0e3;\n}\n.settings-module-header-title__xCvBM {\n color: #424242;\n font-size: 12px;\n font-weight: bold;\n flex-grow: 2;\n}\n.settings-module-header-btn-group__1NySd {\n display: inline-block;\n}\n.settings-module-header-btn-group__1NySd button {\n margin-right: 5px;\n}\n.settings-module-header-btn-group__1NySd:last-child {\n margin-right: 0px;\n}\n.settings-module-input-group__3OjXF {\n margin: 8px;\n padding: 8px 16px;\n background-color: #FFFFFF;\n display: flex;\n align-items: center;\n}\n.settings-module-input-control__3kNAF {\n min-width: 90px;\n}\n.settings-module-input-control__3kNAF input {\n border-radius: 3px;\n border-color: #BFBFBE;\n border-style: solid;\n border-width: 1px;\n padding: 1px;\n text-align: right;\n float: right;\n}\n.settings-module-input-control__3kNAF input[type="text"],\n.settings-module-input-control__3kNAF input[type="number"] {\n width: 70px;\n color: #464C4F;\n}\n.settings-module-input-control__3kNAF input[type="text"]::placeholder,\n.settings-module-input-control__3kNAF input[type="number"]::placeholder {\n font-size: 13px;\n color: #AAAAAA;\n}\n.settings-module-input-meta__2H8QK {\n flex-grow: 1;\n}\n.settings-module-input-meta__2H8QK p {\n margin-top: 8px;\n}\n',""]),i.locals={container:"settings-module-container__3sWua",header:"settings-module-header__1rot3","header-title":"settings-module-header-title__xCvBM","header-btn-group":"settings-module-header-btn-group__1NySd","input-group":"settings-module-input-group__3OjXF","input-control":"settings-module-input-control__3kNAF","input-meta":"settings-module-input-meta__2H8QK"};const s=i},2884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".add-after-stage-module-add-after-stage__1xZf9 {\n display: flex;\n justify-content: flex-end;\n}\n.add-after-stage-module-add-after-stage__1xZf9 button {\n width: 30px;\n margin-right: 6px;\n}\n",""]),i.locals={"add-after-stage":"add-after-stage-module-add-after-stage__1xZf9"};const s=i},9262:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".delete-stage-module-delete-stage__3PyCJ {\n margin-right: 6px;\n}\n.delete-stage-module-delete-stage__3PyCJ button {\n width: 30px;\n}\n",""]),i.locals={"delete-stage":"delete-stage-module-delete-stage__3PyCJ"};const s=i},173:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".select-option-with-tooltip-module-tooltip__3SVxp {\n max-width: 340px !important;\n}\n.select-option-with-tooltip-module-option__K2UZL {\n display: flex;\n align-items: center;\n}\n.select-option-with-tooltip-module-optionIcon__os9Dz {\n margin-left: auto;\n}\n",""]),i.locals={tooltip:"select-option-with-tooltip-module-tooltip__3SVxp",option:"select-option-with-tooltip-module-option__K2UZL",optionIcon:"select-option-with-tooltip-module-optionIcon__os9Dz"};const s=i},1103:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-collapser-module-stage-collapser__3xs2F {\n position: relative;\n}\n.stage-collapser-module-stage-collapser__3xs2F button {\n width: 30px;\n}\n",""]),i.locals={"stage-collapser":"stage-collapser-module-stage-collapser__3xs2F"};const s=i},2891:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,'.stage-editor-toolbar-module-stage-editor-toolbar__2cwCK {\n width: 100%;\n border-bottom: 1px solid #dee0e3;\n border-radius: 4px 4px 0 0;\n padding: 10px 0;\n padding-right: 10px;\n flex-shrink: 0;\n display: flex;\n flex-direction: row;\n align-items: center;\n position: relative;\n height: 30px;\n cursor: move;\n cursor: grab;\n}\n.dragging .stage-editor-toolbar-module-stage-editor-toolbar__2cwCK {\n pointer-events: auto;\n cursor: grabbing;\n}\n.stage-editor-toolbar-module-stage-editor-toolbar-right__3NPrk {\n display: flex;\n justify-content: flex-end;\n flex-grow: 4;\n align-items: center;\n}\n.stage-editor-toolbar-module-stage-editor-toolbar-errored__siGjE {\n background: #FCEBE2;\n}\n.stage-editor-toolbar-module-stage-editor-toolbar__2cwCK i.info-sprinkle {\n display: inline-block;\n font: normal normal normal 14px/1 FontAwesome;\n font-size: inherit;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0 5px;\n cursor: pointer;\n color: #bfbfbe;\n}\n.stage-editor-toolbar-module-stage-editor-toolbar__2cwCK i.info-sprinkle:before {\n content: "\\f05a";\n}\n.stage-editor-toolbar-module-stage-editor-toolbar__2cwCK .stage-editor-toolbar-module-tooltip-icon__3szXX {\n margin-top: 6px;\n margin-right: 6px;\n}\n',""]),i.locals={"stage-editor-toolbar":"stage-editor-toolbar-module-stage-editor-toolbar__2cwCK","stage-editor-toolbar-right":"stage-editor-toolbar-module-stage-editor-toolbar-right__3NPrk","stage-editor-toolbar-errored":"stage-editor-toolbar-module-stage-editor-toolbar-errored__siGjE","tooltip-icon":"stage-editor-toolbar-module-tooltip-icon__3szXX"};const s=i},5884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-grabber-module-stage-grabber__1-8cr {\n color: #dee0e3;\n margin: 3px 2px 0px 4px;\n position: relative;\n}\n",""]),i.locals={"stage-grabber":"stage-grabber-module-stage-grabber__1-8cr"};const s=i},6125:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-operator-select-module-stage-operator-select__1eiQN {\n position: relative;\n width: 120px;\n height: 22px;\n margin: 0px 0px 0px 5px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK {\n position: relative;\n font-size: 12px !important;\n cursor: pointer;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-control {\n height: 22px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-placeholder {\n line-height: 25px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-input {\n height: 18px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-arrow-zone {\n height: 22px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-arrow {\n margin-top: 8px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-value {\n line-height: 22px !important;\n font-weight: bold;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-menu {\n height: 200px;\n}\n.stage-operator-select-module-stage-operator-select-control__LjhSK .Select-menu-outer {\n z-index: 2000 !important;\n}\n",""]),i.locals={"stage-operator-select":"stage-operator-select-module-stage-operator-select__1eiQN","stage-operator-select-control":"stage-operator-select-module-stage-operator-select-control__LjhSK"};const s=i},2347:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".toggle-stage-module-toggle-stage__2JZ-6 {\n margin: 0px 0px 0px 5px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n}\n.toggle-stage-module-toggle-stage-button__1ILJ7 {\n height: 22px;\n width: 40px;\n}\n",""]),i.locals={"toggle-stage":"toggle-stage-module-toggle-stage__2JZ-6","toggle-stage-button":"toggle-stage-module-toggle-stage-button__1ILJ7"};const s=i},8915:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-editor-module-stage-editor-container__1XwN_ {\n position: relative;\n padding: 6px 8px;\n text-align: center;\n}\n.stage-editor-module-stage-editor__3F-oQ {\n flex-shrink: 0;\n margin: 0;\n padding: 10px 0px 10px 0px;\n overflow: hidden;\n background: #f5f6f7;\n border-left: 2px solid #E4E4E4;\n width: 100%;\n min-height: 180px;\n}\n.stage-editor-module-stage-editor-errormsg__3Le7I {\n flex-shrink: 0;\n position: relative;\n margin: 10px;\n padding: 5px 10px;\n border-radius: 3px;\n overflow: hidden;\n background: #FCEBE2;\n border: 1px solid #F9D3C5;\n min-height: 20px;\n word-break: break-all;\n color: #8F221B;\n font-size: x-small;\n font-weight: bold;\n}\n.stage-editor-module-stage-editor-syntax-error__3qEJX {\n flex-shrink: 0;\n position: relative;\n margin: 10px;\n padding: 5px 10px;\n border-radius: 3px;\n overflow: hidden;\n background: #FEF7E3;\n border: 1px solid #FEF2C8;\n min-height: 20px;\n word-break: break-all;\n color: #86681D;\n font-size: x-small;\n font-weight: bold;\n}\n.stage-editor-module-stage-editor-ace-editor__eRQyZ {\n min-height: 160px;\n}\n",""]),i.locals={"stage-editor-container":"stage-editor-module-stage-editor-container__1XwN_","stage-editor":"stage-editor-module-stage-editor__3F-oQ","stage-editor-errormsg":"stage-editor-module-stage-editor-errormsg__3Le7I","stage-editor-syntax-error":"stage-editor-module-stage-editor-syntax-error__3qEJX","stage-editor-ace-editor":"stage-editor-module-stage-editor-ace-editor__eRQyZ"};const s=i},462:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,'.stage-preview-toolbar-module-stage-preview-toolbar__2o0am {\n width: 100%;\n font-size: 12px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n height: 30px;\n padding: 10px 0;\n padding-left: 25px;\n display: flex;\n align-items: center;\n border-bottom: 1px solid #dee0e3;\n border-radius: 4px 4px 0 0;\n}\n.stage-preview-toolbar-module-stage-preview-toolbar-link__q2ehc {\n border: none;\n padding: 0;\n margin: 0;\n background: none;\n}\n.stage-preview-toolbar-module-stage-preview-toolbar-errored__1JajO {\n background: #FCEBE2;\n}\n.stage-preview-toolbar-module-stage-preview-toolbar__2o0am i.info-sprinkle {\n display: inline-block;\n font: normal normal normal 14px/1 FontAwesome;\n font-size: inherit;\n text-rendering: auto;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n margin: 0 5px;\n cursor: pointer;\n color: #bfbfbe;\n}\n.stage-preview-toolbar-module-stage-preview-toolbar__2o0am i.info-sprinkle:before {\n content: "\\f05a";\n}\n.stage-preview-toolbar-module-stage-preview-toolbar__2o0am #stage-tooltip {\n width: 300px;\n white-space: pre-wrap;\n}\n',""]),i.locals={"stage-preview-toolbar":"stage-preview-toolbar-module-stage-preview-toolbar__2o0am","stage-preview-toolbar-link":"stage-preview-toolbar-module-stage-preview-toolbar-link__q2ehc","stage-preview-toolbar-errored":"stage-preview-toolbar-module-stage-preview-toolbar-errored__1JajO"};const s=i},9877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-preview-module-stage-preview__37FlK {\n width: 100%;\n display: flex;\n align-items: stretch;\n overflow: auto;\n position: relative;\n flex-grow: 1;\n}\n.stage-preview-module-stage-preview-empty__9L3fd {\n padding-left: 15px;\n margin: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n fill: none;\n stroke: #89979B;\n text-align: center;\n}\n.stage-preview-module-stage-preview-missing-search-support__18Jmm {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 10px;\n margin: auto;\n}\n.stage-preview-module-stage-preview-missing-search-support-text__1XKhH {\n text-align: center;\n margin-top: 10px;\n margin-bottom: 20px;\n max-width: 400px;\n}\n.stage-preview-module-stage-preview-out__2kjVI {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n padding-top: 32px;\n padding-left: 4px;\n padding-right: 4px;\n padding-bottom: 8px;\n}\n.stage-preview-module-stage-preview-out-text__FwDzO {\n padding: 0px 15px 2px 15px;\n text-align: center;\n}\n.stage-preview-module-stage-preview-out-button__bnXRJ {\n margin-top: 3px;\n}\n.stage-preview-module-stage-preview-out-link__1uCqW {\n border: none;\n padding: 0;\n margin: 0;\n background: none;\n}\n.stage-preview-module-stage-preview-documents__uF1qq {\n display: flex;\n align-items: stretch;\n overflow-x: scroll;\n margin: 8px;\n padding: 8px;\n}\n.stage-preview-module-stage-preview-document-card-container__sxM1s {\n flex: none;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);\n width: 350px;\n overflow: scroll;\n min-height: 150px;\n flex-shrink: 0;\n display: flex;\n flex-direction: column;\n}\n.stage-preview-module-stage-preview-document-card-container__sxM1s:not(:first-child) {\n margin-left: 16px;\n}\n.stage-preview-module-stage-preview-document-card__21xbY {\n flex-basis: 150px;\n flex-grow: 1;\n flex-shrink: 0;\n overflow: auto;\n padding: 0;\n}\n.stage-preview-module-stage-preview-document-card__21xbY::-webkit-scrollbar {\n display: none;\n}\n.stage-preview-module-stage-preview__37FlK::-webkit-scrollbar {\n display: none;\n}\n",""]),i.locals={"stage-preview":"stage-preview-module-stage-preview__37FlK","stage-preview-empty":"stage-preview-module-stage-preview-empty__9L3fd","stage-preview-missing-search-support":"stage-preview-module-stage-preview-missing-search-support__18Jmm","stage-preview-missing-search-support-text":"stage-preview-module-stage-preview-missing-search-support-text__1XKhH","stage-preview-out":"stage-preview-module-stage-preview-out__2kjVI","stage-preview-out-text":"stage-preview-module-stage-preview-out-text__FwDzO","stage-preview-out-button":"stage-preview-module-stage-preview-out-button__bnXRJ","stage-preview-out-link":"stage-preview-module-stage-preview-out-link__1uCqW","stage-preview-documents":"stage-preview-module-stage-preview-documents__uF1qq","stage-preview-document-card-container":"stage-preview-module-stage-preview-document-card-container__sxM1s","stage-preview-document-card":"stage-preview-module-stage-preview-document-card__21xbY"};const s=i},7295:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2609),i=n.n(r)()(!1);i.push([e.id,".stage-module-stage-container__ZDTxh {\n margin: 0px 10px 0px;\n padding-bottom: 15px;\n border-left: 2px solid #dee0e3;\n position: relative;\n}\n.stage-module-stage-container__ZDTxh:before {\n position: absolute;\n left: -3px;\n top: 10px;\n content: '';\n width: 4px;\n height: 16px;\n background-color: #f5f6f7;\n}\n.stage-module-stage-container__ZDTxh:after {\n position: absolute;\n left: -7px;\n top: 12px;\n content: '';\n width: 12px;\n height: 12px;\n border-radius: 50%;\n border: 2px solid #dee0e3;\n}\n.stage-module-stage-container-is-first__C7RFF:before {\n position: absolute;\n left: -3px;\n top: 0px;\n content: '';\n width: 4px;\n height: 26px;\n background-color: #f5f6f7;\n}\n.stage-module-stage-container__ZDTxh .stage-module-stage__1YPPq {\n position: relative;\n margin: 0px 8px 0px;\n border: 1px solid #dee0e3;\n border-radius: 4px;\n box-shadow: 1px 1px 1px #dee0e3;\n background: #fff;\n display: flex;\n flex-direction: row;\n}\n.stage-module-stage-container__ZDTxh .stage-module-stage-errored__mbJmP {\n border-color: #CF4A22;\n}\n.stage-module-stage-editor-container__1LvRF {\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: auto;\n}\n.stage-module-stage-preview-container__2xO44 {\n display: flex;\n flex-direction: column;\n position: relative;\n width: 100%;\n overflow: auto;\n}\n.stage-module-stage-resize-handle-wrapper__1UhOK:hover div div,\n.stage-module-stage-resize-handle-wrapper__1UhOK:active div div {\n background-color: #bfbfbe;\n}\n.stage-module-stage-workspace__9LrbT {\n display: flex;\n align-items: stretch;\n border-radius: 0 0 4px 4px;\n}\n.stage-module-stage-editor-no-preview__34-OX {\n width: 100%;\n}\n",""]),i.locals={"stage-container":"stage-module-stage-container__ZDTxh","stage-container-is-first":"stage-module-stage-container-is-first__C7RFF",stage:"stage-module-stage__1YPPq","stage-errored":"stage-module-stage-errored__mbJmP","stage-editor-container":"stage-module-stage-editor-container__1LvRF","stage-preview-container":"stage-module-stage-preview-container__2xO44","stage-resize-handle-wrapper":"stage-module-stage-resize-handle-wrapper__1UhOK","stage-workspace":"stage-module-stage-workspace__9LrbT","stage-editor-no-preview":"stage-module-stage-editor-no-preview__34-OX"};const s=i},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,s=e[1]||"",o=e[3];if(!o)return s;if(t&&"function"==typeof btoa){var a=(n=o,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),u=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[s].concat(u).concat([a]).join("\n")}return[s].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s<this.length;s++){var o=this[s][0];null!=o&&(i[o]=!0)}for(var a=0;a<e.length;a++){var u=[].concat(e[a]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},7386:(e,t,n)=>{"use strict";const r=n(8653),i=n(1515);function s(e,t){return r(e,t,{parse:!0})}s.text=function(e,t){return r(e,t,{parse:!1,html:!1})},s.html=function(e,t){return r(e,t,{parse:!1,html:!0})},s.getEOL=function(e){if("string"!=typeof e)throw new TypeError("Invalid parameter 'text' specified.");return i.getEOL(e)},e.exports=s},8653:(e,t,n)=>{"use strict";const r=n(1515);e.exports=function(e,t,n){if("string"!=typeof e)throw new TypeError("Input code/text/html must be a string.");if(void 0!==t&&"object"!=typeof t)throw new TypeError("Parameter 'options' must be an object.");const i=e.length,s=t&&t.safe,o=t&&t.space,a=t&&t.trim,u=t&&t.tolerant,l=r.getEOL(e);let c,p=0,h="",d=!0,f="",m=[];if(!i)return e;if(n.parse?(c=r.isHtml(e),c||(m=r.parseRegEx(e,u))):c=n.html,t&&t.ignore){let n=t.ignore;if(n instanceof RegExp?n=[n]:n instanceof Array?(n=n.filter((e=>e instanceof RegExp)),n.length||(n=null)):n=null,n){for(let t=0;t<n.length;t++){const r=n[t];let i;do{i=r.exec(e),i&&m.push({start:i.index,end:i.index+i[0].length-1})}while(i&&r.global)}m=m.sort(((e,t)=>e.start-t.start))}}do{if(!c&&"/"===e[p]&&p<i-1&&(!p||"\\"!==e[p-1])){if("/"===e[p+1]){if(g()){f&&(h+=f,f=""),h+="/";continue}const t=e.indexOf(l,p+2);if(t<0)break;d?(f="",o?p=t-1:(p=t+l.length-1,E())):p=t-1;continue}if("*"===e[p+1]){if(g()){f&&(h+=f,f=""),h+="/";continue}const t=e.indexOf("*/",p+2),n=s&&p<i-2&&"!"===e[p+2];if(n&&(h+=t>=0?e.substr(p,t-p+2):e.substr(p,i-p)),t<0)break;const a=e.substr(p,t-p+2);if(p=t+1,d&&(f=""),!n){const t=a.split(l);if(o)for(let e=0;e<t.length-1;e++)h+=l;const n=e.indexOf(l,p+1);if(n>p){let i=n-1;for(;(" "===e[i]||"\t"===e[i])&&--i>p;);i===p?d&&!o&&(p=n+l.length-1,E()):o&&(h+=r.getSpaces(t[t.length-1].length))}else if(o){let n=p+1;for(;(" "===e[n]||"\t"===e[n])&&++n<i;);n<i&&(h+=r.getSpaces(t[t.length-1].length))}}continue}}if(c&&"<"===e[p]&&p<i-3&&"!--"===e.substr(p+1,3)){if(g()){f&&(h+=f,f=""),h+="<";continue}const t=e.indexOf("--\x3e",p+4),n=s&&"[if"===e.substr(p+4,3);if(n&&(h+=t>=0?e.substr(p,t-p+3):e.substr(p,i-p)),t<0)break;const a=e.substr(p,t-p+3);if(p=t+2,d&&(f=""),!n){const t=a.split(l);if(o)for(let e=0;e<t.length-1;e++)h+=l;const n=e.indexOf(l,p+1);if(n>p){let i=n-1;for(;(" "===e[i]||"\t"===e[i])&&--i>p;);i===p?d&&!o&&(p=n+l.length-1,E()):o&&(h+=r.getSpaces(t[t.length-1].length))}else if(o){let n=p+1;for(;(" "===e[n]||"\t"===e[n])&&++n<i;);n<i&&(h+=r.getSpaces(t[t.length-1].length))}}continue}const t=e[p],n=" "===t||"\t"===t;if("\r"===t||"\n"===t?e.indexOf(l,p)===p&&(d=!0):n||(d=!1,h+=f,f=""),d&&n?f+=t:h+=t,!(c||"'"!==t&&'"'!==t&&"`"!==t||p&&"\\"===e[p-1])){if(g())continue;let n=p;do{if(n=e.indexOf(t,n+1),n>0){let t=n;for(;"\\"===e[--t];);if((n-t)%2)break}}while(n>0);if(n<0)break;h+=e.substr(p+1,n-p),p=n}}while(++p<i);function g(){if(m.length)return r.indexInRegEx(p,m)}function E(){if(a){let t,n,r;do{for(t=p+1,n=e.indexOf(l,t),r=t;(" "===e[r]||"\t"===e[r])&&++r<n;);r===n&&(p=n+l.length-1)}while(r===n)}}return h}},1515:(e,t,n)=>{"use strict";const r=n(671),i=n(9801);e.exports={getEOL:function(e){let t=0,n=0,r=0;for(;t<e.length&&(t=e.indexOf("\n",t),-1!=t);)t>0&&"\r"===e[t-1]?r++:n++,t++;return n===r?i.EOL:n>r?"\n":"\r\n"},getSpaces:function(e){return" ".repeat(e)},parseRegEx:function(e,t){const n=[];return r.tokenize(e,{loc:!0,range:!0,tolerant:!!t},(e=>{"RegularExpression"===e.type&&n.push({start:e.range[0]+1,end:e.range[1]-1})})),n},indexInRegEx:function(e,t){let n,r=0,i=t.length-1;for(;r<=i;){n=Math.round((r+i)/2);const s=t[n];if(e>=s.start){if(e<=s.end)return!0;r=n+1}else i=n-1}return!1},isHtml:function(e){let t,n=0;do{if(t=e[n]," "!==t&&"\t"!==t&&"\r"!==t&&"\n"!==t)return"<"===t}while(++n<e.length)}}},671:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(3),s=n(8),o=n(15);function a(e,t,n){var o=null,a=function(e,t){n&&n(e,t),o&&o.visit(e,t)},u="function"==typeof n?a:null,l=!1;if(t){l="boolean"==typeof t.comment&&t.comment;var c="boolean"==typeof t.attachComment&&t.attachComment;(l||c)&&((o=new r.CommentHandler).attach=c,t.comment=!0,u=a)}var p,h=!1;t&&"string"==typeof t.sourceType&&(h="module"===t.sourceType),p=t&&"boolean"==typeof t.jsx&&t.jsx?new i.JSXParser(e,t,u):new s.Parser(e,t,u);var d=h?p.parseModule():p.parseScript();return l&&o&&(d.comments=o.comments),p.config.tokens&&(d.tokens=p.tokens),p.config.tolerant&&(d.errors=p.errorHandler.errors),d}t.parse=a,t.parseModule=function(e,t,n){var r=t||{};return r.sourceType="module",a(e,r,n)},t.parseScript=function(e,t,n){var r=t||{};return r.sourceType="script",a(e,r,n)},t.tokenize=function(e,t,n){var r,i=new o.Tokenizer(e,t);r=[];try{for(;;){var s=i.getNextToken();if(!s)break;n&&(s=n(s)),r.push(s)}}catch(e){i.errorHandler.tolerate(e)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r};var u=n(2);t.Syntax=u.Syntax,t.version="4.0.1"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=function(){function e(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return e.prototype.insertInnerComments=function(e,t){if(e.type===r.Syntax.BlockStatement&&0===e.body.length){for(var n=[],i=this.leading.length-1;i>=0;--i){var s=this.leading[i];t.end.offset>=s.start&&(n.unshift(s.comment),this.leading.splice(i,1),this.trailing.splice(i,1))}n.length&&(e.innerComments=n)}},e.prototype.findTrailingComments=function(e){var t=[];if(this.trailing.length>0){for(var n=this.trailing.length-1;n>=0;--n){var r=this.trailing[n];r.start>=e.end.offset&&t.unshift(r.comment)}return this.trailing.length=0,t}var i=this.stack[this.stack.length-1];if(i&&i.node.trailingComments){var s=i.node.trailingComments[0];s&&s.range[0]>=e.end.offset&&(t=i.node.trailingComments,delete i.node.trailingComments)}return t},e.prototype.findLeadingComments=function(e){for(var t,n=[];this.stack.length>0&&(s=this.stack[this.stack.length-1])&&s.start>=e.start.offset;)t=s.node,this.stack.pop();if(t){for(var r=(t.leadingComments?t.leadingComments.length:0)-1;r>=0;--r){var i=t.leadingComments[r];i.range[1]<=e.start.offset&&(n.unshift(i),t.leadingComments.splice(r,1))}return t.leadingComments&&0===t.leadingComments.length&&delete t.leadingComments,n}for(r=this.leading.length-1;r>=0;--r){var s;(s=this.leading[r]).start<=e.start.offset&&(n.unshift(s.comment),this.leading.splice(r,1))}return n},e.prototype.visitNode=function(e,t){if(!(e.type===r.Syntax.Program&&e.body.length>0)){this.insertInnerComments(e,t);var n=this.findTrailingComments(t),i=this.findLeadingComments(t);i.length>0&&(e.leadingComments=i),n.length>0&&(e.trailingComments=n),this.stack.push({node:e,start:t.start.offset})}},e.prototype.visitComment=function(e,t){var n="L"===e.type[0]?"Line":"Block",r={type:n,value:e.value};if(e.range&&(r.range=e.range),e.loc&&(r.loc=e.loc),this.comments.push(r),this.attach){var i={comment:{type:n,value:e.value,range:[t.start.offset,t.end.offset]},start:t.start.offset};e.loc&&(i.comment.loc=e.loc),e.type=n,this.leading.push(i),this.trailing.push(i)}},e.prototype.visit=function(e,t){"LineComment"===e.type||"BlockComment"===e.type?this.visitComment(e,t):this.attach&&this.visitNode(e,t)},e}();t.CommentHandler=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),o=n(5),a=n(6),u=n(7),l=n(8),c=n(13),p=n(14);function h(e){var t;switch(e.type){case a.JSXSyntax.JSXIdentifier:t=e.name;break;case a.JSXSyntax.JSXNamespacedName:var n=e;t=h(n.namespace)+":"+h(n.name);break;case a.JSXSyntax.JSXMemberExpression:var r=e;t=h(r.object)+"."+h(r.property)}return t}c.TokenName[100]="JSXIdentifier",c.TokenName[101]="JSXText";var d=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return i(t,e),t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(e){for(var t="&",n=!0,r=!1,i=!1,o=!1;!this.scanner.eof()&&n&&!r;){var a=this.scanner.source[this.scanner.index];if(a===e)break;if(r=";"===a,t+=a,++this.scanner.index,!r)switch(t.length){case 2:i="#"===a;break;case 3:i&&(n=(o="x"===a)||s.Character.isDecimalDigit(a.charCodeAt(0)),i=i&&!o);break;default:n=(n=n&&!(i&&!s.Character.isDecimalDigit(a.charCodeAt(0))))&&!(o&&!s.Character.isHexDigit(a.charCodeAt(0)))}}if(n&&r&&t.length>2){var u=t.substr(1,t.length-2);i&&u.length>1?t=String.fromCharCode(parseInt(u.substr(1),10)):o&&u.length>2?t=String.fromCharCode(parseInt("0"+u.substr(1),16)):i||o||!p.XHTMLEntities[u]||(t=p.XHTMLEntities[u])}return t},t.prototype.lexJSX=function(){var e=this.scanner.source.charCodeAt(this.scanner.index);if(60===e||62===e||47===e||58===e||61===e||123===e||125===e)return{type:7,value:a=this.scanner.source[this.scanner.index++],lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index};if(34===e||39===e){for(var t=this.scanner.index,n=this.scanner.source[this.scanner.index++],r="";!this.scanner.eof()&&(u=this.scanner.source[this.scanner.index++])!==n;)r+="&"===u?this.scanXHTMLEntity(n):u;return{type:8,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(46===e){var i=this.scanner.source.charCodeAt(this.scanner.index+1),o=this.scanner.source.charCodeAt(this.scanner.index+2),a=46===i&&46===o?"...":".";return t=this.scanner.index,this.scanner.index+=a.length,{type:7,value:a,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}if(96===e)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(s.Character.isIdentifierStart(e)&&92!==e){for(t=this.scanner.index,++this.scanner.index;!this.scanner.eof();){var u=this.scanner.source.charCodeAt(this.scanner.index);if(s.Character.isIdentifierPart(u)&&92!==u)++this.scanner.index;else{if(45!==u)break;++this.scanner.index}}return{type:100,value:this.scanner.source.slice(t,this.scanner.index),lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:t,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var e=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(e)),e},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var e=this.scanner.index,t="";!this.scanner.eof();){var n=this.scanner.source[this.scanner.index];if("{"===n||"<"===n)break;++this.scanner.index,t+=n,s.Character.isLineTerminator(n.charCodeAt(0))&&(++this.scanner.lineNumber,"\r"===n&&"\n"===this.scanner.source[this.scanner.index]&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var r={type:101,value:t,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:e,end:this.scanner.index};return t.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(r)),r},t.prototype.peekJSXToken=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.lexJSX();return this.scanner.restoreState(e),t},t.prototype.expectJSX=function(e){var t=this.nextJSXToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},t.prototype.matchJSX=function(e){var t=this.peekJSXToken();return 7===t.type&&t.value===e},t.prototype.parseJSXIdentifier=function(){var e=this.createJSXNode(),t=this.nextJSXToken();return 100!==t.type&&this.throwUnexpectedToken(t),this.finalize(e,new o.JSXIdentifier(t.value))},t.prototype.parseJSXElementName=function(){var e=this.createJSXNode(),t=this.parseJSXIdentifier();if(this.matchJSX(":")){var n=t;this.expectJSX(":");var r=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXNamespacedName(n,r))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var i=t;this.expectJSX(".");var s=this.parseJSXIdentifier();t=this.finalize(e,new o.JSXMemberExpression(i,s))}return t},t.prototype.parseJSXAttributeName=function(){var e,t=this.createJSXNode(),n=this.parseJSXIdentifier();if(this.matchJSX(":")){var r=n;this.expectJSX(":");var i=this.parseJSXIdentifier();e=this.finalize(t,new o.JSXNamespacedName(r,i))}else e=n;return e},t.prototype.parseJSXStringLiteralAttribute=function(){var e=this.createJSXNode(),t=this.nextJSXToken();8!==t.type&&this.throwUnexpectedToken(t);var n=this.getTokenRaw(t);return this.finalize(e,new u.Literal(t.value,n))},t.prototype.parseJSXExpressionAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXExpressionContainer(t))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var e=this.createJSXNode(),t=this.parseJSXAttributeName(),n=null;return this.matchJSX("=")&&(this.expectJSX("="),n=this.parseJSXAttributeValue()),this.finalize(e,new o.JSXAttribute(t,n))},t.prototype.parseJSXSpreadAttribute=function(){var e=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var t=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(e,new o.JSXSpreadAttribute(t))},t.prototype.parseJSXAttributes=function(){for(var e=[];!this.matchJSX("/")&&!this.matchJSX(">");){var t=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();e.push(t)}return e},t.prototype.parseJSXOpeningElement=function(){var e=this.createJSXNode();this.expectJSX("<");var t=this.parseJSXElementName(),n=this.parseJSXAttributes(),r=this.matchJSX("/");return r&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(t,r,n))},t.prototype.parseJSXBoundaryElement=function(){var e=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var t=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(e,new o.JSXClosingElement(t))}var n=this.parseJSXElementName(),r=this.parseJSXAttributes(),i=this.matchJSX("/");return i&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(e,new o.JSXOpeningElement(n,i,r))},t.prototype.parseJSXEmptyExpression=function(){var e=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(e,new o.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var e,t=this.createJSXNode();return this.expectJSX("{"),this.matchJSX("}")?(e=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),e=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(t,new o.JSXExpressionContainer(e))},t.prototype.parseJSXChildren=function(){for(var e=[];!this.scanner.eof();){var t=this.createJSXChildNode(),n=this.nextJSXText();if(n.start<n.end){var r=this.getTokenRaw(n),i=this.finalize(t,new o.JSXText(n.value,r));e.push(i)}if("{"!==this.scanner.source[this.scanner.index])break;var s=this.parseJSXExpressionContainer();e.push(s)}return e},t.prototype.parseComplexJSXElement=function(e){for(var t=[];!this.scanner.eof();){e.children=e.children.concat(this.parseJSXChildren());var n=this.createJSXChildNode(),r=this.parseJSXBoundaryElement();if(r.type===a.JSXSyntax.JSXOpeningElement){var i=r;if(i.selfClosing){var s=this.finalize(n,new o.JSXElement(i,[],null));e.children.push(s)}else t.push(e),e={node:n,opening:i,closing:null,children:[]}}if(r.type===a.JSXSyntax.JSXClosingElement){e.closing=r;var u=h(e.opening.name);if(u!==h(e.closing.name)&&this.tolerateError("Expected corresponding JSX closing tag for %0",u),!(t.length>0))break;s=this.finalize(e.node,new o.JSXElement(e.opening,e.children,e.closing)),(e=t[t.length-1]).children.push(s),t.pop()}}return e},t.prototype.parseJSXElement=function(){var e=this.createJSXNode(),t=this.parseJSXOpeningElement(),n=[],r=null;if(!t.selfClosing){var i=this.parseComplexJSXElement({node:e,opening:t,closing:r,children:n});n=i.children,r=i.closing}return this.finalize(e,new o.JSXElement(t,n,r))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var e=this.parseJSXElement();return this.finishJSX(),e},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t}(l.Parser);t.JSXParser=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};t.Character={fromCodePoint:function(e){return e<65536?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10))+String.fromCharCode(56320+(e-65536&1023))},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||92===e||e>=128&&n.NonAsciiIdentifierStart.test(t.Character.fromCodePoint(e))},isIdentifierPart:function(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||92===e||e>=128&&n.NonAsciiIdentifierPart.test(t.Character.fromCodePoint(e))},isDecimalDigit:function(e){return e>=48&&e<=57},isHexDigit:function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},isOctalDigit:function(e){return e>=48&&e<=55}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.JSXClosingElement=function(e){this.type=r.JSXSyntax.JSXClosingElement,this.name=e};t.JSXElement=function(e,t,n){this.type=r.JSXSyntax.JSXElement,this.openingElement=e,this.children=t,this.closingElement=n};t.JSXEmptyExpression=function(){this.type=r.JSXSyntax.JSXEmptyExpression};t.JSXExpressionContainer=function(e){this.type=r.JSXSyntax.JSXExpressionContainer,this.expression=e};t.JSXIdentifier=function(e){this.type=r.JSXSyntax.JSXIdentifier,this.name=e};t.JSXMemberExpression=function(e,t){this.type=r.JSXSyntax.JSXMemberExpression,this.object=e,this.property=t};t.JSXAttribute=function(e,t){this.type=r.JSXSyntax.JSXAttribute,this.name=e,this.value=t};t.JSXNamespacedName=function(e,t){this.type=r.JSXSyntax.JSXNamespacedName,this.namespace=e,this.name=t};t.JSXOpeningElement=function(e,t,n){this.type=r.JSXSyntax.JSXOpeningElement,this.name=e,this.selfClosing=t,this.attributes=n};t.JSXSpreadAttribute=function(e){this.type=r.JSXSyntax.JSXSpreadAttribute,this.argument=e};t.JSXText=function(e,t){this.type=r.JSXSyntax.JSXText,this.value=e,this.raw=t}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.ArrayExpression=function(e){this.type=r.Syntax.ArrayExpression,this.elements=e};t.ArrayPattern=function(e){this.type=r.Syntax.ArrayPattern,this.elements=e};t.ArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!1};t.AssignmentExpression=function(e,t,n){this.type=r.Syntax.AssignmentExpression,this.operator=e,this.left=t,this.right=n};t.AssignmentPattern=function(e,t){this.type=r.Syntax.AssignmentPattern,this.left=e,this.right=t};t.AsyncArrowFunctionExpression=function(e,t,n){this.type=r.Syntax.ArrowFunctionExpression,this.id=null,this.params=e,this.body=t,this.generator=!1,this.expression=n,this.async=!0};t.AsyncFunctionDeclaration=function(e,t,n){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AsyncFunctionExpression=function(e,t,n){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=!1,this.expression=!1,this.async=!0};t.AwaitExpression=function(e){this.type=r.Syntax.AwaitExpression,this.argument=e};t.BinaryExpression=function(e,t,n){var i="||"===e||"&&"===e;this.type=i?r.Syntax.LogicalExpression:r.Syntax.BinaryExpression,this.operator=e,this.left=t,this.right=n};t.BlockStatement=function(e){this.type=r.Syntax.BlockStatement,this.body=e};t.BreakStatement=function(e){this.type=r.Syntax.BreakStatement,this.label=e};t.CallExpression=function(e,t){this.type=r.Syntax.CallExpression,this.callee=e,this.arguments=t};t.CatchClause=function(e,t){this.type=r.Syntax.CatchClause,this.param=e,this.body=t};t.ClassBody=function(e){this.type=r.Syntax.ClassBody,this.body=e};t.ClassDeclaration=function(e,t,n){this.type=r.Syntax.ClassDeclaration,this.id=e,this.superClass=t,this.body=n};t.ClassExpression=function(e,t,n){this.type=r.Syntax.ClassExpression,this.id=e,this.superClass=t,this.body=n};t.ComputedMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!0,this.object=e,this.property=t};t.ConditionalExpression=function(e,t,n){this.type=r.Syntax.ConditionalExpression,this.test=e,this.consequent=t,this.alternate=n};t.ContinueStatement=function(e){this.type=r.Syntax.ContinueStatement,this.label=e};t.DebuggerStatement=function(){this.type=r.Syntax.DebuggerStatement};t.Directive=function(e,t){this.type=r.Syntax.ExpressionStatement,this.expression=e,this.directive=t};t.DoWhileStatement=function(e,t){this.type=r.Syntax.DoWhileStatement,this.body=e,this.test=t};t.EmptyStatement=function(){this.type=r.Syntax.EmptyStatement};t.ExportAllDeclaration=function(e){this.type=r.Syntax.ExportAllDeclaration,this.source=e};t.ExportDefaultDeclaration=function(e){this.type=r.Syntax.ExportDefaultDeclaration,this.declaration=e};t.ExportNamedDeclaration=function(e,t,n){this.type=r.Syntax.ExportNamedDeclaration,this.declaration=e,this.specifiers=t,this.source=n};t.ExportSpecifier=function(e,t){this.type=r.Syntax.ExportSpecifier,this.exported=t,this.local=e};t.ExpressionStatement=function(e){this.type=r.Syntax.ExpressionStatement,this.expression=e};t.ForInStatement=function(e,t,n){this.type=r.Syntax.ForInStatement,this.left=e,this.right=t,this.body=n,this.each=!1};t.ForOfStatement=function(e,t,n){this.type=r.Syntax.ForOfStatement,this.left=e,this.right=t,this.body=n};t.ForStatement=function(e,t,n,i){this.type=r.Syntax.ForStatement,this.init=e,this.test=t,this.update=n,this.body=i};t.FunctionDeclaration=function(e,t,n,i){this.type=r.Syntax.FunctionDeclaration,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.FunctionExpression=function(e,t,n,i){this.type=r.Syntax.FunctionExpression,this.id=e,this.params=t,this.body=n,this.generator=i,this.expression=!1,this.async=!1};t.Identifier=function(e){this.type=r.Syntax.Identifier,this.name=e};t.IfStatement=function(e,t,n){this.type=r.Syntax.IfStatement,this.test=e,this.consequent=t,this.alternate=n};t.ImportDeclaration=function(e,t){this.type=r.Syntax.ImportDeclaration,this.specifiers=e,this.source=t};t.ImportDefaultSpecifier=function(e){this.type=r.Syntax.ImportDefaultSpecifier,this.local=e};t.ImportNamespaceSpecifier=function(e){this.type=r.Syntax.ImportNamespaceSpecifier,this.local=e};t.ImportSpecifier=function(e,t){this.type=r.Syntax.ImportSpecifier,this.local=e,this.imported=t};t.LabeledStatement=function(e,t){this.type=r.Syntax.LabeledStatement,this.label=e,this.body=t};t.Literal=function(e,t){this.type=r.Syntax.Literal,this.value=e,this.raw=t};t.MetaProperty=function(e,t){this.type=r.Syntax.MetaProperty,this.meta=e,this.property=t};t.MethodDefinition=function(e,t,n,i,s){this.type=r.Syntax.MethodDefinition,this.key=e,this.computed=t,this.value=n,this.kind=i,this.static=s};t.Module=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="module"};t.NewExpression=function(e,t){this.type=r.Syntax.NewExpression,this.callee=e,this.arguments=t};t.ObjectExpression=function(e){this.type=r.Syntax.ObjectExpression,this.properties=e};t.ObjectPattern=function(e){this.type=r.Syntax.ObjectPattern,this.properties=e};t.Property=function(e,t,n,i,s,o){this.type=r.Syntax.Property,this.key=t,this.computed=n,this.value=i,this.kind=e,this.method=s,this.shorthand=o};t.RegexLiteral=function(e,t,n,i){this.type=r.Syntax.Literal,this.value=e,this.raw=t,this.regex={pattern:n,flags:i}};t.RestElement=function(e){this.type=r.Syntax.RestElement,this.argument=e};t.ReturnStatement=function(e){this.type=r.Syntax.ReturnStatement,this.argument=e};t.Script=function(e){this.type=r.Syntax.Program,this.body=e,this.sourceType="script"};t.SequenceExpression=function(e){this.type=r.Syntax.SequenceExpression,this.expressions=e};t.SpreadElement=function(e){this.type=r.Syntax.SpreadElement,this.argument=e};t.StaticMemberExpression=function(e,t){this.type=r.Syntax.MemberExpression,this.computed=!1,this.object=e,this.property=t};t.Super=function(){this.type=r.Syntax.Super};t.SwitchCase=function(e,t){this.type=r.Syntax.SwitchCase,this.test=e,this.consequent=t};t.SwitchStatement=function(e,t){this.type=r.Syntax.SwitchStatement,this.discriminant=e,this.cases=t};t.TaggedTemplateExpression=function(e,t){this.type=r.Syntax.TaggedTemplateExpression,this.tag=e,this.quasi=t};t.TemplateElement=function(e,t){this.type=r.Syntax.TemplateElement,this.value=e,this.tail=t};t.TemplateLiteral=function(e,t){this.type=r.Syntax.TemplateLiteral,this.quasis=e,this.expressions=t};t.ThisExpression=function(){this.type=r.Syntax.ThisExpression};t.ThrowStatement=function(e){this.type=r.Syntax.ThrowStatement,this.argument=e};t.TryStatement=function(e,t,n){this.type=r.Syntax.TryStatement,this.block=e,this.handler=t,this.finalizer=n};t.UnaryExpression=function(e,t){this.type=r.Syntax.UnaryExpression,this.operator=e,this.argument=t,this.prefix=!0};t.UpdateExpression=function(e,t,n){this.type=r.Syntax.UpdateExpression,this.operator=e,this.argument=t,this.prefix=n};t.VariableDeclaration=function(e,t){this.type=r.Syntax.VariableDeclaration,this.declarations=e,this.kind=t};t.VariableDeclarator=function(e,t){this.type=r.Syntax.VariableDeclarator,this.id=e,this.init=t};t.WhileStatement=function(e,t){this.type=r.Syntax.WhileStatement,this.test=e,this.body=t};t.WithStatement=function(e,t){this.type=r.Syntax.WithStatement,this.object=e,this.body=t};t.YieldExpression=function(e,t){this.type=r.Syntax.YieldExpression,this.argument=e,this.delegate=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(10),s=n(11),o=n(7),a=n(12),u=n(2),l=n(13),c="ArrowParameterPlaceHolder",p=function(){function e(e,t,n){void 0===t&&(t={}),this.config={range:"boolean"==typeof t.range&&t.range,loc:"boolean"==typeof t.loc&&t.loc,source:null,tokens:"boolean"==typeof t.tokens&&t.tokens,comment:"boolean"==typeof t.comment&&t.comment,tolerant:"boolean"==typeof t.tolerant&&t.tolerant},this.config.loc&&t.source&&null!==t.source&&(this.config.source=String(t.source)),this.delegate=n,this.errorHandler=new i.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new a.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return e.prototype.throwError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return r.assert(t<i.length,"Message reference must be in range"),i[t]})),o=this.lastMarker.index,a=this.lastMarker.line,u=this.lastMarker.column+1;throw this.errorHandler.createError(o,a,u,s)},e.prototype.tolerateError=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.prototype.slice.call(arguments,1),s=e.replace(/%(\d)/g,(function(e,t){return r.assert(t<i.length,"Message reference must be in range"),i[t]})),o=this.lastMarker.index,a=this.scanner.lineNumber,u=this.lastMarker.column+1;this.errorHandler.tolerateError(o,a,u,s)},e.prototype.unexpectedTokenError=function(e,t){var n,r=t||s.Messages.UnexpectedToken;if(e?(t||(r=2===e.type?s.Messages.UnexpectedEOS:3===e.type?s.Messages.UnexpectedIdentifier:6===e.type?s.Messages.UnexpectedNumber:8===e.type?s.Messages.UnexpectedString:10===e.type?s.Messages.UnexpectedTemplate:s.Messages.UnexpectedToken,4===e.type&&(this.scanner.isFutureReservedWord(e.value)?r=s.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(r=s.Messages.StrictReservedWord))),n=e.value):n="ILLEGAL",r=r.replace("%0",n),e&&"number"==typeof e.lineNumber){var i=e.start,o=e.lineNumber,a=this.lastMarker.index-this.lastMarker.column,u=e.start-a+1;return this.errorHandler.createError(i,o,u,r)}return i=this.lastMarker.index,o=this.lastMarker.line,u=this.lastMarker.column+1,this.errorHandler.createError(i,o,u,r)},e.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},e.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},e.prototype.collectComments=function(){if(this.config.comment){var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var n=e[t],r=void 0;r={type:n.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(n.slice[0],n.slice[1])},this.config.range&&(r.range=n.range),this.config.loc&&(r.loc=n.loc);var i={start:{line:n.loc.start.line,column:n.loc.start.column,offset:n.range[0]},end:{line:n.loc.end.line,column:n.loc.end.column,offset:n.range[1]}};this.delegate(r,i)}}else this.scanner.scanComments()},e.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},e.prototype.convertToken=function(e){var t={type:l.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),9===e.type){var n=e.pattern,r=e.flags;t.regex={pattern:n,flags:r}}return t},e.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&3===t.type&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&2!==t.type&&this.tokens.push(this.convertToken(t)),e},e.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},e.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},e.prototype.startNode=function(e,t){void 0===t&&(t=0);var n=e.start-e.lineStart,r=e.lineNumber;return n<0&&(n+=t,r--),{index:e.start,line:r,column:n}},e.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var n={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,n)}return t},e.prototype.expect=function(e){var t=this.nextToken();7===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;7===e.type&&","===e.value?this.nextToken():7===e.type&&";"===e.value?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,s.Messages.UnexpectedToken)}else this.expect(",")},e.prototype.expectKeyword=function(e){var t=this.nextToken();4===t.type&&t.value===e||this.throwUnexpectedToken(t)},e.prototype.match=function(e){return 7===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchKeyword=function(e){return 4===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchContextualKeyword=function(e){return 3===this.lookahead.type&&this.lookahead.value===e},e.prototype.matchAssign=function(){if(7!==this.lookahead.type)return!1;var e=this.lookahead.value;return"="===e||"*="===e||"**="===e||"/="===e||"%="===e||"+="===e||"-="===e||"<<="===e||">>="===e||">>>="===e||"&="===e||"^="===e||"|="===e},e.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return null!==this.context.firstCoverInitializedNameError&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=n,this.context.firstCoverInitializedNameError=r,i},e.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,n=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var i=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&n,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,i},e.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(2===this.lookahead.type||this.match("}")||this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},e.prototype.parsePrimaryExpression=function(){var e,t,n,r=this.createNode();switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&"await"===this.lookahead.value&&this.tolerateUnexpectedToken(this.lookahead),e=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(r,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,s.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new o.Literal(t.value,n));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new o.Literal("true"===t.value,n));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,t=this.nextToken(),n=this.getTokenRaw(t),e=this.finalize(r,new o.Literal(null,n));break;case 10:e=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,e=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":e=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":e=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,t=this.nextRegexToken(),n=this.getTokenRaw(t),e=this.finalize(r,new o.RegexLiteral(t.regex,n,t.pattern,t.flags));break;default:e=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?e=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?e=this.finalize(r,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?e=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),e=this.finalize(r,new o.ThisExpression)):e=this.matchKeyword("class")?this.parseClassExpression():this.throwUnexpectedToken(this.nextToken()));break;default:e=this.throwUnexpectedToken(this.nextToken())}return e},e.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},e.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var n=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(n)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},e.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,n=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=n,r},e.prototype.parsePropertyMethodFunction=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters(),r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,r,!1))},e.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,n=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),i=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=n,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,i))},e.prototype.parseObjectPropertyKey=function(){var e,t=this.createNode(),n=this.nextToken();switch(n.type){case 8:case 6:this.context.strict&&n.octal&&this.tolerateUnexpectedToken(n,s.Messages.StrictOctalLiteral);var r=this.getTokenRaw(n);e=this.finalize(t,new o.Literal(n.value,r));break;case 3:case 1:case 5:case 4:e=this.finalize(t,new o.Identifier(n.value));break;case 7:"["===n.value?(e=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):e=this.throwUnexpectedToken(n);break;default:e=this.throwUnexpectedToken(n)}return e},e.prototype.isPropertyKey=function(e,t){return e.type===u.Syntax.Identifier&&e.name===t||e.type===u.Syntax.Literal&&e.value===t},e.prototype.parseObjectProperty=function(e){var t,n=this.createNode(),r=this.lookahead,i=null,a=null,u=!1,l=!1,c=!1,p=!1;if(3===r.type){var h=r.value;this.nextToken(),u=this.match("["),i=(p=!(this.hasLineTerminator||"async"!==h||this.match(":")||this.match("(")||this.match("*")||this.match(",")))?this.parseObjectPropertyKey():this.finalize(n,new o.Identifier(h))}else this.match("*")?this.nextToken():(u=this.match("["),i=this.parseObjectPropertyKey());var d=this.qualifiedPropertyName(this.lookahead);if(3===r.type&&!p&&"get"===r.value&&d)t="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod();else if(3===r.type&&!p&&"set"===r.value&&d)t="set",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod();else if(7===r.type&&"*"===r.value&&d)t="init",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),l=!0;else if(i||this.throwUnexpectedToken(this.lookahead),t="init",this.match(":")&&!p)!u&&this.isPropertyKey(i,"__proto__")&&(e.value&&this.tolerateError(s.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),a=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))a=p?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0;else if(3===r.type)if(h=this.finalize(n,new o.Identifier(r.value)),this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),c=!0;var f=this.isolateCoverGrammar(this.parseAssignmentExpression);a=this.finalize(n,new o.AssignmentPattern(h,f))}else c=!0,a=h;else this.throwUnexpectedToken(this.nextToken());return this.finalize(n,new o.Property(t,i,u,a,l,c))},e.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],n={value:!1};!this.match("}");)t.push(this.parseObjectProperty(n)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},e.prototype.parseTemplateHead=function(){r.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),n=t.value,i=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:i},t.tail))},e.prototype.parseTemplateElement=function(){10!==this.lookahead.type&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),n=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:n,cooked:r},t.tail))},e.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],n=[],r=this.parseTemplateHead();for(n.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),n.push(r);return this.finalize(e,new o.TemplateLiteral(n,t))},e.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case u.Syntax.Identifier:case u.Syntax.MemberExpression:case u.Syntax.RestElement:case u.Syntax.AssignmentPattern:break;case u.Syntax.SpreadElement:e.type=u.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case u.Syntax.ArrayExpression:e.type=u.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)null!==e.elements[t]&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case u.Syntax.ObjectExpression:for(e.type=u.Syntax.ObjectPattern,t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case u.Syntax.AssignmentExpression:e.type=u.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left)}},e.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:c,params:[],async:!1};else{var t=this.lookahead,n=[];if(this.match("..."))e=this.parseRestElement(n),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:c,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var i=[];for(this.context.isAssignmentTarget=!1,i.push(e);2!==this.lookahead.type&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var s=0;s<i.length;s++)this.reinterpretExpressionAsPattern(i[s]);r=!0,e={type:c,params:i,async:!1}}else if(this.match("...")){for(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),i.push(this.parseRestElement(n)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1,s=0;s<i.length;s++)this.reinterpretExpressionAsPattern(i[s]);r=!0,e={type:c,params:i,async:!1}}else i.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new o.SequenceExpression(i)))}if(!r){if(this.expect(")"),this.match("=>")&&(e.type===u.Syntax.Identifier&&"yield"===e.name&&(r=!0,e={type:c,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===u.Syntax.SequenceExpression)for(s=0;s<e.expressions.length;s++)this.reinterpretExpressionAsPattern(e.expressions[s]);else this.reinterpretExpressionAsPattern(e);var a=e.type===u.Syntax.SequenceExpression?e.expressions:[e];e={type:c,params:a,async:!1}}this.context.isBindingElement=!1}}}return e},e.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.isIdentifierName=function(e){return 3===e.type||4===e.type||1===e.type||5===e.type},e.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},e.prototype.parseNewExpression=function(){var e,t=this.createNode(),n=this.parseIdentifierName();if(r.assert("new"===n.name,"New expression must start with `new`"),this.match("."))if(this.nextToken(),3===this.lookahead.type&&this.context.inFunctionBody&&"target"===this.lookahead.value){var i=this.parseIdentifierName();e=new o.MetaProperty(n,i)}else this.throwUnexpectedToken(this.lookahead);else{var s=this.isolateCoverGrammar(this.parseLeftHandSideExpression),a=this.match("(")?this.parseArguments():[];e=new o.NewExpression(s,a),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(t,e)},e.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},e.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")"))break;if(this.expectCommaSeparator(),this.match(")"))break}return this.expect(")"),e},e.prototype.parseLeftHandSideExpressionAllowCall=function(){var e,t=this.lookahead,n=this.matchContextualKeyword("async"),r=this.context.allowIn;for(this.context.allowIn=!0,this.matchKeyword("super")&&this.context.inFunctionBody?(e=this.createNode(),this.nextToken(),e=this.finalize(e,new o.Super),this.match("(")||this.match(".")||this.match("[")||this.throwUnexpectedToken(this.lookahead)):e=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();e=this.finalize(this.startNode(t),new o.StaticMemberExpression(e,i))}else if(this.match("(")){var s=n&&t.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var a=s?this.parseAsyncArguments():this.parseArguments();if(e=this.finalize(this.startNode(t),new o.CallExpression(e,a)),s&&this.match("=>")){for(var u=0;u<a.length;++u)this.reinterpretExpressionAsPattern(a[u]);e={type:c,params:a,async:!0}}}else if(this.match("["))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("["),i=this.isolateCoverGrammar(this.parseExpression),this.expect("]"),e=this.finalize(this.startNode(t),new o.ComputedMemberExpression(e,i));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var l=this.parseTemplateLiteral();e=this.finalize(this.startNode(t),new o.TaggedTemplateExpression(e,l))}return this.context.allowIn=r,e},e.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),this.match("[")||this.match(".")||this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},e.prototype.parseLeftHandSideExpression=function(){r.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var n=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new o.ComputedMemberExpression(t,n))}else if(this.match("."))this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("."),n=this.parseIdentifierName(),t=this.finalize(e,new o.StaticMemberExpression(t,n));else{if(10!==this.lookahead.type||!this.lookahead.head)break;var i=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,i))}return t},e.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var n=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment);var i=!0;e=this.finalize(n,new o.UpdateExpression(r.value,e,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&7===this.lookahead.type&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(s.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=this.nextToken().value;i=!1,e=this.finalize(this.startNode(t),new o.UpdateExpression(a,e,i))}return e},e.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},e.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),n=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(n.value,e)),this.context.strict&&"delete"===e.operator&&e.argument.type===u.Syntax.Identifier&&this.tolerateError(s.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else e=this.context.await&&this.matchContextualKeyword("await")?this.parseAwaitExpression():this.parseUpdateExpression();return e},e.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==u.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var n=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression("**",n,r))}return t},e.prototype.binaryPrecedence=function(e){var t=e.value;return 7===e.type?this.operatorPrecedence[t]||0:4===e.type&&("instanceof"===t||this.context.allowIn&&"in"===t)?7:0},e.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),n=this.lookahead,r=this.binaryPrecedence(n);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var i=[e,this.lookahead],s=t,a=this.isolateCoverGrammar(this.parseExponentiationExpression),u=[s,n.value,a],l=[r];!((r=this.binaryPrecedence(this.lookahead))<=0);){for(;u.length>2&&r<=l[l.length-1];){a=u.pop();var c=u.pop();l.pop(),s=u.pop(),i.pop();var p=this.startNode(i[i.length-1]);u.push(this.finalize(p,new o.BinaryExpression(c,s,a)))}u.push(this.nextToken().value),l.push(r),i.push(this.lookahead),u.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var h=u.length-1;t=u[h];for(var d=i.pop();h>1;){var f=i.pop(),m=d&&d.lineStart;p=this.startNode(f,m),c=u[h-1],t=this.finalize(p,new o.BinaryExpression(c,u[h-2],t)),h-=2,d=f}}return t},e.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var n=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=n,this.expect(":");var i=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,i)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},e.prototype.checkPatternParam=function(e,t){switch(t.type){case u.Syntax.Identifier:this.validateParam(e,t,t.name);break;case u.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case u.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case u.Syntax.ArrayPattern:for(var n=0;n<t.elements.length;n++)null!==t.elements[n]&&this.checkPatternParam(e,t.elements[n]);break;case u.Syntax.ObjectPattern:for(n=0;n<t.properties.length;n++)this.checkPatternParam(e,t.properties[n].value)}e.simple=e.simple&&t instanceof o.Identifier},e.prototype.reinterpretAsCoverFormalsList=function(e){var t,n=[e],r=!1;switch(e.type){case u.Syntax.Identifier:break;case c:n=e.params,r=e.async;break;default:return null}t={simple:!0,paramSet:{}};for(var i=0;i<n.length;++i)(o=n[i]).type===u.Syntax.AssignmentPattern?o.right.type===u.Syntax.YieldExpression&&(o.right.argument&&this.throwUnexpectedToken(this.lookahead),o.right.type=u.Syntax.Identifier,o.right.name="yield",delete o.right.argument,delete o.right.delegate):r&&o.type===u.Syntax.Identifier&&"await"===o.name&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(t,o),n[i]=o;if(this.context.strict||!this.context.allowYield)for(i=0;i<n.length;++i){var o;(o=n[i]).type===u.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(t.message===s.Messages.StrictParamDupe){var a=this.context.strict?t.stricted:t.firstRestricted;this.throwUnexpectedToken(a,t.message)}return{simple:t.simple,params:n,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,n=t;if(e=this.parseConditionalExpression(),3===n.type&&n.lineNumber===this.lookahead.lineNumber&&"async"===n.value&&(3===this.lookahead.type||this.matchKeyword("yield"))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:c,params:[r],async:!0}}if(e.type===c||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=e.async,a=this.reinterpretAsCoverFormalsList(e);if(a){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var l=this.context.strict,p=this.context.allowStrictDirective;this.context.allowStrictDirective=a.simple;var h=this.context.allowYield,d=this.context.await;this.context.allowYield=!0,this.context.await=i;var f=this.startNode(t);this.expect("=>");var m=void 0;if(this.match("{")){var g=this.context.allowIn;this.context.allowIn=!0,m=this.parseFunctionSourceElements(),this.context.allowIn=g}else m=this.isolateCoverGrammar(this.parseAssignmentExpression);var E=m.type!==u.Syntax.BlockStatement;this.context.strict&&a.firstRestricted&&this.throwUnexpectedToken(a.firstRestricted,a.message),this.context.strict&&a.stricted&&this.tolerateUnexpectedToken(a.stricted,a.message),e=i?this.finalize(f,new o.AsyncArrowFunctionExpression(a.params,m,E)):this.finalize(f,new o.ArrowFunctionExpression(a.params,m,E)),this.context.strict=l,this.context.allowStrictDirective=p,this.context.allowYield=h,this.context.await=d}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(s.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===u.Syntax.Identifier){var y=e;this.scanner.isRestrictedWord(y.name)&&this.tolerateUnexpectedToken(n,s.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(y.name)&&this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1);var v=(n=this.nextToken()).value,A=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(v,e,A)),this.context.firstCoverInitializedNameError=null}}return e},e.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var n=[];for(n.push(t);2!==this.lookahead.type&&this.match(",");)this.nextToken(),n.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(n))}return t},e.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,4===this.lookahead.type)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,s.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement()}else e=this.parseStatement();return e},e.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},e.prototype.parseLexicalBinding=function(e,t){var n=this.createNode(),r=this.parsePattern([],e);this.context.strict&&r.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(s.Messages.StrictVarName);var i=null;return"const"===e?this.matchKeyword("in")||this.matchContextualKeyword("of")||(this.match("=")?(this.nextToken(),i=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(s.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&r.type!==u.Syntax.Identifier||this.match("="))&&(this.expect("="),i=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(n,new o.VariableDeclarator(r,i))},e.prototype.parseBindingList=function(e,t){for(var n=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),n.push(this.parseLexicalBinding(e,t));return n},e.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),3===t.type||7===t.type&&"["===t.value||7===t.type&&"{"===t.value||4===t.type&&"let"===t.value||4===t.type&&"yield"===t.value},e.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),n=this.nextToken().value;r.assert("let"===n||"const"===n,"Lexical declaration must be either let or const");var i=this.parseBindingList(n,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(i,n))},e.prototype.parseBindingRestElement=function(e,t){var n=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(n,new o.RestElement(r))},e.prototype.parseArrayPattern=function(e,t){var n=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}r.push(this.parsePatternWithDefault(e,t)),this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(n,new o.ArrayPattern(r))},e.prototype.parsePropertyPattern=function(e,t){var n,r,i=this.createNode(),s=!1,a=!1;if(3===this.lookahead.type){var u=this.lookahead;n=this.parseVariableIdentifier();var l=this.finalize(i,new o.Identifier(u.value));if(this.match("=")){e.push(u),a=!0,this.nextToken();var c=this.parseAssignmentExpression();r=this.finalize(this.startNode(u),new o.AssignmentPattern(l,c))}else this.match(":")?(this.expect(":"),r=this.parsePatternWithDefault(e,t)):(e.push(u),a=!0,r=l)}else s=this.match("["),n=this.parseObjectPropertyKey(),this.expect(":"),r=this.parsePatternWithDefault(e,t);return this.finalize(i,new o.Property("init",n,s,r,!1,a))},e.prototype.parseObjectPattern=function(e,t){var n=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(n,new o.ObjectPattern(r))},e.prototype.parsePattern=function(e,t){var n;return this.match("[")?n=this.parseArrayPattern(e,t):this.match("{")?n=this.parseObjectPattern(e,t):(!this.matchKeyword("let")||"const"!==t&&"let"!==t||this.tolerateUnexpectedToken(this.lookahead,s.Messages.LetInLexicalBinding),e.push(this.lookahead),n=this.parseVariableIdentifier(t)),n},e.prototype.parsePatternWithDefault=function(e,t){var n=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var i=this.context.allowYield;this.context.allowYield=!0;var s=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=i,r=this.finalize(this.startNode(n),new o.AssignmentPattern(r,s))}return r},e.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),n=this.nextToken();return 4===n.type&&"yield"===n.value?this.context.strict?this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(n):3!==n.type?this.context.strict&&4===n.type&&this.scanner.isStrictModeReservedWord(n.value)?this.tolerateUnexpectedToken(n,s.Messages.StrictReservedWord):(this.context.strict||"let"!==n.value||"var"!==e)&&this.throwUnexpectedToken(n):(this.context.isModule||this.context.await)&&3===n.type&&"await"===n.value&&this.tolerateUnexpectedToken(n),this.finalize(t,new o.Identifier(n.value))},e.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),n=this.parsePattern([],"var");this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(s.Messages.StrictVarName);var r=null;return this.match("=")?(this.nextToken(),r=this.isolateCoverGrammar(this.parseAssignmentExpression)):n.type===u.Syntax.Identifier||e.inFor||this.expect("="),this.finalize(t,new o.VariableDeclarator(n,r))},e.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},n=[];for(n.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),n.push(this.parseVariableDeclaration(t));return n},e.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},e.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},e.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},e.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(s.Messages.StrictFunction),this.parseStatement()},e.prototype.parseIfStatement=function(){var e,t=this.createNode(),n=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),n=this.parseIfClause())),this.finalize(t,new o.IfStatement(r,e,n))},e.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var n=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(n,r))},e.prototype.parseWhileStatement=function(){var e,t=this.createNode();this.expectKeyword("while"),this.expect("(");var n=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,e=this.parseStatement(),this.context.inIteration=r}return this.finalize(t,new o.WhileStatement(n,e))},e.prototype.parseForStatement=function(){var e,t,n,r=null,i=null,a=null,l=!0,c=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){r=this.createNode(),this.nextToken();var p=this.context.allowIn;this.context.allowIn=!1;var h=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=p,1===h.length&&this.matchKeyword("in")){var d=h[0];d.init&&(d.id.type===u.Syntax.ArrayPattern||d.id.type===u.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(s.Messages.ForInOfLoopInitializer,"for-in"),r=this.finalize(r,new o.VariableDeclaration(h,"var")),this.nextToken(),e=r,t=this.parseExpression(),r=null}else 1===h.length&&null===h[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new o.VariableDeclaration(h,"var")),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,l=!1):(r=this.finalize(r,new o.VariableDeclaration(h,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){r=this.createNode();var f=this.nextToken().value;this.context.strict||"in"!==this.lookahead.value?(p=this.context.allowIn,this.context.allowIn=!1,h=this.parseBindingList(f,{inFor:!0}),this.context.allowIn=p,1===h.length&&null===h[0].init&&this.matchKeyword("in")?(r=this.finalize(r,new o.VariableDeclaration(h,f)),this.nextToken(),e=r,t=this.parseExpression(),r=null):1===h.length&&null===h[0].init&&this.matchContextualKeyword("of")?(r=this.finalize(r,new o.VariableDeclaration(h,f)),this.nextToken(),e=r,t=this.parseAssignmentExpression(),r=null,l=!1):(this.consumeSemicolon(),r=this.finalize(r,new o.VariableDeclaration(h,f)))):(r=this.finalize(r,new o.Identifier(f)),this.nextToken(),e=r,t=this.parseExpression(),r=null)}else{var m=this.lookahead;if(p=this.context.allowIn,this.context.allowIn=!1,r=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=p,this.matchKeyword("in"))this.context.isAssignmentTarget&&r.type!==u.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseExpression(),r=null;else if(this.matchContextualKeyword("of"))this.context.isAssignmentTarget&&r.type!==u.Syntax.AssignmentExpression||this.tolerateError(s.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(r),e=r,t=this.parseAssignmentExpression(),r=null,l=!1;else{if(this.match(",")){for(var g=[r];this.match(",");)this.nextToken(),g.push(this.isolateCoverGrammar(this.parseAssignmentExpression));r=this.finalize(this.startNode(m),new o.SequenceExpression(g))}this.expect(";")}}if(void 0===e&&(this.match(";")||(i=this.parseExpression()),this.expect(";"),this.match(")")||(a=this.parseExpression())),!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),n=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var E=this.context.inIteration;this.context.inIteration=!0,n=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=E}return void 0===e?this.finalize(c,new o.ForStatement(r,i,a,n)):l?this.finalize(c,new o.ForInStatement(e,t,n)):this.finalize(c,new o.ForOfStatement(e,t,n))},e.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier();t=n;var r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(s.Messages.UnknownLabel,n.name)}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.throwError(s.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},e.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(3===this.lookahead.type&&!this.hasLineTerminator){var n=this.parseVariableIdentifier(),r="$"+n.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(s.Messages.UnknownLabel,n.name),t=n}return this.consumeSemicolon(),null!==t||this.context.inIteration||this.context.inSwitch||this.throwError(s.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},e.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(s.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=(this.match(";")||this.match("}")||this.hasLineTerminator||2===this.lookahead.type)&&8!==this.lookahead.type&&10!==this.lookahead.type?null:this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(t))},e.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(s.Messages.StrictModeWith);var e,t=this.createNode();this.expectKeyword("with"),this.expect("(");var n=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),e=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),e=this.parseStatement()),this.finalize(t,new o.WithStatement(n,e))},e.prototype.parseSwitchCase=function(){var e,t=this.createNode();this.matchKeyword("default")?(this.nextToken(),e=null):(this.expectKeyword("case"),e=this.parseExpression()),this.expect(":");for(var n=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)n.push(this.parseStatementListItem());return this.finalize(t,new o.SwitchCase(e,n))},e.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var n=this.context.inSwitch;this.context.inSwitch=!0;var r=[],i=!1;for(this.expect("{");!this.match("}");){var a=this.parseSwitchCase();null===a.test&&(i&&this.throwError(s.Messages.MultipleDefaultsInSwitch),i=!0),r.push(a)}return this.expect("}"),this.context.inSwitch=n,this.finalize(e,new o.SwitchStatement(t,r))},e.prototype.parseLabelledStatement=function(){var e,t=this.createNode(),n=this.parseExpression();if(n.type===u.Syntax.Identifier&&this.match(":")){this.nextToken();var r=n,i="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,i)&&this.throwError(s.Messages.Redeclaration,"Label",r.name),this.context.labelSet[i]=!0;var a=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),a=this.parseClassDeclaration();else if(this.matchKeyword("function")){var l=this.lookahead,c=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(l,s.Messages.StrictFunction):c.generator&&this.tolerateUnexpectedToken(l,s.Messages.GeneratorInLegacyContext),a=c}else a=this.parseStatement();delete this.context.labelSet[i],e=new o.LabeledStatement(r,a)}else this.consumeSemicolon(),e=new o.ExpressionStatement(n);return this.finalize(t,e)},e.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(s.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},e.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],n=this.parsePattern(t),r={},i=0;i<t.length;i++){var a="$"+t[i].value;Object.prototype.hasOwnProperty.call(r,a)&&this.tolerateError(s.Messages.DuplicateBinding,t[i].value),r[a]=!0}this.context.strict&&n.type===u.Syntax.Identifier&&this.scanner.isRestrictedWord(n.name)&&this.tolerateError(s.Messages.StrictCatchVariable),this.expect(")");var l=this.parseBlock();return this.finalize(e,new o.CatchClause(n,l))},e.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},e.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),n=this.matchKeyword("catch")?this.parseCatchClause():null,r=this.matchKeyword("finally")?this.parseFinallyClause():null;return n||r||this.throwError(s.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,n,r))},e.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},e.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;e="{"===t?this.parseBlock():"("===t?this.parseExpressionStatement():";"===t?this.parseEmptyStatement():this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement()}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},e.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),n=this.context.labelSet,r=this.context.inIteration,i=this.context.inSwitch,s=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;2!==this.lookahead.type&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=n,this.context.inIteration=r,this.context.inSwitch=i,this.context.inFunctionBody=s,this.finalize(e,new o.BlockStatement(t))},e.prototype.validateParam=function(e,t,n){var r="$"+n;this.context.strict?(this.scanner.isRestrictedWord(n)&&(e.stricted=t,e.message=s.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(n)?(e.firstRestricted=t,e.message=s.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(n)?(e.firstRestricted=t,e.message=s.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=s.Messages.StrictParamDupe)),"function"==typeof Object.defineProperty?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},e.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var n=this.parsePattern(e);return this.match("=")&&this.throwError(s.Messages.DefaultRestParameter),this.match(")")||this.throwError(s.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(n))},e.prototype.parseFormalParameter=function(e){for(var t=[],n=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&n instanceof o.Identifier,e.params.push(n)},e.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};2!==this.lookahead.type&&(this.parseFormalParameter(t),!this.match(")"))&&(this.expect(","),!this.match(")")););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},e.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var n=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===n.lineNumber&&4===n.type&&"function"===n.value}return e},e.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),n=this.matchContextualKeyword("async");n&&this.nextToken(),this.expectKeyword("function");var r,i=!n&&this.match("*");i&&this.nextToken();var a=null,u=null;if(!e||!this.match("(")){var l=this.lookahead;a=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(l.value)&&this.tolerateUnexpectedToken(l,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(l.value)?(u=l,r=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(l.value)&&(u=l,r=s.Messages.StrictReservedWord)}var c=this.context.await,p=this.context.allowYield;this.context.await=n,this.context.allowYield=!i;var h=this.parseFormalParameters(u),d=h.params,f=h.stricted;u=h.firstRestricted,h.message&&(r=h.message);var m=this.context.strict,g=this.context.allowStrictDirective;this.context.allowStrictDirective=h.simple;var E=this.parseFunctionSourceElements();return this.context.strict&&u&&this.throwUnexpectedToken(u,r),this.context.strict&&f&&this.tolerateUnexpectedToken(f,r),this.context.strict=m,this.context.allowStrictDirective=g,this.context.await=c,this.context.allowYield=p,n?this.finalize(t,new o.AsyncFunctionDeclaration(a,d,E)):this.finalize(t,new o.FunctionDeclaration(a,d,E,i))},e.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var n,r=!t&&this.match("*");r&&this.nextToken();var i,a=null,u=this.context.await,l=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!r,!this.match("(")){var c=this.lookahead;a=this.context.strict||r||!this.matchKeyword("yield")?this.parseVariableIdentifier():this.parseIdentifierName(),this.context.strict?this.scanner.isRestrictedWord(c.value)&&this.tolerateUnexpectedToken(c,s.Messages.StrictFunctionName):this.scanner.isRestrictedWord(c.value)?(i=c,n=s.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(c.value)&&(i=c,n=s.Messages.StrictReservedWord)}var p=this.parseFormalParameters(i),h=p.params,d=p.stricted;i=p.firstRestricted,p.message&&(n=p.message);var f=this.context.strict,m=this.context.allowStrictDirective;this.context.allowStrictDirective=p.simple;var g=this.parseFunctionSourceElements();return this.context.strict&&i&&this.throwUnexpectedToken(i,n),this.context.strict&&d&&this.tolerateUnexpectedToken(d,n),this.context.strict=f,this.context.allowStrictDirective=m,this.context.await=u,this.context.allowYield=l,t?this.finalize(e,new o.AsyncFunctionExpression(a,h,g)):this.finalize(e,new o.FunctionExpression(a,h,g,r))},e.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),n=this.parseExpression(),r=n.type===u.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new o.Directive(n,r):new o.ExpressionStatement(n))},e.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var n=this.lookahead;if(8!==n.type)break;var r=this.parseDirective();t.push(r);var i=r.directive;if("string"!=typeof i)break;"use strict"===i?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,s.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(n,s.Messages.IllegalLanguageModeDirective)):!e&&n.octal&&(e=n)}return t},e.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return"["===e.value}return!1},e.prototype.parseGetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();n.params.length>0&&this.tolerateError(s.Messages.BadGetterArity);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,r,!1))},e.prototype.parseSetterMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();1!==n.params.length?this.tolerateError(s.Messages.BadSetterArity):n.params[0]instanceof o.RestElement&&this.tolerateError(s.Messages.BadSetterRestParameter);var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,r,!1))},e.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=this.context.allowYield;this.context.allowYield=!0;var n=this.parseFormalParameters();this.context.allowYield=!1;var r=this.parsePropertyMethod(n);return this.context.allowYield=t,this.finalize(e,new o.FunctionExpression(null,n.params,r,!0))},e.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e="["===t||"("===t||"{"===t||"+"===t||"-"===t||"!"===t||"~"===t||"++"===t||"--"===t||"/"===t||"/="===t;break;case 4:e="class"===t||"delete"===t||"function"===t||"let"===t||"new"===t||"super"===t||"this"===t||"typeof"===t||"void"===t||"yield"===t}return e},e.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,n=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,(n=this.match("*"))?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,n))},e.prototype.parseClassElement=function(e){var t=this.lookahead,n=this.createNode(),r="",i=null,a=null,u=!1,l=!1,c=!1,p=!1;if(this.match("*"))this.nextToken();else if(u=this.match("["),"static"===(i=this.parseObjectPropertyKey()).name&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,c=!0,u=this.match("["),this.match("*")?this.nextToken():i=this.parseObjectPropertyKey()),3===t.type&&!this.hasLineTerminator&&"async"===t.value){var h=this.lookahead.value;":"!==h&&"("!==h&&"*"!==h&&(p=!0,t=this.lookahead,i=this.parseObjectPropertyKey(),3===t.type&&"constructor"===t.value&&this.tolerateUnexpectedToken(t,s.Messages.ConstructorIsAsync))}var d=this.qualifiedPropertyName(this.lookahead);return 3===t.type?"get"===t.value&&d?(r="get",u=this.match("["),i=this.parseObjectPropertyKey(),this.context.allowYield=!1,a=this.parseGetterMethod()):"set"===t.value&&d&&(r="set",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseSetterMethod()):7===t.type&&"*"===t.value&&d&&(r="init",u=this.match("["),i=this.parseObjectPropertyKey(),a=this.parseGeneratorMethod(),l=!0),!r&&i&&this.match("(")&&(r="init",a=p?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),l=!0),r||this.throwUnexpectedToken(this.lookahead),"init"===r&&(r="method"),u||(c&&this.isPropertyKey(i,"prototype")&&this.throwUnexpectedToken(t,s.Messages.StaticPrototype),!c&&this.isPropertyKey(i,"constructor")&&(("method"!==r||!l||a&&a.generator)&&this.throwUnexpectedToken(t,s.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,s.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(n,new o.MethodDefinition(i,u,a,r,c))},e.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},e.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},e.prototype.parseClassDeclaration=function(e){var t=this.createNode(),n=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&3!==this.lookahead.type?null:this.parseVariableIdentifier(),i=null;this.matchKeyword("extends")&&(this.nextToken(),i=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var s=this.parseClassBody();return this.context.strict=n,this.finalize(t,new o.ClassDeclaration(r,i,s))},e.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var n=3===this.lookahead.type?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var i=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(n,r,i))},e.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},e.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();2!==this.lookahead.type;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},e.prototype.parseModuleSpecifier=function(){var e=this.createNode();8!==this.lookahead.type&&this.throwError(s.Messages.InvalidModuleSpecifier);var t=this.nextToken(),n=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,n))},e.prototype.parseImportSpecifier=function(){var e,t,n=this.createNode();return 3===this.lookahead.type?(t=e=this.parseVariableIdentifier(),this.matchContextualKeyword("as")&&(this.nextToken(),t=this.parseVariableIdentifier())):(t=e=this.parseIdentifierName(),this.matchContextualKeyword("as")?(this.nextToken(),t=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(n,new o.ImportSpecifier(t,e))},e.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},e.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},e.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(s.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},e.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalImportDeclaration);var e,t=this.createNode();this.expectKeyword("import");var n=[];if(8===this.lookahead.type)e=this.parseModuleSpecifier();else{if(this.match("{")?n=n.concat(this.parseNamedImports()):this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(n.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?n.push(this.parseImportNamespaceSpecifier()):this.match("{")?n=n.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),e=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(t,new o.ImportDeclaration(n,e))},e.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),n=t;return this.matchContextualKeyword("as")&&(this.nextToken(),n=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,n))},e.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(s.Messages.IllegalExportDeclaration);var e,t=this.createNode();if(this.expectKeyword("export"),this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var n=this.parseFunctionDeclaration(!0);e=this.finalize(t,new o.ExportDefaultDeclaration(n))}else this.matchKeyword("class")?(n=this.parseClassDeclaration(!0),e=this.finalize(t,new o.ExportDefaultDeclaration(n))):this.matchContextualKeyword("async")?(n=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression(),e=this.finalize(t,new o.ExportDefaultDeclaration(n))):(this.matchContextualKeyword("from")&&this.throwError(s.Messages.UnexpectedToken,this.lookahead.value),n=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression(),this.consumeSemicolon(),e=this.finalize(t,new o.ExportDefaultDeclaration(n)));else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var i=this.parseModuleSpecifier();this.consumeSemicolon(),e=this.finalize(t,new o.ExportAllDeclaration(i))}else if(4===this.lookahead.type){switch(n=void 0,this.lookahead.value){case"let":case"const":n=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":n=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null))}else if(this.matchAsyncFunction())n=this.parseFunctionDeclaration(),e=this.finalize(t,new o.ExportNamedDeclaration(n,[],null));else{var a=[],u=null,l=!1;for(this.expect("{");!this.match("}");)l=l||this.matchKeyword("default"),a.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");this.expect("}"),this.matchContextualKeyword("from")?(this.nextToken(),u=this.parseModuleSpecifier(),this.consumeSemicolon()):l?(r=this.lookahead.value?s.Messages.UnexpectedToken:s.Messages.MissingFromClause,this.throwError(r,this.lookahead.value)):this.consumeSemicolon(),e=this.finalize(t,new o.ExportNamedDeclaration(null,a,u))}return e},e}();t.Parser=p},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=function(e,t){if(!e)throw new Error("ASSERT: "+t)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.errors=[],this.tolerant=!1}return e.prototype.recordError=function(e){this.errors.push(e)},e.prototype.tolerate=function(e){if(!this.tolerant)throw e;this.recordError(e)},e.prototype.constructError=function(e,t){var n=new Error(e);try{throw n}catch(e){Object.create&&Object.defineProperty&&(n=Object.create(e),Object.defineProperty(n,"column",{value:t}))}return n},e.prototype.createError=function(e,t,n,r){var i="Line "+t+": "+r,s=this.constructError(i,n);return s.index=e,s.lineNumber=t,s.description=r,s},e.prototype.throwError=function(e,t,n,r){throw this.createError(e,t,n,r)},e.prototype.tolerateError=function(e,t,n,r){var i=this.createError(e,t,n,r);if(!this.tolerant)throw i;this.recordError(i)},e}();t.ErrorHandler=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),i=n(4),s=n(11);function o(e){return"0123456789abcdef".indexOf(e.toLowerCase())}function a(e){return"01234567".indexOf(e)}var u=function(){function e(e,t){this.source=e,this.errorHandler=t,this.trackComment=!1,this.isModule=!1,this.length=e.length,this.index=0,this.lineNumber=e.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return e.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},e.prototype.restoreState=function(e){this.index=e.index,this.lineNumber=e.lineNumber,this.lineStart=e.lineStart},e.prototype.eof=function(){return this.index>=this.length},e.prototype.throwUnexpectedToken=function(e){return void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.tolerateUnexpectedToken=function(e){void 0===e&&(e=s.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,e)},e.prototype.skipSingleLineComment=function(e){var t,n,r=[];for(this.trackComment&&(r=[],t=this.index-e,n={start:{line:this.lineNumber,column:this.index-this.lineStart-e},end:{}});!this.eof();){var s=this.source.charCodeAt(this.index);if(++this.index,i.Character.isLineTerminator(s)){if(this.trackComment){n.end={line:this.lineNumber,column:this.index-this.lineStart-1};var o={multiLine:!1,slice:[t+e,this.index-1],range:[t,this.index-1],loc:n};r.push(o)}return 13===s&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,r}}return this.trackComment&&(n.end={line:this.lineNumber,column:this.index-this.lineStart},o={multiLine:!1,slice:[t+e,this.index],range:[t,this.index],loc:n},r.push(o)),r},e.prototype.skipMultiLineComment=function(){var e,t,n=[];for(this.trackComment&&(n=[],e=this.index-2,t={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var r=this.source.charCodeAt(this.index);if(i.Character.isLineTerminator(r))13===r&&10===this.source.charCodeAt(this.index+1)&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(42===r){if(47===this.source.charCodeAt(this.index+1)){if(this.index+=2,this.trackComment){t.end={line:this.lineNumber,column:this.index-this.lineStart};var s={multiLine:!0,slice:[e+2,this.index-2],range:[e,this.index],loc:t};n.push(s)}return n}++this.index}else++this.index}return this.trackComment&&(t.end={line:this.lineNumber,column:this.index-this.lineStart},s={multiLine:!0,slice:[e+2,this.index],range:[e,this.index],loc:t},n.push(s)),this.tolerateUnexpectedToken(),n},e.prototype.scanComments=function(){var e;this.trackComment&&(e=[]);for(var t=0===this.index;!this.eof();){var n=this.source.charCodeAt(this.index);if(i.Character.isWhiteSpace(n))++this.index;else if(i.Character.isLineTerminator(n))++this.index,13===n&&10===this.source.charCodeAt(this.index)&&++this.index,++this.lineNumber,this.lineStart=this.index,t=!0;else if(47===n)if(47===(n=this.source.charCodeAt(this.index+1))){this.index+=2;var r=this.skipSingleLineComment(2);this.trackComment&&(e=e.concat(r)),t=!0}else{if(42!==n)break;this.index+=2,r=this.skipMultiLineComment(),this.trackComment&&(e=e.concat(r))}else if(t&&45===n){if(45!==this.source.charCodeAt(this.index+1)||62!==this.source.charCodeAt(this.index+2))break;this.index+=3,r=this.skipSingleLineComment(3),this.trackComment&&(e=e.concat(r))}else{if(60!==n||this.isModule)break;if("!--"!==this.source.slice(this.index+1,this.index+4))break;this.index+=4,r=this.skipSingleLineComment(4),this.trackComment&&(e=e.concat(r))}}return e},e.prototype.isFutureReservedWord=function(e){switch(e){case"enum":case"export":case"import":case"super":return!0;default:return!1}},e.prototype.isStrictModeReservedWord=function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},e.prototype.isRestrictedWord=function(e){return"eval"===e||"arguments"===e},e.prototype.isKeyword=function(e){switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e||"let"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}},e.prototype.codePointAt=function(e){var t=this.source.charCodeAt(e);if(t>=55296&&t<=56319){var n=this.source.charCodeAt(e+1);n>=56320&&n<=57343&&(t=1024*(t-55296)+n-56320+65536)}return t},e.prototype.scanHexEscape=function(e){for(var t="u"===e?4:2,n=0,r=0;r<t;++r){if(this.eof()||!i.Character.isHexDigit(this.source.charCodeAt(this.index)))return null;n=16*n+o(this.source[this.index++])}return String.fromCharCode(n)},e.prototype.scanUnicodeCodePointEscape=function(){var e=this.source[this.index],t=0;for("}"===e&&this.throwUnexpectedToken();!this.eof()&&(e=this.source[this.index++],i.Character.isHexDigit(e.charCodeAt(0)));)t=16*t+o(e);return(t>1114111||"}"!==e)&&this.throwUnexpectedToken(),i.Character.fromCodePoint(t)},e.prototype.getIdentifier=function(){for(var e=this.index++;!this.eof();){var t=this.source.charCodeAt(this.index);if(92===t)return this.index=e,this.getComplexIdentifier();if(t>=55296&&t<57343)return this.index=e,this.getComplexIdentifier();if(!i.Character.isIdentifierPart(t))break;++this.index}return this.source.slice(e,this.index)},e.prototype.getComplexIdentifier=function(){var e,t=this.codePointAt(this.index),n=i.Character.fromCodePoint(t);for(this.index+=n.length,92===t&&(117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierStart(e.charCodeAt(0))||this.throwUnexpectedToken(),n=e);!this.eof()&&(t=this.codePointAt(this.index),i.Character.isIdentifierPart(t));)n+=e=i.Character.fromCodePoint(t),this.index+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==this.source.charCodeAt(this.index)&&this.throwUnexpectedToken(),++this.index,"{"===this.source[this.index]?(++this.index,e=this.scanUnicodeCodePointEscape()):null!==(e=this.scanHexEscape("u"))&&"\\"!==e&&i.Character.isIdentifierPart(e.charCodeAt(0))||this.throwUnexpectedToken(),n+=e);return n},e.prototype.octalToDecimal=function(e){var t="0"!==e,n=a(e);return!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(t=!0,n=8*n+a(this.source[this.index++]),"0123".indexOf(e)>=0&&!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(n=8*n+a(this.source[this.index++]))),{code:n,octal:t}},e.prototype.scanIdentifier=function(){var e,t=this.index,n=92===this.source.charCodeAt(t)?this.getComplexIdentifier():this.getIdentifier();if(3!=(e=1===n.length?3:this.isKeyword(n)?4:"null"===n?5:"true"===n||"false"===n?1:3)&&t+n.length!==this.index){var r=this.index;this.index=t,this.tolerateUnexpectedToken(s.Messages.InvalidEscapedReservedWord),this.index=r}return{type:e,value:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.scanPunctuator=function(){var e=this.index,t=this.source[this.index];switch(t){case"(":case"{":"{"===t&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,"."===this.source[this.index]&&"."===this.source[this.index+1]&&(this.index+=2,t="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:">>>="===(t=this.source.substr(this.index,4))?this.index+=4:"==="===(t=t.substr(0,3))||"!=="===t||">>>"===t||"<<="===t||">>="===t||"**="===t?this.index+=3:"&&"===(t=t.substr(0,2))||"||"===t||"=="===t||"!="===t||"+="===t||"-="===t||"*="===t||"/="===t||"++"===t||"--"===t||"<<"===t||">>"===t||"&="===t||"|="===t||"^="===t||"%="===t||"<="===t||">="===t||"=>"===t||"**"===t?this.index+=2:(t=this.source[this.index],"<>=!+-*%&|^/".indexOf(t)>=0&&++this.index)}return this.index===e&&this.throwUnexpectedToken(),{type:7,value:t,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanHexLiteral=function(e){for(var t="";!this.eof()&&i.Character.isHexDigit(this.source.charCodeAt(this.index));)t+=this.source[this.index++];return 0===t.length&&this.throwUnexpectedToken(),i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+t,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanBinaryLiteral=function(e){for(var t,n="";!this.eof()&&("0"===(t=this.source[this.index])||"1"===t);)n+=this.source[this.index++];return 0===n.length&&this.throwUnexpectedToken(),this.eof()||(t=this.source.charCodeAt(this.index),(i.Character.isIdentifierStart(t)||i.Character.isDecimalDigit(t))&&this.throwUnexpectedToken()),{type:6,value:parseInt(n,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanOctalLiteral=function(e,t){var n="",r=!1;for(i.Character.isOctalDigit(e.charCodeAt(0))?(r=!0,n="0"+this.source[this.index++]):++this.index;!this.eof()&&i.Character.isOctalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];return r||0!==n.length||this.throwUnexpectedToken(),(i.Character.isIdentifierStart(this.source.charCodeAt(this.index))||i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(n,8),octal:r,lineNumber:this.lineNumber,lineStart:this.lineStart,start:t,end:this.index}},e.prototype.isImplicitOctalLiteral=function(){for(var e=this.index+1;e<this.length;++e){var t=this.source[e];if("8"===t||"9"===t)return!1;if(!i.Character.isOctalDigit(t.charCodeAt(0)))return!0}return!0},e.prototype.scanNumericLiteral=function(){var e=this.index,t=this.source[e];r.assert(i.Character.isDecimalDigit(t.charCodeAt(0))||"."===t,"Numeric literal must start with a decimal digit or a decimal point");var n="";if("."!==t){if(n=this.source[this.index++],t=this.source[this.index],"0"===n){if("x"===t||"X"===t)return++this.index,this.scanHexLiteral(e);if("b"===t||"B"===t)return++this.index,this.scanBinaryLiteral(e);if("o"===t||"O"===t)return this.scanOctalLiteral(t,e);if(t&&i.Character.isOctalDigit(t.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(t,e)}for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("."===t){for(n+=this.source[this.index++];i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];t=this.source[this.index]}if("e"===t||"E"===t)if(n+=this.source[this.index++],"+"!==(t=this.source[this.index])&&"-"!==t||(n+=this.source[this.index++]),i.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;i.Character.isDecimalDigit(this.source.charCodeAt(this.index));)n+=this.source[this.index++];else this.throwUnexpectedToken();return i.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanStringLiteral=function(){var e=this.index,t=this.source[e];r.assert("'"===t||'"'===t,"String literal must starts with a quote"),++this.index;for(var n=!1,o="";!this.eof();){var a=this.source[this.index++];if(a===t){t="";break}if("\\"===a)if((a=this.source[this.index++])&&i.Character.isLineTerminator(a.charCodeAt(0)))++this.lineNumber,"\r"===a&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(a){case"u":if("{"===this.source[this.index])++this.index,o+=this.scanUnicodeCodePointEscape();else{var u=this.scanHexEscape(a);null===u&&this.throwUnexpectedToken(),o+=u}break;case"x":var l=this.scanHexEscape(a);null===l&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),o+=l;break;case"n":o+="\n";break;case"r":o+="\r";break;case"t":o+="\t";break;case"b":o+="\b";break;case"f":o+="\f";break;case"v":o+="\v";break;case"8":case"9":o+=a,this.tolerateUnexpectedToken();break;default:if(a&&i.Character.isOctalDigit(a.charCodeAt(0))){var c=this.octalToDecimal(a);n=c.octal||n,o+=String.fromCharCode(c.code)}else o+=a}else{if(i.Character.isLineTerminator(a.charCodeAt(0)))break;o+=a}}return""!==t&&(this.index=e,this.throwUnexpectedToken()),{type:8,value:o,octal:n,lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.scanTemplate=function(){var e="",t=!1,n=this.index,r="`"===this.source[n],o=!1,a=2;for(++this.index;!this.eof();){var u=this.source[this.index++];if("`"===u){a=1,o=!0,t=!0;break}if("$"===u){if("{"===this.source[this.index]){this.curlyStack.push("${"),++this.index,t=!0;break}e+=u}else if("\\"===u)if(u=this.source[this.index++],i.Character.isLineTerminator(u.charCodeAt(0)))++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index;else switch(u){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"u":if("{"===this.source[this.index])++this.index,e+=this.scanUnicodeCodePointEscape();else{var l=this.index,c=this.scanHexEscape(u);null!==c?e+=c:(this.index=l,e+=u)}break;case"x":var p=this.scanHexEscape(u);null===p&&this.throwUnexpectedToken(s.Messages.InvalidHexEscapeSequence),e+=p;break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:"0"===u?(i.Character.isDecimalDigit(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral),e+="\0"):i.Character.isOctalDigit(u.charCodeAt(0))?this.throwUnexpectedToken(s.Messages.TemplateOctalLiteral):e+=u}else i.Character.isLineTerminator(u.charCodeAt(0))?(++this.lineNumber,"\r"===u&&"\n"===this.source[this.index]&&++this.index,this.lineStart=this.index,e+="\n"):e+=u}return t||this.throwUnexpectedToken(),r||this.curlyStack.pop(),{type:10,value:this.source.slice(n+1,this.index-a),cooked:e,head:r,tail:o,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},e.prototype.testRegExp=function(e,t){var n=e,r=this;t.indexOf("u")>=0&&(n=n.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,(function(e,t,n){var i=parseInt(t||n,16);return i>1114111&&r.throwUnexpectedToken(s.Messages.InvalidRegExp),i<=65535?String.fromCharCode(i):""})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,""));try{RegExp(n)}catch(e){this.throwUnexpectedToken(s.Messages.InvalidRegExp)}try{return new RegExp(e,t)}catch(e){return null}},e.prototype.scanRegExpBody=function(){var e=this.source[this.index];r.assert("/"===e,"Regular expression literal must start with a slash");for(var t=this.source[this.index++],n=!1,o=!1;!this.eof();)if(t+=e=this.source[this.index++],"\\"===e)e=this.source[this.index++],i.Character.isLineTerminator(e.charCodeAt(0))&&this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t+=e;else if(i.Character.isLineTerminator(e.charCodeAt(0)))this.throwUnexpectedToken(s.Messages.UnterminatedRegExp);else if(n)"]"===e&&(n=!1);else{if("/"===e){o=!0;break}"["===e&&(n=!0)}return o||this.throwUnexpectedToken(s.Messages.UnterminatedRegExp),t.substr(1,t.length-2)},e.prototype.scanRegExpFlags=function(){for(var e="";!this.eof();){var t=this.source[this.index];if(!i.Character.isIdentifierPart(t.charCodeAt(0)))break;if(++this.index,"\\"!==t||this.eof())e+=t;else if("u"===(t=this.source[this.index])){++this.index;var n=this.index,r=this.scanHexEscape("u");if(null!==r)for(e+=r;n<this.index;++n)this.source[n];else this.index=n,e+="u";this.tolerateUnexpectedToken()}else this.tolerateUnexpectedToken()}return e},e.prototype.scanRegExp=function(){var e=this.index,t=this.scanRegExpBody(),n=this.scanRegExpFlags();return{type:9,value:"",pattern:t,flags:n,regex:this.testRegExp(t,n),lineNumber:this.lineNumber,lineStart:this.lineStart,start:e,end:this.index}},e.prototype.lex=function(){if(this.eof())return{type:2,value:"",lineNumber:this.lineNumber,lineStart:this.lineStart,start:this.index,end:this.index};var e=this.source.charCodeAt(this.index);return i.Character.isIdentifierStart(e)?this.scanIdentifier():40===e||41===e||59===e?this.scanPunctuator():39===e||34===e?this.scanStringLiteral():46===e?i.Character.isDecimalDigit(this.source.charCodeAt(this.index+1))?this.scanNumericLiteral():this.scanPunctuator():i.Character.isDecimalDigit(e)?this.scanNumericLiteral():96===e||125===e&&"${"===this.curlyStack[this.curlyStack.length-1]?this.scanTemplate():e>=55296&&e<57343&&i.Character.isIdentifierStart(this.codePointAt(this.index))?this.scanIdentifier():this.scanPunctuator()},e}();t.Scanner=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenName={},t.TokenName[1]="Boolean",t.TokenName[2]="<end>",t.TokenName[3]="Identifier",t.TokenName[4]="Keyword",t.TokenName[5]="Null",t.TokenName[6]="Numeric",t.TokenName[7]="Punctuator",t.TokenName[8]="String",t.TokenName[9]="RegularExpression",t.TokenName[10]="Template"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XHTMLEntities={quot:'"',amp:"&",apos:"'",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",lang:"⟨",rang:"⟩"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(10),i=n(12),s=n(13),o=function(){function e(){this.values=[],this.curly=this.paren=-1}return e.prototype.beforeFunctionExpression=function(e){return["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","**","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="].indexOf(e)>=0},e.prototype.isRegexStart=function(){var e=this.values[this.values.length-1],t=null!==e;switch(e){case"this":case"]":t=!1;break;case")":var n=this.values[this.paren-1];t="if"===n||"while"===n||"for"===n||"with"===n;break;case"}":if(t=!1,"function"===this.values[this.curly-3])t=!!(r=this.values[this.curly-4])&&!this.beforeFunctionExpression(r);else if("function"===this.values[this.curly-4]){var r;t=!(r=this.values[this.curly-5])||!this.beforeFunctionExpression(r)}}return t},e.prototype.push=function(e){7===e.type||4===e.type?("{"===e.value?this.curly=this.values.length:"("===e.value&&(this.paren=this.values.length),this.values.push(e.value)):this.values.push(null)},e}(),a=function(){function e(e,t){this.errorHandler=new r.ErrorHandler,this.errorHandler.tolerant=!!t&&"boolean"==typeof t.tolerant&&t.tolerant,this.scanner=new i.Scanner(e,this.errorHandler),this.scanner.trackComment=!!t&&"boolean"==typeof t.comment&&t.comment,this.trackRange=!!t&&"boolean"==typeof t.range&&t.range,this.trackLoc=!!t&&"boolean"==typeof t.loc&&t.loc,this.buffer=[],this.reader=new o}return e.prototype.errors=function(){return this.errorHandler.errors},e.prototype.getNextToken=function(){if(0===this.buffer.length){var e=this.scanner.scanComments();if(this.scanner.trackComment)for(var t=0;t<e.length;++t){var n=e[t],r=this.scanner.source.slice(n.slice[0],n.slice[1]),i={type:n.multiLine?"BlockComment":"LineComment",value:r};this.trackRange&&(i.range=n.range),this.trackLoc&&(i.loc=n.loc),this.buffer.push(i)}if(!this.scanner.eof()){var o=void 0;this.trackLoc&&(o={start:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},end:{}});var a="/"===this.scanner.source[this.scanner.index]&&this.reader.isRegexStart()?this.scanner.scanRegExp():this.scanner.lex();this.reader.push(a);var u={type:s.TokenName[a.type],value:this.scanner.source.slice(a.start,a.end)};if(this.trackRange&&(u.range=[a.start,a.end]),this.trackLoc&&(o.end={line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart},u.loc=o),9===a.type){var l=a.pattern,c=a.flags;u.regex={pattern:l,flags:c}}this.buffer.push(u)}}return this.buffer.shift()},e}();t.Tokenizer=a}])},e.exports=t()},161:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,s||e,o),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],a]:e._events[u].push(a):(e._events[u]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,s=r.length,o=new Array(s);i<s;i++)o[i]=r[i].fn;return o},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,s,o){var a=n?n+e:e;if(!this._events[a])return!1;var u,l,c=this._events[a],p=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),p){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,s),!0;case 6:return c.fn.call(c.context,t,r,i,s,o),!0}for(l=1,u=new Array(p-1);l<p;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var h,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),p){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,r);break;case 4:c[l].fn.call(c[l].context,t,r,i);break;default:if(!u)for(h=1,u=new Array(p-1);h<p;h++)u[h-1]=arguments[h];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return o(this,s),this;var a=this._events[s];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||o(this,s);else{for(var u=0,l=[],c=a.length;u<c;u++)(a[u].fn!==t||i&&!a[u].once||r&&a[u].context!==r)&&l.push(a[u]);l.length?this._events[s]=1===l.length?l[0]:l:o(this,s)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a},6238:e=>{function t(e,t,n,r){var i=function(e){return null==e||"number"==typeof e||"boolean"==typeof e}(r)?r:n(r),s=t.get(i);return void 0===s&&(s=e.call(this,r),t.set(i,s)),s}function n(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),s=t.get(i);return void 0===s&&(s=e.apply(this,r),t.set(i,s)),s}function r(e,t,n,r,i){return n.bind(t,e,r,i)}function i(e,i){return r(e,this,1===e.length?t:n,i.cache.create(),i.serializer)}function s(){return JSON.stringify(arguments)}function o(){this.cache=Object.create(null)}o.prototype.has=function(e){return e in this.cache},o.prototype.get=function(e){return this.cache[e]},o.prototype.set=function(e,t){this.cache[e]=t};var a={create:function(){return new o}};e.exports=function(e,t){var n=t&&t.cache?t.cache:a,r=t&&t.serializer?t.serializer:s;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:r})},e.exports.strategies={variadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)},monadic:function(e,n){return r(e,this,t,n.cache.create(),n.serializer)}}},3463:(e,t,n)=>{"use strict";var r=n(3887),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(e){return r.isMemo(e)?o:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=d(n);i&&i!==f&&e(t,i,r)}var o=c(n);p&&(o=o.concat(p(n)));for(var a=u(t),m=u(n),g=0;g<o.length;++g){var E=o[g];if(!(s[E]||r&&r[E]||m&&m[E]||a&&a[E])){var y=h(n,E);try{l(t,E,y)}catch(e){}}}}return t}},3459:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,A=n?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case s:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case l:case h:case g:case m:case u:return e;default:return t}}case i:return t}}}function b(e){return C(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=h,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=d,t.isAsyncMode=function(e){return b(e)||C(e)===c},t.isConcurrentMode=b,t.isContextConsumer=function(e){return C(e)===l},t.isContextProvider=function(e){return C(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return C(e)===h},t.isFragment=function(e){return C(e)===s},t.isLazy=function(e){return C(e)===g},t.isMemo=function(e){return C(e)===m},t.isPortal=function(e){return C(e)===i},t.isProfiler=function(e){return C(e)===a},t.isStrictMode=function(e){return C(e)===o},t.isSuspense=function(e){return C(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===a||e===o||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===u||e.$$typeof===l||e.$$typeof===h||e.$$typeof===y||e.$$typeof===v||e.$$typeof===A||e.$$typeof===E)},t.typeOf=C},3887:(e,t,n)=>{"use strict";e.exports=n(3459)},7677:e=>{"use strict";e.exports=function(e,t,n,r,i,s,o,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,s,o,a],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},7543:(e,t,n)=>{"use strict";var r=t,i=n(8893).Buffer,s=n(9801);r.toBuffer=function(e,t,n){var r;if(n=~~n,this.isV4Format(e))r=t||new i(n+4),e.split(/\./g).map((function(e){r[n++]=255&parseInt(e,10)}));else if(this.isV6Format(e)){var s,o=e.split(":",8);for(s=0;s<o.length;s++){var a;this.isV4Format(o[s])&&(a=this.toBuffer(o[s]),o[s]=a.slice(0,2).toString("hex")),a&&++s<8&&o.splice(s,0,a.slice(2,4).toString("hex"))}if(""===o[0])for(;o.length<8;)o.unshift("0");else if(""===o[o.length-1])for(;o.length<8;)o.push("0");else if(o.length<8){for(s=0;s<o.length&&""!==o[s];s++);var u=[s,1];for(s=9-o.length;s>0;s--)u.push("0");o.splice.apply(o,u)}for(r=t||new i(n+16),s=0;s<o.length;s++){var l=parseInt(o[s],16);r[n++]=l>>8&255,r[n++]=255&l}}if(!r)throw Error("Invalid ip address: "+e);return r},r.toString=function(e,t,n){t=~~t;var r=[];if(4===(n=n||e.length-t)){for(var i=0;i<n;i++)r.push(e[t+i]);r=r.join(".")}else if(16===n){for(i=0;i<n;i+=2)r.push(e.readUInt16BE(t+i).toString(16));r=(r=(r=r.join(":")).replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3")).replace(/:{3,4}/,"::")}return r};var o=/^(\d{1,3}\.){3,3}\d{1,3}$/,a=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;function u(e){return e?e.toLowerCase():"ipv4"}r.isV4Format=function(e){return o.test(e)},r.isV6Format=function(e){return a.test(e)},r.fromPrefixLen=function(e,t){var n=4;"ipv6"===(t=e>32?"ipv6":u(t))&&(n=16);for(var s=new i(n),o=0,a=s.length;o<a;++o){var l=8;e<8&&(l=e),e-=l,s[o]=255&~(255>>l)}return r.toString(s)},r.mask=function(e,t){e=r.toBuffer(e),t=r.toBuffer(t);var n=new i(Math.max(e.length,t.length)),s=0;if(e.length===t.length)for(s=0;s<e.length;s++)n[s]=e[s]&t[s];else if(4===t.length)for(s=0;s<t.length;s++)n[s]=e[e.length-4+s]&t[s];else{for(s=0;s<n.length-6;s++)n[s]=0;for(n[10]=255,n[11]=255,s=0;s<e.length;s++)n[s+12]=e[s]&t[s+12];s+=12}for(;s<n.length;s++)n[s]=0;return r.toString(n)},r.cidr=function(e){var t=e.split("/"),n=t[0];if(2!==t.length)throw new Error("invalid CIDR subnet: "+n);var i=r.fromPrefixLen(parseInt(t[1],10));return r.mask(n,i)},r.subnet=function(e,t){for(var n=r.toLong(r.mask(e,t)),i=r.toBuffer(t),s=0,o=0;o<i.length;o++)if(255===i[o])s+=8;else for(var a=255&i[o];a;)a=a<<1&255,s++;var u=Math.pow(2,32-s);return{networkAddress:r.fromLong(n),firstAddress:u<=2?r.fromLong(n):r.fromLong(n+1),lastAddress:u<=2?r.fromLong(n+u-1):r.fromLong(n+u-2),broadcastAddress:r.fromLong(n+u-1),subnetMask:t,subnetMaskLength:s,numHosts:u<=2?u:u-2,length:u,contains:function(e){return n===r.toLong(r.mask(e,t))}}},r.cidrSubnet=function(e){var t=e.split("/"),n=t[0];if(2!==t.length)throw new Error("invalid CIDR subnet: "+n);var i=r.fromPrefixLen(parseInt(t[1],10));return r.subnet(n,i)},r.not=function(e){for(var t=r.toBuffer(e),n=0;n<t.length;n++)t[n]=255^t[n];return r.toString(t)},r.or=function(e,t){if(e=r.toBuffer(e),t=r.toBuffer(t),e.length===t.length){for(var n=0;n<e.length;++n)e[n]|=t[n];return r.toString(e)}var i=e,s=t;t.length>e.length&&(i=t,s=e);var o=i.length-s.length;for(n=o;n<i.length;++n)i[n]|=s[n-o];return r.toString(i)},r.isEqual=function(e,t){if(e=r.toBuffer(e),t=r.toBuffer(t),e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}if(4===t.length){var i=t;t=e,e=i}for(n=0;n<10;n++)if(0!==t[n])return!1;var s=t.readUInt16BE(10);if(0!==s&&65535!==s)return!1;for(n=0;n<4;n++)if(e[n]!==t[n+12])return!1;return!0},r.isPrivate=function(e){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/i.test(e)||/^f[cd][0-9a-f]{2}:/i.test(e)||/^fe80:/i.test(e)||/^::1$/.test(e)||/^::$/.test(e)},r.isPublic=function(e){return!r.isPrivate(e)},r.isLoopback=function(e){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(e)||/^fe80::1$/.test(e)||/^::1$/.test(e)||/^::$/.test(e)},r.loopback=function(e){if("ipv4"!==(e=u(e))&&"ipv6"!==e)throw new Error("family must be ipv4 or ipv6");return"ipv4"===e?"127.0.0.1":"fe80::1"},r.address=function(e,t){var n,i=s.networkInterfaces();if(t=u(t),e&&"private"!==e&&"public"!==e){var o=i[e].filter((function(e){return e.family.toLowerCase()===t}));if(0===o.length)return;return o[0].address}return(n=Object.keys(i).map((function(n){var s=i[n].filter((function(n){return n.family=n.family.toLowerCase(),n.family===t&&!r.isLoopback(n.address)&&(!e||("public"===e?r.isPrivate(n.address):r.isPublic(n.address)))}));return s.length?s[0].address:void 0})).filter(Boolean)).length?n[0]:r.loopback(t)},r.toLong=function(e){var t=0;return e.split(".").forEach((function(e){t<<=8,t+=parseInt(e)})),t>>>0},r.fromLong=function(e){return(e>>>24)+"."+(e>>16&255)+"."+(e>>8&255)+"."+(255&e)}},4283:e=>{e.exports="undefined"==typeof process||!process||!!process.type&&"renderer"===process.type},9320:e=>{function t(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=t,e.exports.default=t},594:(e,t,n)=>{var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=u||l||Function("return this")(),p=Object.prototype.toString,h=Math.max,d=Math.min,f=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=s.test(e);return n||o.test(e)?a(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,s,o,a,u,l=0,c=!1,p=!1,E=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,s=i;return r=i=void 0,l=t,o=e.apply(s,n)}function v(e){return l=e,a=setTimeout(C,t),c?y(e):o}function A(e){var n=e-u;return void 0===u||n>=t||n<0||p&&e-l>=s}function C(){var e=f();if(A(e))return b(e);a=setTimeout(C,function(e){var n=t-(e-u);return p?d(n,s-(e-l)):n}(e))}function b(e){return a=void 0,E&&r?y(e):(r=i=void 0,o)}function S(){var e=f(),n=A(e);if(r=arguments,i=this,u=e,n){if(void 0===a)return v(u);if(p)return a=setTimeout(C,t),y(u)}return void 0===a&&(a=setTimeout(C,t)),o}return t=g(t)||0,m(n)&&(c=!!n.leading,s=(p="maxWait"in n)?h(g(n.maxWait)||0,t):s,E="trailing"in n?!!n.trailing:E),S.cancel=function(){void 0!==a&&clearTimeout(a),l=0,r=u=i=a=void 0},S.flush=function(){return void 0===a?o:b(f())},S}},4749:e=>{var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/,r=Object.prototype,i=r.hasOwnProperty,s=r.toString,o=r.propertyIsEnumerable;function a(e,r){return!!(r=null==r?t:r)&&("number"==typeof e||n.test(e))&&e>-1&&e%1==0&&e<r}var u=Array.isArray;function l(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}(e.length)&&!function(e){var t=c(e)?s.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}function c(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){return l(e)?function(e,t){var n=u(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&l(e)}(e)&&i.call(e,"callee")&&(!o.call(e,"callee")||"[object Arguments]"==s.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,c=!!r;for(var p in e)!t&&!i.call(e,p)||c&&("length"==p||a(p,r))||n.push(p);return n}(e,!0):function(e){if(!c(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}(e),n=[];for(var s in e)("constructor"!=s||!t&&i.call(e,s))&&n.push(s);return n}(e)}function h(e){return e}e.exports=function(e,t){return null==e?e:function(e,t,n){for(var r=-1,i=Object(e),s=n(e),o=s.length;o--;){var a=s[++r];if(!1===t(i[a],a,i))break}return e}(e,"function"==typeof t?t:h,p)}},4537:e=>{var t=Array.isArray;e.exports=t},6160:(e,t,n)=>{e=n.nmd(e);var r,i,s,o="[object Map]",a="[object Promise]",u="[object Set]",l="[object WeakMap]",c="[object DataView]",p=/^\[object .+?Constructor\]$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,f=h||d||Function("return this")(),m=t&&!t.nodeType&&t,g=m&&e&&!e.nodeType&&e,E=g&&g.exports===m,y=Function.prototype,v=Object.prototype,A=f["__core-js_shared__"],C=(r=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",b=y.toString,S=v.hasOwnProperty,x=v.toString,w=RegExp("^"+b.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=E?f.Buffer:void 0,_=v.propertyIsEnumerable,O=D?D.isBuffer:void 0,F=(i=Object.keys,s=Object,function(e){return i(s(e))}),T=U(f,"DataView"),B=U(f,"Map"),k=U(f,"Promise"),R=U(f,"Set"),I=U(f,"WeakMap"),N=!_.call({valueOf:1},"valueOf"),P=q(T),M=q(B),L=q(k),j=q(R),V=q(I);function U(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!K(e)||function(e){return!!C&&C in e}(e))return!1;var t=$(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?w:p;return t.test(q(e))}(n)?n:void 0}var z=function(e){return x.call(e)};function q(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(T&&z(new T(new ArrayBuffer(1)))!=c||B&&z(new B)!=o||k&&z(k.resolve())!=a||R&&z(new R)!=u||I&&z(new I)!=l)&&(z=function(e){var t=x.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?q(n):void 0;if(r)switch(r){case P:return c;case M:return o;case L:return a;case j:return u;case V:return l}return t});var W=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!$(e)}var G=O||function(){return!1};function $(e){var t=K(e)?x.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function K(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(H(e)&&(W(e)||"string"==typeof e||"function"==typeof e.splice||G(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&H(e)}(e)&&S.call(e,"callee")&&(!_.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)))return!e.length;var t=z(e);if(t==o||t==u)return!e.size;if(N||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||v)}(e))return!F(e).length;for(var n in e)if(S.call(e,n))return!1;return!0}},3958:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,s="[object Arguments]",o="[object Array]",a="[object Boolean]",u="[object Date]",l="[object Error]",c="[object Function]",p="[object Map]",h="[object Number]",d="[object Object]",f="[object Promise]",m="[object RegExp]",g="[object Set]",E="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",A="[object DataView]",C=/^\[object .+?Constructor\]$/,b=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[s]=S[o]=S[v]=S[a]=S[A]=S[u]=S[l]=S[c]=S[p]=S[h]=S[d]=S[m]=S[g]=S[E]=S[y]=!1;var x="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,w="object"==typeof self&&self&&self.Object===Object&&self,D=x||w||Function("return this")(),_=t&&!t.nodeType&&t,O=_&&e&&!e.nodeType&&e,F=O&&O.exports===_,T=F&&x.process,B=function(){try{return T&&T.binding&&T.binding("util")}catch(e){}}(),k=B&&B.isTypedArray;function R(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function I(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var P,M,L,j=Array.prototype,V=Function.prototype,U=Object.prototype,z=D["__core-js_shared__"],q=V.toString,W=U.hasOwnProperty,H=(P=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+P:"",G=U.toString,$=RegExp("^"+q.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),K=F?D.Buffer:void 0,X=D.Symbol,J=D.Uint8Array,Z=U.propertyIsEnumerable,Y=j.splice,Q=X?X.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=K?K.isBuffer:void 0,ne=(M=Object.keys,L=Object,function(e){return M(L(e))}),re=Oe(D,"DataView"),ie=Oe(D,"Map"),se=Oe(D,"Promise"),oe=Oe(D,"Set"),ae=Oe(D,"WeakMap"),ue=Oe(Object,"create"),le=ke(re),ce=ke(ie),pe=ke(se),he=ke(oe),de=ke(ae),fe=X?X.prototype:void 0,me=fe?fe.valueOf:void 0;function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ye;++t<n;)this.add(e[t])}function Ae(e){var t=this.__data__=new Ee(e);this.size=t.size}function Ce(e,t){for(var n=e.length;n--;)if(Re(e[n][0],t))return n;return-1}function be(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Q&&Q in Object(e)?function(e){var t=W.call(e,Q),n=e[Q];try{e[Q]=void 0;var r=!0}catch(e){}var i=G.call(e);return r&&(t?e[Q]=n:delete e[Q]),i}(e):function(e){return G.call(e)}(e)}function Se(e){return Ve(e)&&be(e)==s}function xe(e,t,n,r,i){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!=e&&t!=t:function(e,t,n,r,i,c){var f=Ne(e),y=Ne(t),C=f?o:Te(e),b=y?o:Te(t),S=(C=C==s?d:C)==d,x=(b=b==s?d:b)==d,w=C==b;if(w&&Pe(e)){if(!Pe(t))return!1;f=!0,S=!1}if(w&&!S)return c||(c=new Ae),f||Ue(e)?we(e,t,n,r,i,c):function(e,t,n,r,i,s,o){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v:return!(e.byteLength!=t.byteLength||!s(new J(e),new J(t)));case a:case u:case h:return Re(+e,+t);case l:return e.name==t.name&&e.message==t.message;case m:case E:return e==t+"";case p:var c=I;case g:var d=1&r;if(c||(c=N),e.size!=t.size&&!d)return!1;var f=o.get(e);if(f)return f==t;r|=2,o.set(e,t);var y=we(c(e),c(t),r,i,s,o);return o.delete(e),y;case"[object Symbol]":if(me)return me.call(e)==me.call(t)}return!1}(e,t,C,n,r,i,c);if(!(1&n)){var D=S&&W.call(e,"__wrapped__"),_=x&&W.call(t,"__wrapped__");if(D||_){var O=D?e.value():e,F=_?t.value():t;return c||(c=new Ae),i(O,F,n,r,c)}}return!!w&&(c||(c=new Ae),function(e,t,n,r,i,s){var o=1&n,a=De(e),u=a.length;if(u!=De(t).length&&!o)return!1;for(var l=u;l--;){var c=a[l];if(!(o?c in t:W.call(t,c)))return!1}var p=s.get(e);if(p&&s.get(t))return p==t;var h=!0;s.set(e,t),s.set(t,e);for(var d=o;++l<u;){var f=e[c=a[l]],m=t[c];if(r)var g=o?r(m,f,c,t,e,s):r(f,m,c,e,t,s);if(!(void 0===g?f===m||i(f,m,n,r,s):g)){h=!1;break}d||(d="constructor"==c)}if(h&&!d){var E=e.constructor,y=t.constructor;E==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof y&&y instanceof y||(h=!1)}return s.delete(e),s.delete(t),h}(e,t,n,r,i,c))}(e,t,n,r,xe,i))}function we(e,t,n,r,i,s){var o=1&n,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var l=s.get(e);if(l&&s.get(t))return l==t;var c=-1,p=!0,h=2&n?new ve:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var d=e[c],f=t[c];if(r)var m=o?r(f,d,c,t,e,s):r(d,f,c,e,t,s);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!R(t,(function(e,t){if(o=t,!h.has(o)&&(d===e||i(d,e,n,r,s)))return h.push(t);var o}))){p=!1;break}}else if(d!==f&&!i(d,f,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function De(e){return function(e,t,n){var r=t(e);return Ne(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,ze,Fe)}function _e(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!je(e)||function(e){return!!H&&H in e}(e))&&(Me(e)?$:C).test(ke(e))}(n)?n:void 0}ge.prototype.clear=function(){this.__data__=ue?ue(null):{},this.size=0},ge.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ge.prototype.get=function(e){var t=this.__data__;if(ue){var n=t[e];return n===r?void 0:n}return W.call(t,e)?t[e]:void 0},ge.prototype.has=function(e){var t=this.__data__;return ue?void 0!==t[e]:W.call(t,e)},ge.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ue&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=Ce(t,e);return!(n<0||(n==t.length-1?t.pop():Y.call(t,n,1),--this.size,0))},Ee.prototype.get=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Ce(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ce(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ye.prototype.clear=function(){this.size=0,this.__data__={hash:new ge,map:new(ie||Ee),string:new ge}},ye.prototype.delete=function(e){var t=_e(this,e).delete(e);return this.size-=t?1:0,t},ye.prototype.get=function(e){return _e(this,e).get(e)},ye.prototype.has=function(e){return _e(this,e).has(e)},ye.prototype.set=function(e,t){var n=_e(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,r),this},ve.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.clear=function(){this.__data__=new Ee,this.size=0},Ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ae.prototype.get=function(e){return this.__data__.get(e)},Ae.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ye(r)}return n.set(e,t),this.size=n.size,this};var Fe=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,s=0,o=[];++r<i;){var a=t[r];u=a,Z.call(e,u)&&(o[s++]=a)}var u;return o}(ee(e)))}:function(){return[]},Te=be;function Be(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Re(e,t){return e===t||e!=e&&t!=t}(re&&Te(new re(new ArrayBuffer(1)))!=A||ie&&Te(new ie)!=p||se&&Te(se.resolve())!=f||oe&&Te(new oe)!=g||ae&&Te(new ae)!=y)&&(Te=function(e){var t=be(e),n=t==d?e.constructor:void 0,r=n?ke(n):"";if(r)switch(r){case le:return A;case ce:return p;case pe:return f;case he:return g;case de:return y}return t});var Ie=Se(function(){return arguments}())?Se:function(e){return Ve(e)&&W.call(e,"callee")&&!Z.call(e,"callee")},Ne=Array.isArray,Pe=te||function(){return!1};function Me(e){if(!je(e))return!1;var t=be(e);return t==c||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Le(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ue=k?function(e){return function(t){return e(t)}}(k):function(e){return Ve(e)&&Le(e.length)&&!!S[be(e)]};function ze(e){return function(e){return null!=e&&Le(e.length)&&!Me(e)}(e)?function(e,t){var n=Ne(e),r=!n&&Ie(e),i=!n&&!r&&Pe(e),s=!n&&!r&&!i&&Ue(e),o=n||r||i||s,a=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=a.length;for(var l in e)!t&&!W.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Be(l,u))||a.push(l);return a}(e):function(e){if(!function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||U)}(e))return ne(e);var t=[];for(var n in Object(e))W.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e,t){return xe(e,t)}},4772:e=>{var t,n,r=Function.prototype,i=Object.prototype,s=r.toString,o=i.hasOwnProperty,a=s.call(Object),u=i.toString,l=(t=Object.getPrototypeOf,n=Object,function(e){return t(n(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=u.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=l(e);if(null===t)return!0;var n=o.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==a}},6496:e=>{var t=Object.prototype.toString,n=Array.isArray;e.exports=function(e){return"string"==typeof e||!n(e)&&function(e){return!!e&&"object"==typeof e}(e)&&"[object String]"==t.call(e)}},4622:e=>{var t,n,r=9007199254740991,i=/^(?:0|[1-9]\d*)$/,s=Object.prototype,o=s.hasOwnProperty,a=s.toString,u=s.propertyIsEnumerable,l=(t=Object.keys,n=Object,function(e){return t(n(e))});function c(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}var p=Array.isArray;function h(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?a.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)}e.exports=function(e){return h(e)?function(e,t){var n=p(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&h(e)}(e)&&o.call(e,"callee")&&(!u.call(e,"callee")||"[object Arguments]"==a.call(e))}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var s in e)!t&&!o.call(e,s)||i&&("length"==s||c(s,r))||n.push(s);return n}(e):function(e){if(!function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||s)}(e))return l(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}},6635:function(e,t,n){var r;e=n.nmd(e),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",u=32,l=128,c=1/0,p=9007199254740991,h=NaN,d=4294967295,f=[["ary",l],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",g="[object Array]",E="[object Boolean]",y="[object Date]",v="[object Error]",A="[object Function]",C="[object GeneratorFunction]",b="[object Map]",S="[object Number]",x="[object Object]",w="[object Promise]",D="[object RegExp]",_="[object Set]",O="[object String]",F="[object Symbol]",T="[object WeakMap]",B="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",I="[object Float64Array]",N="[object Int8Array]",P="[object Int16Array]",M="[object Int32Array]",L="[object Uint8Array]",j="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",z=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,$=RegExp(H.source),K=RegExp(G.source),X=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,Z=/<%=([\s\S]+?)%>/g,Y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,le=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,Ee=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ve=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,Ce="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",be="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",we="["+xe+"]",De="["+Ce+"]",_e="\\d+",Oe="["+be+"]",Fe="[^\\ud800-\\udfff"+xe+_e+"\\u2700-\\u27bf"+be+Se+"]",Te="\\ud83c[\\udffb-\\udfff]",Be="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Re="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Se+"]",Ne="(?:"+Oe+"|"+Fe+")",Pe="(?:"+Ie+"|"+Fe+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",Le="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+De+"|"+Te+")?",Ve="[\\ufe0e\\ufe0f]?",Ue=Ve+je+"(?:\\u200d(?:"+[Be,ke,Re].join("|")+")"+Ve+je+")*",ze="(?:"+["[\\u2700-\\u27bf]",ke,Re].join("|")+")"+Ue,qe="(?:"+[Be+De+"?",De,ke,Re,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),He=RegExp(De,"g"),Ge=RegExp(Te+"(?="+Te+")|"+qe+Ue,"g"),$e=RegExp([Ie+"?"+Oe+"+"+Me+"(?="+[we,Ie,"$"].join("|")+")",Pe+"+"+Le+"(?="+[we,Ie+Ne,"$"].join("|")+")",Ie+"?"+Ne+"+"+Me,Ie+"+"+Le,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_e,ze].join("|"),"g"),Ke=RegExp("[\\u200d\\ud800-\\udfff"+Ce+"\\ufe0e\\ufe0f]"),Xe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ze=-1,Ye={};Ye[R]=Ye[I]=Ye[N]=Ye[P]=Ye[M]=Ye[L]=Ye[j]=Ye[V]=Ye[U]=!0,Ye[m]=Ye[g]=Ye[B]=Ye[E]=Ye[k]=Ye[y]=Ye[v]=Ye[A]=Ye[b]=Ye[S]=Ye[x]=Ye[D]=Ye[_]=Ye[O]=Ye[T]=!1;var Qe={};Qe[m]=Qe[g]=Qe[B]=Qe[k]=Qe[E]=Qe[y]=Qe[R]=Qe[I]=Qe[N]=Qe[P]=Qe[M]=Qe[b]=Qe[S]=Qe[x]=Qe[D]=Qe[_]=Qe[O]=Qe[F]=Qe[L]=Qe[j]=Qe[V]=Qe[U]=!0,Qe[v]=Qe[A]=Qe[T]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,it="object"==typeof self&&self&&self.Object===Object&&self,st=rt||it||Function("return this")(),ot=t&&!t.nodeType&&t,at=ot&&e&&!e.nodeType&&e,ut=at&&at.exports===ot,lt=ut&&rt.process,ct=function(){try{return at&&at.require&&at.require("util").types||lt&<.binding&<.binding("util")}catch(e){}}(),pt=ct&&ct.isArrayBuffer,ht=ct&&ct.isDate,dt=ct&&ct.isMap,ft=ct&&ct.isRegExp,mt=ct&&ct.isSet,gt=ct&&ct.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i<s;){var o=e[i];t(r,o,n(o),e)}return r}function vt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function bt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function St(e,t){return!(null==e||!e.length)&&Rt(e,t,0)>-1}function xt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function wt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Dt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function _t(e,t,n,r){var i=-1,s=null==e?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Ot(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Ft(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Tt=Mt("length");function Bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function kt(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function Rt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):kt(e,Nt,n)}function It(e,t,n,r){for(var i=n-1,s=e.length;++i<s;)if(r(e[i],t))return i;return-1}function Nt(e){return e!=e}function Pt(e,t){var n=null==e?0:e.length;return n?Vt(e,t)/n:h}function Mt(e){return function(t){return null==t?i:t[e]}}function Lt(e){return function(t){return null==e?i:e[t]}}function jt(e,t,n,r,i){return i(e,(function(e,i,s){n=r?(r=!1,e):t(n,e,i,s)})),n}function Vt(e,t){for(var n,r=-1,s=e.length;++r<s;){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function Ut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zt(e){return e?e.slice(0,an(e)+1).replace(re,""):e}function qt(e){return function(t){return e(t)}}function Wt(e,t){return wt(t,(function(t){return e[t]}))}function Ht(e,t){return e.has(t)}function Gt(e,t){for(var n=-1,r=e.length;++n<r&&Rt(t,e[n],0)>-1;);return n}function $t(e,t){for(var n=e.length;n--&&Rt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Xt=Lt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Jt=Lt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Zt(e){return"\\"+et[e]}function Yt(e){return Ke.test(e)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n];o!==t&&o!==a||(e[n]=a,s[i++]=n)}return s}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function sn(e){return Yt(e)?function(e){for(var t=Ge.lastIndex=0;Ge.test(e);)++t;return t}(e):Tt(e)}function on(e){return Yt(e)?function(e){return e.match(Ge)||[]}(e):function(e){return e.split("")}(e)}function an(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var un=Lt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),ln=function e(t){var n,r=(t=null==t?st:ln.defaults(st.Object(),t,ln.pick(st,Je))).Array,ie=t.Date,Ce=t.Error,be=t.Function,Se=t.Math,xe=t.Object,we=t.RegExp,De=t.String,_e=t.TypeError,Oe=r.prototype,Fe=be.prototype,Te=xe.prototype,Be=t["__core-js_shared__"],ke=Fe.toString,Re=Te.hasOwnProperty,Ie=0,Ne=(n=/[^.]+$/.exec(Be&&Be.keys&&Be.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Pe=Te.toString,Me=ke.call(xe),Le=st._,je=we("^"+ke.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=ut?t.Buffer:i,Ue=t.Symbol,ze=t.Uint8Array,qe=Ve?Ve.allocUnsafe:i,Ge=en(xe.getPrototypeOf,xe),Ke=xe.create,et=Te.propertyIsEnumerable,rt=Oe.splice,it=Ue?Ue.isConcatSpreadable:i,ot=Ue?Ue.iterator:i,at=Ue?Ue.toStringTag:i,lt=function(){try{var e=ls(xe,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==st.clearTimeout&&t.clearTimeout,Tt=ie&&ie.now!==st.Date.now&&ie.now,Lt=t.setTimeout!==st.setTimeout&&t.setTimeout,cn=Se.ceil,pn=Se.floor,hn=xe.getOwnPropertySymbols,dn=Ve?Ve.isBuffer:i,fn=t.isFinite,mn=Oe.join,gn=en(xe.keys,xe),En=Se.max,yn=Se.min,vn=ie.now,An=t.parseInt,Cn=Se.random,bn=Oe.reverse,Sn=ls(t,"DataView"),xn=ls(t,"Map"),wn=ls(t,"Promise"),Dn=ls(t,"Set"),_n=ls(t,"WeakMap"),On=ls(xe,"create"),Fn=_n&&new _n,Tn={},Bn=Ls(Sn),kn=Ls(xn),Rn=Ls(wn),In=Ls(Dn),Nn=Ls(_n),Pn=Ue?Ue.prototype:i,Mn=Pn?Pn.valueOf:i,Ln=Pn?Pn.toString:i;function jn(e){if(na(e)&&!Ho(e)&&!(e instanceof qn)){if(e instanceof zn)return e;if(Re.call(e,"__wrapped__"))return js(e)}return new zn(e)}var Vn=function(){function e(){}return function(t){if(!ta(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Un(){}function zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function $n(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Hn(e);this.size=t.size}function Xn(e,t){var n=Ho(e),r=!n&&Wo(e),i=!n&&!r&&Xo(e),s=!n&&!r&&!i&&ca(e),o=n||r||i||s,a=o?Ut(e.length,De):[],u=a.length;for(var l in e)!t&&!Re.call(e,l)||o&&("length"==l||i&&("offset"==l||"parent"==l)||s&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||gs(l,u))||a.push(l);return a}function Jn(e){var t=e.length;return t?e[Gr(0,t-1)]:i}function Zn(e,t){return Rs(_i(e),or(t,0,e.length))}function Yn(e){return Rs(_i(e))}function Qn(e,t,n){(n!==i&&!Uo(e[t],n)||n===i&&!(t in e))&&ir(e,t,n)}function er(e,t,n){var r=e[t];Re.call(e,t)&&Uo(r,n)&&(n!==i||t in e)||ir(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Uo(e[n][0],t))return n;return-1}function nr(e,t,n,r){return pr(e,(function(e,i,s){t(r,e,n(e),s)})),r}function rr(e,t){return e&&Oi(t,ka(t),e)}function ir(e,t,n){"__proto__"==t&<?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var n=-1,s=t.length,o=r(s),a=null==e;++n<s;)o[n]=a?i:_a(e,t[n]);return o}function or(e,t,n){return e==e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function ar(e,t,n,r,s,o){var a,u=1&t,l=2&t,c=4&t;if(n&&(a=s?n(e,r,s,o):n(e)),a!==i)return a;if(!ta(e))return e;var p=Ho(e);if(p){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return _i(e,a)}else{var h=hs(e),d=h==A||h==C;if(Xo(e))return Ci(e,u);if(h==x||h==m||d&&!s){if(a=l||d?{}:fs(e),!u)return l?function(e,t){return Oi(e,ps(e),t)}(e,function(e,t){return e&&Oi(t,Ra(t),e)}(a,e)):function(e,t){return Oi(e,cs(e),t)}(e,rr(a,e))}else{if(!Qe[h])return s?e:{};a=function(e,t,n){var r,i=e.constructor;switch(t){case B:return bi(e);case E:case y:return new i(+e);case k:return function(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case I:case N:case P:case M:case L:case j:case V:case U:return Si(e,n);case b:return new i;case S:case O:return new i(e);case D:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case _:return new i;case F:return r=e,Mn?xe(Mn.call(r)):{}}}(e,h,u)}}o||(o=new Kn);var f=o.get(e);if(f)return f;o.set(e,a),aa(e)?e.forEach((function(r){a.add(ar(r,t,n,r,e,o))})):ra(e)&&e.forEach((function(r,i){a.set(i,ar(r,t,n,i,e,o))}));var g=p?i:(c?l?ns:ts:l?Ra:ka)(e);return vt(g||e,(function(r,i){g&&(r=e[i=r]),er(a,i,ar(r,t,n,i,e,o))})),a}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=xe(e);r--;){var s=n[r],o=t[s],a=e[s];if(a===i&&!(s in e)||!o(a))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new _e(s);return Fs((function(){e.apply(i,n)}),t)}function cr(e,t,n,r){var i=-1,s=St,o=!0,a=e.length,u=[],l=t.length;if(!a)return u;n&&(t=wt(t,qt(n))),r?(s=xt,o=!1):t.length>=200&&(s=Ht,o=!1,t=new $n(t));e:for(;++i<a;){var c=e[i],p=null==n?c:n(c);if(c=r||0!==c?c:0,o&&p==p){for(var h=l;h--;)if(t[h]===p)continue e;u.push(c)}else s(t,p,r)||u.push(c)}return u}jn.templateSettings={escape:X,evaluate:J,interpolate:Z,variable:"",imports:{_:jn}},jn.prototype=Un.prototype,jn.prototype.constructor=jn,zn.prototype=Vn(Un.prototype),zn.prototype.constructor=zn,qn.prototype=Vn(Un.prototype),qn.prototype.constructor=qn,Wn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===o?i:n}return Re.call(t,e)?t[e]:i},Wn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==i:Re.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===i?o:t,this},Hn.prototype.clear=function(){this.__data__=[],this.size=0},Hn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Hn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?i:t[n][1]},Hn.prototype.has=function(e){return tr(this.__data__,e)>-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(xn||Hn),string:new Wn}},Gn.prototype.delete=function(e){var t=as(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return as(this,e).get(e)},Gn.prototype.has=function(e){return as(this,e).has(e)},Gn.prototype.set=function(e,t){var n=as(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,o),this},$n.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Hn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=Bi(vr),hr=Bi(Ar,!0);function dr(e,t){var n=!0;return pr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function fr(e,t,n){for(var r=-1,s=e.length;++r<s;){var o=e[r],a=t(o);if(null!=a&&(u===i?a==a&&!la(a):n(a,u)))var u=a,l=o}return l}function mr(e,t){var n=[];return pr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function gr(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=ms),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?gr(a,t-1,n,r,i):Dt(i,a):r||(i[i.length]=a)}return i}var Er=ki(),yr=ki(!0);function vr(e,t){return e&&Er(e,t,ka)}function Ar(e,t){return e&&yr(e,t,ka)}function Cr(e,t){return bt(t,(function(t){return Yo(e[t])}))}function br(e,t){for(var n=0,r=(t=Ei(t,e)).length;null!=e&&n<r;)e=e[Ms(t[n++])];return n&&n==r?e:i}function Sr(e,t,n){var r=t(e);return Ho(e)?r:Dt(r,n(e))}function xr(e){return null==e?e===i?"[object Undefined]":"[object Null]":at&&at in xe(e)?function(e){var t=Re.call(e,at),n=e[at];try{e[at]=i;var r=!0}catch(e){}var s=Pe.call(e);return r&&(t?e[at]=n:delete e[at]),s}(e):function(e){return Pe.call(e)}(e)}function wr(e,t){return e>t}function Dr(e,t){return null!=e&&Re.call(e,t)}function _r(e,t){return null!=e&&t in xe(e)}function Or(e,t,n){for(var s=n?xt:St,o=e[0].length,a=e.length,u=a,l=r(a),c=1/0,p=[];u--;){var h=e[u];u&&t&&(h=wt(h,qt(t))),c=yn(h.length,c),l[u]=!n&&(t||o>=120&&h.length>=120)?new $n(u&&h):i}h=e[0];var d=-1,f=l[0];e:for(;++d<o&&p.length<c;){var m=h[d],g=t?t(m):m;if(m=n||0!==m?m:0,!(f?Ht(f,g):s(p,g,n))){for(u=a;--u;){var E=l[u];if(!(E?Ht(E,g):s(e[u],g,n)))continue e}f&&f.push(g),p.push(m)}}return p}function Fr(e,t,n){var r=null==(e=ws(e,t=Ei(t,e)))?e:e[Ms(Js(t))];return null==r?i:Et(r,e,n)}function Tr(e){return na(e)&&xr(e)==m}function Br(e,t,n,r,s){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,s,o){var a=Ho(e),u=Ho(t),l=a?g:hs(e),c=u?g:hs(t),p=(l=l==m?x:l)==x,h=(c=c==m?x:c)==x,d=l==c;if(d&&Xo(e)){if(!Xo(t))return!1;a=!0,p=!1}if(d&&!p)return o||(o=new Kn),a||ca(e)?Qi(e,t,n,r,s,o):function(e,t,n,r,i,s,o){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!s(new ze(e),new ze(t)));case E:case y:case S:return Uo(+e,+t);case v:return e.name==t.name&&e.message==t.message;case D:case O:return e==t+"";case b:var a=Qt;case _:var u=1&r;if(a||(a=nn),e.size!=t.size&&!u)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var c=Qi(a(e),a(t),r,i,s,o);return o.delete(e),c;case F:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,l,n,r,s,o);if(!(1&n)){var f=p&&Re.call(e,"__wrapped__"),A=h&&Re.call(t,"__wrapped__");if(f||A){var C=f?e.value():e,w=A?t.value():t;return o||(o=new Kn),s(C,w,n,r,o)}}return!!d&&(o||(o=new Kn),function(e,t,n,r,s,o){var a=1&n,u=ts(e),l=u.length;if(l!=ts(t).length&&!a)return!1;for(var c=l;c--;){var p=u[c];if(!(a?p in t:Re.call(t,p)))return!1}var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var f=!0;o.set(e,t),o.set(t,e);for(var m=a;++c<l;){var g=e[p=u[c]],E=t[p];if(r)var y=a?r(E,g,p,t,e,o):r(g,E,p,e,t,o);if(!(y===i?g===E||s(g,E,n,r,o):y)){f=!1;break}m||(m="constructor"==p)}if(f&&!m){var v=e.constructor,A=t.constructor;v==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof A&&A instanceof A||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,s,o))}(e,t,n,r,Br,s))}function kr(e,t,n,r){var s=n.length,o=s,a=!r;if(null==e)return!o;for(e=xe(e);s--;){var u=n[s];if(a&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){var l=(u=n[s])[0],c=e[l],p=u[1];if(a&&u[2]){if(c===i&&!(l in e))return!1}else{var h=new Kn;if(r)var d=r(c,p,l,e,t,h);if(!(d===i?Br(p,c,3,r,h):d))return!1}}return!0}function Rr(e){return!(!ta(e)||(t=e,Ne&&Ne in t))&&(Yo(e)?je:me).test(Ls(e));var t}function Ir(e){return"function"==typeof e?e:null==e?iu:"object"==typeof e?Ho(e)?jr(e[0],e[1]):Lr(e):du(e)}function Nr(e){if(!Cs(e))return gn(e);var t=[];for(var n in xe(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Pr(e,t){return e<t}function Mr(e,t){var n=-1,i=$o(e)?r(e.length):[];return pr(e,(function(e,r,s){i[++n]=t(e,r,s)})),i}function Lr(e){var t=us(e);return 1==t.length&&t[0][2]?Ss(t[0][0],t[0][1]):function(n){return n===e||kr(n,e,t)}}function jr(e,t){return ys(e)&&bs(t)?Ss(Ms(e),t):function(n){var r=_a(n,e);return r===i&&r===t?Oa(n,e):Br(t,r,3)}}function Vr(e,t,n,r,s){e!==t&&Er(t,(function(o,a){if(s||(s=new Kn),ta(o))!function(e,t,n,r,s,o,a){var u=_s(e,n),l=_s(t,n),c=a.get(l);if(c)Qn(e,n,c);else{var p=o?o(u,l,n+"",e,t,a):i,h=p===i;if(h){var d=Ho(l),f=!d&&Xo(l),m=!d&&!f&&ca(l);p=l,d||f||m?Ho(u)?p=u:Ko(u)?p=_i(u):f?(h=!1,p=Ci(l,!0)):m?(h=!1,p=Si(l,!0)):p=[]:sa(l)||Wo(l)?(p=u,Wo(u)?p=ya(u):ta(u)&&!Yo(u)||(p=fs(l))):h=!1}h&&(a.set(l,p),s(p,l,r,o,a),a.delete(l)),Qn(e,n,p)}}(e,t,a,n,Vr,r,s);else{var u=r?r(_s(e,a),o,a+"",e,t,s):i;u===i&&(u=o),Qn(e,a,u)}}),Ra)}function Ur(e,t){var n=e.length;if(n)return gs(t+=t<0?n:0,n)?e[t]:i}function zr(e,t,n){t=t.length?wt(t,(function(e){return Ho(e)?function(t){return br(t,1===e.length?e[0]:e)}:e})):[iu];var r=-1;t=wt(t,qt(os()));var i=Mr(e,(function(e,n,i){var s=wt(t,(function(t){return t(e)}));return{criteria:s,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,s=t.criteria,o=i.length,a=n.length;++r<o;){var u=xi(i[r],s[r]);if(u)return r>=a?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(i)}function qr(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=br(e,o);n(a,o)&&Zr(s,Ei(o,e),a)}return s}function Wr(e,t,n,r){var i=r?It:Rt,s=-1,o=t.length,a=e;for(e===t&&(t=_i(t)),n&&(a=wt(e,qt(n)));++s<o;)for(var u=0,l=t[s],c=n?n(l):l;(u=i(a,c,u,r))>-1;)a!==e&&rt.call(a,u,1),rt.call(e,u,1);return e}function Hr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;gs(i)?rt.call(e,i,1):li(e,i)}}return e}function Gr(e,t){return e+pn(Cn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=pn(t/2))&&(e+=e)}while(t);return n}function Kr(e,t){return Ts(xs(e,t,iu),e+"")}function Xr(e){return Jn(Ua(e))}function Jr(e,t){var n=Ua(e);return Rs(n,or(t,0,n.length))}function Zr(e,t,n,r){if(!ta(e))return e;for(var s=-1,o=(t=Ei(t,e)).length,a=o-1,u=e;null!=u&&++s<o;){var l=Ms(t[s]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(s!=a){var p=u[l];(c=r?r(p,l,u):i)===i&&(c=ta(p)?p:gs(t[s+1])?[]:{})}er(u,l,c),u=u[l]}return e}var Yr=Fn?function(e,t){return Fn.set(e,t),e}:iu,Qr=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:iu;function ei(e){return Rs(Ua(e))}function ti(e,t,n){var i=-1,s=e.length;t<0&&(t=-t>s?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i<s;)o[i]=e[i+t];return o}function ni(e,t){var n;return pr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var s=r+i>>>1,o=e[s];null!==o&&!la(o)&&(n?o<=t:o<t)?r=s+1:i=s}return i}return ii(e,t,iu,n)}function ii(e,t,n,r){var s=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,u=null===t,l=la(t),c=t===i;s<o;){var p=pn((s+o)/2),h=n(e[p]),d=h!==i,f=null===h,m=h==h,g=la(h);if(a)var E=r||m;else E=c?m&&(r||d):u?m&&d&&(r||!f):l?m&&d&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);E?s=p+1:o=p}return yn(o,4294967294)}function si(e,t){for(var n=-1,r=e.length,i=0,s=[];++n<r;){var o=e[n],a=t?t(o):o;if(!n||!Uo(a,u)){var u=a;s[i++]=0===o?0:o}}return s}function oi(e){return"number"==typeof e?e:la(e)?h:+e}function ai(e){if("string"==typeof e)return e;if(Ho(e))return wt(e,ai)+"";if(la(e))return Ln?Ln.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ui(e,t,n){var r=-1,i=St,s=e.length,o=!0,a=[],u=a;if(n)o=!1,i=xt;else if(s>=200){var l=t?null:$i(e);if(l)return nn(l);o=!1,i=Ht,u=new $n}else u=t?[]:a;e:for(;++r<s;){var c=e[r],p=t?t(c):c;if(c=n||0!==c?c:0,o&&p==p){for(var h=u.length;h--;)if(u[h]===p)continue e;t&&u.push(p),a.push(c)}else i(u,p,n)||(u!==a&&u.push(p),a.push(c))}return a}function li(e,t){return null==(e=ws(e,t=Ei(t,e)))||delete e[Ms(Js(t))]}function ci(e,t,n,r){return Zr(e,t,n(br(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,s=r?i:-1;(r?s--:++s<i)&&t(e[s],s,e););return n?ti(e,r?0:s,r?s+1:i):ti(e,r?s+1:0,r?i:s)}function hi(e,t){var n=e;return n instanceof qn&&(n=n.value()),_t(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function di(e,t,n){var i=e.length;if(i<2)return i?ui(e[0]):[];for(var s=-1,o=r(i);++s<i;)for(var a=e[s],u=-1;++u<i;)u!=s&&(o[s]=cr(o[s]||a,e[u],t,n));return ui(gr(o,1),t,n)}function fi(e,t,n){for(var r=-1,s=e.length,o=t.length,a={};++r<s;){var u=r<o?t[r]:i;n(a,e[r],u)}return a}function mi(e){return Ko(e)?e:[]}function gi(e){return"function"==typeof e?e:iu}function Ei(e,t){return Ho(e)?e:ys(e,t)?[e]:Ps(va(e))}var yi=Kr;function vi(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:ti(e,t,n)}var Ai=ct||function(e){return st.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function bi(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Si(e,t){var n=t?bi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function xi(e,t){if(e!==t){var n=e!==i,r=null===e,s=e==e,o=la(e),a=t!==i,u=null===t,l=t==t,c=la(t);if(!u&&!c&&!o&&e>t||o&&a&&l&&!u&&!c||r&&a&&l||!n&&l||!s)return 1;if(!r&&!o&&!c&&e<t||c&&n&&s&&!r&&!o||u&&n&&s||!a&&s||!l)return-1}return 0}function wi(e,t,n,i){for(var s=-1,o=e.length,a=n.length,u=-1,l=t.length,c=En(o-a,0),p=r(l+c),h=!i;++u<l;)p[u]=t[u];for(;++s<a;)(h||s<o)&&(p[n[s]]=e[s]);for(;c--;)p[u++]=e[s++];return p}function Di(e,t,n,i){for(var s=-1,o=e.length,a=-1,u=n.length,l=-1,c=t.length,p=En(o-u,0),h=r(p+c),d=!i;++s<p;)h[s]=e[s];for(var f=s;++l<c;)h[f+l]=t[l];for(;++a<u;)(d||s<o)&&(h[f+n[a]]=e[s++]);return h}function _i(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function Oi(e,t,n,r){var s=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var u=t[o],l=r?r(n[u],e[u],u,n,e):i;l===i&&(l=e[u]),s?ir(n,u,l):er(n,u,l)}return n}function Fi(e,t){return function(n,r){var i=Ho(n)?yt:nr,s=t?t():{};return i(n,e,os(r,2),s)}}function Ti(e){return Kr((function(t,n){var r=-1,s=n.length,o=s>1?n[s-1]:i,a=s>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&Es(n[0],n[1],a)&&(o=s<3?i:o,s=1),t=xe(t);++r<s;){var u=n[r];u&&e(t,u,r,o)}return t}))}function Bi(e,t){return function(n,r){if(null==n)return n;if(!$o(n))return e(n,r);for(var i=n.length,s=t?i:-1,o=xe(n);(t?s--:++s<i)&&!1!==r(o[s],s,o););return n}}function ki(e){return function(t,n,r){for(var i=-1,s=xe(t),o=r(t),a=o.length;a--;){var u=o[e?a:++i];if(!1===n(s[u],u,s))break}return t}}function Ri(e){return function(t){var n=Yt(t=va(t))?on(t):i,r=n?n[0]:t.charAt(0),s=n?vi(n,1).join(""):t.slice(1);return r[e]()+s}}function Ii(e){return function(t){return _t(Ya(Wa(t).replace(We,"")),e,"")}}function Ni(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Pi(e){return function(t,n,r){var s=xe(t);if(!$o(t)){var o=os(n,3);t=ka(t),n=function(e){return o(s[e],e,s)}}var a=e(t,n,r);return a>-1?s[o?t[a]:a]:i}}function Mi(e){return es((function(t){var n=t.length,r=n,o=zn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new _e(s);if(o&&!u&&"wrapper"==is(a))var u=new zn([],!0)}for(r=u?r:n;++r<n;){var l=is(a=t[r]),c="wrapper"==l?rs(a):i;u=c&&vs(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[is(c[0])].apply(u,c[3]):1==a.length&&vs(a)?u[l]():u.thru(a)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ho(r))return u.plant(r).value();for(var i=0,s=n?t[i].apply(this,e):r;++i<n;)s=t[i].call(this,s);return s}}))}function Li(e,t,n,s,o,a,u,c,p,h){var d=t&l,f=1&t,m=2&t,g=24&t,E=512&t,y=m?i:Ni(e);return function i(){for(var l=arguments.length,v=r(l),A=l;A--;)v[A]=arguments[A];if(g)var C=ss(i),b=Kt(v,C);if(s&&(v=wi(v,s,o,g)),a&&(v=Di(v,a,u,g)),l-=b,g&&l<h){var S=tn(v,C);return Hi(e,t,Li,i.placeholder,n,v,S,c,p,h-l)}var x=f?n:this,w=m?x[e]:e;return l=v.length,c?v=Ds(v,c):E&&l>1&&v.reverse(),d&&p<l&&(v.length=p),this&&this!==st&&this instanceof i&&(w=y||Ni(w)),w.apply(x,v)}}function ji(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,i,s){t(r,n(e),i,s)})),r}(n,e,t(r),{})}}function Vi(e,t){return function(n,r){var s;if(n===i&&r===i)return t;if(n!==i&&(s=n),r!==i){if(s===i)return r;"string"==typeof n||"string"==typeof r?(n=ai(n),r=ai(r)):(n=oi(n),r=oi(r)),s=e(n,r)}return s}}function Ui(e){return es((function(t){return t=wt(t,qt(os())),Kr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function zi(e,t){var n=(t=t===i?" ":ai(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,cn(e/sn(t)));return Yt(t)?vi(on(r),0,e).join(""):r.slice(0,e)}function qi(e){return function(t,n,s){return s&&"number"!=typeof s&&Es(t,n,s)&&(n=s=i),t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n,i){for(var s=-1,o=En(cn((t-e)/(n||1)),0),a=r(o);o--;)a[i?o:++s]=e,e+=n;return a}(t,n,s=s===i?t<n?1:-1:fa(s),e)}}function Wi(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ea(t),n=Ea(n)),e(t,n)}}function Hi(e,t,n,r,s,o,a,l,c,p){var h=8&t;t|=h?u:64,4&(t&=~(h?64:u))||(t&=-4);var d=[e,t,s,h?o:i,h?a:i,h?i:o,h?i:a,l,c,p],f=n.apply(i,d);return vs(e)&&Os(f,d),f.placeholder=r,Bs(f,e,t)}function Gi(e){var t=Se[e];return function(e,n){if(e=Ea(e),(n=null==n?0:yn(ma(n),292))&&fn(e)){var r=(va(e)+"e").split("e");return+((r=(va(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Dn&&1/nn(new Dn([,-0]))[1]==c?function(e){return new Dn(e)}:lu;function Ki(e){return function(t){var n=hs(t);return n==b?Qt(t):n==_?rn(t):function(e,t){return wt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Xi(e,t,n,o,c,p,h,d){var f=2&t;if(!f&&"function"!=typeof e)throw new _e(s);var m=o?o.length:0;if(m||(t&=-97,o=c=i),h=h===i?h:En(ma(h),0),d=d===i?d:ma(d),m-=c?c.length:0,64&t){var g=o,E=c;o=c=i}var y=f?i:rs(e),v=[e,t,n,o,c,g,E,p,h,d];if(y&&function(e,t){var n=e[1],r=t[1],i=n|r,s=i<131,o=r==l&&8==n||r==l&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!o)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?wi(c,u,t[4]):u,e[4]=c?tn(e[3],a):t[4]}(u=t[5])&&(c=e[5],e[5]=c?Di(c,u,t[6]):u,e[6]=c?tn(e[5],a):t[6]),(u=t[7])&&(e[7]=u),r&l&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(v,y),e=v[0],t=v[1],n=v[2],o=v[3],c=v[4],!(d=v[9]=v[9]===i?f?0:e.length:En(v[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)A=8==t||16==t?function(e,t,n){var s=Ni(e);return function o(){for(var a=arguments.length,u=r(a),l=a,c=ss(o);l--;)u[l]=arguments[l];var p=a<3&&u[0]!==c&&u[a-1]!==c?[]:tn(u,c);return(a-=p.length)<n?Hi(e,t,Li,o.placeholder,i,u,p,i,i,n-a):Et(this&&this!==st&&this instanceof o?s:e,this,u)}}(e,t,d):t!=u&&33!=t||c.length?Li.apply(i,v):function(e,t,n,i){var s=1&t,o=Ni(e);return function t(){for(var a=-1,u=arguments.length,l=-1,c=i.length,p=r(c+u),h=this&&this!==st&&this instanceof t?o:e;++l<c;)p[l]=i[l];for(;u--;)p[l++]=arguments[++a];return Et(h,s?n:this,p)}}(e,t,n,o);else var A=function(e,t,n){var r=1&t,i=Ni(e);return function t(){return(this&&this!==st&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return Bs((y?Yr:Os)(A,v),e,t)}function Ji(e,t,n,r){return e===i||Uo(e,Te[n])&&!Re.call(r,n)?t:e}function Zi(e,t,n,r,s,o){return ta(e)&&ta(t)&&(o.set(t,e),Vr(e,t,i,Zi,o),o.delete(t)),e}function Yi(e){return sa(e)?i:e}function Qi(e,t,n,r,s,o){var a=1&n,u=e.length,l=t.length;if(u!=l&&!(a&&l>u))return!1;var c=o.get(e),p=o.get(t);if(c&&p)return c==t&&p==e;var h=-1,d=!0,f=2&n?new $n:i;for(o.set(e,t),o.set(t,e);++h<u;){var m=e[h],g=t[h];if(r)var E=a?r(g,m,h,t,e,o):r(m,g,h,e,t,o);if(E!==i){if(E)continue;d=!1;break}if(f){if(!Ft(t,(function(e,t){if(!Ht(f,t)&&(m===e||s(m,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(m!==g&&!s(m,g,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function es(e){return Ts(xs(e,i,Hs),e+"")}function ts(e){return Sr(e,ka,cs)}function ns(e){return Sr(e,Ra,ps)}var rs=Fn?function(e){return Fn.get(e)}:lu;function is(e){for(var t=e.name+"",n=Tn[t],r=Re.call(Tn,t)?n.length:0;r--;){var i=n[r],s=i.func;if(null==s||s==e)return i.name}return t}function ss(e){return(Re.call(jn,"placeholder")?jn:e).placeholder}function os(){var e=jn.iteratee||su;return e=e===su?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function as(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function us(e){for(var t=ka(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,bs(i)]}return t}function ls(e,t){var n=function(e,t){return null==e?i:e[t]}(e,t);return Rr(n)?n:i}var cs=hn?function(e){return null==e?[]:(e=xe(e),bt(hn(e),(function(t){return et.call(e,t)})))}:gu,ps=hn?function(e){for(var t=[];e;)Dt(t,cs(e)),e=Ge(e);return t}:gu,hs=xr;function ds(e,t,n){for(var r=-1,i=(t=Ei(t,e)).length,s=!1;++r<i;){var o=Ms(t[r]);if(!(s=null!=e&&n(e,o)))break;e=e[o]}return s||++r!=i?s:!!(i=null==e?0:e.length)&&ea(i)&&gs(o,i)&&(Ho(e)||Wo(e))}function fs(e){return"function"!=typeof e.constructor||Cs(e)?{}:Vn(Ge(e))}function ms(e){return Ho(e)||Wo(e)||!!(it&&e&&e[it])}function gs(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&Ee.test(e))&&e>-1&&e%1==0&&e<t}function Es(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?$o(n)&&gs(t,n.length):"string"==r&&t in n)&&Uo(n[t],e)}function ys(e,t){if(Ho(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!la(e))||Q.test(e)||!Y.test(e)||null!=t&&e in xe(t)}function vs(e){var t=is(e),n=jn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=rs(n);return!!r&&e===r[0]}(Sn&&hs(new Sn(new ArrayBuffer(1)))!=k||xn&&hs(new xn)!=b||wn&&hs(wn.resolve())!=w||Dn&&hs(new Dn)!=_||_n&&hs(new _n)!=T)&&(hs=function(e){var t=xr(e),n=t==x?e.constructor:i,r=n?Ls(n):"";if(r)switch(r){case Bn:return k;case kn:return b;case Rn:return w;case In:return _;case Nn:return T}return t});var As=Be?Yo:Eu;function Cs(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Te)}function bs(e){return e==e&&!ta(e)}function Ss(e,t){return function(n){return null!=n&&n[e]===t&&(t!==i||e in xe(n))}}function xs(e,t,n){return t=En(t===i?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=En(i.length-t,0),a=r(o);++s<o;)a[s]=i[t+s];s=-1;for(var u=r(t+1);++s<t;)u[s]=i[s];return u[t]=n(a),Et(e,this,u)}}function ws(e,t){return t.length<2?e:br(e,ti(t,0,-1))}function Ds(e,t){for(var n=e.length,r=yn(t.length,n),s=_i(e);r--;){var o=t[r];e[r]=gs(o,n)?s[o]:i}return e}function _s(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Os=ks(Yr),Fs=Lt||function(e,t){return st.setTimeout(e,t)},Ts=ks(Qr);function Bs(e,t,n){var r=t+"";return Ts(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return vt(f,(function(n){var r="_."+n[0];t&n[1]&&!St(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(ae):[]}(r),n)))}function ks(e){var t=0,n=0;return function(){var r=vn(),s=16-(r-n);if(n=r,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Rs(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n<t;){var o=Gr(n,s),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var Is,Ns,Ps=(Is=No((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,i){t.push(r?i.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ns.size&&Ns.clear(),e})),Ns=Is.cache,Is);function Ms(e){if("string"==typeof e||la(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ls(e){if(null!=e){try{return ke.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function js(e){if(e instanceof qn)return e.clone();var t=new zn(e.__wrapped__,e.__chain__);return t.__actions__=_i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Vs=Kr((function(e,t){return Ko(e)?cr(e,gr(t,1,Ko,!0)):[]})),Us=Kr((function(e,t){var n=Js(t);return Ko(n)&&(n=i),Ko(e)?cr(e,gr(t,1,Ko,!0),os(n,2)):[]})),zs=Kr((function(e,t){var n=Js(t);return Ko(n)&&(n=i),Ko(e)?cr(e,gr(t,1,Ko,!0),i,n):[]}));function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ma(n);return i<0&&(i=En(r+i,0)),kt(e,os(t,3),i)}function Ws(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r-1;return n!==i&&(s=ma(n),s=n<0?En(r+s,0):yn(s,r-1)),kt(e,os(t,3),s,!0)}function Hs(e){return null!=e&&e.length?gr(e,1):[]}function Gs(e){return e&&e.length?e[0]:i}var $s=Kr((function(e){var t=wt(e,mi);return t.length&&t[0]===e[0]?Or(t):[]})),Ks=Kr((function(e){var t=Js(e),n=wt(e,mi);return t===Js(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Or(n,os(t,2)):[]})),Xs=Kr((function(e){var t=Js(e),n=wt(e,mi);return(t="function"==typeof t?t:i)&&n.pop(),n.length&&n[0]===e[0]?Or(n,i,t):[]}));function Js(e){var t=null==e?0:e.length;return t?e[t-1]:i}var Zs=Kr(Ys);function Ys(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var Qs=es((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Hr(e,wt(t,(function(e){return gs(e,n)?+e:e})).sort(xi)),r}));function eo(e){return null==e?e:bn.call(e)}var to=Kr((function(e){return ui(gr(e,1,Ko,!0))})),no=Kr((function(e){var t=Js(e);return Ko(t)&&(t=i),ui(gr(e,1,Ko,!0),os(t,2))})),ro=Kr((function(e){var t=Js(e);return t="function"==typeof t?t:i,ui(gr(e,1,Ko,!0),i,t)}));function io(e){if(!e||!e.length)return[];var t=0;return e=bt(e,(function(e){if(Ko(e))return t=En(e.length,t),!0})),Ut(t,(function(t){return wt(e,Mt(t))}))}function so(e,t){if(!e||!e.length)return[];var n=io(e);return null==t?n:wt(n,(function(e){return Et(t,i,e)}))}var oo=Kr((function(e,t){return Ko(e)?cr(e,t):[]})),ao=Kr((function(e){return di(bt(e,Ko))})),uo=Kr((function(e){var t=Js(e);return Ko(t)&&(t=i),di(bt(e,Ko),os(t,2))})),lo=Kr((function(e){var t=Js(e);return t="function"==typeof t?t:i,di(bt(e,Ko),i,t)})),co=Kr(io),po=Kr((function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,so(e,n)}));function ho(e){var t=jn(e);return t.__chain__=!0,t}function fo(e,t){return t(e)}var mo=es((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&gs(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:fo,args:[s],thisArg:i}),new zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)})),go=Fi((function(e,t,n){Re.call(e,n)?++e[n]:ir(e,n,1)})),Eo=Pi(qs),yo=Pi(Ws);function vo(e,t){return(Ho(e)?vt:pr)(e,os(t,3))}function Ao(e,t){return(Ho(e)?At:hr)(e,os(t,3))}var Co=Fi((function(e,t,n){Re.call(e,n)?e[n].push(t):ir(e,n,[t])})),bo=Kr((function(e,t,n){var i=-1,s="function"==typeof t,o=$o(e)?r(e.length):[];return pr(e,(function(e){o[++i]=s?Et(t,e,n):Fr(e,t,n)})),o})),So=Fi((function(e,t,n){ir(e,n,t)}));function xo(e,t){return(Ho(e)?wt:Mr)(e,os(t,3))}var wo=Fi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Do=Kr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Es(e,t[0],t[1])?t=[]:n>2&&Es(t[0],t[1],t[2])&&(t=[t[0]]),zr(e,gr(t,1),[])})),_o=Tt||function(){return st.Date.now()};function Oo(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xi(e,l,i,i,i,i,t)}function Fo(e,t){var n;if("function"!=typeof t)throw new _e(s);return e=ma(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var To=Kr((function(e,t,n){var r=1;if(n.length){var i=tn(n,ss(To));r|=u}return Xi(e,r,t,n,i)})),Bo=Kr((function(e,t,n){var r=3;if(n.length){var i=tn(n,ss(Bo));r|=u}return Xi(t,r,e,n,i)}));function ko(e,t,n){var r,o,a,u,l,c,p=0,h=!1,d=!1,f=!0;if("function"!=typeof e)throw new _e(s);function m(t){var n=r,s=o;return r=o=i,p=t,u=e.apply(s,n)}function g(e){return p=e,l=Fs(y,t),h?m(e):u}function E(e){var n=e-c;return c===i||n>=t||n<0||d&&e-p>=a}function y(){var e=_o();if(E(e))return v(e);l=Fs(y,function(e){var n=t-(e-c);return d?yn(n,a-(e-p)):n}(e))}function v(e){return l=i,f&&r?m(e):(r=o=i,u)}function A(){var e=_o(),n=E(e);if(r=arguments,o=this,c=e,n){if(l===i)return g(c);if(d)return Ai(l),l=Fs(y,t),m(c)}return l===i&&(l=Fs(y,t)),u}return t=Ea(t)||0,ta(n)&&(h=!!n.leading,a=(d="maxWait"in n)?En(Ea(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),A.cancel=function(){l!==i&&Ai(l),p=0,r=c=o=l=i},A.flush=function(){return l===i?u:v(_o())},A}var Ro=Kr((function(e,t){return lr(e,1,t)})),Io=Kr((function(e,t,n){return lr(e,Ea(t)||0,n)}));function No(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new _e(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(No.Cache||Gn),n}function Po(e){if("function"!=typeof e)throw new _e(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}No.Cache=Gn;var Mo=yi((function(e,t){var n=(t=1==t.length&&Ho(t[0])?wt(t[0],qt(os())):wt(gr(t,1),qt(os()))).length;return Kr((function(r){for(var i=-1,s=yn(r.length,n);++i<s;)r[i]=t[i].call(this,r[i]);return Et(e,this,r)}))})),Lo=Kr((function(e,t){var n=tn(t,ss(Lo));return Xi(e,u,i,t,n)})),jo=Kr((function(e,t){var n=tn(t,ss(jo));return Xi(e,64,i,t,n)})),Vo=es((function(e,t){return Xi(e,256,i,i,i,t)}));function Uo(e,t){return e===t||e!=e&&t!=t}var zo=Wi(wr),qo=Wi((function(e,t){return e>=t})),Wo=Tr(function(){return arguments}())?Tr:function(e){return na(e)&&Re.call(e,"callee")&&!et.call(e,"callee")},Ho=r.isArray,Go=pt?qt(pt):function(e){return na(e)&&xr(e)==B};function $o(e){return null!=e&&ea(e.length)&&!Yo(e)}function Ko(e){return na(e)&&$o(e)}var Xo=dn||Eu,Jo=ht?qt(ht):function(e){return na(e)&&xr(e)==y};function Zo(e){if(!na(e))return!1;var t=xr(e);return t==v||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sa(e)}function Yo(e){if(!ta(e))return!1;var t=xr(e);return t==A||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=dt?qt(dt):function(e){return na(e)&&hs(e)==b};function ia(e){return"number"==typeof e||na(e)&&xr(e)==S}function sa(e){if(!na(e)||xr(e)!=x)return!1;var t=Ge(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Me}var oa=ft?qt(ft):function(e){return na(e)&&xr(e)==D},aa=mt?qt(mt):function(e){return na(e)&&hs(e)==_};function ua(e){return"string"==typeof e||!Ho(e)&&na(e)&&xr(e)==O}function la(e){return"symbol"==typeof e||na(e)&&xr(e)==F}var ca=gt?qt(gt):function(e){return na(e)&&ea(e.length)&&!!Ye[xr(e)]},pa=Wi(Pr),ha=Wi((function(e,t){return e<=t}));function da(e){if(!e)return[];if($o(e))return ua(e)?on(e):_i(e);if(ot&&e[ot])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[ot]());var t=hs(e);return(t==b?Qt:t==_?nn:Ua)(e)}function fa(e){return e?(e=Ea(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=fa(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?or(ma(e),0,d):0}function Ea(e){if("number"==typeof e)return e;if(la(e))return h;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=zt(e);var n=fe.test(e);return n||ge.test(e)?nt(e.slice(2),n?2:8):de.test(e)?h:+e}function ya(e){return Oi(e,Ra(e))}function va(e){return null==e?"":ai(e)}var Aa=Ti((function(e,t){if(Cs(t)||$o(t))Oi(t,ka(t),e);else for(var n in t)Re.call(t,n)&&er(e,n,t[n])})),Ca=Ti((function(e,t){Oi(t,Ra(t),e)})),ba=Ti((function(e,t,n,r){Oi(t,Ra(t),e,r)})),Sa=Ti((function(e,t,n,r){Oi(t,ka(t),e,r)})),xa=es(sr),wa=Kr((function(e,t){e=xe(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&Es(t[0],t[1],s)&&(r=1);++n<r;)for(var o=t[n],a=Ra(o),u=-1,l=a.length;++u<l;){var c=a[u],p=e[c];(p===i||Uo(p,Te[c])&&!Re.call(e,c))&&(e[c]=o[c])}return e})),Da=Kr((function(e){return e.push(i,Zi),Et(Na,i,e)}));function _a(e,t,n){var r=null==e?i:br(e,t);return r===i?n:r}function Oa(e,t){return null!=e&&ds(e,t,_r)}var Fa=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),e[t]=n}),tu(iu)),Ta=ji((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Pe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),os),Ba=Kr(Fr);function ka(e){return $o(e)?Xn(e):Nr(e)}function Ra(e){return $o(e)?Xn(e,!0):function(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in xe(e))t.push(n);return t}(e);var t=Cs(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Ia=Ti((function(e,t,n){Vr(e,t,n)})),Na=Ti((function(e,t,n,r){Vr(e,t,n,r)})),Pa=es((function(e,t){var n={};if(null==e)return n;var r=!1;t=wt(t,(function(t){return t=Ei(t,e),r||(r=t.length>1),t})),Oi(e,ns(e),n),r&&(n=ar(n,7,Yi));for(var i=t.length;i--;)li(n,t[i]);return n})),Ma=es((function(e,t){return null==e?{}:function(e,t){return qr(e,t,(function(t,n){return Oa(e,n)}))}(e,t)}));function La(e,t){if(null==e)return{};var n=wt(ns(e),(function(e){return[e]}));return t=os(t),qr(e,n,(function(e,n){return t(e,n[0])}))}var ja=Ki(ka),Va=Ki(Ra);function Ua(e){return null==e?[]:Wt(e,ka(e))}var za=Ii((function(e,t,n){return t=t.toLowerCase(),e+(n?qa(t):t)}));function qa(e){return Za(va(e).toLowerCase())}function Wa(e){return(e=va(e))&&e.replace(ye,Xt).replace(He,"")}var Ha=Ii((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ga=Ii((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),$a=Ri("toLowerCase"),Ka=Ii((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Xa=Ii((function(e,t,n){return e+(n?" ":"")+Za(t)})),Ja=Ii((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ri("toUpperCase");function Ya(e,t,n){return e=va(e),(t=n?i:t)===i?function(e){return Xe.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Qa=Kr((function(e,t){try{return Et(e,i,t)}catch(e){return Zo(e)?e:new Ce(e)}})),eu=es((function(e,t){return vt(t,(function(t){t=Ms(t),ir(e,t,To(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=Mi(),ru=Mi(!0);function iu(e){return e}function su(e){return Ir("function"==typeof e?e:ar(e,1))}var ou=Kr((function(e,t){return function(n){return Fr(n,e,t)}})),au=Kr((function(e,t){return function(n){return Fr(e,n,t)}}));function uu(e,t,n){var r=ka(t),i=Cr(t,r);null!=n||ta(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Cr(t,ka(t)));var s=!(ta(n)&&"chain"in n&&!n.chain),o=Yo(e);return vt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__),i=n.__actions__=_i(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function lu(){}var cu=Ui(wt),pu=Ui(Ct),hu=Ui(Ft);function du(e){return ys(e)?Mt(Ms(e)):function(e){return function(t){return br(t,e)}}(e)}var fu=qi(),mu=qi(!0);function gu(){return[]}function Eu(){return!1}var yu,vu=Vi((function(e,t){return e+t}),0),Au=Gi("ceil"),Cu=Vi((function(e,t){return e/t}),1),bu=Gi("floor"),Su=Vi((function(e,t){return e*t}),1),xu=Gi("round"),wu=Vi((function(e,t){return e-t}),0);return jn.after=function(e,t){if("function"!=typeof t)throw new _e(s);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},jn.ary=Oo,jn.assign=Aa,jn.assignIn=Ca,jn.assignInWith=ba,jn.assignWith=Sa,jn.at=xa,jn.before=Fo,jn.bind=To,jn.bindAll=eu,jn.bindKey=Bo,jn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ho(e)?e:[e]},jn.chain=ho,jn.chunk=function(e,t,n){t=(n?Es(e,t,n):t===i)?1:En(ma(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,u=r(cn(s/t));o<s;)u[a++]=ti(e,o,o+=t);return u},jn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var s=e[t];s&&(i[r++]=s)}return i},jn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return Dt(Ho(n)?_i(n):[n],gr(t,1))},jn.cond=function(e){var t=null==e?0:e.length,n=os();return e=t?wt(e,(function(e){if("function"!=typeof e[1])throw new _e(s);return[n(e[0]),e[1]]})):[],Kr((function(n){for(var r=-1;++r<t;){var i=e[r];if(Et(i[0],this,n))return Et(i[1],this,n)}}))},jn.conforms=function(e){return function(e){var t=ka(e);return function(n){return ur(n,e,t)}}(ar(e,1))},jn.constant=tu,jn.countBy=go,jn.create=function(e,t){var n=Vn(e);return null==t?n:rr(n,t)},jn.curry=function e(t,n,r){var s=Xi(t,8,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},jn.curryRight=function e(t,n,r){var s=Xi(t,16,i,i,i,i,i,n=r?i:n);return s.placeholder=e.placeholder,s},jn.debounce=ko,jn.defaults=wa,jn.defaultsDeep=Da,jn.defer=Ro,jn.delay=Io,jn.difference=Vs,jn.differenceBy=Us,jn.differenceWith=zs,jn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=n||t===i?1:ma(t))<0?0:t,r):[]},jn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,0,(t=r-(t=n||t===i?1:ma(t)))<0?0:t):[]},jn.dropRightWhile=function(e,t){return e&&e.length?pi(e,os(t,3),!0,!0):[]},jn.dropWhile=function(e,t){return e&&e.length?pi(e,os(t,3),!0):[]},jn.fill=function(e,t,n,r){var s=null==e?0:e.length;return s?(n&&"number"!=typeof n&&Es(e,t,n)&&(n=0,r=s),function(e,t,n,r){var s=e.length;for((n=ma(n))<0&&(n=-n>s?0:s+n),(r=r===i||r>s?s:ma(r))<0&&(r+=s),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},jn.filter=function(e,t){return(Ho(e)?bt:mr)(e,os(t,3))},jn.flatMap=function(e,t){return gr(xo(e,t),1)},jn.flatMapDeep=function(e,t){return gr(xo(e,t),c)},jn.flatMapDepth=function(e,t,n){return n=n===i?1:ma(n),gr(xo(e,t),n)},jn.flatten=Hs,jn.flattenDeep=function(e){return null!=e&&e.length?gr(e,c):[]},jn.flattenDepth=function(e,t){return null!=e&&e.length?gr(e,t=t===i?1:ma(t)):[]},jn.flip=function(e){return Xi(e,512)},jn.flow=nu,jn.flowRight=ru,jn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},jn.functions=function(e){return null==e?[]:Cr(e,ka(e))},jn.functionsIn=function(e){return null==e?[]:Cr(e,Ra(e))},jn.groupBy=Co,jn.initial=function(e){return null!=e&&e.length?ti(e,0,-1):[]},jn.intersection=$s,jn.intersectionBy=Ks,jn.intersectionWith=Xs,jn.invert=Fa,jn.invertBy=Ta,jn.invokeMap=bo,jn.iteratee=su,jn.keyBy=So,jn.keys=ka,jn.keysIn=Ra,jn.map=xo,jn.mapKeys=function(e,t){var n={};return t=os(t,3),vr(e,(function(e,r,i){ir(n,t(e,r,i),e)})),n},jn.mapValues=function(e,t){var n={};return t=os(t,3),vr(e,(function(e,r,i){ir(n,r,t(e,r,i))})),n},jn.matches=function(e){return Lr(ar(e,1))},jn.matchesProperty=function(e,t){return jr(e,ar(t,1))},jn.memoize=No,jn.merge=Ia,jn.mergeWith=Na,jn.method=ou,jn.methodOf=au,jn.mixin=uu,jn.negate=Po,jn.nthArg=function(e){return e=ma(e),Kr((function(t){return Ur(t,e)}))},jn.omit=Pa,jn.omitBy=function(e,t){return La(e,Po(os(t)))},jn.once=function(e){return Fo(2,e)},jn.orderBy=function(e,t,n,r){return null==e?[]:(Ho(t)||(t=null==t?[]:[t]),Ho(n=r?i:n)||(n=null==n?[]:[n]),zr(e,t,n))},jn.over=cu,jn.overArgs=Mo,jn.overEvery=pu,jn.overSome=hu,jn.partial=Lo,jn.partialRight=jo,jn.partition=wo,jn.pick=Ma,jn.pickBy=La,jn.property=du,jn.propertyOf=function(e){return function(t){return null==e?i:br(e,t)}},jn.pull=Zs,jn.pullAll=Ys,jn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,os(n,2)):e},jn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,i,n):e},jn.pullAt=Qs,jn.range=fu,jn.rangeRight=mu,jn.rearg=Vo,jn.reject=function(e,t){return(Ho(e)?bt:mr)(e,Po(os(t,3)))},jn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],s=e.length;for(t=os(t,3);++r<s;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return Hr(e,i),n},jn.rest=function(e,t){if("function"!=typeof e)throw new _e(s);return Kr(e,t=t===i?t:ma(t))},jn.reverse=eo,jn.sampleSize=function(e,t,n){return t=(n?Es(e,t,n):t===i)?1:ma(t),(Ho(e)?Zn:Jr)(e,t)},jn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},jn.setWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Zr(e,t,n,r)},jn.shuffle=function(e){return(Ho(e)?Yn:ei)(e)},jn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Es(e,t,n)?(t=0,n=r):(t=null==t?0:ma(t),n=n===i?r:ma(n)),ti(e,t,n)):[]},jn.sortBy=Do,jn.sortedUniq=function(e){return e&&e.length?si(e):[]},jn.sortedUniqBy=function(e,t){return e&&e.length?si(e,os(t,2)):[]},jn.split=function(e,t,n){return n&&"number"!=typeof n&&Es(e,t,n)&&(t=n=i),(n=n===i?d:n>>>0)?(e=va(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=ai(t))&&Yt(e)?vi(on(e),0,n):e.split(t,n):[]},jn.spread=function(e,t){if("function"!=typeof e)throw new _e(s);return t=null==t?0:En(ma(t),0),Kr((function(n){var r=n[t],i=vi(n,0,t);return r&&Dt(i,r),Et(e,this,i)}))},jn.tail=function(e){var t=null==e?0:e.length;return t?ti(e,1,t):[]},jn.take=function(e,t,n){return e&&e.length?ti(e,0,(t=n||t===i?1:ma(t))<0?0:t):[]},jn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ti(e,(t=r-(t=n||t===i?1:ma(t)))<0?0:t,r):[]},jn.takeRightWhile=function(e,t){return e&&e.length?pi(e,os(t,3),!1,!0):[]},jn.takeWhile=function(e,t){return e&&e.length?pi(e,os(t,3)):[]},jn.tap=function(e,t){return t(e),e},jn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new _e(s);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ko(e,t,{leading:r,maxWait:t,trailing:i})},jn.thru=fo,jn.toArray=da,jn.toPairs=ja,jn.toPairsIn=Va,jn.toPath=function(e){return Ho(e)?wt(e,Ms):la(e)?[e]:_i(Ps(va(e)))},jn.toPlainObject=ya,jn.transform=function(e,t,n){var r=Ho(e),i=r||Xo(e)||ca(e);if(t=os(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:ta(e)&&Yo(s)?Vn(Ge(e)):{}}return(i?vt:vr)(e,(function(e,r,i){return t(n,e,r,i)})),n},jn.unary=function(e){return Oo(e,1)},jn.union=to,jn.unionBy=no,jn.unionWith=ro,jn.uniq=function(e){return e&&e.length?ui(e):[]},jn.uniqBy=function(e,t){return e&&e.length?ui(e,os(t,2)):[]},jn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?ui(e,i,t):[]},jn.unset=function(e,t){return null==e||li(e,t)},jn.unzip=io,jn.unzipWith=so,jn.update=function(e,t,n){return null==e?e:ci(e,t,gi(n))},jn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ci(e,t,gi(n),r)},jn.values=Ua,jn.valuesIn=function(e){return null==e?[]:Wt(e,Ra(e))},jn.without=oo,jn.words=Ya,jn.wrap=function(e,t){return Lo(gi(t),e)},jn.xor=ao,jn.xorBy=uo,jn.xorWith=lo,jn.zip=co,jn.zipObject=function(e,t){return fi(e||[],t||[],er)},jn.zipObjectDeep=function(e,t){return fi(e||[],t||[],Zr)},jn.zipWith=po,jn.entries=ja,jn.entriesIn=Va,jn.extend=Ca,jn.extendWith=ba,uu(jn,jn),jn.add=vu,jn.attempt=Qa,jn.camelCase=za,jn.capitalize=qa,jn.ceil=Au,jn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Ea(n))==n?n:0),t!==i&&(t=(t=Ea(t))==t?t:0),or(Ea(e),t,n)},jn.clone=function(e){return ar(e,4)},jn.cloneDeep=function(e){return ar(e,5)},jn.cloneDeepWith=function(e,t){return ar(e,5,t="function"==typeof t?t:i)},jn.cloneWith=function(e,t){return ar(e,4,t="function"==typeof t?t:i)},jn.conformsTo=function(e,t){return null==t||ur(e,t,ka(t))},jn.deburr=Wa,jn.defaultTo=function(e,t){return null==e||e!=e?t:e},jn.divide=Cu,jn.endsWith=function(e,t,n){e=va(e),t=ai(t);var r=e.length,s=n=n===i?r:or(ma(n),0,r);return(n-=t.length)>=0&&e.slice(n,s)==t},jn.eq=Uo,jn.escape=function(e){return(e=va(e))&&K.test(e)?e.replace(G,Jt):e},jn.escapeRegExp=function(e){return(e=va(e))&&ne.test(e)?e.replace(te,"\\$&"):e},jn.every=function(e,t,n){var r=Ho(e)?Ct:dr;return n&&Es(e,t,n)&&(t=i),r(e,os(t,3))},jn.find=Eo,jn.findIndex=qs,jn.findKey=function(e,t){return Bt(e,os(t,3),vr)},jn.findLast=yo,jn.findLastIndex=Ws,jn.findLastKey=function(e,t){return Bt(e,os(t,3),Ar)},jn.floor=bu,jn.forEach=vo,jn.forEachRight=Ao,jn.forIn=function(e,t){return null==e?e:Er(e,os(t,3),Ra)},jn.forInRight=function(e,t){return null==e?e:yr(e,os(t,3),Ra)},jn.forOwn=function(e,t){return e&&vr(e,os(t,3))},jn.forOwnRight=function(e,t){return e&&Ar(e,os(t,3))},jn.get=_a,jn.gt=zo,jn.gte=qo,jn.has=function(e,t){return null!=e&&ds(e,t,Dr)},jn.hasIn=Oa,jn.head=Gs,jn.identity=iu,jn.includes=function(e,t,n,r){e=$o(e)?e:Ua(e),n=n&&!r?ma(n):0;var i=e.length;return n<0&&(n=En(i+n,0)),ua(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Rt(e,t,n)>-1},jn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ma(n);return i<0&&(i=En(r+i,0)),Rt(e,t,i)},jn.inRange=function(e,t,n){return t=fa(t),n===i?(n=t,t=0):n=fa(n),function(e,t,n){return e>=yn(t,n)&&e<En(t,n)}(e=Ea(e),t,n)},jn.invoke=Ba,jn.isArguments=Wo,jn.isArray=Ho,jn.isArrayBuffer=Go,jn.isArrayLike=$o,jn.isArrayLikeObject=Ko,jn.isBoolean=function(e){return!0===e||!1===e||na(e)&&xr(e)==E},jn.isBuffer=Xo,jn.isDate=Jo,jn.isElement=function(e){return na(e)&&1===e.nodeType&&!sa(e)},jn.isEmpty=function(e){if(null==e)return!0;if($o(e)&&(Ho(e)||"string"==typeof e||"function"==typeof e.splice||Xo(e)||ca(e)||Wo(e)))return!e.length;var t=hs(e);if(t==b||t==_)return!e.size;if(Cs(e))return!Nr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},jn.isEqual=function(e,t){return Br(e,t)},jn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:i)?n(e,t):i;return r===i?Br(e,t,i,n):!!r},jn.isError=Zo,jn.isFinite=function(e){return"number"==typeof e&&fn(e)},jn.isFunction=Yo,jn.isInteger=Qo,jn.isLength=ea,jn.isMap=ra,jn.isMatch=function(e,t){return e===t||kr(e,t,us(t))},jn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:i,kr(e,t,us(t),n)},jn.isNaN=function(e){return ia(e)&&e!=+e},jn.isNative=function(e){if(As(e))throw new Ce("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)},jn.isNil=function(e){return null==e},jn.isNull=function(e){return null===e},jn.isNumber=ia,jn.isObject=ta,jn.isObjectLike=na,jn.isPlainObject=sa,jn.isRegExp=oa,jn.isSafeInteger=function(e){return Qo(e)&&e>=-9007199254740991&&e<=p},jn.isSet=aa,jn.isString=ua,jn.isSymbol=la,jn.isTypedArray=ca,jn.isUndefined=function(e){return e===i},jn.isWeakMap=function(e){return na(e)&&hs(e)==T},jn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==xr(e)},jn.join=function(e,t){return null==e?"":mn.call(e,t)},jn.kebabCase=Ha,jn.last=Js,jn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=ma(n))<0?En(r+s,0):yn(s,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,s):kt(e,Nt,s,!0)},jn.lowerCase=Ga,jn.lowerFirst=$a,jn.lt=pa,jn.lte=ha,jn.max=function(e){return e&&e.length?fr(e,iu,wr):i},jn.maxBy=function(e,t){return e&&e.length?fr(e,os(t,2),wr):i},jn.mean=function(e){return Pt(e,iu)},jn.meanBy=function(e,t){return Pt(e,os(t,2))},jn.min=function(e){return e&&e.length?fr(e,iu,Pr):i},jn.minBy=function(e,t){return e&&e.length?fr(e,os(t,2),Pr):i},jn.stubArray=gu,jn.stubFalse=Eu,jn.stubObject=function(){return{}},jn.stubString=function(){return""},jn.stubTrue=function(){return!0},jn.multiply=Su,jn.nth=function(e,t){return e&&e.length?Ur(e,ma(t)):i},jn.noConflict=function(){return st._===this&&(st._=Le),this},jn.noop=lu,jn.now=_o,jn.pad=function(e,t,n){e=va(e);var r=(t=ma(t))?sn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return zi(pn(i),n)+e+zi(cn(i),n)},jn.padEnd=function(e,t,n){e=va(e);var r=(t=ma(t))?sn(e):0;return t&&r<t?e+zi(t-r,n):e},jn.padStart=function(e,t,n){e=va(e);var r=(t=ma(t))?sn(e):0;return t&&r<t?zi(t-r,n)+e:e},jn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),An(va(e).replace(re,""),t||0)},jn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Es(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=fa(e),t===i?(t=e,e=0):t=fa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var s=Cn();return yn(e+s*(t-e+tt("1e-"+((s+"").length-1))),t)}return Gr(e,t)},jn.reduce=function(e,t,n){var r=Ho(e)?_t:jt,i=arguments.length<3;return r(e,os(t,4),n,i,pr)},jn.reduceRight=function(e,t,n){var r=Ho(e)?Ot:jt,i=arguments.length<3;return r(e,os(t,4),n,i,hr)},jn.repeat=function(e,t,n){return t=(n?Es(e,t,n):t===i)?1:ma(t),$r(va(e),t)},jn.replace=function(){var e=arguments,t=va(e[0]);return e.length<3?t:t.replace(e[1],e[2])},jn.result=function(e,t,n){var r=-1,s=(t=Ei(t,e)).length;for(s||(s=1,e=i);++r<s;){var o=null==e?i:e[Ms(t[r])];o===i&&(r=s,o=n),e=Yo(o)?o.call(e):o}return e},jn.round=xu,jn.runInContext=e,jn.sample=function(e){return(Ho(e)?Jn:Xr)(e)},jn.size=function(e){if(null==e)return 0;if($o(e))return ua(e)?sn(e):e.length;var t=hs(e);return t==b||t==_?e.size:Nr(e).length},jn.snakeCase=Ka,jn.some=function(e,t,n){var r=Ho(e)?Ft:ni;return n&&Es(e,t,n)&&(t=i),r(e,os(t,3))},jn.sortedIndex=function(e,t){return ri(e,t)},jn.sortedIndexBy=function(e,t,n){return ii(e,t,os(n,2))},jn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ri(e,t);if(r<n&&Uo(e[r],t))return r}return-1},jn.sortedLastIndex=function(e,t){return ri(e,t,!0)},jn.sortedLastIndexBy=function(e,t,n){return ii(e,t,os(n,2),!0)},jn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ri(e,t,!0)-1;if(Uo(e[n],t))return n}return-1},jn.startCase=Xa,jn.startsWith=function(e,t,n){return e=va(e),n=null==n?0:or(ma(n),0,e.length),t=ai(t),e.slice(n,n+t.length)==t},jn.subtract=wu,jn.sum=function(e){return e&&e.length?Vt(e,iu):0},jn.sumBy=function(e,t){return e&&e.length?Vt(e,os(t,2)):0},jn.template=function(e,t,n){var r=jn.templateSettings;n&&Es(e,t,n)&&(t=i),e=va(e),t=ba({},t,r,Ji);var s,o,a=ba({},t.imports,r.imports,Ji),u=ka(a),l=Wt(a,u),c=0,p=t.interpolate||ve,h="__p += '",d=we((t.escape||ve).source+"|"+p.source+"|"+(p===Z?pe:ve).source+"|"+(t.evaluate||ve).source+"|$","g"),f="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ze+"]")+"\n";e.replace(d,(function(t,n,r,i,a,u){return r||(r=i),h+=e.slice(c,u).replace(Ae,Zt),n&&(s=!0,h+="' +\n__e("+n+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),h+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(le.test(m))throw new Ce("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(z,""):h).replace(q,"$1").replace(W,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(s?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Qa((function(){return be(u,f+"return "+h).apply(i,l)}));if(g.source=h,Zo(g))throw g;return g},jn.times=function(e,t){if((e=ma(e))<1||e>p)return[];var n=d,r=yn(e,d);t=os(t),e-=d;for(var i=Ut(r,t);++n<e;)t(n);return i},jn.toFinite=fa,jn.toInteger=ma,jn.toLength=ga,jn.toLower=function(e){return va(e).toLowerCase()},jn.toNumber=Ea,jn.toSafeInteger=function(e){return e?or(ma(e),-9007199254740991,p):0===e?e:0},jn.toString=va,jn.toUpper=function(e){return va(e).toUpperCase()},jn.trim=function(e,t,n){if((e=va(e))&&(n||t===i))return zt(e);if(!e||!(t=ai(t)))return e;var r=on(e),s=on(t);return vi(r,Gt(r,s),$t(r,s)+1).join("")},jn.trimEnd=function(e,t,n){if((e=va(e))&&(n||t===i))return e.slice(0,an(e)+1);if(!e||!(t=ai(t)))return e;var r=on(e);return vi(r,0,$t(r,on(t))+1).join("")},jn.trimStart=function(e,t,n){if((e=va(e))&&(n||t===i))return e.replace(re,"");if(!e||!(t=ai(t)))return e;var r=on(e);return vi(r,Gt(r,on(t))).join("")},jn.truncate=function(e,t){var n=30,r="...";if(ta(t)){var s="separator"in t?t.separator:s;n="length"in t?ma(t.length):n,r="omission"in t?ai(t.omission):r}var o=(e=va(e)).length;if(Yt(e)){var a=on(e);o=a.length}if(n>=o)return e;var u=n-sn(r);if(u<1)return r;var l=a?vi(a,0,u).join(""):e.slice(0,u);if(s===i)return l+r;if(a&&(u+=l.length-u),oa(s)){if(e.slice(u).search(s)){var c,p=l;for(s.global||(s=we(s.source,va(he.exec(s))+"g")),s.lastIndex=0;c=s.exec(p);)var h=c.index;l=l.slice(0,h===i?u:h)}}else if(e.indexOf(ai(s),u)!=u){var d=l.lastIndexOf(s);d>-1&&(l=l.slice(0,d))}return l+r},jn.unescape=function(e){return(e=va(e))&&$.test(e)?e.replace(H,un):e},jn.uniqueId=function(e){var t=++Ie;return va(e)+t},jn.upperCase=Ja,jn.upperFirst=Za,jn.each=vo,jn.eachRight=Ao,jn.first=Gs,uu(jn,(yu={},vr(jn,(function(e,t){Re.call(jn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),jn.VERSION="4.17.21",vt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){jn[e].placeholder=jn})),vt(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===i?1:En(ma(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),vt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:os(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),vt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),vt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(iu)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Kr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Fr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Po(os(e)))},qn.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(d)},vr(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=jn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);s&&(jn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,u=t instanceof qn,l=a[0],c=u||Ho(t),p=function(e){var t=s.apply(jn,Dt([e],a));return r&&h?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var h=this.__chain__,d=!!this.__actions__.length,f=o&&!h,m=u&&!d;if(!o&&c){t=m?t:new qn(this);var g=e.apply(t,a);return g.__actions__.push({func:fo,args:[p],thisArg:i}),new zn(g,h)}return f&&m?e.apply(this,a):(g=this.thru(p),f?r?g.value()[0]:g.value():g)})})),vt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Oe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);jn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ho(i)?i:[],e)}return this[n]((function(n){return t.apply(Ho(n)?n:[],e)}))}})),vr(qn.prototype,(function(e,t){var n=jn[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Li(i,2).name]=[{name:"wrapper",func:i}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=_i(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=_i(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=_i(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ho(e),r=t<0,i=n?e.length:0,s=function(e,t,n){for(var r=-1,i=n.length;++r<i;){var s=n[r],o=s.size;switch(s.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=yn(t,e+o);break;case"takeRight":e=En(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=s.start,a=s.end,u=a-o,l=r?a:o-1,c=this.__iteratees__,p=c.length,h=0,d=yn(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return hi(e,this.__actions__);var f=[];e:for(;u--&&h<d;){for(var m=-1,g=e[l+=t];++m<p;){var E=c[m],y=E.iteratee,v=E.type,A=y(g);if(2==v)g=A;else if(!A){if(1==v)continue e;break e}}f[h++]=g}return f},jn.prototype.at=mo,jn.prototype.chain=function(){return ho(this)},jn.prototype.commit=function(){return new zn(this.value(),this.__chain__)},jn.prototype.next=function(){this.__values__===i&&(this.__values__=da(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},jn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var r=js(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t},jn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:fo,args:[eo],thisArg:i}),new zn(t,this.__chain__)}return this.thru(eo)},jn.prototype.toJSON=jn.prototype.valueOf=jn.prototype.value=function(){return hi(this.__wrapped__,this.__actions__)},jn.prototype.first=jn.prototype.head,ot&&(jn.prototype[ot]=function(){return this}),jn}();st._=ln,(r=function(){return ln}.call(t,n,t,e))===i||(e.exports=r)}.call(this)},6902:e=>{function t(e,r){if(!(this instanceof t))return new t(e,r);this.length=0,this.updates=[],this.path=new Uint16Array(4),this.pages=new Array(32768),this.maxPages=this.pages.length,this.level=0,this.pageSize=e||1024,this.deduplicate=r?r.deduplicate:null,this.zeros=this.deduplicate?n(this.deduplicate.length):null}function n(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}function r(e,t){this.offset=e*t.length,this.buffer=t,this.updated=!1,this.deduplicate=0}e.exports=t,t.prototype.updated=function(e){for(;this.deduplicate&&e.buffer[e.deduplicate]===this.deduplicate[e.deduplicate];)if(e.deduplicate++,e.deduplicate===this.deduplicate.length){e.deduplicate=0,e.buffer.equals&&e.buffer.equals(this.deduplicate)&&(e.buffer=this.deduplicate);break}!e.updated&&this.updates&&(e.updated=!0,this.updates.push(e))},t.prototype.lastUpdate=function(){if(!this.updates||!this.updates.length)return null;var e=this.updates.pop();return e.updated=!1,e},t.prototype._array=function(e,t){if(e>=this.maxPages){if(t)return;!function(e,t){for(;e.maxPages<t;){var n=e.pages;e.pages=new Array(32768),e.pages[0]=n,e.level++,e.maxPages*=32768}}(this,e)}var n,r;n=((n=((n=e)-((r=this.path)[0]=32767&n))/32768)-(r[1]=32767&n))/32768,r[3]=(n-(r[2]=32767&n))/32768&32767;for(var i=this.pages,s=this.level;s>0;s--){var o=this.path[s],a=i[o];if(!a){if(t)return;a=i[o]=new Array(32768)}i=a}return i},t.prototype.get=function(e,t){var i,s,o=this._array(e,t),a=this.path[0],u=o&&o[a];return u||t||(u=o[a]=new r(e,n(this.pageSize)),e>=this.length&&(this.length=e+1)),u&&u.buffer===this.deduplicate&&this.deduplicate&&!t&&(u.buffer=(i=u.buffer,s=Buffer.allocUnsafe?Buffer.allocUnsafe(i.length):new Buffer(i.length),i.copy(s),s),u.deduplicate=0),u},t.prototype.set=function(e,t){var i=this._array(e,!1),s=this.path[0];if(e>=this.length&&(this.length=e+1),!t||this.zeros&&t.equals&&t.equals(this.zeros))i[s]=void 0;else{this.deduplicate&&t.equals&&t.equals(this.deduplicate)&&(t=this.deduplicate);var o=i[s],a=function(e,t){if(e.length===t)return e;if(e.length>t)return e.slice(0,t);var r=n(t);return e.copy(r),r}(t,this.pageSize);o?o.buffer=a:i[s]=new r(e,a)}},t.prototype.toBuffer=function(){for(var e=new Array(this.length),t=n(this.pageSize),r=0;r<e.length;)for(var i=this._array(r,!0),s=0;s<32768&&r<e.length;s++)e[r++]=i&&i[s]?i[s].buffer:t;return Buffer.concat(e)}},4680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommaAndColonSeparatedRecord=t.ConnectionString=t.redactConnectionString=void 0;const r=n(4159),i=n(5015);Object.defineProperty(t,"redactConnectionString",{enumerable:!0,get:function(){return i.redactConnectionString}});const s="__this_is_a_placeholder__",o=/^(?<protocol>[^/]+):\/\/(?:(?<username>[^:]*)(?::(?<password>[^@]*))?@)?(?<hosts>(?!:)[^/?@]*)(?<rest>.*)/;class a extends Map{delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}_normalizeKey(e){e=`${e}`;for(const t of this.keys())if(t.toLowerCase()===e.toLowerCase()){e=t;break}return e}}class u extends r.URL{}class l extends Error{get name(){return"MongoParseError"}}class c extends u{constructor(e,t={}){var n;const{looseValidation:r}=t;if(!r&&!(i=e).startsWith("mongodb://")&&!i.startsWith("mongodb+srv://"))throw new l('Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://"');var i;const u=e.match(o);if(!u)throw new l(`Invalid connection string "${e}"`);const{protocol:p,username:h,password:d,hosts:f,rest:m}=null!==(n=u.groups)&&void 0!==n?n:{};if(!r){if(!p||!f)throw new l(`Protocol and host list are required in "${e}"`);try{decodeURIComponent(null!=h?h:""),decodeURIComponent(null!=d?d:"")}catch(e){throw new l(e.message)}const t=/[:/?#[\]@]/gi;if(null==h?void 0:h.match(t))throw new l(`Username contains unescaped characters ${h}`);if(!h||!d){const t=e.replace(`${p}://`,"");if(t.startsWith("@")||t.startsWith(":"))throw new l("URI contained empty userinfo section")}if(null==d?void 0:d.match(t))throw new l("Password contains unescaped characters")}let g="";"string"==typeof h&&(g+=h),"string"==typeof d&&(g+=`:${d}`),g&&(g+="@");try{super(`${p.toLowerCase()}://${g}${s}${m}`)}catch(n){throw r&&new c(e,{...t,looseValidation:!1}),"string"==typeof n.message&&(n.message=n.message.replace(s,f)),n}if(this._hosts=f.split(","),!r){if(this.isSRV&&1!==this.hosts.length)throw new l("mongodb+srv URI cannot have multiple service names");if(this.isSRV&&this.hosts.some((e=>e.includes(":"))))throw new l("mongodb+srv URI cannot have port number")}var E;this.pathname||(this.pathname="/"),Object.setPrototypeOf(this.searchParams,(E=this.searchParams.constructor,class extends E{append(e,t){return super.append(this._normalizeKey(e),t)}delete(e){return super.delete(this._normalizeKey(e))}get(e){return super.get(this._normalizeKey(e))}getAll(e){return super.getAll(this._normalizeKey(e))}has(e){return super.has(this._normalizeKey(e))}set(e,t){return super.set(this._normalizeKey(e),t)}keys(){return super.keys()}values(){return super.values()}entries(){return super.entries()}[Symbol.iterator](){return super[Symbol.iterator]()}_normalizeKey(e){return a.prototype._normalizeKey.call(this,e)}}).prototype)}get host(){return s}set host(e){throw new Error("No single host for connection string")}get hostname(){return s}set hostname(e){throw new Error("No single host for connection string")}get port(){return""}set port(e){throw new Error("No single host for connection string")}get href(){return this.toString()}set href(e){throw new Error("Cannot set href for connection strings")}get isSRV(){return this.protocol.includes("srv")}get hosts(){return this._hosts}set hosts(e){this._hosts=e}toString(){return super.toString().replace(s,this.hosts.join(","))}clone(){return new c(this.toString(),{looseValidation:!0})}redact(e){return(0,i.redactValidConnectionString)(this,e)}typedSearchParams(){return this.searchParams}[Symbol.for("nodejs.util.inspect.custom")](){const{href:e,origin:t,protocol:n,username:r,password:i,hosts:s,pathname:o,search:a,searchParams:u,hash:l}=this;return{href:e,origin:t,protocol:n,username:r,password:i,hosts:s,pathname:o,search:a,searchParams:u,hash:l}}}t.ConnectionString=c,t.CommaAndColonSeparatedRecord=class extends a{constructor(e){super();for(const t of(null!=e?e:"").split(",")){if(!t)continue;const e=t.indexOf(":");-1===e?this.set(t,""):this.set(t.slice(0,e),t.slice(e+1))}}toString(){return[...this].map((e=>e.join(":"))).join(",")}},t.default=c},5015:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.redactConnectionString=t.redactValidConnectionString=void 0;const o=s(n(4680));t.redactValidConnectionString=function(e,t){var n,r;const i=e.clone(),s=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"_credentials_",a=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;if((i.username||i.password)&&a?(i.username=s,i.password=""):i.password&&(i.password=s),i.searchParams.has("authMechanismProperties")){const e=new o.CommaAndColonSeparatedRecord(i.searchParams.get("authMechanismProperties"));e.get("AWS_SESSION_TOKEN")&&(e.set("AWS_SESSION_TOKEN",s),i.searchParams.set("authMechanismProperties",e.toString()))}return i.searchParams.has("tlsCertificateKeyFilePassword")&&i.searchParams.set("tlsCertificateKeyFilePassword",s),i.searchParams.has("proxyUsername")&&a&&i.searchParams.set("proxyUsername",s),i.searchParams.has("proxyPassword")&&i.searchParams.set("proxyPassword",s),i},t.redactConnectionString=function(e,t){var n,r;const i=null!==(n=null==t?void 0:t.replacementString)&&void 0!==n?n:"<credentials>",s=null===(r=null==t?void 0:t.redactUsernames)||void 0===r||r;let a;try{a=new o.default(e)}catch(e){}if(a)return t={...t,replacementString:"___credentials___"},a.redact(t).toString().replace(/___credentials___/g,i);const u=[s?/(?<=\/\/)(.*)(?=@)/g:/(?<=\/\/[^@]+:)(.*)(?=@)/g,/(?<=AWS_SESSION_TOKEN(:|%3A))([^,&]+)/gi,/(?<=tlsCertificateKeyFilePassword=)([^&]+)/gi,s?/(?<=proxyUsername=)([^&]+)/gi:null,/(?<=proxyPassword=)([^&]+)/gi];for(const t of u)null!==t&&(e=e.replace(t,i));return e}},6843:(e,t,n)=>{"use strict";const r=n(8621),i=n(629),s=n(7443),{STATUS_MAPPING:o}=n(5541);function a(e,{useSTD3ASCIIRules:t}){let n=0,r=s.length-1;for(;n<=r;){const i=Math.floor((n+r)/2),a=s[i],u=Array.isArray(a[0])?a[0][0]:a[0],l=Array.isArray(a[0])?a[0][1]:a[0];if(u<=e&&l>=e)return!t||a[1]!==o.disallowed_STD3_valid&&a[1]!==o.disallowed_STD3_mapped?a[1]===o.disallowed_STD3_valid?[o.valid,...a.slice(2)]:a[1]===o.disallowed_STD3_mapped?[o.mapped,...a.slice(2)]:a.slice(1):[o.disallowed,...a.slice(2)];u>e?r=i-1:n=i+1}return null}function u(e,{checkHyphens:t,checkBidi:n,checkJoiners:r,processingOption:s,useSTD3ASCIIRules:u}){if(e.normalize("NFC")!==e)return!1;const l=Array.from(e);if(t&&("-"===l[2]&&"-"===l[3]||e.startsWith("-")||e.endsWith("-")))return!1;if(e.includes(".")||l.length>0&&i.combiningMarks.test(l[0]))return!1;for(const e of l){const[t]=a(e.codePointAt(0),{useSTD3ASCIIRules:u});if("transitional"===s&&t!==o.valid||"nontransitional"===s&&t!==o.valid&&t!==o.deviation)return!1}if(r){let e=0;for(const[t,n]of l.entries())if(""===n||""===n){if(t>0){if(i.combiningClassVirama.test(l[t-1]))continue;if(""===n){const n=l.indexOf("",t+1),r=n<0?l.slice(e):l.slice(e,n);if(i.validZWNJ.test(r.join(""))){e=t+1;continue}}}return!1}}if(n){let t;if(i.bidiS1LTR.test(l[0]))t=!1;else{if(!i.bidiS1RTL.test(l[0]))return!1;t=!0}if(t){if(!i.bidiS2.test(e)||!i.bidiS3.test(e)||i.bidiS4EN.test(e)&&i.bidiS4AN.test(e))return!1}else if(!i.bidiS5.test(e)||!i.bidiS6.test(e))return!1}return!0}function l(e,t){const{processingOption:n}=t;let{string:s,error:l}=function(e,{useSTD3ASCIIRules:t,processingOption:n}){let r=!1,i="";for(const s of e){const[e,u]=a(s.codePointAt(0),{useSTD3ASCIIRules:t});switch(e){case o.disallowed:r=!0,i+=s;break;case o.ignored:break;case o.mapped:i+=u;break;case o.deviation:i+="transitional"===n?u:s;break;case o.valid:i+=s}}return{string:i,error:r}}(e,t);s=s.normalize("NFC");const c=s.split("."),p=function(e){const t=e.map((e=>{if(e.startsWith("xn--"))try{return r.decode(e.substring(4))}catch(e){return""}return e})).join(".");return i.bidiDomain.test(t)}(c);for(const[e,i]of c.entries()){let s=i,o=n;if(s.startsWith("xn--")){try{s=r.decode(s.substring(4)),c[e]=s}catch(e){l=!0;continue}o="nontransitional"}l||(u(s,{...t,processingOption:o,checkBidi:t.checkBidi&&p})||(l=!0))}return{string:c.join("."),error:l}}e.exports={toASCII:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:i=!1,useSTD3ASCIIRules:s=!1,processingOption:o="nontransitional",verifyDNSLength:a=!1}={}){if("transitional"!==o&&"nontransitional"!==o)throw new RangeError("processingOption must be either transitional or nontransitional");const u=l(e,{processingOption:o,checkHyphens:t,checkBidi:n,checkJoiners:i,useSTD3ASCIIRules:s});let c=u.string.split(".");if(c=c.map((e=>{if(/[^\x00-\x7F]/u.test(e))try{return`xn--${r.encode(e)}`}catch(e){u.error=!0}return e})),a){const e=c.join(".").length;(e>253||0===e)&&(u.error=!0);for(let e=0;e<c.length;++e)if(c[e].length>63||0===c[e].length){u.error=!0;break}}return u.error?null:c.join(".")},toUnicode:function(e,{checkHyphens:t=!1,checkBidi:n=!1,checkJoiners:r=!1,useSTD3ASCIIRules:i=!1,processingOption:s="nontransitional"}={}){const o=l(e,{processingOption:s,checkHyphens:t,checkBidi:n,checkJoiners:r,useSTD3ASCIIRules:i});return{domain:o.string,error:o.error}}}},629:e=>{"use strict";e.exports={combiningMarks:/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{11002}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11082}\u{110B0}-\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{11134}\u{11145}\u{11146}\u{11173}\u{11180}-\u{11182}\u{111B3}-\u{111C0}\u{111C9}-\u{111CC}\u{111CE}\u{111CF}\u{1122C}-\u{11237}\u{1123E}\u{112DF}-\u{112EA}\u{11300}-\u{11303}\u{1133B}\u{1133C}\u{1133E}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11357}\u{11362}\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11435}-\u{11446}\u{1145E}\u{114B0}-\u{114C3}\u{115AF}-\u{115B5}\u{115B8}-\u{115C0}\u{115DC}\u{115DD}\u{11630}-\u{11640}\u{116AB}-\u{116B7}\u{1171D}-\u{1172B}\u{1182C}-\u{1183A}\u{11930}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{1193E}\u{11940}\u{11942}\u{11943}\u{119D1}-\u{119D7}\u{119DA}-\u{119E0}\u{119E4}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A39}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A5B}\u{11A8A}-\u{11A99}\u{11C2F}-\u{11C36}\u{11C38}-\u{11C3F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D8A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D97}\u{11EF3}-\u{11EF6}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F51}-\u{16F87}\u{16F8F}-\u{16F92}\u{16FE4}\u{16FF0}\u{16FF1}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D165}-\u{1D169}\u{1D16D}-\u{1D172}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]/u,combiningClassVirama:/[\u094D\u09CD\u0A4D\u0ACD\u0B4D\u0BCD\u0C4D\u0CCD\u0D3B\u0D3C\u0D4D\u0DCA\u0E3A\u0EBA\u0F84\u1039\u103A\u1714\u1734\u17D2\u1A60\u1B44\u1BAA\u1BAB\u1BF2\u1BF3\u2D7F\uA806\uA8C4\uA953\uA9C0\uAAF6\uABED\u{10A3F}\u{11046}\u{1107F}\u{110B9}\u{11133}\u{11134}\u{111C0}\u{11235}\u{112EA}\u{1134D}\u{11442}\u{114C2}\u{115BF}\u{1163F}\u{116B6}\u{1172B}\u{11839}\u{119E0}\u{11A34}\u{11A47}\u{11A99}\u{11C3F}\u{11D44}\u{11D45}\u{11D97}]/u,validZWNJ:/[\u0620\u0626\u0628\u062A-\u062E\u0633-\u063F\u0641-\u0647\u0649\u064A\u066E\u066F\u0678-\u0687\u069A-\u06BF\u06C1\u06C2\u06CC\u06CE\u06D0\u06D1\u06FA-\u06FC\u06FF\u0712-\u0714\u071A-\u071D\u071F-\u0727\u0729\u072B\u072D\u072E\u074E-\u0758\u075C-\u076A\u076D-\u0770\u0772\u0775-\u0777\u077A-\u077F\u07CA-\u07EA\u0841-\u0845\u0848\u084A-\u0853\u0855\u0860\u0862-\u0865\u0868\u08A0-\u08A9\u08AF\u08B0\u08B3\u08B4\u08B6-\u08B8\u08BA-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA872\u{10AC0}-\u{10AC4}\u{10ACD}\u{10AD3}-\u{10ADC}\u{10ADE}-\u{10AE0}\u{10AEB}-\u{10AEE}\u{10B80}\u{10B82}\u{10B86}-\u{10B88}\u{10B8A}\u{10B8B}\u{10B8D}\u{10B90}\u{10BAD}\u{10BAE}\u{10D00}-\u{10D21}\u{10D23}\u{10F30}-\u{10F32}\u{10F34}-\u{10F44}\u{10F51}-\u{10F53}\u{1E900}-\u{1E943}][\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*\u200C[\xAD\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u061C\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u070F\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200B\u200E\u200F\u202A-\u202E\u2060-\u2064\u206A-\u206F\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFEFF\uFFF9-\uFFFB\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10F46}-\u{10F50}\u{11001}\u{11038}-\u{11046}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C3F}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{13430}-\u{13438}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94B}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*[\u0620\u0622-\u063F\u0641-\u064A\u066E\u066F\u0671-\u0673\u0675-\u06D3\u06D5\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u077F\u07CA-\u07EA\u0840-\u0855\u0860\u0862-\u0865\u0867-\u086A\u08A0-\u08AC\u08AE-\u08B4\u08B6-\u08BD\u1807\u1820-\u1878\u1887-\u18A8\u18AA\uA840-\uA871\u{10AC0}-\u{10AC5}\u{10AC7}\u{10AC9}\u{10ACA}\u{10ACE}-\u{10AD6}\u{10AD8}-\u{10AE1}\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B80}-\u{10B91}\u{10BA9}-\u{10BAE}\u{10D01}-\u{10D23}\u{10F30}-\u{10F44}\u{10F51}-\u{10F54}\u{1E900}-\u{1E943}]/u,bidiDomain:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS1LTR:/[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u249C-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D800}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]/u,bidiS1RTL:/[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}]/u,bidiS2:/^[\0-\x08\x0E-\x1B!-@\[-`\{-\x84\x86-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02B9\u02BA\u02C2-\u02CF\u02D2-\u02DF\u02E5-\u02ED\u02EF-\u036F\u0374\u0375\u037E\u0384\u0385\u0387\u03F6\u0483-\u0489\u058A\u058D-\u058F\u0591-\u05C7\u05D0-\u05EA\u05EF-\u05F4\u0600-\u070D\u070F-\u074A\u074D-\u07B1\u07C0-\u07FA\u07FD-\u082D\u0830-\u083E\u0840-\u085B\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u0898-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09F2\u09F3\u09FB\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AF1\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0BF3-\u0BFA\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C78-\u0C7E\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E3F\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39-\u0F3D\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1390-\u1399\u1400\u169B\u169C\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DB\u17DD\u17F0-\u17F9\u1800-\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1940\u1944\u1945\u19DE-\u19FF\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u200B-\u200D\u200F-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2070\u2074-\u207E\u2080-\u208E\u20A0-\u20C0\u20D0-\u20F0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u2150-\u215F\u2189-\u218B\u2190-\u2335\u237B-\u2394\u2396-\u2426\u2440-\u244A\u2460-\u249B\u24EA-\u26AB\u26AD-\u27FF\u2900-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2CEF-\u2CF1\u2CF9-\u2CFF\u2D7F\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u3004\u3008-\u3020\u302A-\u302D\u3030\u3036\u3037\u303D-\u303F\u3099-\u309C\u30A0\u30FB\u31C0-\u31E3\u321D\u321E\u3250-\u325F\u327C-\u327E\u32B1-\u32BF\u32CC-\u32CF\u3377-\u337A\u33DE\u33DF\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA60D-\uA60F\uA66F-\uA67F\uA69E\uA69F\uA6F0\uA6F1\uA700-\uA721\uA788\uA802\uA806\uA80B\uA825\uA826\uA828-\uA82C\uA838\uA839\uA874-\uA877\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uAB6A\uAB6B\uABE5\uABE8\uABED\uFB1D-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD8F\uFD92-\uFDC7\uFDCF\uFDF0-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFE70-\uFE74\uFE76-\uFEFC\uFEFF\uFF01-\uFF20\uFF3B-\uFF40\uFF5B-\uFF65\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10101}\u{10140}-\u{1018C}\u{10190}-\u{1019C}\u{101A0}\u{101FD}\u{102E0}-\u{102FB}\u{10376}-\u{1037A}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{1091F}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A38}-\u{10A3A}\u{10A3F}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE6}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B39}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D27}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAB}-\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F59}\u{10F70}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11001}\u{11038}-\u{11046}\u{11052}-\u{11065}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{11660}-\u{1166C}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{11FD5}-\u{11FF1}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE2}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1BCA0}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D173}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D1E9}\u{1D1EA}\u{1D200}-\u{1D245}\u{1D300}-\u{1D356}\u{1D6DB}\u{1D715}\u{1D74F}\u{1D789}\u{1D7C3}\u{1D7CE}-\u{1D7FF}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E2FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8D6}\u{1E900}-\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F10F}\u{1F12F}\u{1F16A}-\u{1F16F}\u{1F1AD}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}]*$/u,bidiS3:/[0-9\xB2\xB3\xB9\u05BE\u05C0\u05C3\u05C6\u05D0-\u05EA\u05EF-\u05F4\u0600-\u0605\u0608\u060B\u060D\u061B-\u064A\u0660-\u0669\u066B-\u066F\u0671-\u06D5\u06DD\u06E5\u06E6\u06EE-\u070D\u070F\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u083E\u0840-\u0858\u085E\u0860-\u086A\u0870-\u088E\u0890\u0891\u08A0-\u08C9\u08E2\u200F\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBC2\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFC\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\u{102E1}-\u{102FB}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10857}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{1093F}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A50}-\u{10A58}\u{10A60}-\u{10A9F}\u{10AC0}-\u{10AE4}\u{10AEB}-\u{10AF6}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10B99}-\u{10B9C}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EAD}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F59}\u{10F70}-\u{10F81}\u{10F86}-\u{10F89}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{1D7CE}-\u{1D7FF}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1E95E}\u{1E95F}\u{1EC71}-\u{1ECB4}\u{1ED01}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u,bidiS4EN:/[0-9\xB2\xB3\xB9\u06F0-\u06F9\u2070\u2074-\u2079\u2080-\u2089\u2488-\u249B\uFF10-\uFF19\u{102E1}-\u{102FB}\u{1D7CE}-\u{1D7FF}\u{1F100}-\u{1F10A}\u{1FBF0}-\u{1FBF9}]/u,bidiS4AN:/[\u0600-\u0605\u0660-\u0669\u066B\u066C\u06DD\u0890\u0891\u08E2\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}]/u,bidiS5:/^[\0-\x08\x0E-\x1B!-\x84\x86-\u0377\u037A-\u037F\u0384-\u038A\u038C\u038E-\u03A1\u03A3-\u052F\u0531-\u0556\u0559-\u058A\u058D-\u058F\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0606\u0607\u0609\u060A\u060C\u060E-\u061A\u064B-\u065F\u066A\u0670\u06D6-\u06DC\u06DE-\u06E4\u06E7-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07F6-\u07F9\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09FE\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A76\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AF1\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BFA\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3C-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C77-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4F\u0D54-\u0D63\u0D66-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E3A\u0E3F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F47\u0F49-\u0F6C\u0F71-\u0F97\u0F99-\u0FBC\u0FBE-\u0FCC\u0FCE-\u0FDA\u1000-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u137C\u1380-\u1399\u13A0-\u13F5\u13F8-\u13FD\u1400-\u167F\u1681-\u169C\u16A0-\u16F8\u1700-\u1715\u171F-\u1736\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17DD\u17E0-\u17E9\u17F0-\u17F9\u1800-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1940\u1944-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u19DE-\u1A1B\u1A1E-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1AB0-\u1ACE\u1B00-\u1B4C\u1B50-\u1B7E\u1B80-\u1BF3\u1BFC-\u1C37\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD0-\u1CFA\u1D00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEF\u1FF2-\u1FF4\u1FF6-\u1FFE\u200B-\u200E\u2010-\u2027\u202F-\u205E\u2060-\u2064\u206A-\u2071\u2074-\u208E\u2090-\u209C\u20A0-\u20C0\u20D0-\u20F0\u2100-\u218B\u2190-\u2426\u2440-\u244A\u2460-\u2B73\u2B76-\u2B95\u2B97-\u2CF3\u2CF9-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2E5D\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303F\u3041-\u3096\u3099-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31E3\u31F0-\u321E\u3220-\uA48C\uA490-\uA4C6\uA4D0-\uA62B\uA640-\uA6F7\uA700-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA82C\uA830-\uA839\uA840-\uA877\uA880-\uA8C5\uA8CE-\uA8D9\uA8E0-\uA953\uA95F-\uA97C\uA980-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA5C-\uAAC2\uAADB-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB6B\uAB70-\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1E\uFB29\uFD3E-\uFD4F\uFDCF\uFDFD-\uFE19\uFE20-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFEFF\uFF01-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFF9-\uFFFD\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}-\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1018E}\u{10190}-\u{1019C}\u{101A0}\u{101D0}-\u{101FD}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E0}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{1037A}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{1091F}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10B39}-\u{10B3F}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11000}-\u{1104D}\u{11052}-\u{11075}\u{1107F}-\u{110C2}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11100}-\u{11134}\u{11136}-\u{11147}\u{11150}-\u{11176}\u{11180}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1123E}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112EA}\u{112F0}-\u{112F9}\u{11300}-\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133B}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11400}-\u{1145B}\u{1145D}-\u{11461}\u{11480}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B5}\u{115B8}-\u{115DD}\u{11600}-\u{11644}\u{11650}-\u{11659}\u{11660}-\u{1166C}\u{11680}-\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{1171D}-\u{1172B}\u{11730}-\u{11746}\u{11800}-\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193B}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D7}\u{119DA}-\u{119E4}\u{11A00}-\u{11A47}\u{11A50}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C36}\u{11C38}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11C92}-\u{11CA7}\u{11CA9}-\u{11CB6}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D47}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D90}\u{11D91}\u{11D93}-\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FF1}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF0}-\u{16AF5}\u{16B00}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F4F}-\u{16F87}\u{16F8F}-\u{16F9F}\u{16FE0}-\u{16FE4}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}-\u{1BCA3}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D1EA}\u{1D200}-\u{1D245}\u{1D2E0}-\u{1D2F3}\u{1D300}-\u{1D356}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D7CB}\u{1D7CE}-\u{1DA8B}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1DF00}-\u{1DF1E}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E100}-\u{1E12C}\u{1E130}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AE}\u{1E2C0}-\u{1E2F9}\u{1E2FF}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{1EEF0}\u{1EEF1}\u{1F000}-\u{1F02B}\u{1F030}-\u{1F093}\u{1F0A0}-\u{1F0AE}\u{1F0B1}-\u{1F0BF}\u{1F0C1}-\u{1F0CF}\u{1F0D1}-\u{1F0F5}\u{1F100}-\u{1F1AD}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1F260}-\u{1F265}\u{1F300}-\u{1F6D7}\u{1F6DD}-\u{1F6EC}\u{1F6F0}-\u{1F6FC}\u{1F700}-\u{1F773}\u{1F780}-\u{1F7D8}\u{1F7E0}-\u{1F7EB}\u{1F7F0}\u{1F800}-\u{1F80B}\u{1F810}-\u{1F847}\u{1F850}-\u{1F859}\u{1F860}-\u{1F887}\u{1F890}-\u{1F8AD}\u{1F8B0}\u{1F8B1}\u{1F900}-\u{1FA53}\u{1FA60}-\u{1FA6D}\u{1FA70}-\u{1FA74}\u{1FA78}-\u{1FA7C}\u{1FA80}-\u{1FA86}\u{1FA90}-\u{1FAAC}\u{1FAB0}-\u{1FABA}\u{1FAC0}-\u{1FAC5}\u{1FAD0}-\u{1FAD9}\u{1FAE0}-\u{1FAE7}\u{1FAF0}-\u{1FAF6}\u{1FB00}-\u{1FB92}\u{1FB94}-\u{1FBCA}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{E0001}\u{E0020}-\u{E007F}\u{E0100}-\u{E01EF}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}]*$/u,bidiS6:/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u02BB-\u02C1\u02D0\u02D1\u02E0-\u02E4\u02EE\u0370-\u0373\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0482\u048A-\u052F\u0531-\u0556\u0559-\u0589\u06F0-\u06F9\u0903-\u0939\u093B\u093D-\u0940\u0949-\u094C\u094E-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C0\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09FA\u09FC\u09FD\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A40\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A76\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC0\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0\u0AE1\u0AE6-\u0AF0\u0AF9\u0B02\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B3E\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0B57\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C41-\u0C44\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C77\u0C7F\u0C80\u0C82-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA\u0CCB\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D4F\u0D54-\u0D61\u0D66-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2-\u0DF4\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E4F-\u0E5B\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00-\u0F17\u0F1A-\u0F34\u0F36\u0F38\u0F3E-\u0F47\u0F49-\u0F6C\u0F7F\u0F85\u0F88-\u0F8C\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE-\u0FDA\u1000-\u102C\u1031\u1038\u103B\u103C\u103F-\u1057\u105A-\u105D\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108C\u108E-\u109C\u109E-\u10C5\u10C7\u10CD\u10D0-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1360-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u167F\u1681-\u169A\u16A0-\u16F8\u1700-\u1711\u1715\u171F-\u1731\u1734-\u1736\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17B6\u17BE-\u17C5\u17C7\u17C8\u17D4-\u17DA\u17DC\u17E0-\u17E9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A19\u1A1A\u1A1E-\u1A55\u1A57\u1A61\u1A63\u1A64\u1A6D-\u1A72\u1A80-\u1A89\u1A90-\u1A99\u1AA0-\u1AAD\u1B04-\u1B33\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B4C\u1B50-\u1B6A\u1B74-\u1B7E\u1B82-\u1BA1\u1BA6\u1BA7\u1BAA\u1BAE-\u1BE5\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1BFC-\u1C2B\u1C34\u1C35\u1C3B-\u1C49\u1C4D-\u1C88\u1C90-\u1CBA\u1CBD-\u1CC7\u1CD3\u1CE1\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5-\u1CF7\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200E\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u214F\u2160-\u2188\u2336-\u237A\u2395\u2488-\u24E9\u26AC\u2800-\u28FF\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D70\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u302E\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3190-\u31BF\u31F0-\u321C\u3220-\u324F\u3260-\u327B\u327F-\u32B0\u32C0-\u32CB\u32D0-\u3376\u337B-\u33DD\u33E0-\u33FE\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA60C\uA610-\uA62B\uA640-\uA66E\uA680-\uA69D\uA6A0-\uA6EF\uA6F2-\uA6F7\uA722-\uA787\uA789-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA824\uA827\uA830-\uA837\uA840-\uA873\uA880-\uA8C3\uA8CE-\uA8D9\uA8F2-\uA8FE\uA900-\uA925\uA92E-\uA946\uA952\uA953\uA95F-\uA97C\uA983-\uA9B2\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9CD\uA9CF-\uA9D9\uA9DE-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA2F\uAA30\uAA33\uAA34\uAA40-\uAA42\uAA44-\uAA4B\uAA4D\uAA50-\uAA59\uAA5C-\uAA7B\uAA7D-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAAEB\uAAEE-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB69\uAB70-\uABE4\uABE6\uABE7\uABE9-\uABEC\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uD800-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10100}\u{10102}\u{10107}-\u{10133}\u{10137}-\u{1013F}\u{1018D}\u{1018E}\u{101D0}-\u{101FC}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{1039F}-\u{103C3}\u{103C8}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{1056F}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{11000}\u{11002}-\u{11037}\u{11047}-\u{1104D}\u{11066}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11082}-\u{110B2}\u{110B7}\u{110B8}\u{110BB}-\u{110C1}\u{110CD}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{1112C}\u{11136}-\u{11147}\u{11150}-\u{11172}\u{11174}-\u{11176}\u{11182}-\u{111B5}\u{111BF}-\u{111C8}\u{111CD}\u{111CE}\u{111D0}-\u{111DF}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122E}\u{11232}\u{11233}\u{11235}\u{11238}-\u{1123D}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A9}\u{112B0}-\u{112DE}\u{112E0}-\u{112E2}\u{112F0}-\u{112F9}\u{11302}\u{11303}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}-\u{1133F}\u{11341}-\u{11344}\u{11347}\u{11348}\u{1134B}-\u{1134D}\u{11350}\u{11357}\u{1135D}-\u{11363}\u{11400}-\u{11437}\u{11440}\u{11441}\u{11445}\u{11447}-\u{1145B}\u{1145D}\u{1145F}-\u{11461}\u{11480}-\u{114B2}\u{114B9}\u{114BB}-\u{114BE}\u{114C1}\u{114C4}-\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115B1}\u{115B8}-\u{115BB}\u{115BE}\u{115C1}-\u{115DB}\u{11600}-\u{11632}\u{1163B}\u{1163C}\u{1163E}\u{11641}-\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116AC}\u{116AE}\u{116AF}\u{116B6}\u{116B8}\u{116B9}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11720}\u{11721}\u{11726}\u{11730}-\u{11746}\u{11800}-\u{1182E}\u{11838}\u{1183B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{11935}\u{11937}\u{11938}\u{1193D}\u{1193F}-\u{11942}\u{11944}-\u{11946}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D3}\u{119DC}-\u{119DF}\u{119E1}-\u{119E4}\u{11A00}\u{11A07}\u{11A08}\u{11A0B}-\u{11A32}\u{11A39}\u{11A3A}\u{11A3F}-\u{11A46}\u{11A50}\u{11A57}\u{11A58}\u{11A5C}-\u{11A89}\u{11A97}\u{11A9A}-\u{11AA2}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2F}\u{11C3E}-\u{11C45}\u{11C50}-\u{11C6C}\u{11C70}-\u{11C8F}\u{11CA9}\u{11CB1}\u{11CB4}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D8E}\u{11D93}\u{11D94}\u{11D96}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11EF5}-\u{11EF8}\u{11FB0}\u{11FC0}-\u{11FD4}\u{11FFF}-\u{12399}\u{12400}-\u{1246E}\u{12470}-\u{12474}\u{12480}-\u{12543}\u{12F90}-\u{12FF2}\u{13000}-\u{1342E}\u{13430}-\u{13438}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A6E}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16AF5}\u{16B00}-\u{16B2F}\u{16B37}-\u{16B45}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E9A}\u{16F00}-\u{16F4A}\u{16F50}-\u{16F87}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{16FF0}\u{16FF1}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B150}-\u{1B152}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1BC9C}\u{1BC9F}\u{1CF50}-\u{1CFC3}\u{1D000}-\u{1D0F5}\u{1D100}-\u{1D126}\u{1D129}-\u{1D166}\u{1D16A}-\u{1D172}\u{1D183}\u{1D184}\u{1D18C}-\u{1D1A9}\u{1D1AE}-\u{1D1E8}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6DA}\u{1D6DC}-\u{1D714}\u{1D716}-\u{1D74E}\u{1D750}-\u{1D788}\u{1D78A}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D9FF}\u{1DA37}-\u{1DA3A}\u{1DA6D}-\u{1DA74}\u{1DA76}-\u{1DA83}\u{1DA85}-\u{1DA8B}\u{1DF00}-\u{1DF1E}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E14F}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1F100}-\u{1F10A}\u{1F110}-\u{1F12E}\u{1F130}-\u{1F169}\u{1F170}-\u{1F1AC}\u{1F1E6}-\u{1F202}\u{1F210}-\u{1F23B}\u{1F240}-\u{1F248}\u{1F250}\u{1F251}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B738}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{F0000}-\u{FFFFD}\u{100000}-\u{10FFFD}][\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B55\u0B56\u0B62\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C04\u0C3C\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CCC\u0CCD\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D41-\u0D44\u0D4D\u0D62\u0D63\u0D81\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732\u1733\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u180F\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ACE\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\u{101FD}\u{102E0}\u{10376}-\u{1037A}\u{10A01}-\u{10A03}\u{10A05}\u{10A06}\u{10A0C}-\u{10A0F}\u{10A38}-\u{10A3A}\u{10A3F}\u{10AE5}\u{10AE6}\u{10D24}-\u{10D27}\u{10EAB}\u{10EAC}\u{10F46}-\u{10F50}\u{10F82}-\u{10F85}\u{11001}\u{11038}-\u{11046}\u{11070}\u{11073}\u{11074}\u{1107F}-\u{11081}\u{110B3}-\u{110B6}\u{110B9}\u{110BA}\u{110C2}\u{11100}-\u{11102}\u{11127}-\u{1112B}\u{1112D}-\u{11134}\u{11173}\u{11180}\u{11181}\u{111B6}-\u{111BE}\u{111C9}-\u{111CC}\u{111CF}\u{1122F}-\u{11231}\u{11234}\u{11236}\u{11237}\u{1123E}\u{112DF}\u{112E3}-\u{112EA}\u{11300}\u{11301}\u{1133B}\u{1133C}\u{11340}\u{11366}-\u{1136C}\u{11370}-\u{11374}\u{11438}-\u{1143F}\u{11442}-\u{11444}\u{11446}\u{1145E}\u{114B3}-\u{114B8}\u{114BA}\u{114BF}\u{114C0}\u{114C2}\u{114C3}\u{115B2}-\u{115B5}\u{115BC}\u{115BD}\u{115BF}\u{115C0}\u{115DC}\u{115DD}\u{11633}-\u{1163A}\u{1163D}\u{1163F}\u{11640}\u{116AB}\u{116AD}\u{116B0}-\u{116B5}\u{116B7}\u{1171D}-\u{1171F}\u{11722}-\u{11725}\u{11727}-\u{1172B}\u{1182F}-\u{11837}\u{11839}\u{1183A}\u{1193B}\u{1193C}\u{1193E}\u{11943}\u{119D4}-\u{119D7}\u{119DA}\u{119DB}\u{119E0}\u{11A01}-\u{11A06}\u{11A09}\u{11A0A}\u{11A33}-\u{11A38}\u{11A3B}-\u{11A3E}\u{11A47}\u{11A51}-\u{11A56}\u{11A59}-\u{11A5B}\u{11A8A}-\u{11A96}\u{11A98}\u{11A99}\u{11C30}-\u{11C36}\u{11C38}-\u{11C3D}\u{11C92}-\u{11CA7}\u{11CAA}-\u{11CB0}\u{11CB2}\u{11CB3}\u{11CB5}\u{11CB6}\u{11D31}-\u{11D36}\u{11D3A}\u{11D3C}\u{11D3D}\u{11D3F}-\u{11D45}\u{11D47}\u{11D90}\u{11D91}\u{11D95}\u{11D97}\u{11EF3}\u{11EF4}\u{16AF0}-\u{16AF4}\u{16B30}-\u{16B36}\u{16F4F}\u{16F8F}-\u{16F92}\u{16FE4}\u{1BC9D}\u{1BC9E}\u{1CF00}-\u{1CF2D}\u{1CF30}-\u{1CF46}\u{1D167}-\u{1D169}\u{1D17B}-\u{1D182}\u{1D185}-\u{1D18B}\u{1D1AA}-\u{1D1AD}\u{1D242}-\u{1D244}\u{1DA00}-\u{1DA36}\u{1DA3B}-\u{1DA6C}\u{1DA75}\u{1DA84}\u{1DA9B}-\u{1DA9F}\u{1DAA1}-\u{1DAAF}\u{1E000}-\u{1E006}\u{1E008}-\u{1E018}\u{1E01B}-\u{1E021}\u{1E023}\u{1E024}\u{1E026}-\u{1E02A}\u{1E130}-\u{1E136}\u{1E2AE}\u{1E2EC}-\u{1E2EF}\u{1E8D0}-\u{1E8D6}\u{1E944}-\u{1E94A}\u{E0100}-\u{E01EF}]*$/u}},5541:e=>{"use strict";e.exports.STATUS_MAPPING={mapped:1,valid:2,disallowed:3,disallowed_STD3_valid:4,disallowed_STD3_mapped:5,deviation:6,ignored:7}},5292:(e,t)=>{"use strict";function n(e,t,n){return n.globals&&(e=n.globals[e.name]),new e(`${n.context?n.context:"Value"} ${t}.`)}function r(e,t){if("bigint"==typeof e)throw n(TypeError,"is a BigInt which cannot be converted to a number",t);return t.globals?t.globals.Number(e):Number(e)}function i(e){return a(e>0&&e%1==.5&&0==(1&e)||e<0&&e%1==-.5&&1==(1&e)?Math.floor(e):Math.round(e))}function s(e){return a(Math.trunc(e))}function o(e){return e<0?-1:1}function a(e){return 0===e?0:e}function u(e,{unsigned:t}){let u,l;t?(u=0,l=2**e-1):(u=-(2**(e-1)),l=2**(e-1)-1);const c=2**e,p=2**(e-1);return(e,h={})=>{let d=r(e,h);if(d=a(d),h.enforceRange){if(!Number.isFinite(d))throw n(TypeError,"is not a finite number",h);if(d=s(d),d<u||d>l)throw n(TypeError,`is outside the accepted range of ${u} to ${l}, inclusive`,h);return d}return!Number.isNaN(d)&&h.clamp?(d=Math.min(Math.max(d,u),l),d=i(d),d):Number.isFinite(d)&&0!==d?(d=s(d),d>=u&&d<=l?d:(d=function(e,t){const n=e%t;return o(t)!==o(n)?n+t:n}(d,c),!t&&d>=p?d-c:d)):0}}function l(e,{unsigned:t}){const o=Number.MAX_SAFE_INTEGER,u=t?0:Number.MIN_SAFE_INTEGER,l=t?BigInt.asUintN:BigInt.asIntN;return(t,c={})=>{let p=r(t,c);if(p=a(p),c.enforceRange){if(!Number.isFinite(p))throw n(TypeError,"is not a finite number",c);if(p=s(p),p<u||p>o)throw n(TypeError,`is outside the accepted range of ${u} to ${o}, inclusive`,c);return p}if(!Number.isNaN(p)&&c.clamp)return p=Math.min(Math.max(p,u),o),p=i(p),p;if(!Number.isFinite(p)||0===p)return 0;let h=BigInt(s(p));return h=l(e,h),Number(h)}}t.any=e=>e,t.undefined=()=>{},t.boolean=e=>Boolean(e),t.byte=u(8,{unsigned:!1}),t.octet=u(8,{unsigned:!0}),t.short=u(16,{unsigned:!1}),t["unsigned short"]=u(16,{unsigned:!0}),t.long=u(32,{unsigned:!1}),t["unsigned long"]=u(32,{unsigned:!0}),t["long long"]=l(64,{unsigned:!1}),t["unsigned long long"]=l(64,{unsigned:!0}),t.double=(e,t={})=>{const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);return i},t["unrestricted double"]=(e,t={})=>r(e,t),t.float=(e,t={})=>{const i=r(e,t);if(!Number.isFinite(i))throw n(TypeError,"is not a finite floating-point value",t);if(Object.is(i,-0))return i;const s=Math.fround(i);if(!Number.isFinite(s))throw n(TypeError,"is outside the range of a single-precision floating-point value",t);return s},t["unrestricted float"]=(e,t={})=>{const n=r(e,t);return isNaN(n)||Object.is(n,-0)?n:Math.fround(n)},t.DOMString=(e,t={})=>{if(t.treatNullAsEmptyString&&null===e)return"";if("symbol"==typeof e)throw n(TypeError,"is a symbol, which cannot be converted to a string",t);return(t.globals?t.globals.String:String)(e)},t.ByteString=(e,r={})=>{const i=t.DOMString(e,r);let s;for(let e=0;void 0!==(s=i.codePointAt(e));++e)if(s>255)throw n(TypeError,"is not a valid ByteString",r);return i},t.USVString=(e,n={})=>{const r=t.DOMString(e,n),i=r.length,s=[];for(let e=0;e<i;++e){const t=r.charCodeAt(e);if(t<55296||t>57343)s.push(String.fromCodePoint(t));else if(56320<=t&&t<=57343)s.push(String.fromCodePoint(65533));else if(e===i-1)s.push(String.fromCodePoint(65533));else{const n=r.charCodeAt(e+1);if(56320<=n&&n<=57343){const r=1023&t,i=1023&n;s.push(String.fromCodePoint(65536+1024*r+i)),++e}else s.push(String.fromCodePoint(65533))}}return s.join("")},t.object=(e,t={})=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)throw n(TypeError,"is not an object",t);return e};const c=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,p="function"==typeof SharedArrayBuffer?Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get:null;function h(e){try{return c.call(e),!0}catch{return!1}}function d(e){try{return p.call(e),!0}catch{return!1}}function f(e){try{return new Uint8Array(e),!1}catch{return!0}}t.ArrayBuffer=(e,t={})=>{if(!h(e)){if(t.allowShared&&!d(e))throw n(TypeError,"is not an ArrayBuffer or SharedArrayBuffer",t);throw n(TypeError,"is not an ArrayBuffer",t)}if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e};const m=Object.getOwnPropertyDescriptor(DataView.prototype,"byteLength").get;t.DataView=(e,t={})=>{try{m.call(e)}catch(e){throw n(TypeError,"is not a DataView",t)}if(!t.allowShared&&d(e.buffer))throw n(TypeError,"is backed by a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is backed by a detached ArrayBuffer",t);return e};const g=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array).prototype,Symbol.toStringTag).get;[Int8Array,Int16Array,Int32Array,Uint8Array,Uint16Array,Uint32Array,Uint8ClampedArray,Float32Array,Float64Array].forEach((e=>{const{name:r}=e,i=/^[AEIOU]/u.test(r)?"an":"a";t[r]=(e,t={})=>{if(!ArrayBuffer.isView(e)||g.call(e)!==r)throw n(TypeError,`is not ${i} ${r} object`,t);if(!t.allowShared&&d(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}})),t.ArrayBufferView=(e,t={})=>{if(!ArrayBuffer.isView(e))throw n(TypeError,"is not a view on an ArrayBuffer or SharedArrayBuffer",t);if(!t.allowShared&&d(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e},t.BufferSource=(e,t={})=>{if(ArrayBuffer.isView(e)){if(!t.allowShared&&d(e.buffer))throw n(TypeError,"is a view on a SharedArrayBuffer, which is not allowed",t);if(f(e.buffer))throw n(TypeError,"is a view on a detached ArrayBuffer",t);return e}if(!t.allowShared&&!h(e))throw n(TypeError,"is not an ArrayBuffer or a view on one",t);if(t.allowShared&&!d(e)&&!h(e))throw n(TypeError,"is not an ArrayBuffer, SharedArrayBuffer, or a view on one",t);if(f(e))throw n(TypeError,"is a detached ArrayBuffer",t);return e},t.DOMTimeStamp=t["unsigned long long"]},4159:(e,t,n)=>{"use strict";const{URL:r,URLSearchParams:i}=n(6396),s=n(1002),o=n(7689),a={Array,Object,Promise,String,TypeError};r.install(a,["Window"]),i.install(a,["Window"]),t.URL=a.URL,t.URLSearchParams=a.URLSearchParams,t.parseURL=s.parseURL,t.basicURLParse=s.basicURLParse,t.serializeURL=s.serializeURL,t.serializePath=s.serializePath,t.serializeHost=s.serializeHost,t.serializeInteger=s.serializeInteger,t.serializeURLOrigin=s.serializeURLOrigin,t.setTheUsername=s.setTheUsername,t.setThePassword=s.setThePassword,t.cannotHaveAUsernamePasswordPort=s.cannotHaveAUsernamePasswordPort,t.hasAnOpaquePath=s.hasAnOpaquePath,t.percentDecodeString=o.percentDecodeString,t.percentDecodeBytes=o.percentDecodeBytes},9353:(e,t,n)=>{"use strict";const r=n(5292),i=n(7118);t.convert=(e,t,{context:n="The provided value"}={})=>{if("function"!=typeof t)throw new e.TypeError(n+" is not a function");function s(...s){const o=i.tryWrapperForImpl(this);let a;for(let e=0;e<s.length;e++)s[e]=i.tryWrapperForImpl(s[e]);return a=Reflect.apply(t,o,s),a=r.any(a,{context:n,globals:e}),a}return s.construct=(...s)=>{for(let e=0;e<s.length;e++)s[e]=i.tryWrapperForImpl(s[e]);let o=Reflect.construct(t,s);return o=r.any(o,{context:n,globals:e}),o},s[i.wrapperSymbol]=t,s.objectReference=t,s}},11:(e,t,n)=>{"use strict";const r=n(1002),i=n(6655),s=n(15);t.implementation=class{constructor(e,t){const n=t[0],i=t[1];let o=null;if(void 0!==i&&(o=r.basicURLParse(i),null===o))throw new TypeError(`Invalid base URL: ${i}`);const a=r.basicURLParse(n,{baseURL:o});if(null===a)throw new TypeError(`Invalid URL: ${n}`);const u=null!==a.query?a.query:"";this._url=a,this._query=s.createImpl(e,[u],{doNotStripQMark:!0}),this._query._url=this}get href(){return r.serializeURL(this._url)}set href(e){const t=r.basicURLParse(e);if(null===t)throw new TypeError(`Invalid URL: ${e}`);this._url=t,this._query._list.splice(0);const{query:n}=t;null!==n&&(this._query._list=i.parseUrlencodedString(n))}get origin(){return r.serializeURLOrigin(this._url)}get protocol(){return`${this._url.scheme}:`}set protocol(e){r.basicURLParse(`${e}:`,{url:this._url,stateOverride:"scheme start"})}get username(){return this._url.username}set username(e){r.cannotHaveAUsernamePasswordPort(this._url)||r.setTheUsername(this._url,e)}get password(){return this._url.password}set password(e){r.cannotHaveAUsernamePasswordPort(this._url)||r.setThePassword(this._url,e)}get host(){const e=this._url;return null===e.host?"":null===e.port?r.serializeHost(e.host):`${r.serializeHost(e.host)}:${r.serializeInteger(e.port)}`}set host(e){r.hasAnOpaquePath(this._url)||r.basicURLParse(e,{url:this._url,stateOverride:"host"})}get hostname(){return null===this._url.host?"":r.serializeHost(this._url.host)}set hostname(e){r.hasAnOpaquePath(this._url)||r.basicURLParse(e,{url:this._url,stateOverride:"hostname"})}get port(){return null===this._url.port?"":r.serializeInteger(this._url.port)}set port(e){r.cannotHaveAUsernamePasswordPort(this._url)||(""===e?this._url.port=null:r.basicURLParse(e,{url:this._url,stateOverride:"port"}))}get pathname(){return r.serializePath(this._url)}set pathname(e){r.hasAnOpaquePath(this._url)||(this._url.path=[],r.basicURLParse(e,{url:this._url,stateOverride:"path start"}))}get search(){return null===this._url.query||""===this._url.query?"":`?${this._url.query}`}set search(e){const t=this._url;if(""===e)return t.query=null,void(this._query._list=[]);const n="?"===e[0]?e.substring(1):e;t.query="",r.basicURLParse(n,{url:t,stateOverride:"query"}),this._query._list=i.parseUrlencodedString(n)}get searchParams(){return this._query}get hash(){return null===this._url.fragment||""===this._url.fragment?"":`#${this._url.fragment}`}set hash(e){if(""===e)return void(this._url.fragment=null);const t="#"===e[0]?e.substring(1):e;this._url.fragment="",r.basicURLParse(t,{url:this._url,stateOverride:"fragment"})}toJSON(){return this.href}}},9415:(e,t,n)=>{"use strict";const r=n(5292),i=n(7118),s=i.implSymbol,o=i.ctorRegistrySymbol;function a(e,t){let n;return void 0!==t&&(n=t.prototype),i.isObject(n)||(n=e[o].URL.prototype),Object.create(n)}t.is=e=>i.isObject(e)&&i.hasOwn(e,s)&&e[s]instanceof l.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof l.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return i.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URL'.`)},t.create=(e,n,r)=>{const i=a(e);return t.setup(i,e,n,r)},t.createImpl=(e,n,r)=>{const s=t.create(e,n,r);return i.implForWrapper(s)},t._internalSetup=(e,t)=>{},t.setup=(e,n,r=[],o={})=>(o.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,s,{value:new l.implementation(n,r,o),configurable:!0}),e[s][i.wrapperSymbol]=e,l.init&&l.init(e[s]),e),t.new=(e,n)=>{const r=a(e,n);return t._internalSetup(r,e),Object.defineProperty(r,s,{value:Object.create(l.implementation.prototype),configurable:!0}),r[s][i.wrapperSymbol]=r,l.init&&l.init(r[s]),r[s]};const u=new Set(["Window","Worker"]);t.install=(e,n)=>{if(!n.some((e=>u.has(e))))return;const o=i.initCtorRegistry(e);class a{constructor(n){if(arguments.length<1)throw new e.TypeError(`Failed to construct 'URL': 1 argument required, but only ${arguments.length} present.`);const i=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to construct 'URL': parameter 1",globals:e}),i.push(t)}{let t=arguments[1];void 0!==t&&(t=r.USVString(t,{context:"Failed to construct 'URL': parameter 2",globals:e})),i.push(t)}return t.setup(Object.create(new.target.prototype),e,i)}toJSON(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'toJSON' called on an object that is not a valid instance of URL.");return n[s].toJSON()}get href(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get href' called on an object that is not a valid instance of URL.");return n[s].href}set href(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set href' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'href' property on 'URL': The provided value",globals:e}),i[s].href=n}toString(){if(!t.is(this))throw new e.TypeError("'toString' called on an object that is not a valid instance of URL.");return this[s].href}get origin(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get origin' called on an object that is not a valid instance of URL.");return n[s].origin}get protocol(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get protocol' called on an object that is not a valid instance of URL.");return n[s].protocol}set protocol(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set protocol' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'protocol' property on 'URL': The provided value",globals:e}),i[s].protocol=n}get username(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get username' called on an object that is not a valid instance of URL.");return n[s].username}set username(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set username' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'username' property on 'URL': The provided value",globals:e}),i[s].username=n}get password(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get password' called on an object that is not a valid instance of URL.");return n[s].password}set password(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set password' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'password' property on 'URL': The provided value",globals:e}),i[s].password=n}get host(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get host' called on an object that is not a valid instance of URL.");return n[s].host}set host(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set host' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'host' property on 'URL': The provided value",globals:e}),i[s].host=n}get hostname(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get hostname' called on an object that is not a valid instance of URL.");return n[s].hostname}set hostname(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hostname' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'hostname' property on 'URL': The provided value",globals:e}),i[s].hostname=n}get port(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get port' called on an object that is not a valid instance of URL.");return n[s].port}set port(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set port' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'port' property on 'URL': The provided value",globals:e}),i[s].port=n}get pathname(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get pathname' called on an object that is not a valid instance of URL.");return n[s].pathname}set pathname(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set pathname' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'pathname' property on 'URL': The provided value",globals:e}),i[s].pathname=n}get search(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get search' called on an object that is not a valid instance of URL.");return n[s].search}set search(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set search' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'search' property on 'URL': The provided value",globals:e}),i[s].search=n}get searchParams(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get searchParams' called on an object that is not a valid instance of URL.");return i.getSameObject(this,"searchParams",(()=>i.tryWrapperForImpl(n[s].searchParams)))}get hash(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'get hash' called on an object that is not a valid instance of URL.");return n[s].hash}set hash(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'set hash' called on an object that is not a valid instance of URL.");n=r.USVString(n,{context:"Failed to set the 'hash' property on 'URL': The provided value",globals:e}),i[s].hash=n}}Object.defineProperties(a.prototype,{toJSON:{enumerable:!0},href:{enumerable:!0},toString:{enumerable:!0},origin:{enumerable:!0},protocol:{enumerable:!0},username:{enumerable:!0},password:{enumerable:!0},host:{enumerable:!0},hostname:{enumerable:!0},port:{enumerable:!0},pathname:{enumerable:!0},search:{enumerable:!0},searchParams:{enumerable:!0},hash:{enumerable:!0},[Symbol.toStringTag]:{value:"URL",configurable:!0}}),o.URL=a,Object.defineProperty(e,"URL",{configurable:!0,writable:!0,value:a}),n.includes("Window")&&Object.defineProperty(e,"webkitURL",{configurable:!0,writable:!0,value:a})};const l=n(11)},2082:(e,t,n)=>{"use strict";const r=n(6655);t.implementation=class{constructor(e,t,{doNotStripQMark:n=!1}){let i=t[0];if(this._list=[],this._url=null,n||"string"!=typeof i||"?"!==i[0]||(i=i.slice(1)),Array.isArray(i))for(const e of i){if(2!==e.length)throw new TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element does not contain exactly two elements.");this._list.push([e[0],e[1]])}else if("object"==typeof i&&null===Object.getPrototypeOf(i))for(const e of Object.keys(i)){const t=i[e];this._list.push([e,t])}else this._list=r.parseUrlencodedString(i)}_updateSteps(){if(null!==this._url){let e=r.serializeUrlencoded(this._list);""===e&&(e=null),this._url._url.query=e}}append(e,t){this._list.push([e,t]),this._updateSteps()}delete(e){let t=0;for(;t<this._list.length;)this._list[t][0]===e?this._list.splice(t,1):t++;this._updateSteps()}get(e){for(const t of this._list)if(t[0]===e)return t[1];return null}getAll(e){const t=[];for(const n of this._list)n[0]===e&&t.push(n[1]);return t}has(e){for(const t of this._list)if(t[0]===e)return!0;return!1}set(e,t){let n=!1,r=0;for(;r<this._list.length;)this._list[r][0]===e?n?this._list.splice(r,1):(n=!0,this._list[r][1]=t,r++):r++;n||this._list.push([e,t]),this._updateSteps()}sort(){this._list.sort(((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0)),this._updateSteps()}[Symbol.iterator](){return this._list[Symbol.iterator]()}toString(){return r.serializeUrlencoded(this._list)}}},15:(e,t,n)=>{"use strict";const r=n(5292),i=n(7118),s=n(9353),o=i.newObjectInRealm,a=i.implSymbol,u=i.ctorRegistrySymbol,l="URLSearchParams";function c(e,t){let n;return void 0!==t&&(n=t.prototype),i.isObject(n)||(n=e[u].URLSearchParams.prototype),Object.create(n)}t.is=e=>i.isObject(e)&&i.hasOwn(e,a)&&e[a]instanceof h.implementation,t.isImpl=e=>i.isObject(e)&&e instanceof h.implementation,t.convert=(e,n,{context:r="The provided value"}={})=>{if(t.is(n))return i.implForWrapper(n);throw new e.TypeError(`${r} is not of type 'URLSearchParams'.`)},t.createDefaultIterator=(e,t,n)=>{const r=e[u]["URLSearchParams Iterator"],s=Object.create(r);return Object.defineProperty(s,i.iterInternalSymbol,{value:{target:t,kind:n,index:0},configurable:!0}),s},t.create=(e,n,r)=>{const i=c(e);return t.setup(i,e,n,r)},t.createImpl=(e,n,r)=>{const s=t.create(e,n,r);return i.implForWrapper(s)},t._internalSetup=(e,t)=>{},t.setup=(e,n,r=[],s={})=>(s.wrapper=e,t._internalSetup(e,n),Object.defineProperty(e,a,{value:new h.implementation(n,r,s),configurable:!0}),e[a][i.wrapperSymbol]=e,h.init&&h.init(e[a]),e),t.new=(e,n)=>{const r=c(e,n);return t._internalSetup(r,e),Object.defineProperty(r,a,{value:Object.create(h.implementation.prototype),configurable:!0}),r[a][i.wrapperSymbol]=r,h.init&&h.init(r[a]),r[a]};const p=new Set(["Window","Worker"]);t.install=(e,n)=>{if(!n.some((e=>p.has(e))))return;const u=i.initCtorRegistry(e);class c{constructor(){const n=[];{let t=arguments[0];if(void 0!==t)if(i.isObject(t))if(void 0!==t[Symbol.iterator]){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence is not an iterable object.");{const n=[],s=t;for(let t of s){if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 sequence's element is not an iterable object.");{const n=[],i=t;for(let t of i)t=r.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1 sequence's element's element",globals:e}),n.push(t);t=n}n.push(t)}t=n}}else{if(!i.isObject(t))throw new e.TypeError("Failed to construct 'URLSearchParams': parameter 1 record is not an object.");{const n=Object.create(null);for(const i of Reflect.ownKeys(t)){const s=Object.getOwnPropertyDescriptor(t,i);if(s&&s.enumerable){let s=i;s=r.USVString(s,{context:"Failed to construct 'URLSearchParams': parameter 1 record's key",globals:e});let o=t[i];o=r.USVString(o,{context:"Failed to construct 'URLSearchParams': parameter 1 record's value",globals:e}),n[s]=o}}t=n}}else t=r.USVString(t,{context:"Failed to construct 'URLSearchParams': parameter 1",globals:e});else t="";n.push(t)}return t.setup(Object.create(new.target.prototype),e,n)}append(n,s){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'append' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'append' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=r.USVString(t,{context:"Failed to execute 'append' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return i.tryWrapperForImpl(o[a].append(...u))}delete(n){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'delete' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'delete' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'delete' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i.tryWrapperForImpl(s[a].delete(...o))}get(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'get' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'get' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'get' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return i[a].get(...s)}getAll(n){const s=null!=this?this:e;if(!t.is(s))throw new e.TypeError("'getAll' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'getAll' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const o=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'getAll' on 'URLSearchParams': parameter 1",globals:e}),o.push(t)}return i.tryWrapperForImpl(s[a].getAll(...o))}has(n){const i=null!=this?this:e;if(!t.is(i))throw new e.TypeError("'has' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError(`Failed to execute 'has' on 'URLSearchParams': 1 argument required, but only ${arguments.length} present.`);const s=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'has' on 'URLSearchParams': parameter 1",globals:e}),s.push(t)}return i[a].has(...s)}set(n,s){const o=null!=this?this:e;if(!t.is(o))throw new e.TypeError("'set' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<2)throw new e.TypeError(`Failed to execute 'set' on 'URLSearchParams': 2 arguments required, but only ${arguments.length} present.`);const u=[];{let t=arguments[0];t=r.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 1",globals:e}),u.push(t)}{let t=arguments[1];t=r.USVString(t,{context:"Failed to execute 'set' on 'URLSearchParams': parameter 2",globals:e}),u.push(t)}return i.tryWrapperForImpl(o[a].set(...u))}sort(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'sort' called on an object that is not a valid instance of URLSearchParams.");return i.tryWrapperForImpl(n[a].sort())}toString(){const n=null!=this?this:e;if(!t.is(n))throw new e.TypeError("'toString' called on an object that is not a valid instance of URLSearchParams.");return n[a].toString()}keys(){if(!t.is(this))throw new e.TypeError("'keys' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key")}values(){if(!t.is(this))throw new e.TypeError("'values' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"value")}entries(){if(!t.is(this))throw new e.TypeError("'entries' called on an object that is not a valid instance of URLSearchParams.");return t.createDefaultIterator(e,this,"key+value")}forEach(n){if(!t.is(this))throw new e.TypeError("'forEach' called on an object that is not a valid instance of URLSearchParams.");if(arguments.length<1)throw new e.TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, but only 0 present.");n=s.convert(e,n,{context:"Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"});const r=arguments[1];let o=Array.from(this[a]),u=0;for(;u<o.length;){const[e,t]=o[u].map(i.tryWrapperForImpl);n.call(r,t,e,this),o=Array.from(this[a]),u++}}}Object.defineProperties(c.prototype,{append:{enumerable:!0},delete:{enumerable:!0},get:{enumerable:!0},getAll:{enumerable:!0},has:{enumerable:!0},set:{enumerable:!0},sort:{enumerable:!0},toString:{enumerable:!0},keys:{enumerable:!0},values:{enumerable:!0},entries:{enumerable:!0},forEach:{enumerable:!0},[Symbol.toStringTag]:{value:"URLSearchParams",configurable:!0},[Symbol.iterator]:{value:c.prototype.entries,configurable:!0,writable:!0}}),u[l]=c,u["URLSearchParams Iterator"]=Object.create(u["%IteratorPrototype%"],{[Symbol.toStringTag]:{configurable:!0,value:"URLSearchParams Iterator"}}),i.define(u["URLSearchParams Iterator"],{next(){const t=this&&this[i.iterInternalSymbol];if(!t)throw new e.TypeError("next() called on a value that is not a URLSearchParams iterator object");const{target:n,kind:r,index:s}=t,u=Array.from(n[a]);if(s>=u.length)return o(e,{value:void 0,done:!0});const l=u[s];return t.index=s+1,o(e,i.iteratorResult(l.map(i.tryWrapperForImpl),r))}}),Object.defineProperty(e,l,{configurable:!0,writable:!0,value:c})};const h=n(2082)},8359:e=>{"use strict";const t=new TextEncoder,n=new TextDecoder("utf-8",{ignoreBOM:!0});e.exports={utf8Encode:function(e){return t.encode(e)},utf8DecodeWithoutBOM:function(e){return n.decode(e)}}},5485:e=>{"use strict";function t(e){return e>=48&&e<=57}function n(e){return e>=65&&e<=90||e>=97&&e<=122}e.exports={isASCIIDigit:t,isASCIIAlpha:n,isASCIIAlphanumeric:function(e){return n(e)||t(e)},isASCIIHex:function(e){return t(e)||e>=65&&e<=70||e>=97&&e<=102}}},7689:(e,t,n)=>{"use strict";const{isASCIIHex:r}=n(5485),{utf8Encode:i}=n(8359);function s(e){return e.codePointAt(0)}function o(e){let t=e.toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),`%${t}`}function a(e){const t=new Uint8Array(e.byteLength);let n=0;for(let i=0;i<e.byteLength;++i){const s=e[i];if(37!==s)t[n++]=s;else if(37!==s||r(e[i+1])&&r(e[i+2])){const r=parseInt(String.fromCodePoint(e[i+1],e[i+2]),16);t[n++]=r,i+=2}else t[n++]=s}return t.slice(0,n)}function u(e){return e<=31||e>126}const l=new Set([s(" "),s('"'),s("<"),s(">"),s("`")]),c=new Set([s(" "),s('"'),s("#"),s("<"),s(">")]);function p(e){return u(e)||c.has(e)}const h=new Set([s("?"),s("`"),s("{"),s("}")]);function d(e){return p(e)||h.has(e)}const f=new Set([s("/"),s(":"),s(";"),s("="),s("@"),s("["),s("\\"),s("]"),s("^"),s("|")]);function m(e){return d(e)||f.has(e)}const g=new Set([s("$"),s("%"),s("&"),s("+"),s(",")]),E=new Set([s("!"),s("'"),s("("),s(")"),s("~")]);function y(e,t){const n=i(e);let r="";for(const e of n)t(e)?r+=o(e):r+=String.fromCharCode(e);return r}e.exports={isC0ControlPercentEncode:u,isFragmentPercentEncode:function(e){return u(e)||l.has(e)},isQueryPercentEncode:p,isSpecialQueryPercentEncode:function(e){return p(e)||e===s("'")},isPathPercentEncode:d,isUserinfoPercentEncode:m,isURLEncodedPercentEncode:function(e){return function(e){return m(e)||g.has(e)}(e)||E.has(e)},percentDecodeString:function(e){return a(i(e))},percentDecodeBytes:a,utf8PercentEncodeString:function(e,t,n=!1){let r="";for(const i of e)r+=n&&" "===i?"+":y(i,t);return r},utf8PercentEncodeCodePoint:function(e,t){return y(String.fromCodePoint(e),t)}}},1002:(e,t,n)=>{"use strict";const r=n(6843),i=n(5485),{utf8DecodeWithoutBOM:s}=n(8359),{percentDecodeString:o,utf8PercentEncodeCodePoint:a,utf8PercentEncodeString:u,isC0ControlPercentEncode:l,isFragmentPercentEncode:c,isQueryPercentEncode:p,isSpecialQueryPercentEncode:h,isPathPercentEncode:d,isUserinfoPercentEncode:f}=n(7689);function m(e){return e.codePointAt(0)}const g={ftp:21,file:null,http:80,https:443,ws:80,wss:443},E=Symbol("failure");function y(e){return[...e].length}function v(e,t){const n=e[t];return isNaN(n)?void 0:String.fromCodePoint(n)}function A(e){return"."===e||"%2e"===e.toLowerCase()}function C(e){return 2===e.length&&i.isASCIIAlpha(e.codePointAt(0))&&(":"===e[1]||"|"===e[1])}function b(e){return void 0!==g[e]}function S(e){return b(e.scheme)}function x(e){return!b(e.scheme)}function w(e){return g[e]}function D(e){if(""===e)return E;let t=10;if(e.length>=2&&"0"===e.charAt(0)&&"x"===e.charAt(1).toLowerCase()?(e=e.substring(2),t=16):e.length>=2&&"0"===e.charAt(0)&&(e=e.substring(1),t=8),""===e)return 0;let n=/[^0-7]/u;return 10===t&&(n=/[^0-9]/u),16===t&&(n=/[^0-9A-Fa-f]/u),n.test(e)?E:parseInt(e,t)}function _(e,t=!1){if("["===e[0])return"]"!==e[e.length-1]?E:function(e){const t=[0,0,0,0,0,0,0,0];let n=0,r=null,s=0;if((e=Array.from(e,(e=>e.codePointAt(0))))[s]===m(":")){if(e[s+1]!==m(":"))return E;s+=2,++n,r=n}for(;s<e.length;){if(8===n)return E;if(e[s]===m(":")){if(null!==r)return E;++s,++n,r=n;continue}let o=0,a=0;for(;a<4&&i.isASCIIHex(e[s]);)o=16*o+parseInt(v(e,s),16),++s,++a;if(e[s]===m(".")){if(0===a)return E;if(s-=a,n>6)return E;let r=0;for(;void 0!==e[s];){let o=null;if(r>0){if(!(e[s]===m(".")&&r<4))return E;++s}if(!i.isASCIIDigit(e[s]))return E;for(;i.isASCIIDigit(e[s]);){const t=parseInt(v(e,s));if(null===o)o=t;else{if(0===o)return E;o=10*o+t}if(o>255)return E;++s}t[n]=256*t[n]+o,++r,2!==r&&4!==r||++n}if(4!==r)return E;break}if(e[s]===m(":")){if(++s,void 0===e[s])return E}else if(void 0!==e[s])return E;t[n]=o,++n}if(null!==r){let e=n-r;for(n=7;0!==n&&e>0;){const i=t[r+e-1];t[r+e-1]=t[n],t[n]=i,--n,--e}}else if(null===r&&8!==n)return E;return t}(e.substring(1,e.length-1));if(t)return function(e){return-1!==e.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?E:u(e,l)}(e);const n=function(e,t=!1){const n=r.toASCII(e,{checkBidi:!0,checkHyphens:!1,checkJoiners:!0,useSTD3ASCIIRules:t,verifyDNSLength:t});return null===n||""===n?E:n}(s(o(e)));return n===E||-1!==n.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|%|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)?E:function(e){const t=e.split(".");if(""===t[t.length-1]){if(1===t.length)return!1;t.pop()}const n=t[t.length-1];return D(n)!==E||!!/^[0-9]+$/u.test(n)}(n)?function(e){const t=e.split(".");if(""===t[t.length-1]&&t.length>1&&t.pop(),t.length>4)return E;const n=[];for(const e of t){const t=D(e);if(t===E)return E;n.push(t)}for(let e=0;e<n.length-1;++e)if(n[e]>255)return E;if(n[n.length-1]>=256**(5-n.length))return E;let r=n.pop(),i=0;for(const e of n)r+=e*256**(3-i),++i;return r}(n):n}function O(e){return"number"==typeof e?function(e){let t="",n=e;for(let e=1;e<=4;++e)t=String(n%256)+t,4!==e&&(t=`.${t}`),n=Math.floor(n/256);return t}(e):e instanceof Array?`[${function(e){let t="";const n=function(e){let t=null,n=1,r=null,i=0;for(let s=0;s<e.length;++s)0!==e[s]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=s),++i);return i>n?r:t}(e);let r=!1;for(let i=0;i<=7;++i)r&&0===e[i]||(r&&(r=!1),n!==i?(t+=e[i].toString(16),7!==i&&(t+=":")):(t+=0===i?"::":":",r=!0));return t}(e)}]`:e}function F(e){const{path:t}=e;var n;0!==t.length&&("file"===e.scheme&&1===t.length&&(n=t[0],/^[A-Za-z]:$/u.test(n))||t.pop())}function T(e){return""!==e.username||""!==e.password}function B(e){return"string"==typeof e.path}function k(e,t,n,r,i){if(this.pointer=0,this.input=e,this.base=t||null,this.encodingOverride=n||"utf-8",this.stateOverride=i,this.url=r,this.failure=!1,this.parseError=!1,!this.url){this.url={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null};const e=function(e){return e.replace(/^[\u0000-\u001F\u0020]+|[\u0000-\u001F\u0020]+$/gu,"")}(this.input);e!==this.input&&(this.parseError=!0),this.input=e}const s=function(e){return e.replace(/\u0009|\u000A|\u000D/gu,"")}(this.input);for(s!==this.input&&(this.parseError=!0),this.input=s,this.state=i||"scheme start",this.buffer="",this.atFlag=!1,this.arrFlag=!1,this.passwordTokenSeenFlag=!1,this.input=Array.from(this.input,(e=>e.codePointAt(0)));this.pointer<=this.input.length;++this.pointer){const e=this.input[this.pointer],t=isNaN(e)?void 0:String.fromCodePoint(e),n=this[`parse ${this.state}`](e,t);if(!n)break;if(n===E){this.failure=!0;break}}}k.prototype["parse scheme start"]=function(e,t){if(i.isASCIIAlpha(e))this.buffer+=t.toLowerCase(),this.state="scheme";else{if(this.stateOverride)return this.parseError=!0,E;this.state="no scheme",--this.pointer}return!0},k.prototype["parse scheme"]=function(e,t){if(i.isASCIIAlphanumeric(e)||e===m("+")||e===m("-")||e===m("."))this.buffer+=t.toLowerCase();else if(e===m(":")){if(this.stateOverride){if(S(this.url)&&!b(this.buffer))return!1;if(!S(this.url)&&b(this.buffer))return!1;if((T(this.url)||null!==this.url.port)&&"file"===this.buffer)return!1;if("file"===this.url.scheme&&""===this.url.host)return!1}if(this.url.scheme=this.buffer,this.stateOverride)return this.url.port===w(this.url.scheme)&&(this.url.port=null),!1;this.buffer="","file"===this.url.scheme?(this.input[this.pointer+1]===m("/")&&this.input[this.pointer+2]===m("/")||(this.parseError=!0),this.state="file"):S(this.url)&&null!==this.base&&this.base.scheme===this.url.scheme?this.state="special relative or authority":S(this.url)?this.state="special authority slashes":this.input[this.pointer+1]===m("/")?(this.state="path or authority",++this.pointer):(this.url.path="",this.state="opaque path")}else{if(this.stateOverride)return this.parseError=!0,E;this.buffer="",this.state="no scheme",this.pointer=-1}return!0},k.prototype["parse no scheme"]=function(e){return null===this.base||B(this.base)&&e!==m("#")?E:(B(this.base)&&e===m("#")?(this.url.scheme=this.base.scheme,this.url.path=this.base.path,this.url.query=this.base.query,this.url.fragment="",this.state="fragment"):"file"===this.base.scheme?(this.state="file",--this.pointer):(this.state="relative",--this.pointer),!0)},k.prototype["parse special relative or authority"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="relative",--this.pointer),!0},k.prototype["parse path or authority"]=function(e){return e===m("/")?this.state="authority":(this.state="path",--this.pointer),!0},k.prototype["parse relative"]=function(e){return this.url.scheme=this.base.scheme,e===m("/")?this.state="relative slash":S(this.url)&&e===m("\\")?(this.parseError=!0,this.state="relative slash"):(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,this.url.path.pop(),this.state="path",--this.pointer)),!0},k.prototype["parse relative slash"]=function(e){return!S(this.url)||e!==m("/")&&e!==m("\\")?e===m("/")?this.state="authority":(this.url.username=this.base.username,this.url.password=this.base.password,this.url.host=this.base.host,this.url.port=this.base.port,this.state="path",--this.pointer):(e===m("\\")&&(this.parseError=!0),this.state="special authority ignore slashes"),!0},k.prototype["parse special authority slashes"]=function(e){return e===m("/")&&this.input[this.pointer+1]===m("/")?(this.state="special authority ignore slashes",++this.pointer):(this.parseError=!0,this.state="special authority ignore slashes",--this.pointer),!0},k.prototype["parse special authority ignore slashes"]=function(e){return e!==m("/")&&e!==m("\\")?(this.state="authority",--this.pointer):this.parseError=!0,!0},k.prototype["parse authority"]=function(e,t){if(e===m("@")){this.parseError=!0,this.atFlag&&(this.buffer=`%40${this.buffer}`),this.atFlag=!0;const e=y(this.buffer);for(let t=0;t<e;++t){const e=this.buffer.codePointAt(t);if(e===m(":")&&!this.passwordTokenSeenFlag){this.passwordTokenSeenFlag=!0;continue}const n=a(e,f);this.passwordTokenSeenFlag?this.url.password+=n:this.url.username+=n}this.buffer=""}else if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(this.atFlag&&""===this.buffer)return this.parseError=!0,E;this.pointer-=y(this.buffer)+1,this.buffer="",this.state="host"}else this.buffer+=t;return!0},k.prototype["parse hostname"]=k.prototype["parse host"]=function(e,t){if(this.stateOverride&&"file"===this.url.scheme)--this.pointer,this.state="file host";else if(e!==m(":")||this.arrFlag)if(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")){if(--this.pointer,S(this.url)&&""===this.buffer)return this.parseError=!0,E;if(this.stateOverride&&""===this.buffer&&(T(this.url)||null!==this.url.port))return this.parseError=!0,!1;const e=_(this.buffer,x(this.url));if(e===E)return E;if(this.url.host=e,this.buffer="",this.state="path start",this.stateOverride)return!1}else e===m("[")?this.arrFlag=!0:e===m("]")&&(this.arrFlag=!1),this.buffer+=t;else{if(""===this.buffer)return this.parseError=!0,E;if("hostname"===this.stateOverride)return!1;const e=_(this.buffer,x(this.url));if(e===E)return E;this.url.host=e,this.buffer="",this.state="port"}return!0},k.prototype["parse port"]=function(e,t){if(i.isASCIIDigit(e))this.buffer+=t;else{if(!(isNaN(e)||e===m("/")||e===m("?")||e===m("#")||S(this.url)&&e===m("\\")||this.stateOverride))return this.parseError=!0,E;if(""!==this.buffer){const e=parseInt(this.buffer);if(e>65535)return this.parseError=!0,E;this.url.port=e===w(this.url.scheme)?null:e,this.buffer=""}if(this.stateOverride)return!1;this.state="path start",--this.pointer}return!0};const R=new Set([m("/"),m("\\"),m("?"),m("#")]);function I(e,t){const n=e.length-t;return n>=2&&(r=e[t],s=e[t+1],i.isASCIIAlpha(r)&&(s===m(":")||s===m("|")))&&(2===n||R.has(e[t+2]));var r,s}function N(e){if(B(e))return e.path;let t="";for(const n of e.path)t+=`/${n}`;return t}k.prototype["parse file"]=function(e){return this.url.scheme="file",this.url.host="",e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file slash"):null!==this.base&&"file"===this.base.scheme?(this.url.host=this.base.host,this.url.path=this.base.path.slice(),this.url.query=this.base.query,e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):isNaN(e)||(this.url.query=null,I(this.input,this.pointer)?(this.parseError=!0,this.url.path=[]):F(this.url),this.state="path",--this.pointer)):(this.state="path",--this.pointer),!0},k.prototype["parse file slash"]=function(e){var t;return e===m("/")||e===m("\\")?(e===m("\\")&&(this.parseError=!0),this.state="file host"):(null!==this.base&&"file"===this.base.scheme&&(!I(this.input,this.pointer)&&2===(t=this.base.path[0]).length&&i.isASCIIAlpha(t.codePointAt(0))&&":"===t[1]&&this.url.path.push(this.base.path[0]),this.url.host=this.base.host),this.state="path",--this.pointer),!0},k.prototype["parse file host"]=function(e,t){if(isNaN(e)||e===m("/")||e===m("\\")||e===m("?")||e===m("#"))if(--this.pointer,!this.stateOverride&&C(this.buffer))this.parseError=!0,this.state="path";else if(""===this.buffer){if(this.url.host="",this.stateOverride)return!1;this.state="path start"}else{let e=_(this.buffer,x(this.url));if(e===E)return E;if("localhost"===e&&(e=""),this.url.host=e,this.stateOverride)return!1;this.buffer="",this.state="path start"}else this.buffer+=t;return!0},k.prototype["parse path start"]=function(e){return S(this.url)?(e===m("\\")&&(this.parseError=!0),this.state="path",e!==m("/")&&e!==m("\\")&&--this.pointer):this.stateOverride||e!==m("?")?this.stateOverride||e!==m("#")?void 0!==e?(this.state="path",e!==m("/")&&--this.pointer):this.stateOverride&&null===this.url.host&&this.url.path.push(""):(this.url.fragment="",this.state="fragment"):(this.url.query="",this.state="query"),!0},k.prototype["parse path"]=function(e){var t;return isNaN(e)||e===m("/")||S(this.url)&&e===m("\\")||!this.stateOverride&&(e===m("?")||e===m("#"))?(S(this.url)&&e===m("\\")&&(this.parseError=!0),".."===(t=(t=this.buffer).toLowerCase())||"%2e."===t||".%2e"===t||"%2e%2e"===t?(F(this.url),e===m("/")||S(this.url)&&e===m("\\")||this.url.path.push("")):!A(this.buffer)||e===m("/")||S(this.url)&&e===m("\\")?A(this.buffer)||("file"===this.url.scheme&&0===this.url.path.length&&C(this.buffer)&&(this.buffer=`${this.buffer[0]}:`),this.url.path.push(this.buffer)):this.url.path.push(""),this.buffer="",e===m("?")&&(this.url.query="",this.state="query"),e===m("#")&&(this.url.fragment="",this.state="fragment")):(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=a(e,d)),!0},k.prototype["parse opaque path"]=function(e){return e===m("?")?(this.url.query="",this.state="query"):e===m("#")?(this.url.fragment="",this.state="fragment"):(isNaN(e)||e===m("%")||(this.parseError=!0),e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),isNaN(e)||(this.url.path+=a(e,l))),!0},k.prototype["parse query"]=function(e,t){if(S(this.url)&&"ws"!==this.url.scheme&&"wss"!==this.url.scheme||(this.encodingOverride="utf-8"),!this.stateOverride&&e===m("#")||isNaN(e)){const t=S(this.url)?h:p;this.url.query+=u(this.buffer,t),this.buffer="",e===m("#")&&(this.url.fragment="",this.state="fragment")}else isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.buffer+=t);return!0},k.prototype["parse fragment"]=function(e){return isNaN(e)||(e!==m("%")||i.isASCIIHex(this.input[this.pointer+1])&&i.isASCIIHex(this.input[this.pointer+2])||(this.parseError=!0),this.url.fragment+=a(e,c)),!0},e.exports.serializeURL=function(e,t){let n=`${e.scheme}:`;return null!==e.host&&(n+="//",""===e.username&&""===e.password||(n+=e.username,""!==e.password&&(n+=`:${e.password}`),n+="@"),n+=O(e.host),null!==e.port&&(n+=`:${e.port}`)),null===e.host&&!B(e)&&e.path.length>1&&""===e.path[0]&&(n+="/."),n+=N(e),null!==e.query&&(n+=`?${e.query}`),t||null===e.fragment||(n+=`#${e.fragment}`),n},e.exports.serializePath=N,e.exports.serializeURLOrigin=function(t){switch(t.scheme){case"blob":try{return e.exports.serializeURLOrigin(e.exports.parseURL(N(t)))}catch(e){return"null"}case"ftp":case"http":case"https":case"ws":case"wss":return function(e){let t=`${e.scheme}://`;return t+=O(e.host),null!==e.port&&(t+=`:${e.port}`),t}({scheme:t.scheme,host:t.host,port:t.port});default:return"null"}},e.exports.basicURLParse=function(e,t){void 0===t&&(t={});const n=new k(e,t.baseURL,t.encodingOverride,t.url,t.stateOverride);return n.failure?null:n.url},e.exports.setTheUsername=function(e,t){e.username=u(t,f)},e.exports.setThePassword=function(e,t){e.password=u(t,f)},e.exports.serializeHost=O,e.exports.cannotHaveAUsernamePasswordPort=function(e){return null===e.host||""===e.host||B(e)||"file"===e.scheme},e.exports.hasAnOpaquePath=B,e.exports.serializeInteger=function(e){return String(e)},e.exports.parseURL=function(t,n){return void 0===n&&(n={}),e.exports.basicURLParse(t,{baseURL:n.baseURL,encodingOverride:n.encodingOverride})}},6655:(e,t,n)=>{"use strict";const{utf8Encode:r,utf8DecodeWithoutBOM:i}=n(8359),{percentDecodeBytes:s,utf8PercentEncodeString:o,isURLEncodedPercentEncode:a}=n(7689);function u(e){return e.codePointAt(0)}function l(e,t,n){let r=e.indexOf(t);for(;r>=0;)e[r]=n,r=e.indexOf(t,r+1);return e}e.exports={parseUrlencodedString:function(e){return function(e){const t=function(e,t){const n=[];let r=0,i=e.indexOf(t);for(;i>=0;)n.push(e.slice(r,i)),r=i+1,i=e.indexOf(t,r);return r!==e.length&&n.push(e.slice(r)),n}(e,u("&")),n=[];for(const e of t){if(0===e.length)continue;let t,r;const o=e.indexOf(u("="));o>=0?(t=e.slice(0,o),r=e.slice(o+1)):(t=e,r=new Uint8Array(0)),t=l(t,43,32),r=l(r,43,32);const a=i(s(t)),c=i(s(r));n.push([a,c])}return n}(r(e))},serializeUrlencoded:function(e,t){let n="utf-8";void 0!==t&&(n=t);let r="";for(const[t,i]of e.entries()){const e=o(i[0],a,!0);let s=i[1];i.length>2&&void 0!==i[2]&&("hidden"===i[2]&&"_charset_"===e?s=n:"file"===i[2]&&(s=s.name)),s=o(s,a,!0),0!==t&&(r+="&"),r+=`${e}=${s}`}return r}}},7118:(e,t)=>{"use strict";const n=Function.prototype.call.bind(Object.prototype.hasOwnProperty),r=Symbol("wrapper"),i=Symbol("impl"),s=Symbol("SameObject caches"),o=Symbol.for("[webidl2js] constructor registry"),a=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);function u(e){if(n(e,o))return e[o];const t=Object.create(null);t["%Object.prototype%"]=e.Object.prototype,t["%IteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf((new e.Array)[Symbol.iterator]()));try{t["%AsyncIteratorPrototype%"]=Object.getPrototypeOf(Object.getPrototypeOf(e.eval("(async function* () {})").prototype))}catch{t["%AsyncIteratorPrototype%"]=a}return e[o]=t,t}function l(e){return e?e[r]:null}function c(e){return e?e[i]:null}const p=Symbol("internal"),h=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,d=Symbol("supports property index"),f=Symbol("supported property indices"),m=Symbol("supports property name"),g=Symbol("supported property names"),E=Symbol("indexed property get"),y=Symbol("indexed property set new"),v=Symbol("indexed property set existing"),A=Symbol("named property get"),C=Symbol("named property set new"),b=Symbol("named property set existing"),S=Symbol("named property delete"),x=Symbol("async iterator get the next iteration result"),w=Symbol("async iterator return steps"),D=Symbol("async iterator initialization steps"),_=Symbol("async iterator end of iteration");e.exports={isObject:function(e){return"object"==typeof e&&null!==e||"function"==typeof e},hasOwn:n,define:function(e,t){for(const n of Reflect.ownKeys(t)){const r=Reflect.getOwnPropertyDescriptor(t,n);if(r&&!Reflect.defineProperty(e,n,r))throw new TypeError(`Cannot redefine property: ${String(n)}`)}},newObjectInRealm:function(e,t){const n=u(e);return Object.defineProperties(Object.create(n["%Object.prototype%"]),Object.getOwnPropertyDescriptors(t))},wrapperSymbol:r,implSymbol:i,getSameObject:function(e,t,n){return e[s]||(e[s]=Object.create(null)),t in e[s]||(e[s][t]=n()),e[s][t]},ctorRegistrySymbol:o,initCtorRegistry:u,wrapperForImpl:l,implForWrapper:c,tryWrapperForImpl:function(e){return l(e)||e},tryImplForWrapper:function(e){return c(e)||e},iterInternalSymbol:p,isArrayBuffer:function(e){try{return h.call(e),!0}catch(e){return!1}},isArrayIndexPropName:function(e){if("string"!=typeof e)return!1;const t=e>>>0;return t!==2**32-1&&e===`${t}`},supportsPropertyIndex:d,supportedPropertyIndices:f,supportsPropertyName:m,supportedPropertyNames:g,indexedGet:E,indexedSetNew:y,indexedSetExisting:v,namedGet:A,namedSetNew:C,namedSetExisting:b,namedDelete:S,asyncIteratorNext:x,asyncIteratorReturn:w,asyncIteratorInit:D,asyncIteratorEOI:_,iteratorResult:function([e,t],n){let r;switch(n){case"key":r=e;break;case"value":r=t;break;case"key+value":r=[e,t]}return{value:r,done:!1}}}},6396:(e,t,n)=>{"use strict";const r=n(9415),i=n(15);t.URL=r,t.URLSearchParams=i},7866:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MongoLogManager=t.MongoLogWriter=t.mongoLogId=void 0;const i=n(345),s=n(7702),o=n(2048),a=r(n(5315)),u=n(6162),l=n(1764),c=n(1568);function p(e){return{__value:e}}t.mongoLogId=p;class h extends u.Writable{constructor(e,t,n,r){super({objectMode:!0}),this.mongoLogId=p,this._logId=e,this._logFilePath=t,this._target=n,this._now=null!=r?r:()=>new Date}get logId(){return this._logId}get logFilePath(){return this._logFilePath}get target(){return this._target}_write(e,t,r){var s;const o=function(e){var t;return"string"!=typeof e.s?new TypeError("Cannot log messages without a severity field"):"string"!=typeof e.c?new TypeError("Cannot log messages without a component field"):"number"!=typeof(null===(t=e.id)||void 0===t?void 0:t.__value)?new TypeError("Cannot log messages without an id field"):"string"!=typeof e.ctx?new TypeError("Cannot log messages without a context field"):"string"!=typeof e.msg?new TypeError("Cannot log messages without a message field"):null}(e);if(o)return void r(o);const a={t:null!==(s=e.t)&&void 0!==s?s:this._now(),s:e.s,c:e.c,id:e.id.__value,ctx:e.ctx,msg:e.msg};e.attr&&("[object Error]"===Object.prototype.toString.call(e.attr)?a.attr={stack:e.attr.stack,name:e.attr.name,message:e.attr.message,code:e.attr.code,...e.attr}:a.attr=e.attr),this.emit("log",a);try{i.EJSON.stringify(a.attr)}catch(e){try{const e=n(9672),t=e.deserialize(e.serialize(a.attr));i.EJSON.stringify(t),a.attr=t}catch(e){try{const e=JSON.parse(JSON.stringify(a.attr));i.EJSON.stringify(e),a.attr=e}catch(e){a.attr={_inspected:(0,l.inspect)(a.attr)}}}}this._target.write(i.EJSON.stringify(a,{relaxed:!0})+"\n",r)}_final(e){this._target.end(e)}async flush(){await new Promise((e=>this._target.write("",e)))}info(e,t,n,r,i){const s={s:"I",c:e,id:t,ctx:n,msg:r,attr:i};this.write(s)}warn(e,t,n,r,i){const s={s:"W",c:e,id:t,ctx:n,msg:r,attr:i};this.write(s)}error(e,t,n,r,i){const s={s:"E",c:e,id:t,ctx:n,msg:r,attr:i};this.write(s)}fatal(e,t,n,r,i){const s={s:"F",c:e,id:t,ctx:n,msg:r,attr:i};this.write(s)}bindComponent(e){return{unbound:this,component:e,write:(t,n)=>this.write({c:e,...t},n),info:this.info.bind(this,e),warn:this.warn.bind(this,e),error:this.error.bind(this,e),fatal:this.fatal.bind(this,e)}}}t.MongoLogWriter=h,t.MongoLogManager=class{constructor(e){this._options=e}async cleanupOldLogfiles(){var e,t;const n=this._options.directory;let r;try{r=await o.promises.opendir(n)}catch(e){return}for await(const s of r){if(!s.isFile())continue;const{id:r}=null!==(t=null===(e=s.name.match(/^(?<id>[a-f0-9]{24})_log(\.gz)?$/i))||void 0===e?void 0:e.groups)&&void 0!==t?t:{};if(r&&new i.ObjectId(r).generationTime<Date.now()/1e3-86400*this._options.retentionDays){const e=a.default.join(n,s.name);try{await o.promises.unlink(e)}catch(t){this._options.onerror(t,e)}}}}async createLogWriter(){const e=(new i.ObjectId).toString(),t=!!this._options.gzip,n=a.default.join(this._options.directory,`${e}_log${t?".gz":""}`);let r,l,p;try{l=(0,o.createWriteStream)(n,{mode:384}),r=l,await(0,s.once)(l,"ready"),t?(l=(0,c.createGzip)({flush:c.constants.Z_SYNC_FLUSH,level:c.constants.Z_MAX_LEVEL}),l.pipe(r)):l.on("finish",(()=>l.emit("log-finish")))}catch(t){this._options.onwarn(t,n),l=new u.Writable({write(e,t,n){n()}}),r=l,p=new h(e,null,l)}return p||(p=new h(e,n,l)),r.on("finish",(()=>null==p?void 0:p.emit("log-finish"))),p}}},4935:e=>{function t(e){if(!(this instanceof t))return new t(e);this.ns=e,this.dotIndex=e.indexOf("."),-1===this.dotIndex?(this.database=e,this.collection=""):(this.database=e.slice(0,this.dotIndex),this.collection=e.slice(this.dotIndex+1)),this.system=/^(?:system|enxcol_)\./.test(this.collection),this.oplog=/local\.oplog\.(\$main|rs)/.test(e),this.command="$cmd"===this.collection||0===this.collection.indexOf("$cmd.sys"),this.special=this.oplog||this.command||this.system||"config"===this.database,this.specialish=this.special||["local","admin"].indexOf(this.database)>-1,this.normal=this.oplog||-1===this.ns.indexOf("$"),this.validDatabaseName=new RegExp('^[^\\\\/". ]*$').test(this.database)&&this.database.length<=t.MAX_DATABASE_NAME_LENGTH,this.validCollectionName=this.collection.length>0&&(this.oplog||/^[^\0\$]*$/.test(this.collection)),this.databaseHash=7,this.ns.split("").every(function(e,t){return"."!==e&&(this.databaseHash+=11*this.ns.charCodeAt(t),this.databaseHash*=3,!0)}.bind(this))}t.prototype.database="",t.prototype.databaseHash=0,t.prototype.collection="",t.prototype.command=!1,t.prototype.special=!1,t.prototype.system=!1,t.prototype.oplog=!1,t.prototype.normal=!1,t.prototype.specialish=!1,["Command","Special","System","Oplog","Normal","Conf"].forEach((function(e){t.prototype["is"+e]=function(){return this[e.toLowerCase()]}})),t.prototype.toString=function(){return this.ns},t.MAX_DATABASE_NAME_LENGTH=128,e.exports=t;var n=t;e.exports.sort=function(e){return e.sort((function(e,t){return n(e).specialish&&n(t).specialish?0:n(e).specialish&&!n(t).specialish?1:!n(e).specialish&&n(t).specialish?-1:e>t?1:-1})),e}},5716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Admin=void 0;const r=n(3186),i=n(7445),s=n(1608),o=n(8521),a=n(25),u=n(6540);t.Admin=class{constructor(e){this.s={db:e}}command(e,t,n){return"function"==typeof t&&(n=t,t={}),t=Object.assign({dbName:"admin"},t),(0,i.executeOperation)(this.s.db,new a.RunCommandOperation(this.s.db,e,t),n)}buildInfo(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.command({buildinfo:1},e,t)}serverInfo(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.command({buildinfo:1},e,t)}serverStatus(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.command({serverStatus:1},e,t)}ping(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.command({ping:1},e,t)}addUser(e,t,n,s){return"function"==typeof t?(s=t,t=void 0,n={}):"string"!=typeof t?"function"==typeof n?(s=n,n=t,t=void 0):(n=t,s=void 0,t=void 0):"function"==typeof n&&(s=n,n={}),n=Object.assign({dbName:"admin"},n),(0,i.executeOperation)(this.s.db,new r.AddUserOperation(this.s.db,e,t,n),s)}removeUser(e,t,n){return"function"==typeof t&&(n=t,t={}),t=Object.assign({dbName:"admin"},t),(0,i.executeOperation)(this.s.db,new o.RemoveUserOperation(this.s.db,e,t),n)}validateCollection(e,t,n){return"function"==typeof t&&(n=t,t={}),t=null!=t?t:{},(0,i.executeOperation)(this.s.db,new u.ValidateCollectionOperation(this,e,t),n)}listDatabases(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},(0,i.executeOperation)(this.s.db,new s.ListDatabasesOperation(this.s.db,e),t)}replSetGetStatus(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.command({replSetGetStatus:1},e,t)}}},9064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveBSONOptions=t.pluckBSONSerializeOptions=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Map=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONSymbol=t.BSONRegExp=t.Binary=t.calculateObjectSize=t.serialize=t.deserialize=void 0;let r=n(345);try{r=n(3678)}catch{}t.deserialize=r.deserialize,t.serialize=r.serialize,t.calculateObjectSize=r.calculateObjectSize;var i=n(345);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return i.Binary}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return i.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return i.BSONSymbol}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return i.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return i.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return i.Decimal128}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return i.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return i.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return i.Long}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return i.Map}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return i.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return i.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return i.ObjectId}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return i.Timestamp}}),t.pluckBSONSerializeOptions=function(e){const{fieldsAsRaw:t,promoteValues:n,promoteBuffers:r,promoteLongs:i,serializeFunctions:s,ignoreUndefined:o,bsonRegExp:a,raw:u,enableUtf8Validation:l}=e;return{fieldsAsRaw:t,promoteValues:n,promoteBuffers:r,promoteLongs:i,serializeFunctions:s,ignoreUndefined:o,bsonRegExp:a,raw:u,enableUtf8Validation:l}},t.resolveBSONOptions=function(e,t){var n,r,i,s,o,a,u,l,c,p,h,d,f,m,g,E,y,v;const A=null==t?void 0:t.bsonOptions;return{raw:null!==(r=null!==(n=null==e?void 0:e.raw)&&void 0!==n?n:null==A?void 0:A.raw)&&void 0!==r&&r,promoteLongs:null===(s=null!==(i=null==e?void 0:e.promoteLongs)&&void 0!==i?i:null==A?void 0:A.promoteLongs)||void 0===s||s,promoteValues:null===(a=null!==(o=null==e?void 0:e.promoteValues)&&void 0!==o?o:null==A?void 0:A.promoteValues)||void 0===a||a,promoteBuffers:null!==(l=null!==(u=null==e?void 0:e.promoteBuffers)&&void 0!==u?u:null==A?void 0:A.promoteBuffers)&&void 0!==l&&l,ignoreUndefined:null!==(p=null!==(c=null==e?void 0:e.ignoreUndefined)&&void 0!==c?c:null==A?void 0:A.ignoreUndefined)&&void 0!==p&&p,bsonRegExp:null!==(d=null!==(h=null==e?void 0:e.bsonRegExp)&&void 0!==h?h:null==A?void 0:A.bsonRegExp)&&void 0!==d&&d,serializeFunctions:null!==(m=null!==(f=null==e?void 0:e.serializeFunctions)&&void 0!==f?f:null==A?void 0:A.serializeFunctions)&&void 0!==m&&m,fieldsAsRaw:null!==(E=null!==(g=null==e?void 0:e.fieldsAsRaw)&&void 0!==g?g:null==A?void 0:A.fieldsAsRaw)&&void 0!==E?E:{},enableUtf8Validation:null===(v=null!==(y=null==e?void 0:e.enableUtf8Validation)&&void 0!==y?y:null==A?void 0:A.enableUtf8Validation)||void 0===v||v}}},363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkOperationBase=t.FindOperators=t.MongoBulkWriteError=t.mergeBatchResults=t.WriteError=t.WriteConcernError=t.BulkWriteResult=t.Batch=t.BatchType=void 0;const r=n(9064),i=n(4947),s=n(7237),o=n(7445),a=n(7159),u=n(5172),l=n(5556),c=n(4782),p=n(2229),h=n(4620),d=Symbol("serverError");t.BatchType=Object.freeze({INSERT:1,UPDATE:2,DELETE:3}),t.Batch=class{constructor(e,t){this.originalZeroIndex=t,this.currentIndex=0,this.originalIndexes=[],this.batchType=e,this.operations=[],this.size=0,this.sizeBytes=0}};class f{constructor(e){this.result=e}get insertedCount(){var e;return null!==(e=this.result.nInserted)&&void 0!==e?e:0}get matchedCount(){var e;return null!==(e=this.result.nMatched)&&void 0!==e?e:0}get modifiedCount(){var e;return null!==(e=this.result.nModified)&&void 0!==e?e:0}get deletedCount(){var e;return null!==(e=this.result.nRemoved)&&void 0!==e?e:0}get upsertedCount(){var e;return null!==(e=this.result.upserted.length)&&void 0!==e?e:0}get upsertedIds(){var e;const t={};for(const n of null!==(e=this.result.upserted)&&void 0!==e?e:[])t[n.index]=n._id;return t}get insertedIds(){var e;const t={};for(const n of null!==(e=this.result.insertedIds)&&void 0!==e?e:[])t[n.index]=n._id;return t}get ok(){return this.result.ok}get nInserted(){return this.result.nInserted}get nUpserted(){return this.result.nUpserted}get nMatched(){return this.result.nMatched}get nModified(){return this.result.nModified}get nRemoved(){return this.result.nRemoved}getInsertedIds(){return this.result.insertedIds}getUpsertedIds(){return this.result.upserted}getUpsertedIdAt(e){return this.result.upserted[e]}getRawResponse(){return this.result}hasWriteErrors(){return this.result.writeErrors.length>0}getWriteErrorCount(){return this.result.writeErrors.length}getWriteErrorAt(e){return e<this.result.writeErrors.length?this.result.writeErrors[e]:void 0}getWriteErrors(){return this.result.writeErrors}getLastOp(){return this.result.opTime}getWriteConcernError(){if(0!==this.result.writeConcernErrors.length){if(1===this.result.writeConcernErrors.length)return this.result.writeConcernErrors[0];{let e="";for(let t=0;t<this.result.writeConcernErrors.length;t++)e+=this.result.writeConcernErrors[t].errmsg,0===t&&(e+=" and ");return new m({errmsg:e,code:i.MONGODB_ERROR_CODES.WriteConcernFailed})}}}toJSON(){return this.result}toString(){return`BulkWriteResult(${this.toJSON()})`}isOk(){return 1===this.result.ok}}t.BulkWriteResult=f;class m{constructor(e){this[d]=e}get code(){return this[d].code}get errmsg(){return this[d].errmsg}get errInfo(){return this[d].errInfo}get err(){return this[d]}toJSON(){return this[d]}toString(){return`WriteConcernError(${this.errmsg})`}}t.WriteConcernError=m;class g{constructor(e){this.err=e}get code(){return this.err.code}get index(){return this.err.index}get errmsg(){return this.err.errmsg}get errInfo(){return this.err.errInfo}getOperation(){return this.err.op}toJSON(){return{code:this.err.code,index:this.err.index,errmsg:this.err.errmsg,op:this.err.op}}toString(){return`WriteError(${JSON.stringify(this.toJSON())})`}}function E(e){return"number"==typeof e?r.Long.fromNumber(e):e}function y(e,t,n,i){if(n?i=n:i&&i.result&&(i=i.result),null==i)return;if(0===i.ok&&1===t.ok){t.ok=0;const n={index:0,code:i.code||0,errmsg:i.message,errInfo:i.errInfo,op:e.operations[0]};return void t.writeErrors.push(new g(n))}if(0===i.ok&&0===t.ok)return;if(i.opTime||i.lastOp){let e=i.lastOp||i.opTime;if("Timestamp"===e._bsontype&&(e={ts:e,t:r.Long.ZERO}),t.opTime){const n=E(t.opTime.ts),r=E(e.ts);if(r.greaterThan(n))t.opTime=e;else if(r.equals(n)){const n=E(t.opTime.t);E(e.t).greaterThan(n)&&(t.opTime=e)}}else t.opTime=e}D(e)&&i.n&&(t.nInserted=t.nInserted+i.n),O(e)&&i.n&&(t.nRemoved=t.nRemoved+i.n);let s=0;if(Array.isArray(i.upserted)){s=i.upserted.length;for(let n=0;n<i.upserted.length;n++)t.upserted.push({index:i.upserted[n].index+e.originalZeroIndex,_id:i.upserted[n]._id})}else i.upserted&&(s=1,t.upserted.push({index:e.originalZeroIndex,_id:i.upserted}));if(_(e)&&i.n){const e=i.nModified;t.nUpserted=t.nUpserted+s,t.nMatched=t.nMatched+(i.n-s),t.nModified="number"==typeof e?t.nModified+e:0}if(Array.isArray(i.writeErrors))for(let n=0;n<i.writeErrors.length;n++){const r={index:e.originalIndexes[i.writeErrors[n].index],code:i.writeErrors[n].code,errmsg:i.writeErrors[n].errmsg,errInfo:i.writeErrors[n].errInfo,op:e.operations[i.writeErrors[n].index]};t.writeErrors.push(new g(r))}i.writeConcernError&&t.writeConcernErrors.push(new m(i.writeConcernError))}function v(e,t,n){if(0===e.s.batches.length)return n(void 0,new f(e.s.bulkResult));const r=e.s.batches.shift();function u(s,o){if(s&&"message"in s&&!(s instanceof i.MongoWriteConcernError))return n(new A(s,new f(e.s.bulkResult)));if(s instanceof i.MongoWriteConcernError)return function(e,t,n,r){var i,s;y(e,t,void 0,n.result),r(new A({message:null===(i=n.result)||void 0===i?void 0:i.writeConcernError.errmsg,code:null===(s=n.result)||void 0===s?void 0:s.writeConcernError.result},new f(t)))}(r,e.s.bulkResult,s,n);const a=new f(e.s.bulkResult);if(null!=y(r,e.s.bulkResult,s,o))return n(void 0,a);e.handleWriteError(n,a)||v(e,t,n)}const c=(0,p.resolveOptions)(e,{...t,ordered:e.isOrdered});!0!==c.bypassDocumentValidation&&delete c.bypassDocumentValidation,e.operationId&&(u.operationId=e.operationId),!0===e.s.bypassDocumentValidation&&(c.bypassDocumentValidation=!0),!1===e.s.checkKeys&&(c.checkKeys=!1),c.retryWrites&&(_(r)&&(c.retryWrites=c.retryWrites&&!r.operations.some((e=>e.multi))),O(r)&&(c.retryWrites=c.retryWrites&&!r.operations.some((e=>0===e.limit))));try{D(r)?(0,o.executeOperation)(e.s.collection,new a.InsertOperation(e.s.namespace,r.operations,c),u):_(r)?(0,o.executeOperation)(e.s.collection,new l.UpdateOperation(e.s.namespace,r.operations,c),u):O(r)&&(0,o.executeOperation)(e.s.collection,new s.DeleteOperation(e.s.namespace,r.operations,c),u)}catch(t){t.ok=0,y(r,e.s.bulkResult,t,void 0),n()}}t.WriteError=g,t.mergeBatchResults=y;class A extends i.MongoServerError{constructor(e,t){var n;super(e),this.writeErrors=[],e instanceof m?this.err=e:e instanceof Error||(this.message=e.message,this.code=e.code,this.writeErrors=null!==(n=e.writeErrors)&&void 0!==n?n:[]),this.result=t,Object.assign(this,e)}get name(){return"MongoBulkWriteError"}get insertedCount(){return this.result.insertedCount}get matchedCount(){return this.result.matchedCount}get modifiedCount(){return this.result.modifiedCount}get deletedCount(){return this.result.deletedCount}get upsertedCount(){return this.result.upsertedCount}get insertedIds(){return this.result.insertedIds}get upsertedIds(){return this.result.upsertedIds}}t.MongoBulkWriteError=A;class C{constructor(e){this.bulkOperation=e}update(e){const n=F(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,l.makeUpdateStatement)(n.selector,e,{...n,multi:!0}))}updateOne(e){if(!(0,p.hasAtomicOperators)(e))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");const n=F(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,l.makeUpdateStatement)(n.selector,e,{...n,multi:!1}))}replaceOne(e){if((0,p.hasAtomicOperators)(e))throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators");const n=F(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.UPDATE,(0,l.makeUpdateStatement)(n.selector,e,{...n,multi:!1}))}deleteOne(){const e=F(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,s.makeDeleteStatement)(e.selector,{...e,limit:1}))}delete(){const e=F(this.bulkOperation);return this.bulkOperation.addToOperationsList(t.BatchType.DELETE,(0,s.makeDeleteStatement)(e.selector,{...e,limit:0}))}upsert(){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.upsert=!0,this}collation(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.collation=e,this}arrayFilters(e){return this.bulkOperation.s.currentOp||(this.bulkOperation.s.currentOp={}),this.bulkOperation.s.currentOp.arrayFilters=e,this}}t.FindOperators=C;class b extends u.AbstractOperation{constructor(e,t){super(t),this.bulkOperation=e}execute(e,t,n){return null==this.options.session&&(this.options.session=t),v(this.bulkOperation,this.options,n)}}class S{constructor(e,t,n){this.isOrdered=n;const i=(0,p.getTopology)(e);t=null==t?{}:t;const s=e.s.namespace,o=i.lastHello(),a=!(!i.s.options||!i.s.options.autoEncrypter),u=o&&o.maxBsonObjectSize?o.maxBsonObjectSize:16777216,l=a?2097152:u,c=o&&o.maxWriteBatchSize?o.maxWriteBatchSize:1e3,d=(c-1).toString(10).length+2;let f=Object.assign({},t);f=(0,p.applyRetryableWrites)(f,e.s.db),this.s={bulkResult:{ok:1,writeErrors:[],writeConcernErrors:[],insertedIds:[],nInserted:0,nUpserted:0,nMatched:0,nModified:0,nRemoved:0,upserted:[]},currentBatch:void 0,currentIndex:0,currentBatchSize:0,currentBatchSizeBytes:0,currentInsertBatch:void 0,currentUpdateBatch:void 0,currentRemoveBatch:void 0,batches:[],writeConcern:h.WriteConcern.fromOptions(t),maxBsonObjectSize:u,maxBatchSizeBytes:l,maxWriteBatchSize:c,maxKeySize:d,namespace:s,topology:i,options:f,bsonOptions:(0,r.resolveBSONOptions)(t),currentOp:void 0,executed:!1,collection:e,err:void 0,checkKeys:"boolean"==typeof t.checkKeys&&t.checkKeys},!0===t.bypassDocumentValidation&&(this.s.bypassDocumentValidation=!0)}insert(e){return null!=e._id||w(this)||(e._id=new r.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e)}find(e){if(!e)throw new i.MongoInvalidArgumentError("Bulk find operation must specify a selector");return this.s.currentOp={selector:e},new C(this)}raw(e){if(null==e||"object"!=typeof e)throw new i.MongoInvalidArgumentError("Operation must be an object with an operation key");if("insertOne"in e){const n=w(this);return e.insertOne&&null==e.insertOne.document?(!0!==n&&null==e.insertOne._id&&(e.insertOne._id=new r.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne)):(!0!==n&&null==e.insertOne.document._id&&(e.insertOne.document._id=new r.ObjectId),this.addToOperationsList(t.BatchType.INSERT,e.insertOne.document))}if("replaceOne"in e||"updateOne"in e||"updateMany"in e){if("replaceOne"in e){if("q"in e.replaceOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const n=(0,l.makeUpdateStatement)(e.replaceOne.filter,e.replaceOne.replacement,{...e.replaceOne,multi:!1});if((0,p.hasAtomicOperators)(n.u))throw new i.MongoInvalidArgumentError("Replacement document must not use atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,n)}if("updateOne"in e){if("q"in e.updateOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const n=(0,l.makeUpdateStatement)(e.updateOne.filter,e.updateOne.update,{...e.updateOne,multi:!1});if(!(0,p.hasAtomicOperators)(n.u))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,n)}if("updateMany"in e){if("q"in e.updateMany)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");const n=(0,l.makeUpdateStatement)(e.updateMany.filter,e.updateMany.update,{...e.updateMany,multi:!0});if(!(0,p.hasAtomicOperators)(n.u))throw new i.MongoInvalidArgumentError("Update document requires atomic operators");return this.addToOperationsList(t.BatchType.UPDATE,n)}}if("deleteOne"in e){if("q"in e.deleteOne)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,s.makeDeleteStatement)(e.deleteOne.filter,{...e.deleteOne,limit:1}))}if("deleteMany"in e){if("q"in e.deleteMany)throw new i.MongoInvalidArgumentError("Raw operations are not allowed");return this.addToOperationsList(t.BatchType.DELETE,(0,s.makeDeleteStatement)(e.deleteMany.filter,{...e.deleteMany,limit:0}))}throw new i.MongoInvalidArgumentError("bulkWrite only supports insertOne, updateOne, updateMany, deleteOne, deleteMany")}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get batches(){const e=[...this.s.batches];return this.isOrdered?this.s.currentBatch&&e.push(this.s.currentBatch):(this.s.currentInsertBatch&&e.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&e.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&e.push(this.s.currentRemoveBatch)),e}execute(e,t){if("function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.s.executed)return x(new i.MongoBatchReExecutionError,t);const n=h.WriteConcern.fromOptions(e);if(n&&(this.s.writeConcern=n),this.isOrdered?this.s.currentBatch&&this.s.batches.push(this.s.currentBatch):(this.s.currentInsertBatch&&this.s.batches.push(this.s.currentInsertBatch),this.s.currentUpdateBatch&&this.s.batches.push(this.s.currentUpdateBatch),this.s.currentRemoveBatch&&this.s.batches.push(this.s.currentRemoveBatch)),0===this.s.batches.length)return x(new i.MongoInvalidArgumentError("Invalid BulkOperation, Batch cannot be empty"),t);this.s.executed=!0;const r={...this.s.options,...e},s=new b(this,r);return(0,o.executeOperation)(this.s.collection,s,t)}handleWriteError(e,t){if(this.s.bulkResult.writeErrors.length>0){const n=this.s.bulkResult.writeErrors[0].errmsg?this.s.bulkResult.writeErrors[0].errmsg:"write operation failed";return e(new A({message:n,code:this.s.bulkResult.writeErrors[0].code,writeErrors:this.s.bulkResult.writeErrors},t)),!0}const n=t.getWriteConcernError();return!!n&&(e(new A(n,t)),!0)}}function x(e,t){const n=c.PromiseProvider.get();if("function"!=typeof t)return n.reject(e);t(e)}function w(e){var t,n;return"boolean"==typeof e.s.options.forceServerObjectId?e.s.options.forceServerObjectId:"boolean"==typeof(null===(t=e.s.collection.s.db.options)||void 0===t?void 0:t.forceServerObjectId)&&(null===(n=e.s.collection.s.db.options)||void 0===n?void 0:n.forceServerObjectId)}function D(e){return e.batchType===t.BatchType.INSERT}function _(e){return e.batchType===t.BatchType.UPDATE}function O(e){return e.batchType===t.BatchType.DELETE}function F(e){let{currentOp:t}=e.s;return e.s.currentOp=void 0,t||(t={}),t}t.BulkOperationBase=S,Object.defineProperty(S.prototype,"length",{enumerable:!0,get(){return this.s.currentIndex}})},3868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrderedBulkOperation=void 0;const r=n(9064),i=n(4947),s=n(363);class o extends s.BulkOperationBase{constructor(e,t){super(e,t,!0)}addToOperationsList(e,t){const n=r.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(n>=this.s.maxBsonObjectSize)throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);null==this.s.currentBatch&&(this.s.currentBatch=new s.Batch(e,this.s.currentIndex));const o=this.s.maxKeySize;if((this.s.currentBatchSize+1>=this.s.maxWriteBatchSize||this.s.currentBatchSize>0&&this.s.currentBatchSizeBytes+o+n>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new s.Batch(e,this.s.currentIndex),this.s.currentBatchSize=0,this.s.currentBatchSizeBytes=0),e===s.BatchType.INSERT&&this.s.bulkResult.insertedIds.push({index:this.s.currentIndex,_id:t._id}),Array.isArray(t))throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentBatch.operations.push(t),this.s.currentBatchSize+=1,this.s.currentBatchSizeBytes+=o+n,this.s.currentIndex+=1,this}}t.OrderedBulkOperation=o},1625:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnorderedBulkOperation=void 0;const r=n(9064),i=n(4947),s=n(363);class o extends s.BulkOperationBase{constructor(e,t){super(e,t,!1)}handleWriteError(e,t){return!this.s.batches.length&&super.handleWriteError(e,t)}addToOperationsList(e,t){const n=r.calculateObjectSize(t,{checkKeys:!1,ignoreUndefined:!1});if(n>=this.s.maxBsonObjectSize)throw new i.MongoInvalidArgumentError(`Document is larger than the maximum size ${this.s.maxBsonObjectSize}`);this.s.currentBatch=void 0,e===s.BatchType.INSERT?this.s.currentBatch=this.s.currentInsertBatch:e===s.BatchType.UPDATE?this.s.currentBatch=this.s.currentUpdateBatch:e===s.BatchType.DELETE&&(this.s.currentBatch=this.s.currentRemoveBatch);const o=this.s.maxKeySize;if(null==this.s.currentBatch&&(this.s.currentBatch=new s.Batch(e,this.s.currentIndex)),(this.s.currentBatch.size+1>=this.s.maxWriteBatchSize||this.s.currentBatch.size>0&&this.s.currentBatch.sizeBytes+o+n>=this.s.maxBatchSizeBytes||this.s.currentBatch.batchType!==e)&&(this.s.batches.push(this.s.currentBatch),this.s.currentBatch=new s.Batch(e,this.s.currentIndex)),Array.isArray(t))throw new i.MongoInvalidArgumentError("Operation passed in cannot be an Array");return this.s.currentBatch.operations.push(t),this.s.currentBatch.originalIndexes.push(this.s.currentIndex),this.s.currentIndex=this.s.currentIndex+1,e===s.BatchType.INSERT?(this.s.currentInsertBatch=this.s.currentBatch,this.s.bulkResult.insertedIds.push({index:this.s.bulkResult.insertedIds.length,_id:t._id})):e===s.BatchType.UPDATE?this.s.currentUpdateBatch=this.s.currentBatch:e===s.BatchType.DELETE&&(this.s.currentRemoveBatch=this.s.currentBatch),this.s.currentBatch.size+=1,this.s.currentBatch.sizeBytes+=o+n,this}}t.UnorderedBulkOperation=o},4747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChangeStreamCursor=t.ChangeStream=void 0;const r=n(2334),i=n(8971),s=n(5006),o=n(6829),a=n(2644),u=n(4947),l=n(2319),c=n(334),p=n(4213),h=n(7445),d=n(2229),f=Symbol("resumeQueue"),m=Symbol("cursorStream"),g=Symbol("closed"),E=Symbol("mode"),y=["resumeAfter","startAfter","startAtOperationTime","fullDocument"],v=["batchSize","maxAwaitTimeMS","collation","readPreference","comment",...y],A={COLLECTION:Symbol("Collection"),DATABASE:Symbol("Database"),CLUSTER:Symbol("Cluster")},C=[s.RESUME_TOKEN_CHANGED,s.END,s.CLOSE],b="ChangeStream has no cursor",S="ChangeStream is closed";class x extends c.TypedEventEmitter{constructor(e,t=[],n={}){if(super(),this.pipeline=t,this.options=n,e instanceof i.Collection)this.type=A.COLLECTION;else if(e instanceof a.Db)this.type=A.DATABASE;else{if(!(e instanceof l.MongoClient))throw new u.MongoChangeStreamError("Parent provided to ChangeStream constructor must be an instance of Collection, Db, or MongoClient");this.type=A.CLUSTER}this.parent=e,this.namespace=e.s.namespace,!this.options.readPreference&&e.readPreference&&(this.options.readPreference=e.readPreference),this[f]=new r,this.cursor=this._createChangeStreamCursor(n),this[g]=!1,this[E]=!1,this.on("newListener",(e=>{"change"===e&&this.cursor&&0===this.listenerCount("change")&&this._streamEvents(this.cursor)})),this.on("removeListener",(e=>{var t;"change"===e&&0===this.listenerCount("change")&&this.cursor&&(null===(t=this[m])||void 0===t||t.removeAllListeners("data"))}))}get cursorStream(){return this[m]}get resumeToken(){var e;return null===(e=this.cursor)||void 0===e?void 0:e.resumeToken}hasNext(e){return this._setIsIterator(),(0,d.maybePromise)(e,(e=>{this._getCursor(((t,n)=>{if(t||!n)return e(t);n.hasNext(e)}))}))}next(e){return this._setIsIterator(),(0,d.maybePromise)(e,(e=>{this._getCursor(((t,n)=>{if(t||!n)return e(t);n.next(((t,n)=>{if(t)return this[f].push((()=>this.next(e))),void this._processError(t,e);this._processNewChange(null!=n?n:null,e)}))}))}))}get closed(){var e,t;return this[g]||null!==(t=null===(e=this.cursor)||void 0===e?void 0:e.closed)&&void 0!==t&&t}close(e){return this[g]=!0,(0,d.maybePromise)(e,(e=>this.cursor?this.cursor.close((t=>(this._endStream(),this.cursor=void 0,e(t)))):e()))}stream(e){if(this.streamOptions=e,!this.cursor)throw new u.MongoChangeStreamError(b);return this.cursor.stream(e)}tryNext(e){return this._setIsIterator(),(0,d.maybePromise)(e,(e=>{this._getCursor(((t,n)=>t||!n?e(t):n.tryNext(e)))}))}_setIsEmitter(){if("iterator"===this[E])throw new u.MongoAPIError("ChangeStream cannot be used as an EventEmitter after being used as an iterator");this[E]="emitter"}_setIsIterator(){if("emitter"===this[E])throw new u.MongoAPIError("ChangeStream cannot be used as an iterator after being used as an EventEmitter");this[E]="iterator"}_createChangeStreamCursor(e){const t=(0,d.filterOptions)(e,y);this.type===A.CLUSTER&&(t.allChangesForCluster=!0);const n=[{$changeStream:t},...this.pipeline],r=(0,d.filterOptions)(e,v),i=new w((0,d.getTopology)(this.parent),this.namespace,n,r);for(const e of C)i.on(e,(t=>this.emit(e,t)));return this.listenerCount(x.CHANGE)>0&&this._streamEvents(i),i}_waitForTopologyConnected(e,t,n){setTimeout((()=>{t&&null==t.start&&(t.start=(0,d.now)());const r=t.start||(0,d.now)(),i=t.timeout||3e4;return e.isConnected()?n():(0,d.calculateDurationInMs)(r)>i?n(new u.MongoRuntimeError("Timed out waiting for connection")):void this._waitForTopologyConnected(e,t,n)}),500)}_closeWithError(e,t){t||this.emit(x.ERROR,e),this.close((()=>t&&t(e)))}_streamEvents(e){var t;this._setIsEmitter();const n=null!==(t=this[m])&&void 0!==t?t:e.stream();this[m]=n,n.on("data",(e=>this._processNewChange(e))),n.on("error",(e=>this._processError(e)))}_endStream(){const e=this[m];e&&(["data","close","end","error"].forEach((t=>e.removeAllListeners(t))),e.destroy()),this[m]=void 0}_processNewChange(e,t){var n;if(!this[g])return null==e?this._closeWithError(new u.MongoRuntimeError(S),t):e&&!e._id?this._closeWithError(new u.MongoChangeStreamError("A change stream document has been received that lacks a resume token (_id)."),t):(null===(n=this.cursor)||void 0===n||n.cacheResumeToken(e._id),this.options.startAtOperationTime=void 0,t?t(void 0,e):this.emit(x.CHANGE,e));t&&t(new u.MongoAPIError(S))}_processError(e,t){const n=this.cursor;if(this[g])return void(t&&t(new u.MongoAPIError(S)));const r=e=>{this.cursor=e,this._processResumeQueue()},i=e=>{t||this.emit(x.ERROR,e),this.close((()=>this._processResumeQueue(e)))};if(!n||!(0,u.isResumableError)(e,(0,d.maxWireVersion)(n.server)))return this._closeWithError(e,t);{this.cursor=void 0,this._endStream(),n.close();const e=(0,d.getTopology)(this.parent);this._waitForTopologyConnected(e,{readPreference:n.readPreference},(e=>{if(e)return i(e);const s=this._createChangeStreamCursor(n.resumeOptions);if(!t)return r(s);s.hasNext((e=>{if(e)return i(e);r(s)}))}))}}_getCursor(e){this[g]?e(new u.MongoAPIError(S)):this.cursor?e(void 0,this.cursor):this[f].push(e)}_processResumeQueue(e){for(var t;this[f].length;){const n=this[f].pop();if(!n)break;if(!e){if(this[g])return void n(new u.MongoAPIError(S));if(!this.cursor)return void n(new u.MongoChangeStreamError(b))}n(e,null!==(t=this.cursor)&&void 0!==t?t:void 0)}}}t.ChangeStream=x,x.RESPONSE=s.RESPONSE,x.MORE=s.MORE,x.INIT=s.INIT,x.CLOSE=s.CLOSE,x.CHANGE=s.CHANGE,x.END=s.END,x.ERROR=s.ERROR,x.RESUME_TOKEN_CHANGED=s.RESUME_TOKEN_CHANGED;class w extends o.AbstractCursor{constructor(e,t,n=[],r={}){super(e,t,r),this.pipeline=n,this.options=r,this._resumeToken=null,this.startAtOperationTime=r.startAtOperationTime,r.startAfter?this.resumeToken=r.startAfter:r.resumeAfter&&(this.resumeToken=r.resumeAfter)}set resumeToken(e){this._resumeToken=e,this.emit(x.RESUME_TOKEN_CHANGED,e)}get resumeToken(){return this._resumeToken}get resumeOptions(){const e=(0,d.filterOptions)(this.options,v);if(this.resumeToken||this.startAtOperationTime){for(const t of["resumeAfter","startAfter","startAtOperationTime"])Reflect.deleteProperty(e,t);this.resumeToken?e[this.options.startAfter&&!this.hasReceived?"startAfter":"resumeAfter"]=this.resumeToken:this.startAtOperationTime&&(0,d.maxWireVersion)(this.server)>=7&&(e.startAtOperationTime=this.startAtOperationTime)}return e}cacheResumeToken(e){0===this.bufferedCount()&&this.postBatchResumeToken?this.resumeToken=this.postBatchResumeToken:this.resumeToken=e,this.hasReceived=!0}_processBatch(e){const t=e.cursor;t.postBatchResumeToken&&(this.postBatchResumeToken=e.cursor.postBatchResumeToken,0===("firstBatch"in e.cursor?e.cursor.firstBatch:e.cursor.nextBatch).length&&(this.resumeToken=t.postBatchResumeToken))}clone(){return new w(this.topology,this.namespace,this.pipeline,{...this.cursorOptions})}_initialize(e,t){const n=new p.AggregateOperation(this.namespace,this.pipeline,{...this.cursorOptions,...this.options,session:e});(0,h.executeOperation)(e,n,((r,i)=>{if(r||null==i)return t(r);const s=n.server;null==this.startAtOperationTime&&null==this.resumeAfter&&null==this.startAfter&&(0,d.maxWireVersion)(s)>=7&&(this.startAtOperationTime=i.operationTime),this._processBatch(i),this.emit(x.INIT,i),this.emit(x.RESPONSE),t(void 0,{server:s,session:e,response:i})}))}_getMore(e,t){super._getMore(e,((e,n)=>{if(e)return t(e);this._processBatch(n),this.emit(x.MORE,n),this.emit(x.RESPONSE),t(e,n)}))}}t.ChangeStreamCursor=w},590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AuthProvider=t.AuthContext=void 0;const r=n(4947);t.AuthContext=class{constructor(e,t,n){this.connection=e,this.credentials=t,this.options=n}},t.AuthProvider=class{prepare(e,t,n){n(void 0,e)}auth(e,t){t(new r.MongoRuntimeError("`auth` method must be overridden by subclass"))}}},2403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveCname=t.performGSSAPICanonicalizeHostName=t.GSSAPI=t.GSSAPICanonicalizationValue=void 0;const r=n(665),i=n(8808),s=n(4947),o=n(2229),a=n(590);t.GSSAPICanonicalizationValue=Object.freeze({on:!0,off:!1,none:"none",forward:"forward",forwardAndReverse:"forwardAndReverse"});class u extends a.AuthProvider{auth(e,t){const{connection:n,credentials:r}=e;if(null==r)return t(new s.MongoMissingCredentialsError("Credentials required for GSSAPI authentication"));const{username:a}=r;function u(e,t){return n.command((0,o.ns)("$external.$cmd"),e,void 0,t)}!function(e,t){var n;const{hostAddress:r}=e.options,{credentials:o}=e;if(!r||"string"!=typeof r.host||!o)return t(new s.MongoInvalidArgumentError("Connection must have host and port and credentials defined."));if("kModuleError"in i.Kerberos)return t(i.Kerberos.kModuleError);const{initializeClient:a}=i.Kerberos,{username:u,password:l}=o,p=o.mechanismProperties,h=null!==(n=p.SERVICE_NAME)&&void 0!==n?n:"mongodb";c(r.host,p,((e,n)=>{var r;if(e)return t(e);const i={};null!=l&&Object.assign(i,{user:u,password:l});const o=null!==(r=p.SERVICE_HOST)&&void 0!==r?r:n;let c=`${h}${"win32"===process.platform?"/":"@"}${o}`;"SERVICE_REALM"in p&&(c=`${c}@${p.SERVICE_REALM}`),a(c,i,((e,n)=>{if(e)return t(new s.MongoRuntimeError(e));t(void 0,n)}))}))}(e,((e,n)=>e?t(e):null==n?t(new s.MongoMissingDependencyError("GSSAPI client missing")):void n.step("",((e,r)=>{if(e)return t(e);u(function(e){return{saslStart:1,mechanism:"GSSAPI",payload:e,autoAuthorize:1}}(r),((e,r)=>e?t(e):null==r?t():void l(n,10,r.payload,((e,i)=>{if(e)return t(e);u(function(e,t){return{saslContinue:1,conversationId:t,payload:e}}(i,r.conversationId),((e,r)=>e?t(e):null==r?t():void function(e,t,n,r){e.unwrap(n,((n,i)=>{if(n)return r(n);e.wrap(i||"",{user:t},((e,t)=>{if(e)return r(e);r(void 0,t)}))}))}(n,a,r.payload,((e,n)=>{if(e)return t(e);u({saslContinue:1,conversationId:r.conversationId,payload:n},((e,n)=>{if(e)return t(e);t(void 0,n)}))}))))}))))}))))}}function l(e,t,n,r){e.step(n,((i,s)=>i&&0===t?r(i):i?l(e,t-1,n,r):void r(void 0,s||"")))}function c(e,n,i){const s=n.CANONICALIZE_HOST_NAME;if(!s||s===t.GSSAPICanonicalizationValue.none)return i(void 0,e);s===t.GSSAPICanonicalizationValue.on||s===t.GSSAPICanonicalizationValue.forwardAndReverse?r.lookup(e,((t,n)=>{if(t)return i(t);r.resolvePtr(n,((t,n)=>{if(t)return p(e,i);i(void 0,n.length>0?n[0]:e)}))})):p(e,i)}function p(e,t){r.resolveCname(e,((n,r)=>n?t(void 0,e):r.length>0?t(void 0,r[0]):void t(void 0,e)))}t.GSSAPI=u,t.performGSSAPICanonicalizeHostName=c,t.resolveCname=p},4064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCredentials=void 0;const r=n(4947),i=n(2229),s=n(2403),o=n(4511);function a(e){if(e){if(Array.isArray(e.saslSupportedMechs))return e.saslSupportedMechs.includes(o.AuthMechanism.MONGODB_SCRAM_SHA256)?o.AuthMechanism.MONGODB_SCRAM_SHA256:o.AuthMechanism.MONGODB_SCRAM_SHA1;if(e.maxWireVersion>=3)return o.AuthMechanism.MONGODB_SCRAM_SHA1}return o.AuthMechanism.MONGODB_CR}class u{constructor(e){this.username=e.username,this.password=e.password,this.source=e.source,!this.source&&e.db&&(this.source=e.db),this.mechanism=e.mechanism||o.AuthMechanism.MONGODB_DEFAULT,this.mechanismProperties=e.mechanismProperties||{},this.mechanism.match(/MONGODB-AWS/i)&&(!this.username&&process.env.AWS_ACCESS_KEY_ID&&(this.username=process.env.AWS_ACCESS_KEY_ID),!this.password&&process.env.AWS_SECRET_ACCESS_KEY&&(this.password=process.env.AWS_SECRET_ACCESS_KEY),null==this.mechanismProperties.AWS_SESSION_TOKEN&&null!=process.env.AWS_SESSION_TOKEN&&(this.mechanismProperties={...this.mechanismProperties,AWS_SESSION_TOKEN:process.env.AWS_SESSION_TOKEN})),"gssapiCanonicalizeHostName"in this.mechanismProperties&&((0,i.emitWarningOnce)("gssapiCanonicalizeHostName is deprecated. Please use CANONICALIZE_HOST_NAME instead."),this.mechanismProperties.CANONICALIZE_HOST_NAME=this.mechanismProperties.gssapiCanonicalizeHostName),Object.freeze(this.mechanismProperties),Object.freeze(this)}equals(e){return this.mechanism===e.mechanism&&this.username===e.username&&this.password===e.password&&this.source===e.source}resolveAuthMechanism(e){return this.mechanism.match(/DEFAULT/i)?new u({username:this.username,password:this.password,source:this.source,mechanism:a(e),mechanismProperties:this.mechanismProperties}):this}validate(){var e;if((this.mechanism===o.AuthMechanism.MONGODB_GSSAPI||this.mechanism===o.AuthMechanism.MONGODB_CR||this.mechanism===o.AuthMechanism.MONGODB_PLAIN||this.mechanism===o.AuthMechanism.MONGODB_SCRAM_SHA1||this.mechanism===o.AuthMechanism.MONGODB_SCRAM_SHA256)&&!this.username)throw new r.MongoMissingCredentialsError(`Username required for mechanism '${this.mechanism}'`);if(o.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(this.mechanism)&&null!=this.source&&"$external"!==this.source)throw new r.MongoAPIError(`Invalid source '${this.source}' for mechanism '${this.mechanism}' specified.`);if(this.mechanism===o.AuthMechanism.MONGODB_PLAIN&&null==this.source)throw new r.MongoAPIError("PLAIN Authentication Mechanism needs an auth source");if(this.mechanism===o.AuthMechanism.MONGODB_X509&&null!=this.password){if(""===this.password)return void Reflect.set(this,"password",void 0);throw new r.MongoAPIError("Password not allowed for mechanism MONGODB-X509")}const t=null!==(e=this.mechanismProperties.CANONICALIZE_HOST_NAME)&&void 0!==e&&e;if(!Object.values(s.GSSAPICanonicalizationValue).includes(t))throw new r.MongoAPIError(`Invalid CANONICALIZE_HOST_NAME value: ${t}`)}static merge(e,t){var n,r,i,s,a,l,c,p,h,d,f;return new u({username:null!==(r=null!==(n=t.username)&&void 0!==n?n:null==e?void 0:e.username)&&void 0!==r?r:"",password:null!==(s=null!==(i=t.password)&&void 0!==i?i:null==e?void 0:e.password)&&void 0!==s?s:"",mechanism:null!==(l=null!==(a=t.mechanism)&&void 0!==a?a:null==e?void 0:e.mechanism)&&void 0!==l?l:o.AuthMechanism.MONGODB_DEFAULT,mechanismProperties:null!==(p=null!==(c=t.mechanismProperties)&&void 0!==c?c:null==e?void 0:e.mechanismProperties)&&void 0!==p?p:{},source:null!==(f=null!==(d=null!==(h=t.source)&&void 0!==h?h:t.db)&&void 0!==d?d:null==e?void 0:e.source)&&void 0!==f?f:"admin"})}}t.MongoCredentials=u},6614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoCR=void 0;const r=n(4770),i=n(4947),s=n(2229),o=n(590);class a extends o.AuthProvider{auth(e,t){const{connection:n,credentials:o}=e;if(!o)return t(new i.MongoMissingCredentialsError("AuthContext must provide credentials."));const a=o.username,u=o.password,l=o.source;n.command((0,s.ns)(`${l}.$cmd`),{getnonce:1},void 0,((e,i)=>{let o=null,c=null;if(null==e){o=i.nonce;let e=r.createHash("md5");e.update(`${a}:mongo:${u}`,"utf8");const t=e.digest("hex");e=r.createHash("md5"),e.update(o+a+t,"utf8"),c=e.digest("hex")}const p={authenticate:1,user:a,nonce:o,key:c};n.command((0,s.ns)(`${l}.$cmd`),p,void 0,t)}))}}t.MongoCR=a},8331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoDBAWS=void 0;const r=n(4770),i=n(2615),s=n(7360),o=n(9064),a=n(8808),u=n(4947),l=n(2229),c=n(590),p=n(4064),h=n(4511),d="http://169.254.169.254",f="/latest/meta-data/iam/security-credentials",m={promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1};class g extends c.AuthProvider{auth(e,t){const{connection:n,credentials:i}=e;if(!i)return t(new u.MongoMissingCredentialsError("AuthContext must provide credentials."));if("kModuleError"in a.aws4)return t(a.aws4.kModuleError);const{sign:s}=a.aws4;if((0,l.maxWireVersion)(n)<9)return void t(new u.MongoCompatibilityError("MONGODB-AWS authentication requires MongoDB version 4.4 or later"));if(!i.username)return void function(e,t){function n(n){n.AccessKeyId&&n.SecretAccessKey&&n.Token?t(void 0,new p.MongoCredentials({username:n.AccessKeyId,password:n.SecretAccessKey,source:e.source,mechanism:h.AuthMechanism.MONGODB_AWS,mechanismProperties:{AWS_SESSION_TOKEN:n.Token}})):t(new u.MongoMissingCredentialsError("Could not obtain temporary MONGODB-AWS credentials"))}process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI?y(`http://169.254.170.2${process.env.AWS_CONTAINER_CREDENTIALS_RELATIVE_URI}`,void 0,((e,r)=>{if(e)return t(e);n(r)})):y(`${d}/latest/api/token`,{method:"PUT",json:!1,headers:{"X-aws-ec2-metadata-token-ttl-seconds":30}},((e,r)=>{if(e)return t(e);y(`${d}/${f}`,{json:!1,headers:{"X-aws-ec2-metadata-token":r}},((e,i)=>{if(e)return t(e);y(`${d}/${f}/${i}`,{headers:{"X-aws-ec2-metadata-token":r}},((e,r)=>{if(e)return t(e);n(r)}))}))}))}(i,((n,r)=>{if(n||!r)return t(n);e.credentials=r,this.auth(e,t)}));const c=i.username,g=i.password,v=i.mechanismProperties.AWS_SESSION_TOKEN,A=c&&g&&v?{accessKeyId:c,secretAccessKey:g,sessionToken:v}:c&&g?{accessKeyId:c,secretAccessKey:g}:void 0,C=i.source;r.randomBytes(32,((e,r)=>{if(e)return void t(e);const i={saslStart:1,mechanism:"MONGODB-AWS",payload:o.serialize({r,p:110},m)};n.command((0,l.ns)(`${C}.$cmd`),i,void 0,((e,i)=>{if(e)return t(e);const a=o.deserialize(i.payload.buffer,m),c=a.h,p=a.s.buffer;if(64!==p.length)return void t(new u.MongoRuntimeError(`Invalid server nonce length ${p.length}, expected 64`));if(0!==p.compare(r,0,r.length,0,r.length))return void t(new u.MongoRuntimeError("Server nonce does not begin with client nonce"));if(c.length<1||c.length>255||-1!==c.indexOf(".."))return void t(new u.MongoRuntimeError(`Server returned an invalid host: "${c}"`));const h="Action=GetCallerIdentity&Version=2011-06-15",d=s({method:"POST",host:c,region:E(a.h),service:"sts",headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":h.length,"X-MongoDB-Server-Nonce":p.toString("base64"),"X-MongoDB-GS2-CB-Flag":"n"},path:"/",body:h},A),f={a:d.headers.Authorization,d:d.headers["X-Amz-Date"]};v&&(f.t=v);const g={saslContinue:1,conversationId:1,payload:o.serialize(f,m)};n.command((0,l.ns)(`${C}.$cmd`),g,void 0,t)}))}))}}function E(e){const t=e.split(".");return 1===t.length||"amazonaws"===t[1]?"us-east-1":t[1]}function y(e,t,n){const r=Object.assign({method:"GET",timeout:1e4,json:!0},s.parse(e),t),o=i.request(r,(e=>{e.setEncoding("utf8");let t="";e.on("data",(e=>t+=e)),e.on("end",(()=>{if(!1!==r.json)try{const e=JSON.parse(t);n(void 0,e)}catch(e){n(new u.MongoRuntimeError(`Invalid JSON response: "${t}"`))}else n(void 0,t)}))}));o.on("timeout",(()=>{o.destroy(new u.MongoAWSError(`AWS request to ${e} timed out after ${r.timeout} ms`))})),o.on("error",(e=>n(e))),o.end()}t.MongoDBAWS=g},6427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plain=void 0;const r=n(9064),i=n(4947),s=n(2229),o=n(590);class a extends o.AuthProvider{auth(e,t){const{connection:n,credentials:o}=e;if(!o)return t(new i.MongoMissingCredentialsError("AuthContext must provide credentials."));const a=o.username,u=o.password,l={saslStart:1,mechanism:"PLAIN",payload:new r.Binary(Buffer.from(`\0${a}\0${u}`)),autoAuthorize:1};n.command((0,s.ns)("$external.$cmd"),l,void 0,t)}}t.Plain=a},4511:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=t.AuthMechanism=void 0,t.AuthMechanism=Object.freeze({MONGODB_AWS:"MONGODB-AWS",MONGODB_CR:"MONGODB-CR",MONGODB_DEFAULT:"DEFAULT",MONGODB_GSSAPI:"GSSAPI",MONGODB_PLAIN:"PLAIN",MONGODB_SCRAM_SHA1:"SCRAM-SHA-1",MONGODB_SCRAM_SHA256:"SCRAM-SHA-256",MONGODB_X509:"MONGODB-X509"}),t.AUTH_MECHS_AUTH_SRC_EXTERNAL=new Set([t.AuthMechanism.MONGODB_GSSAPI,t.AuthMechanism.MONGODB_AWS,t.AuthMechanism.MONGODB_X509])},9755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScramSHA256=t.ScramSHA1=void 0;const r=n(4770),i=n(9064),s=n(8808),o=n(4947),a=n(2229),u=n(590),l=n(4511);class c extends u.AuthProvider{constructor(e){super(),this.cryptoMethod=e||"sha1"}prepare(e,t,n){const i=this.cryptoMethod,u=t.credentials;if(!u)return n(new o.MongoMissingCredentialsError("AuthContext must provide credentials."));"sha256"===i&&null==s.saslprep&&(0,a.emitWarning)("Warning: no saslprep library specified. Passwords will not be sanitized"),r.randomBytes(24,((r,s)=>{if(r)return n(r);Object.assign(t,{nonce:s});const o=Object.assign({},e,{speculativeAuthenticate:Object.assign(d(i,u,s),{db:u.source})});n(void 0,o)}))}auth(e,t){const n=e.response;n&&n.speculativeAuthenticate?f(this.cryptoMethod,n.speculativeAuthenticate,e,t):function(e,t,n){const{connection:r,credentials:i}=t;if(!i)return n(new o.MongoMissingCredentialsError("AuthContext must provide credentials."));if(!t.nonce)return n(new o.MongoInvalidArgumentError("AuthContext must contain a valid nonce property"));const s=t.nonce,u=i.source,l=d(e,i,s);r.command((0,a.ns)(`${u}.$cmd`),l,void 0,((r,i)=>{const s=A(r,i);if(s)return n(s);f(e,i,t,n)}))}(this.cryptoMethod,e,t)}}function p(e){return e.replace("=","=3D").replace(",","=2C")}function h(e,t){return Buffer.concat([Buffer.from("n=","utf8"),Buffer.from(e,"utf8"),Buffer.from(",r=","utf8"),Buffer.from(t.toString("base64"),"utf8")])}function d(e,t,n){const r=p(t.username);return{saslStart:1,mechanism:"sha1"===e?l.AuthMechanism.MONGODB_SCRAM_SHA1:l.AuthMechanism.MONGODB_SCRAM_SHA256,payload:new i.Binary(Buffer.concat([Buffer.from("n,,","utf8"),h(r,n)])),autoAuthorize:1,options:{skipEmptyExchange:!0}}}function f(e,t,n,u){const l=n.connection,c=n.credentials;if(!c)return u(new o.MongoMissingCredentialsError("AuthContext must provide credentials."));if(!n.nonce)return u(new o.MongoInvalidArgumentError("Unable to continue SCRAM without valid nonce"));const d=n.nonce,f=c.source,C=p(c.username),b=c.password;let S;if("sha256"===e)S="kModuleError"in s.saslprep?b:(0,s.saslprep)(b);else try{S=function(e,t){if("string"!=typeof e)throw new o.MongoInvalidArgumentError("Username must be a string");if("string"!=typeof t)throw new o.MongoInvalidArgumentError("Password must be a string");if(0===t.length)throw new o.MongoInvalidArgumentError("Password cannot be empty");const n=r.createHash("md5");return n.update(`${e}:mongo:${t}`,"utf8"),n.digest("hex")}(C,b)}catch(e){return u(e)}const x=Buffer.isBuffer(t.payload)?new i.Binary(t.payload):t.payload,w=m(x.value()),D=parseInt(w.i,10);if(D&&D<4096)return void u(new o.MongoRuntimeError(`Server returned an invalid iteration count ${D}`),!1);const _=w.s,O=w.r;if(O.startsWith("nonce"))return void u(new o.MongoRuntimeError(`Server returned an invalid nonce: ${O}`),!1);const F=`c=biws,r=${O}`,T=function(e,t,n,i){const s=[e,t.toString("base64"),n].join("_");if(null!=E[s])return E[s];const o=r.pbkdf2Sync(e,t,n,v[i],i);return y>=200&&(E={},y=0),E[s]=o,y+=1,o}(S,Buffer.from(_,"base64"),D,e),B=g(e,T,"Client Key"),k=g(e,T,"Server Key"),R=(I=e,N=B,r.createHash(I).update(N).digest());var I,N;const P=[h(C,d),x.value(),F].join(","),M=[F,`p=${function(e,t){Buffer.isBuffer(e)||(e=Buffer.from(e)),Buffer.isBuffer(t)||(t=Buffer.from(t));const n=Math.max(e.length,t.length),r=[];for(let i=0;i<n;i+=1)r.push(e[i]^t[i]);return Buffer.from(r).toString("base64")}(B,g(e,R,P))}`].join(","),L=g(e,k,P),j={saslContinue:1,conversationId:t.conversationId,payload:new i.Binary(Buffer.from(M))};l.command((0,a.ns)(`${f}.$cmd`),j,void 0,((e,t)=>{const n=A(e,t);if(n)return u(n);const i=m(t.payload.value());if(!function(e,t){if(e.length!==t.length)return!1;if("function"==typeof r.timingSafeEqual)return r.timingSafeEqual(e,t);let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(Buffer.from(i.v,"base64"),L))return void u(new o.MongoRuntimeError("Server returned an invalid signature"));if(!t||!1!==t.done)return u(n,t);const s={saslContinue:1,conversationId:t.conversationId,payload:Buffer.alloc(0)};l.command((0,a.ns)(`${f}.$cmd`),s,void 0,u)}))}function m(e){const t={},n=e.split(",");for(let e=0;e<n.length;e++){const r=n[e].split("=");t[r[0]]=r[1]}return t}function g(e,t,n){return r.createHmac(e,t).update(n).digest()}let E={},y=0;const v={sha256:32,sha1:20};function A(e,t){return e||(t&&(t.$err||t.errmsg)?new o.MongoServerError(t):void 0)}t.ScramSHA1=class extends c{constructor(){super("sha1")}},t.ScramSHA256=class extends c{constructor(){super("sha256")}}},3953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.X509=void 0;const r=n(4947),i=n(2229),s=n(590);class o extends s.AuthProvider{prepare(e,t,n){const{credentials:i}=t;if(!i)return n(new r.MongoMissingCredentialsError("AuthContext must provide credentials."));Object.assign(e,{speculativeAuthenticate:a(i)}),n(void 0,e)}auth(e,t){const n=e.connection,s=e.credentials;if(!s)return t(new r.MongoMissingCredentialsError("AuthContext must provide credentials."));const o=e.response;if(o&&o.speculativeAuthenticate)return t();n.command((0,i.ns)("$external.$cmd"),a(s),void 0,t)}}function a(e){const t={authenticate:1,mechanism:"MONGODB-X509"};return e.username&&(t.user=e.username),t}t.X509=o},2457:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandFailedEvent=t.CommandSucceededEvent=t.CommandStartedEvent=void 0;const r=n(5006),i=n(2229),s=n(2322);t.CommandStartedEvent=class{constructor(e,t){const n=g(t),r=u(n),{address:i,connectionId:s,serviceId:a}=E(e);o.has(r)&&(this.commandObj={},this.commandObj[r]=!0),this.address=i,this.connectionId=s,this.serviceId=a,this.requestId=t.requestId,this.databaseName=c(t),this.commandName=r,this.command=h(r,n,n)}get hasServiceId(){return!!this.serviceId}},t.CommandSucceededEvent=class{constructor(e,t,n,r){const o=g(t),a=u(o),{address:c,connectionId:p,serviceId:d}=E(e);this.address=c,this.connectionId=p,this.serviceId=d,this.requestId=t.requestId,this.commandName=a,this.duration=(0,i.calculateDurationInMs)(r),this.reply=h(a,o,function(e,t){return e instanceof s.KillCursor?{ok:1,cursorsUnknown:e.cursorIds}:t?e instanceof s.GetMore?{ok:1,cursor:{id:(0,i.deepCopy)(t.cursorId),ns:l(e),nextBatch:(0,i.deepCopy)(t.documents)}}:e instanceof s.Msg?(0,i.deepCopy)(t.result?t.result:t):e.query&&null!=e.query.$query?{ok:1,cursor:{id:(0,i.deepCopy)(t.cursorId),ns:l(e),firstBatch:(0,i.deepCopy)(t.documents)}}:(0,i.deepCopy)(t.result?t.result:t):t}(t,n))}get hasServiceId(){return!!this.serviceId}},t.CommandFailedEvent=class{constructor(e,t,n,r){const s=g(t),o=u(s),{address:a,connectionId:l,serviceId:c}=E(e);this.address=a,this.connectionId=l,this.serviceId=c,this.requestId=t.requestId,this.commandName=o,this.duration=(0,i.calculateDurationInMs)(r),this.failure=h(o,s,n)}get hasServiceId(){return!!this.serviceId}};const o=new Set(["authenticate","saslStart","saslContinue","getnonce","createUser","updateUser","copydbgetnonce","copydbsaslstart","copydb"]),a=new Set(["hello",r.LEGACY_HELLO_COMMAND,r.LEGACY_HELLO_COMMAND_CAMEL_CASE]),u=e=>Object.keys(e)[0],l=e=>e.ns,c=e=>e.ns.split(".")[0],p=e=>e.ns.split(".")[1],h=(e,t,n)=>o.has(e)||a.has(e)&&t.speculativeAuthenticate?{}:n,d={$query:"filter",$orderby:"sort",$hint:"hint",$comment:"comment",$maxScan:"maxScan",$max:"max",$min:"min",$returnKey:"returnKey",$showDiskLoc:"showRecordId",$maxTimeMS:"maxTimeMS",$snapshot:"snapshot"},f={numberToSkip:"skip",numberToReturn:"batchSize",returnFieldSelector:"projection"},m=["tailable","oplogReplay","noCursorTimeout","awaitData","partial","exhaust"];function g(e){var t;if(e instanceof s.GetMore)return{getMore:(0,i.deepCopy)(e.cursorId),collection:p(e),batchSize:e.numberToReturn};if(e instanceof s.KillCursor)return{killCursors:p(e),cursors:(0,i.deepCopy)(e.cursorIds)};if(e instanceof s.Msg)return(0,i.deepCopy)(e.command);if(null===(t=e.query)||void 0===t?void 0:t.$query){let t;return"admin.$cmd"===e.ns?t=Object.assign({},e.query.$query):(t={find:p(e)},Object.keys(d).forEach((n=>{null!=e.query[n]&&(t[d[n]]=(0,i.deepCopy)(e.query[n]))}))),Object.keys(f).forEach((n=>{const r=n;null!=e[r]&&(t[f[r]]=(0,i.deepCopy)(e[r]))})),m.forEach((n=>{const r=n;e[r]&&(t[r]=e[r])})),null!=e.pre32Limit&&(t.limit=e.pre32Limit),e.query.$explain?{explain:t}:t}const n={},r={};if(e.query){for(const t in e.query)n[t]=(0,i.deepCopy)(e.query[t]);r.query=n}for(const t in e)"query"!==t&&(r[t]=(0,i.deepCopy)(e[t]));return e.query?n:r}function E(e){let t;return"id"in e&&(t=e.id),{address:e.address,serviceId:e.serviceId,connectionId:t}}},2322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BinMsg=t.Msg=t.Response=t.KillCursor=t.GetMore=t.Query=void 0;const r=n(9064),i=n(4947),s=n(1228),o=n(2229),a=n(3496);let u=0;class l{constructor(e,t,n){if(null==e)throw new i.MongoRuntimeError("Namespace must be specified for query");if(null==t)throw new i.MongoRuntimeError("A query document must be specified for query");if(-1!==e.indexOf("\0"))throw new i.MongoRuntimeError("Namespace cannot contain a null character");this.ns=e,this.query=t,this.numberToSkip=n.numberToSkip||0,this.numberToReturn=n.numberToReturn||0,this.returnFieldSelector=n.returnFieldSelector||void 0,this.requestId=l.getRequestId(),this.pre32Limit=n.pre32Limit,this.serializeFunctions="boolean"==typeof n.serializeFunctions&&n.serializeFunctions,this.ignoreUndefined="boolean"==typeof n.ignoreUndefined&&n.ignoreUndefined,this.maxBsonSize=n.maxBsonSize||16777216,this.checkKeys="boolean"==typeof n.checkKeys&&n.checkKeys,this.batchSize=this.numberToReturn,this.tailable=!1,this.secondaryOk="boolean"==typeof n.secondaryOk&&n.secondaryOk,this.oplogReplay=!1,this.noCursorTimeout=!1,this.awaitData=!1,this.exhaust=!1,this.partial=!1}incRequestId(){this.requestId=u++}nextRequestId(){return u+1}static getRequestId(){return++u}toBin(){const e=[];let t=null,n=0;this.tailable&&(n|=2),this.secondaryOk&&(n|=4),this.oplogReplay&&(n|=8),this.noCursorTimeout&&(n|=16),this.awaitData&&(n|=32),this.exhaust&&(n|=64),this.partial&&(n|=128),this.batchSize!==this.numberToReturn&&(this.numberToReturn=this.batchSize);const i=Buffer.alloc(20+Buffer.byteLength(this.ns)+1+4+4);e.push(i);const s=r.serialize(this.query,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined});e.push(s),this.returnFieldSelector&&Object.keys(this.returnFieldSelector).length>0&&(t=r.serialize(this.returnFieldSelector,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined}),e.push(t));const o=i.length+s.length+(t?t.length:0);let u=4;return i[3]=o>>24&255,i[2]=o>>16&255,i[1]=o>>8&255,i[0]=255&o,i[u+3]=this.requestId>>24&255,i[u+2]=this.requestId>>16&255,i[u+1]=this.requestId>>8&255,i[u]=255&this.requestId,u+=4,i[u+3]=0,i[u+2]=0,i[u+1]=0,i[u]=0,u+=4,i[u+3]=a.OP_QUERY>>24&255,i[u+2]=a.OP_QUERY>>16&255,i[u+1]=a.OP_QUERY>>8&255,i[u]=255&a.OP_QUERY,u+=4,i[u+3]=n>>24&255,i[u+2]=n>>16&255,i[u+1]=n>>8&255,i[u]=255&n,u+=4,u=u+i.write(this.ns,u,"utf8")+1,i[u-1]=0,i[u+3]=this.numberToSkip>>24&255,i[u+2]=this.numberToSkip>>16&255,i[u+1]=this.numberToSkip>>8&255,i[u]=255&this.numberToSkip,u+=4,i[u+3]=this.numberToReturn>>24&255,i[u+2]=this.numberToReturn>>16&255,i[u+1]=this.numberToReturn>>8&255,i[u]=255&this.numberToReturn,u+=4,e}}t.Query=l,t.GetMore=class{constructor(e,t,n={}){this.numberToReturn=n.numberToReturn||0,this.requestId=u++,this.ns=e,this.cursorId=t}toBin(){const e=4+Buffer.byteLength(this.ns)+1+4+8+16;let t=0;const n=Buffer.alloc(e);return n[t+3]=e>>24&255,n[t+2]=e>>16&255,n[t+1]=e>>8&255,n[t]=255&e,t+=4,n[t+3]=this.requestId>>24&255,n[t+2]=this.requestId>>16&255,n[t+1]=this.requestId>>8&255,n[t]=255&this.requestId,t+=4,n[t+3]=0,n[t+2]=0,n[t+1]=0,n[t]=0,t+=4,n[t+3]=a.OP_GETMORE>>24&255,n[t+2]=a.OP_GETMORE>>16&255,n[t+1]=a.OP_GETMORE>>8&255,n[t]=255&a.OP_GETMORE,t+=4,n[t+3]=0,n[t+2]=0,n[t+1]=0,n[t]=0,t+=4,t=t+n.write(this.ns,t,"utf8")+1,n[t-1]=0,n[t+3]=this.numberToReturn>>24&255,n[t+2]=this.numberToReturn>>16&255,n[t+1]=this.numberToReturn>>8&255,n[t]=255&this.numberToReturn,t+=4,n[t+3]=this.cursorId.getLowBits()>>24&255,n[t+2]=this.cursorId.getLowBits()>>16&255,n[t+1]=this.cursorId.getLowBits()>>8&255,n[t]=255&this.cursorId.getLowBits(),t+=4,n[t+3]=this.cursorId.getHighBits()>>24&255,n[t+2]=this.cursorId.getHighBits()>>16&255,n[t+1]=this.cursorId.getHighBits()>>8&255,n[t]=255&this.cursorId.getHighBits(),t+=4,[n]}},t.KillCursor=class{constructor(e,t){this.ns=e,this.requestId=u++,this.cursorIds=t}toBin(){const e=24+8*this.cursorIds.length;let t=0;const n=Buffer.alloc(e);n[t+3]=e>>24&255,n[t+2]=e>>16&255,n[t+1]=e>>8&255,n[t]=255&e,t+=4,n[t+3]=this.requestId>>24&255,n[t+2]=this.requestId>>16&255,n[t+1]=this.requestId>>8&255,n[t]=255&this.requestId,t+=4,n[t+3]=0,n[t+2]=0,n[t+1]=0,n[t]=0,t+=4,n[t+3]=a.OP_KILL_CURSORS>>24&255,n[t+2]=a.OP_KILL_CURSORS>>16&255,n[t+1]=a.OP_KILL_CURSORS>>8&255,n[t]=255&a.OP_KILL_CURSORS,t+=4,n[t+3]=0,n[t+2]=0,n[t+1]=0,n[t]=0,t+=4,n[t+3]=this.cursorIds.length>>24&255,n[t+2]=this.cursorIds.length>>16&255,n[t+1]=this.cursorIds.length>>8&255,n[t]=255&this.cursorIds.length,t+=4;for(let e=0;e<this.cursorIds.length;e++)n[t+3]=this.cursorIds[e].getLowBits()>>24&255,n[t+2]=this.cursorIds[e].getLowBits()>>16&255,n[t+1]=this.cursorIds[e].getLowBits()>>8&255,n[t]=255&this.cursorIds[e].getLowBits(),t+=4,n[t+3]=this.cursorIds[e].getHighBits()>>24&255,n[t+2]=this.cursorIds[e].getHighBits()>>16&255,n[t+1]=this.cursorIds[e].getHighBits()>>8&255,n[t]=255&this.cursorIds[e].getHighBits(),t+=4;return[n]}},t.Response=class{constructor(e,t,n,r){this.documents=new Array(0),this.parsed=!1,this.raw=e,this.data=n,this.opts=null!=r?r:{promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp}isParsed(){return this.parsed}parse(e){var t,n,i,s;if(this.parsed)return;const o=(e=null!=e?e:{}).raw||!1,a=e.documentsReturnedIn||null;let u;const l={promoteLongs:null!==(t=e.promoteLongs)&&void 0!==t?t:this.opts.promoteLongs,promoteValues:null!==(n=e.promoteValues)&&void 0!==n?n:this.opts.promoteValues,promoteBuffers:null!==(i=e.promoteBuffers)&&void 0!==i?i:this.opts.promoteBuffers,bsonRegExp:null!==(s=e.bsonRegExp)&&void 0!==s?s:this.opts.bsonRegExp};this.index=20,this.responseFlags=this.data.readInt32LE(0),this.cursorId=new r.Long(this.data.readInt32LE(4),this.data.readInt32LE(8)),this.startingFrom=this.data.readInt32LE(12),this.numberReturned=this.data.readInt32LE(16),this.documents=new Array(this.numberReturned),this.cursorNotFound=0!=(1&this.responseFlags),this.queryFailure=0!=(2&this.responseFlags),this.shardConfigStale=0!=(4&this.responseFlags),this.awaitCapable=0!=(8&this.responseFlags);for(let e=0;e<this.numberReturned;e++)u=this.data[this.index]|this.data[this.index+1]<<8|this.data[this.index+2]<<16|this.data[this.index+3]<<24,this.documents[e]=o?this.data.slice(this.index,this.index+u):r.deserialize(this.data.slice(this.index,this.index+u),l),this.index=this.index+u;if(1===this.documents.length&&null!=a&&o){const e={};e[a]=!0,l.fieldsAsRaw=e;const t=r.deserialize(this.documents[0],l);this.documents=[t]}this.parsed=!0}};class c{constructor(e,t,n){if(null==t)throw new i.MongoInvalidArgumentError("Query document must be specified for query");this.ns=e,this.command=t,this.command.$db=(0,o.databaseNamespace)(e),n.readPreference&&n.readPreference.mode!==s.ReadPreference.PRIMARY&&(this.command.$readPreference=n.readPreference.toJSON()),this.options=null!=n?n:{},this.requestId=n.requestId?n.requestId:c.getRequestId(),this.serializeFunctions="boolean"==typeof n.serializeFunctions&&n.serializeFunctions,this.ignoreUndefined="boolean"==typeof n.ignoreUndefined&&n.ignoreUndefined,this.checkKeys="boolean"==typeof n.checkKeys&&n.checkKeys,this.maxBsonSize=n.maxBsonSize||16777216,this.checksumPresent=!1,this.moreToCome=n.moreToCome||!1,this.exhaustAllowed="boolean"==typeof n.exhaustAllowed&&n.exhaustAllowed}toBin(){const e=[];let t=0;this.checksumPresent&&(t|=1),this.moreToCome&&(t|=2),this.exhaustAllowed&&(t|=65536);const n=Buffer.alloc(20);e.push(n);let r=n.length;const i=this.command;return r+=this.makeDocumentSegment(e,i),n.writeInt32LE(r,0),n.writeInt32LE(this.requestId,4),n.writeInt32LE(0,8),n.writeInt32LE(a.OP_MSG,12),n.writeUInt32LE(t,16),e}makeDocumentSegment(e,t){const n=Buffer.alloc(1);n[0]=0;const r=this.serializeBson(t);return e.push(n),e.push(r),n.length+r.length}serializeBson(e){return r.serialize(e,{checkKeys:this.checkKeys,serializeFunctions:this.serializeFunctions,ignoreUndefined:this.ignoreUndefined})}static getRequestId(){return u=u+1&2147483647,u}}t.Msg=c,t.BinMsg=class{constructor(e,t,n,r){this.parsed=!1,this.raw=e,this.data=n,this.opts=null!=r?r:{promoteLongs:!0,promoteValues:!0,promoteBuffers:!1,bsonRegExp:!1},this.length=t.length,this.requestId=t.requestId,this.responseTo=t.responseTo,this.opCode=t.opCode,this.fromCompressed=t.fromCompressed,this.responseFlags=n.readInt32LE(0),this.checksumPresent=0!=(1&this.responseFlags),this.moreToCome=0!=(2&this.responseFlags),this.exhaustAllowed=0!=(65536&this.responseFlags),this.promoteLongs="boolean"!=typeof this.opts.promoteLongs||this.opts.promoteLongs,this.promoteValues="boolean"!=typeof this.opts.promoteValues||this.opts.promoteValues,this.promoteBuffers="boolean"==typeof this.opts.promoteBuffers&&this.opts.promoteBuffers,this.bsonRegExp="boolean"==typeof this.opts.bsonRegExp&&this.opts.bsonRegExp,this.documents=[]}isParsed(){return this.parsed}parse(e){var t,n,s,o;if(this.parsed)return;e=null!=e?e:{},this.index=4;const a=e.raw||!1,u=e.documentsReturnedIn||null,l={promoteLongs:null!==(t=e.promoteLongs)&&void 0!==t?t:this.opts.promoteLongs,promoteValues:null!==(n=e.promoteValues)&&void 0!==n?n:this.opts.promoteValues,promoteBuffers:null!==(s=e.promoteBuffers)&&void 0!==s?s:this.opts.promoteBuffers,bsonRegExp:null!==(o=e.bsonRegExp)&&void 0!==o?o:this.opts.bsonRegExp,validation:this.parseBsonSerializationOptions(e)};for(;this.index<this.data.length;){const e=this.data.readUInt8(this.index++);if(0===e){const e=this.data.readUInt32LE(this.index),t=this.data.slice(this.index,this.index+e);this.documents.push(a?t:r.deserialize(t,l)),this.index+=e}else if(1===e)throw new i.MongoRuntimeError("OP_MSG Payload Type 1 detected unsupported protocol")}if(1===this.documents.length&&null!=u&&a){const e={};e[u]=!0,l.fieldsAsRaw=e;const t=r.deserialize(this.documents[0],l);this.documents=[t]}this.parsed=!0}parseBsonSerializationOptions({enableUtf8Validation:e}){return!1===e?{utf8:!1}:{utf8:{writeErrors:!1}}}}},231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LEGAL_TCP_SOCKET_OPTIONS=t.LEGAL_TLS_SOCKET_OPTIONS=t.connect=void 0;const r=n(8216),i=n(2131),s=n(2452),o=n(9064),a=n(5006),u=n(4947),l=n(2229),c=n(590),p=n(2403),h=n(6614),d=n(8331),f=n(6427),m=n(4511),g=n(9755),E=n(3953),y=n(8345),v=n(3496),A=new Map([[m.AuthMechanism.MONGODB_AWS,new d.MongoDBAWS],[m.AuthMechanism.MONGODB_CR,new h.MongoCR],[m.AuthMechanism.MONGODB_GSSAPI,new p.GSSAPI],[m.AuthMechanism.MONGODB_PLAIN,new f.Plain],[m.AuthMechanism.MONGODB_SCRAM_SHA1,new g.ScramSHA1],[m.AuthMechanism.MONGODB_SCRAM_SHA256,new g.ScramSHA256],[m.AuthMechanism.MONGODB_X509,new E.X509]]);function C(e){const n=e.hostAddress;if(!n)throw new u.MongoInvalidArgumentError('Option "hostAddress" is required');const r={};for(const n of t.LEGAL_TCP_SOCKET_OPTIONS)null!=e[n]&&(r[n]=e[n]);if("string"==typeof n.socketPath)return r.path=n.socketPath,r;if("string"==typeof n.host)return r.host=n.host,r.port=n.port,r;throw new u.MongoRuntimeError(`Unexpected HostAddress ${JSON.stringify(n)}`)}t.connect=function(e,t){S({...e,existingSocket:void 0},((n,r)=>{var i;if(n||!r)return t(n);let s=null!==(i=e.connectionType)&&void 0!==i?i:y.Connection;e.autoEncrypter&&(s=y.CryptoConnection),function(e,t,n){const r=function(t,r){t&&e&&e.destroy(),n(t,r)},i=t.credentials;if(i&&i.mechanism!==m.AuthMechanism.MONGODB_DEFAULT&&!A.get(i.mechanism))return void r(new u.MongoInvalidArgumentError(`AuthMechanism '${i.mechanism}' not supported`));const s=new c.AuthContext(e,i,t);!function(e,t){const n=e.options,r=n.compressors?n.compressors:[],{serverApi:i}=e.connection,s={[(null==i?void 0:i.version)?"hello":a.LEGACY_HELLO_COMMAND]:!0,helloOk:!0,client:n.metadata||(0,l.makeClientMetadata)(n),compression:r,loadBalanced:n.loadBalanced},o=e.credentials;if(o){if(o.mechanism===m.AuthMechanism.MONGODB_DEFAULT&&o.username){s.saslSupportedMechs=`${o.source}.${o.username}`;const n=A.get(m.AuthMechanism.MONGODB_SCRAM_SHA256);return n?n.prepare(s,e,t):t(new u.MongoInvalidArgumentError(`No AuthProvider for ${m.AuthMechanism.MONGODB_SCRAM_SHA256} defined.`))}const n=A.get(o.mechanism);return n?n.prepare(s,e,t):t(new u.MongoInvalidArgumentError(`No AuthProvider for ${o.mechanism} defined.`))}t(void 0,s)}(s,((n,c)=>{if(n||!c)return r(n);const p=Object.assign({},t);"number"==typeof t.connectTimeoutMS&&(p.socketTimeoutMS=t.connectTimeoutMS);const h=(new Date).getTime();e.command((0,l.ns)("admin.$cmd"),c,p,((n,l)=>{if(n)return void r(n);if(0===(null==l?void 0:l.ok))return void r(new u.MongoServerError(l));"isWritablePrimary"in l||(l.isWritablePrimary=l[a.LEGACY_HELLO_COMMAND]),l.helloOk&&(e.helloOk=!0);const c=function(e,t){var n;const r=e&&("number"==typeof e.maxWireVersion||e.maxWireVersion instanceof o.Int32)&&e.maxWireVersion>=v.MIN_SUPPORTED_WIRE_VERSION,i=e&&("number"==typeof e.minWireVersion||e.minWireVersion instanceof o.Int32)&&e.minWireVersion<=v.MAX_SUPPORTED_WIRE_VERSION;if(r){if(i)return null;const n=`Server at ${t.hostAddress} reports minimum wire version ${JSON.stringify(e.minWireVersion)}, but this version of the Node.js Driver requires at most ${v.MAX_SUPPORTED_WIRE_VERSION} (MongoDB ${v.MAX_SUPPORTED_SERVER_VERSION})`;return new u.MongoCompatibilityError(n)}const s=`Server at ${t.hostAddress} reports maximum wire version ${null!==(n=JSON.stringify(e.maxWireVersion))&&void 0!==n?n:0}, but this version of the Node.js Driver requires at least ${v.MIN_SUPPORTED_WIRE_VERSION} (MongoDB ${v.MIN_SUPPORTED_SERVER_VERSION})`;return new u.MongoCompatibilityError(s)}(l,t);if(c)r(c);else{if(t.loadBalanced&&!l.serviceId)return r(new u.MongoCompatibilityError("Driver attempted to initialize in load balancing mode, but the server does not support this mode."));if(e.hello=l,e.lastHelloMS=(new Date).getTime()-h,!l.arbiterOnly&&i){s.response=l;const t=i.resolveAuthMechanism(l),n=A.get(t.mechanism);return n?void n.auth(s,(t=>{if(t)return t instanceof u.MongoError&&(t.addErrorLabel(u.MongoErrorLabel.HandshakeError),(0,u.needsRetryableWriteLabel)(t,l.maxWireVersion)&&t.addErrorLabel(u.MongoErrorLabel.RetryableWriteError)),r(t);r(void 0,e)})):r(new u.MongoInvalidArgumentError(`No AuthProvider for ${t.mechanism} defined.`))}r(void 0,e)}}))}))}(new s(r,e),e,t)}))},t.LEGAL_TLS_SOCKET_OPTIONS=["ALPNProtocols","ca","cert","checkServerIdentity","ciphers","crl","ecdhCurve","key","minDHSize","passphrase","pfx","rejectUnauthorized","secureContext","secureProtocol","servername","session"],t.LEGAL_TCP_SOCKET_OPTIONS=["family","hints","localAddress","localPort","lookup"];const b=new Set(["error","close","timeout","parseError"]);function S(e,n){var o,a,c,p,h,d,f,m,g;const E=null!==(o=e.tls)&&void 0!==o&&o,y=null===(a=e.keepAlive)||void 0===a||a,v=null!==(p=null!==(c=e.socketTimeoutMS)&&void 0!==c?c:Reflect.get(e,"socketTimeout"))&&void 0!==p?p:0,A=null===(h=e.noDelay)||void 0===h||h,w=null!==(d=e.connectTimeoutMS)&&void 0!==d?d:3e4,D=null===(f=e.rejectUnauthorized)||void 0===f||f,_=null!==(g=(null!==(m=e.keepAliveInitialDelay)&&void 0!==m?m:12e4)>v?Math.round(v/2):e.keepAliveInitialDelay)&&void 0!==g?g:12e4,O=e.existingSocket;let F;const T=function(e,t){e&&F&&F.destroy(),n(e,t)};if(null!=e.proxyHost)return function(e,t){var n,r;const s=l.HostAddress.fromHostPort(null!==(n=e.proxyHost)&&void 0!==n?n:"",null!==(r=e.proxyPort)&&void 0!==r?r:1080);S({...e,hostAddress:s,tls:!1,proxyHost:void 0},((n,r)=>{if(n)return t(n);const s=C(e);if("string"!=typeof s.host||"number"!=typeof s.port)return t(new u.MongoInvalidArgumentError("Can only make Socks5 connections to TCP hosts"));i.SocksClient.createConnection({existing_socket:r,timeout:e.connectTimeoutMS,command:"connect",destination:{host:s.host,port:s.port},proxy:{host:"iLoveJavaScript",port:0,type:5,userId:e.proxyUsername||void 0,password:e.proxyPassword||void 0}},((n,r)=>{if(n)return t(x("error",n));S({...e,existingSocket:r.socket,proxyHost:void 0},t)}))}))}({...e,connectTimeoutMS:w},T);if(E){const n=s.connect(function(e){const n=C(e);for(const r of t.LEGAL_TLS_SOCKET_OPTIONS)null!=e[r]&&(n[r]=e[r]);return e.existingSocket&&(n.socket=e.existingSocket),null==n.servername&&n.host&&!r.isIP(n.host)&&(n.servername=n.host),n}(e));"function"==typeof n.disableRenegotiation&&n.disableRenegotiation(),F=n}else F=O||r.createConnection(C(e));F.setKeepAlive(y,_),F.setTimeout(w),F.setNoDelay(A);const B=E?"secureConnect":"connect";let k;function R(t){return n=>{b.forEach((e=>F.removeAllListeners(e))),k&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",k),F.removeListener(B,I),T(x(t,n))}}function I(){if(b.forEach((e=>F.removeAllListeners(e))),k&&e.cancellationToken&&e.cancellationToken.removeListener("cancel",k),"authorizationError"in F&&F.authorizationError&&D)return T(F.authorizationError);F.setTimeout(v),T(void 0,F)}b.forEach((e=>F.once(e,R(e)))),e.cancellationToken&&(k=R("cancel"),e.cancellationToken.once("cancel",k)),O?process.nextTick(I):F.once(B,I)}function x(e,t){switch(e){case"error":return new u.MongoNetworkError(t);case"timeout":return new u.MongoNetworkTimeoutError("connection timed out");case"close":return new u.MongoNetworkError("connection closed");case"cancel":return new u.MongoNetworkError("connection establishment was cancelled");default:return new u.MongoNetworkError("unknown network error")}}},8345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSessionSupport=t.CryptoConnection=t.Connection=void 0;const r=n(9064),i=n(5006),s=n(4947),o=n(334),a=n(1296),u=n(2229),l=n(2457),c=n(2322),p=n(7827),h=n(9011),d=n(3377),f=Symbol("stream"),m=Symbol("queue"),g=Symbol("messageStream"),E=Symbol("generation"),y=Symbol("lastUseTime"),v=Symbol("clusterTime"),A=Symbol("description"),C=Symbol("hello"),b=Symbol("autoEncrypter"),S=Symbol("fullResult"),x=Symbol("delayedTimeoutId");class w extends o.TypedEventEmitter{constructor(e,t){var n,r;super(),this.id=t.id,this.address=function(e,t){return t.proxyHost?t.hostAddress.toString():"function"==typeof e.address?`${e.remoteAddress}:${e.remotePort}`:(0,u.uuidV4)().toString("hex")}(e,t),this.socketTimeoutMS=null!==(n=t.socketTimeoutMS)&&void 0!==n?n:0,this.monitorCommands=t.monitorCommands,this.serverApi=t.serverApi,this.closed=!1,this.destroyed=!1,this[C]=null,this[v]=null,this[A]=new h.StreamDescription(this.address,t),this[E]=t.generation,this[y]=(0,u.now)(),this[m]=new Map,this[g]=new p.MessageStream({...t,maxBsonMessageSize:null===(r=this.hello)||void 0===r?void 0:r.maxBsonMessageSize}),this[f]=e,this[x]=null,this[g].on("message",(e=>this.onMessage(e))),this[g].on("error",(e=>this.onError(e))),this[f].on("close",(()=>this.onClose())),this[f].on("timeout",(()=>this.onTimeout())),this[f].on("error",(()=>{})),this[f].pipe(this[g]),this[g].pipe(this[f])}get description(){return this[A]}get hello(){return this[C]}set hello(e){this[A].receiveResponse(e),this[A]=Object.freeze(this[A]),this[C]=e}get serviceId(){var e;return null===(e=this.hello)||void 0===e?void 0:e.serviceId}get loadBalanced(){return this.description.loadBalanced}get generation(){return this[E]||0}set generation(e){this[E]=e}get idleTime(){return(0,u.calculateDurationInMs)(this[y])}get clusterTime(){return this[v]}get stream(){return this[f]}markAvailable(){this[y]=(0,u.now)()}onError(e){if(!this.closed){this[f].destroy(e),this.closed=!0;for(const t of this[m].values())t.cb(e);this[m].clear(),this.emit(w.CLOSE)}}onClose(){if(this.closed)return;this.closed=!0;const e=`connection ${this.id} to ${this.address} closed`;for(const t of this[m].values())t.cb(new s.MongoNetworkError(e));this[m].clear(),this.emit(w.CLOSE)}onTimeout(){this.closed||(this[x]=setTimeout((()=>{this[f].destroy(),this.closed=!0;const e=`connection ${this.id} to ${this.address} timed out`,t=null==this.hello;for(const n of this[m].values())n.cb(new s.MongoNetworkTimeoutError(e,{beforeHandshake:t}));this[m].clear(),this.emit(w.CLOSE)}),1).unref())}onMessage(e){const t=this[x];null!=t&&(clearTimeout(t),this[x]=null),this.emit("message",e);const n=this[m].get(e.responseTo);if(!n)return;const r=n.cb;this[m].delete(e.responseTo),"moreToCome"in e&&e.moreToCome?this[m].set(e.requestId,n):n.socketTimeoutOverride&&this[f].setTimeout(this.socketTimeoutMS);try{e.parse(n)}catch(e){return void r(e)}if(e.documents[0]){const t=e.documents[0],i=n.session;if(i&&(0,a.updateSessionFromResponse)(i,t),t.$clusterTime&&(this[v]=t.$clusterTime,this.emit(w.CLUSTER_TIME_RECEIVED,t.$clusterTime)),n.command){if(t.writeConcernError)return void r(new s.MongoWriteConcernError(t.writeConcernError,t));if(0===t.ok||t.$err||t.errmsg||t.code)return void r(new s.MongoServerError(t))}else if(0===t.ok||t.$err||t.errmsg)return void r(new s.MongoServerError(t))}r(void 0,n.fullResult?e:e.documents[0])}destroy(e,t){return"function"==typeof e&&(t=e,e={force:!1}),this.removeAllListeners(w.PINNED),this.removeAllListeners(w.UNPINNED),e=Object.assign({force:!1},e),null==this[f]||this.destroyed?(this.destroyed=!0,void("function"==typeof t&&t())):e.force?(this[f].destroy(),this.destroyed=!0,void("function"==typeof t&&t())):void this[f].end((()=>{this.destroyed=!0,"function"==typeof t&&t()}))}command(e,t,n,r){if(!(e instanceof u.MongoDBNamespace))throw new s.MongoRuntimeError("Must provide a MongoDBNamespace instance");const i=(0,d.getReadPreference)(t,n),o=function(e){const t=e.description;return null!=t&&((0,u.maxWireVersion)(e)>=6&&!t.__nodejs_mock_server__)}(this),l=null==n?void 0:n.session;let p=this.clusterTime,h=Object.assign({},t);if(this.serverApi){const{version:e,strict:t,deprecationErrors:n}=this.serverApi;h.apiVersion=e,null!=t&&(h.apiStrict=t),null!=n&&(h.apiDeprecationErrors=n)}if(D(this)&&l){l.clusterTime&&p&&l.clusterTime.clusterTime.greaterThan(p.clusterTime)&&(p=l.clusterTime);const e=(0,a.applySession)(l,h,n);if(e)return r(e)}p&&(h.$clusterTime=p),(0,d.isSharded)(this)&&!o&&i&&"primary"!==i.mode&&(h={$query:h,$readPreference:i.toJSON()});const f=Object.assign({command:!0,numberToSkip:0,numberToReturn:-1,checkKeys:!1,secondaryOk:i.secondaryOk()},n),m=`${e.db}.$cmd`,g=o?new c.Msg(m,h,f):new c.Query(m,h,f);try{_(this,g,f,r)}catch(e){r(e)}}getMore(e,t,n,i){const o=!!n[S],a=(0,u.maxWireVersion)(this);if(!t)return void i(new s.MongoRuntimeError("Invalid internal cursor state, no known cursor id"));if(a<4){const s=new c.GetMore(e.toString(),t,{numberToReturn:n.batchSize}),a=(0,d.applyCommonQueryOptions)({},Object.assign(n,{...(0,r.pluckBSONSerializeOptions)(n)}));return a[S]=!0,a.command=!0,void _(this,s,a,((e,t)=>o?i(e,t):e?i(e):void i(void 0,{cursor:{id:t.cursorId,nextBatch:t.documents}})))}const l={getMore:t,collection:e.collection};"number"==typeof n.batchSize&&(l.batchSize=Math.abs(n.batchSize)),"number"==typeof n.maxAwaitTimeMS&&(l.maxTimeMS=n.maxAwaitTimeMS),void 0!==n.comment&&(l.comment=n.comment);const p=Object.assign({returnFieldSelector:null,documentsReturnedIn:"nextBatch"},n);this.command(e,l,p,i)}killCursors(e,t,n,r){if(!t||!Array.isArray(t))throw new s.MongoRuntimeError(`Invalid list of cursor ids provided: ${t}`);if((0,u.maxWireVersion)(this)<4)try{_(this,new c.KillCursor(e.toString(),t),{noResponse:!0,...n},r)}catch(e){r(e)}else this.command(e,{killCursors:e.collection,cursors:t},{[S]:!0,...n},((e,n)=>e||!n?r(e):n.cursorNotFound?r(new s.MongoNetworkError("cursor killed or timed out"),null):Array.isArray(n.documents)&&0!==n.documents.length?void r(void 0,n.documents[0]):r(new s.MongoRuntimeError(`invalid killCursors result returned for cursor id ${t[0]}`))))}}function D(e){const t=e.description;return null!=t.logicalSessionTimeoutMinutes||!!t.loadBalanced}function _(e,t,n,r){"function"==typeof n&&(r=n),n=null!=n?n:{};const i={requestId:t.requestId,cb:r,session:n.session,fullResult:!!n[S],noResponse:"boolean"==typeof n.noResponse&&n.noResponse,documentsReturnedIn:n.documentsReturnedIn,command:!!n.command,promoteLongs:"boolean"!=typeof n.promoteLongs||n.promoteLongs,promoteValues:"boolean"!=typeof n.promoteValues||n.promoteValues,promoteBuffers:"boolean"==typeof n.promoteBuffers&&n.promoteBuffers,bsonRegExp:"boolean"==typeof n.bsonRegExp&&n.bsonRegExp,enableUtf8Validation:"boolean"!=typeof n.enableUtf8Validation||n.enableUtf8Validation,raw:"boolean"==typeof n.raw&&n.raw,started:0};e[A]&&e[A].compressor&&(i.agreedCompressor=e[A].compressor,e[A].zlibCompressionLevel&&(i.zlibCompressionLevel=e[A].zlibCompressionLevel)),"number"==typeof n.socketTimeoutMS&&(i.socketTimeoutOverride=!0,e[f].setTimeout(n.socketTimeoutMS)),e.monitorCommands&&(e.emit(w.COMMAND_STARTED,new l.CommandStartedEvent(e,t)),i.started=(0,u.now)(),i.cb=(n,s)=>{n?e.emit(w.COMMAND_FAILED,new l.CommandFailedEvent(e,t,n,i.started)):s&&(0===s.ok||s.$err)?e.emit(w.COMMAND_FAILED,new l.CommandFailedEvent(e,t,s,i.started)):e.emit(w.COMMAND_SUCCEEDED,new l.CommandSucceededEvent(e,t,s,i.started)),"function"==typeof r&&r(n,s)}),i.noResponse||e[m].set(i.requestId,i);try{e[g].writeCommand(t,i)}catch(t){if(!i.noResponse)return e[m].delete(i.requestId),void i.cb(t)}i.noResponse&&i.cb()}t.Connection=w,w.COMMAND_STARTED=i.COMMAND_STARTED,w.COMMAND_SUCCEEDED=i.COMMAND_SUCCEEDED,w.COMMAND_FAILED=i.COMMAND_FAILED,w.CLUSTER_TIME_RECEIVED=i.CLUSTER_TIME_RECEIVED,w.CLOSE=i.CLOSE,w.MESSAGE=i.MESSAGE,w.PINNED=i.PINNED,w.UNPINNED=i.UNPINNED,t.CryptoConnection=class extends w{constructor(e,t){super(e,t),this[b]=t.autoEncrypter}command(e,t,n,r){const i=this[b];if(!i)return r(new s.MongoMissingDependencyError("No AutoEncrypter available for encryption"));const o=(0,u.maxWireVersion)(this);if(0===o)return super.command(e,t,n,r);o<8?r(new s.MongoCompatibilityError("Auto-encryption requires a minimum MongoDB version of 4.2")):i.encrypt(e.toString(),t,n,((t,s)=>{t||null==s?r(t,null):super.command(e,s,n,((e,t)=>{e||null==t?r(e,t):i.decrypt(t,n,r)}))}))}},t.hasSessionSupport=D},8343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPool=void 0;const r=n(2334),i=n(5006),s=n(4947),o=n(6326),a=n(334),u=n(2229),l=n(231),c=n(8345),p=n(1654),h=n(8122),d=n(8547),f=Symbol("logger"),m=Symbol("connections"),g=Symbol("permits"),E=Symbol("minPoolSizeTimer"),y=Symbol("generation"),v=Symbol("serviceGenerations"),A=Symbol("connectionCounter"),C=Symbol("cancellationToken"),b=Symbol("waitQueue"),S=Symbol("cancelled"),x=Symbol("metrics"),w=Symbol("checkedOut"),D=Symbol("processingWaitQueue");class _ extends a.TypedEventEmitter{constructor(e){var t,n,i,l;if(super(),this.closed=!1,this.options=Object.freeze({...e,connectionType:c.Connection,maxPoolSize:null!==(t=e.maxPoolSize)&&void 0!==t?t:100,minPoolSize:null!==(n=e.minPoolSize)&&void 0!==n?n:0,maxIdleTimeMS:null!==(i=e.maxIdleTimeMS)&&void 0!==i?i:0,waitQueueTimeoutMS:null!==(l=e.waitQueueTimeoutMS)&&void 0!==l?l:0,autoEncrypter:e.autoEncrypter,metadata:e.metadata}),this.options.minPoolSize>this.options.maxPoolSize)throw new s.MongoInvalidArgumentError("Connection pool minimum size must not be greater than maximum pool size");this[f]=new o.Logger("ConnectionPool"),this[m]=new r,this[g]=this.options.maxPoolSize,this[E]=void 0,this[y]=0,this[v]=new Map,this[A]=(0,u.makeCounter)(1),this[C]=new a.CancellationToken,this[C].setMaxListeners(1/0),this[b]=new r,this[x]=new d.ConnectionPoolMetrics,this[w]=0,this[D]=!1,process.nextTick((()=>{this.emit(_.CONNECTION_POOL_CREATED,new p.ConnectionPoolCreatedEvent(this)),O(this)}))}get address(){return this.options.hostAddress.toString()}get generation(){return this[y]}get totalConnectionCount(){return this[m].length+(this.options.maxPoolSize-this[g])}get availableConnectionCount(){return this[m].length}get waitQueueSize(){return this[b].length}get loadBalanced(){return this.options.loadBalanced}get serviceGenerations(){return this[v]}get currentCheckedOutCount(){return this[w]}waitQueueErrorMetrics(){return this[x].info(this.options.maxPoolSize)}checkOut(e){if(this.emit(_.CONNECTION_CHECK_OUT_STARTED,new p.ConnectionCheckOutStartedEvent(this)),this.closed)return this.emit(_.CONNECTION_CHECK_OUT_FAILED,new p.ConnectionCheckOutFailedEvent(this,"poolClosed")),void e(new h.PoolClosedError(this));const t={callback:e},n=this.options.waitQueueTimeoutMS;n&&(t.timer=setTimeout((()=>{t[S]=!0,t.timer=void 0,this.emit(_.CONNECTION_CHECK_OUT_FAILED,new p.ConnectionCheckOutFailedEvent(this,"timeout")),t.callback(new h.WaitQueueTimeoutError(this.loadBalanced?this.waitQueueErrorMetrics():"Timed out while checking out a connection from connection pool",this.address))}),n)),this[w]=this[w]+1,this[b].push(t),process.nextTick(R,this)}checkIn(e){const t=this.closed,n=F(this,e),r=!!(t||n||e.closed);r||(e.markAvailable(),this[m].unshift(e)),this[w]=this[w]-1,this.emit(_.CONNECTION_CHECKED_IN,new p.ConnectionCheckedInEvent(this,e)),r&&k(this,e,e.closed?"error":t?"poolClosed":"stale"),process.nextTick(R,this)}clear(e){if(this.loadBalanced&&e){const t=e.toHexString(),n=this.serviceGenerations.get(t);if(null==n)throw new s.MongoRuntimeError("Service generations are required in load balancer mode.");this.serviceGenerations.set(t,n+1)}else this[y]+=1;this.emit("connectionPoolCleared",new p.ConnectionPoolClearedEvent(this,e))}close(e,t){let n=e;const r=null!=t?t:e;if("function"==typeof n&&(n={}),n=Object.assign({force:!1},n),this.closed)return r();for(this[C].emit("cancel");this.waitQueueSize;){const e=this[b].pop();e&&(e.timer&&clearTimeout(e.timer),e[S]||e.callback(new s.MongoRuntimeError("Connection pool closed")))}const i=this[E];i&&clearTimeout(i),"function"==typeof this[A].return&&this[A].return(void 0),this.closed=!0,(0,u.eachAsync)(this[m].toArray(),((e,t)=>{this.emit(_.CONNECTION_CLOSED,new p.ConnectionClosedEvent(this,e,"poolClosed")),e.destroy(n,t)}),(e=>{this[m].clear(),this.emit(_.CONNECTION_POOL_CLOSED,new p.ConnectionPoolClosedEvent(this)),r(e)}))}withConnection(e,t,n){e?t(void 0,e,((e,t)=>{"function"==typeof n&&(e?n(e):n(void 0,t))})):this.checkOut(((e,r)=>{t(e,r,((e,t)=>{"function"==typeof n&&(e?n(e):n(void 0,t)),r&&this.checkIn(r)}))}))}}function O(e){if(e.closed||0===e.options.minPoolSize)return;const t=e.options.minPoolSize;for(let n=e.totalConnectionCount;n<t;++n)B(e);e[E]=setTimeout((()=>O(e)),10)}function F(e,t){const n=t.serviceId;if(e.loadBalanced&&n){const r=n.toHexString(),i=e.serviceGenerations.get(r);return t.generation!==i}return t.generation!==e[y]}function T(e,t){return!!(e.options.maxIdleTimeMS&&t.idleTime>e.options.maxIdleTimeMS)}function B(e,t){const n={...e.options,id:e[A].next().value,generation:e[y],cancellationToken:e[C]};e[g]--,(0,l.connect)(n,((n,r)=>{if(n||!r)return e[g]++,e[f].debug(`connection attempt failed with error [${JSON.stringify(n)}]`),void("function"==typeof t&&t(n));if(e.closed)r.destroy({force:!0});else{for(const t of[...i.APM_EVENTS,c.Connection.CLUSTER_TIME_RECEIVED])r.on(t,(n=>e.emit(t,n)));if(e.emit(_.CONNECTION_CREATED,new p.ConnectionCreatedEvent(e,r)),e.loadBalanced){r.on(c.Connection.PINNED,(t=>e[x].markPinned(t))),r.on(c.Connection.UNPINNED,(t=>e[x].markUnpinned(t)));const t=r.serviceId;if(t){let n;const i=t.toHexString();(n=e.serviceGenerations.get(i))?r.generation=n:(e.serviceGenerations.set(i,0),r.generation=0)}}r.markAvailable(),e.emit(_.CONNECTION_READY,new p.ConnectionReadyEvent(e,r)),"function"!=typeof t?(e[m].push(r),process.nextTick(R,e)):t(void 0,r)}}))}function k(e,t,n){e.emit(_.CONNECTION_CLOSED,new p.ConnectionClosedEvent(e,t,n)),e[g]++,process.nextTick((()=>t.destroy()))}function R(e){if(e.closed||e[D])return;for(e[D]=!0;e.waitQueueSize;){const t=e[b].peekFront();if(!t){e[b].shift();continue}if(t[S]){e[b].shift();continue}if(!e.availableConnectionCount)break;const n=e[m].shift();if(!n)break;const r=F(e,n),i=T(e,n);if(r||i||n.closed){const t=n.closed?"error":r?"stale":"idle";k(e,n,t)}else e.emit(_.CONNECTION_CHECKED_OUT,new p.ConnectionCheckedOutEvent(e,n)),t.timer&&clearTimeout(t.timer),e[b].shift(),t.callback(void 0,n)}const t=e.options.maxPoolSize;e.waitQueueSize&&(t<=0||e.totalConnectionCount<t)?B(e,((t,n)=>{const r=e[b].shift();if(!r||r[S])return!t&&n&&e[m].push(n),void(e[D]=!1);t?e.emit(_.CONNECTION_CHECK_OUT_FAILED,new p.ConnectionCheckOutFailedEvent(e,t)):n&&e.emit(_.CONNECTION_CHECKED_OUT,new p.ConnectionCheckedOutEvent(e,n)),r.timer&&clearTimeout(r.timer),r.callback(t,n),e[D]=!1,process.nextTick((()=>R(e)))})):e[D]=!1}t.ConnectionPool=_,_.CONNECTION_POOL_CREATED=i.CONNECTION_POOL_CREATED,_.CONNECTION_POOL_CLOSED=i.CONNECTION_POOL_CLOSED,_.CONNECTION_POOL_CLEARED=i.CONNECTION_POOL_CLEARED,_.CONNECTION_CREATED=i.CONNECTION_CREATED,_.CONNECTION_READY=i.CONNECTION_READY,_.CONNECTION_CLOSED=i.CONNECTION_CLOSED,_.CONNECTION_CHECK_OUT_STARTED=i.CONNECTION_CHECK_OUT_STARTED,_.CONNECTION_CHECK_OUT_FAILED=i.CONNECTION_CHECK_OUT_FAILED,_.CONNECTION_CHECKED_OUT=i.CONNECTION_CHECKED_OUT,_.CONNECTION_CHECKED_IN=i.CONNECTION_CHECKED_IN},1654:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolClearedEvent=t.ConnectionCheckedInEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionClosedEvent=t.ConnectionReadyEvent=t.ConnectionCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolMonitoringEvent=void 0;class n{constructor(e){this.time=new Date,this.address=e.address}}t.ConnectionPoolMonitoringEvent=n,t.ConnectionPoolCreatedEvent=class extends n{constructor(e){super(e),this.options=e.options}},t.ConnectionPoolClosedEvent=class extends n{constructor(e){super(e)}},t.ConnectionCreatedEvent=class extends n{constructor(e,t){super(e),this.connectionId=t.id}},t.ConnectionReadyEvent=class extends n{constructor(e,t){super(e),this.connectionId=t.id}},t.ConnectionClosedEvent=class extends n{constructor(e,t,n){super(e),this.connectionId=t.id,this.reason=n||"unknown",this.serviceId=t.serviceId}},t.ConnectionCheckOutStartedEvent=class extends n{constructor(e){super(e)}},t.ConnectionCheckOutFailedEvent=class extends n{constructor(e,t){super(e),this.reason=t}},t.ConnectionCheckedOutEvent=class extends n{constructor(e,t){super(e),this.connectionId=t.id}},t.ConnectionCheckedInEvent=class extends n{constructor(e,t){super(e),this.connectionId=t.id}},t.ConnectionPoolClearedEvent=class extends n{constructor(e,t){super(e),this.serviceId=t}}},8122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WaitQueueTimeoutError=t.PoolClosedError=void 0;const r=n(4947);class i extends r.MongoDriverError{constructor(e){super("Attempted to check out a connection from closed connection pool"),this.address=e.address}get name(){return"MongoPoolClosedError"}}t.PoolClosedError=i;class s extends r.MongoDriverError{constructor(e,t){super(e),this.address=t}get name(){return"MongoWaitQueueTimeoutError"}}t.WaitQueueTimeoutError=s},7827:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageStream=void 0;const r=n(6162),i=n(4947),s=n(2229),o=n(2322),a=n(942),u=n(3496),l=Symbol("buffer");class c extends r.Duplex{constructor(e={}){super(e),this.maxBsonMessageSize=e.maxBsonMessageSize||67108864,this[l]=new s.BufferPool}_write(e,t,n){this[l].append(e),p(this,n)}_read(){}writeCommand(e,t){const n=t&&t.agreedCompressor?t.agreedCompressor:"none";if("none"===n||!function(e){const t=e instanceof o.Msg?e.command:e.query,n=Object.keys(t)[0];return!a.uncompressibleCommands.has(n)}(e)){const t=e.toBin();return void this.push(Array.isArray(t)?Buffer.concat(t):t)}const r=Buffer.concat(e.toBin()),i=r.slice(16),s=r.readInt32LE(12);(0,a.compress)({options:t},i,((r,o)=>{if(r||!o)return void t.cb(r);const l=Buffer.alloc(16);l.writeInt32LE(25+o.length,0),l.writeInt32LE(e.requestId,4),l.writeInt32LE(0,8),l.writeInt32LE(u.OP_COMPRESSED,12);const c=Buffer.alloc(9);c.writeInt32LE(s,0),c.writeInt32LE(i.length,4),c.writeUInt8(a.Compressor[n],8),this.push(Buffer.concat([l,c,o]))}))}}function p(e,t){const n=e[l];if(n.length<4)return void t();const r=n.peek(4).readInt32LE();if(r<0)return void t(new i.MongoParseError(`Invalid message size: ${r}`));if(r>e.maxBsonMessageSize)return void t(new i.MongoParseError(`Invalid message size: ${r}, max allowed: ${e.maxBsonMessageSize}`));if(r>n.length)return void t();const s=n.read(r),c={length:s.readInt32LE(0),requestId:s.readInt32LE(4),responseTo:s.readInt32LE(8),opCode:s.readInt32LE(12)};let h=c.opCode===u.OP_MSG?o.BinMsg:o.Response;if(c.opCode!==u.OP_COMPRESSED){const r=s.slice(16);return e.emit("message",new h(s,c,r)),void(n.length>=4?p(e,t):t())}c.fromCompressed=!0,c.opCode=s.readInt32LE(16),c.length=s.readInt32LE(20);const d=s[24],f=s.slice(25);h=c.opCode===u.OP_MSG?o.BinMsg:o.Response,(0,a.decompress)(d,f,((r,o)=>{!r&&o?o.length===c.length?(e.emit("message",new h(s,c,o)),n.length>=4?p(e,t):t()):t(new i.MongoDecompressionError("Message body and message header must be the same length")):t(r)}))}t.MessageStream=c},8547:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionPoolMetrics=void 0;class n{constructor(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}markPinned(e){e===n.TXN?this.txnConnections+=1:e===n.CURSOR?this.cursorConnections+=1:this.otherConnections+=1}markUnpinned(e){e===n.TXN?this.txnConnections-=1:e===n.CURSOR?this.cursorConnections-=1:this.otherConnections-=1}info(e){return`Timed out while checking out a connection from connection pool: maxPoolSize: ${e}, connections in use by cursors: ${this.cursorConnections}, connections in use by transactions: ${this.txnConnections}, connections in use by other operations: ${this.otherConnections}`}reset(){this.txnConnections=0,this.cursorConnections=0,this.otherConnections=0}}t.ConnectionPoolMetrics=n,n.TXN="txn",n.CURSOR="cursor",n.OTHER="other"},9011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamDescription=void 0;const r=n(5896),i=n(9735),s=["minWireVersion","maxWireVersion","maxBsonObjectSize","maxMessageSizeBytes","maxWriteBatchSize","logicalSessionTimeoutMinutes"];t.StreamDescription=class{constructor(e,t){this.address=e,this.type=r.ServerType.Unknown,this.minWireVersion=void 0,this.maxWireVersion=void 0,this.maxBsonObjectSize=16777216,this.maxMessageSizeBytes=48e6,this.maxWriteBatchSize=1e5,this.logicalSessionTimeoutMinutes=null==t?void 0:t.logicalSessionTimeoutMinutes,this.loadBalanced=!!(null==t?void 0:t.loadBalanced),this.compressors=t&&t.compressors&&Array.isArray(t.compressors)?t.compressors:[]}receiveResponse(e){if(null!=e){this.type=(0,i.parseServerType)(e);for(const t of s)null!=e[t]&&(this[t]=e[t]),"__nodejs_mock_server__"in e&&(this.__nodejs_mock_server__=e.__nodejs_mock_server__);e.compression&&(this.compressor=this.compressors.filter((t=>{var n;return null===(n=e.compression)||void 0===n?void 0:n.includes(t)}))[0])}}}},942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decompress=t.compress=t.uncompressibleCommands=t.Compressor=void 0;const r=n(1568),i=n(5006),s=n(8808),o=n(4947);t.Compressor=Object.freeze({none:0,snappy:1,zlib:2}),t.uncompressibleCommands=new Set([i.LEGACY_HELLO_COMMAND,"saslStart","saslContinue","getnonce","authenticate","createUser","updateUser","copydbSaslStart","copydbgetnonce","copydb"]),t.compress=function(e,t,n){const i={};switch(e.options.agreedCompressor){case"snappy":if("kModuleError"in s.Snappy)return n(s.Snappy.kModuleError);s.Snappy[s.PKG_VERSION].major<=6?s.Snappy.compress(t,n):s.Snappy.compress(t).then((e=>n(void 0,e))).catch((e=>n(e)));break;case"zlib":e.options.zlibCompressionLevel&&(i.level=e.options.zlibCompressionLevel),r.deflate(t,i,n);break;default:throw new o.MongoInvalidArgumentError(`Unknown compressor ${e.options.agreedCompressor} failed to compress`)}},t.decompress=function(e,n,i){if(e<0||e>Math.max(2))throw new o.MongoDecompressionError(`Server sent message compressed using an unsupported compressor. (Received compressor ID ${e})`);switch(e){case t.Compressor.snappy:if("kModuleError"in s.Snappy)return i(s.Snappy.kModuleError);s.Snappy[s.PKG_VERSION].major<=6?s.Snappy.uncompress(n,{asBuffer:!0},i):s.Snappy.uncompress(n,{asBuffer:!0}).then((e=>i(void 0,e))).catch((e=>i(e)));break;case t.Compressor.zlib:r.inflate(n,i);break;default:i(void 0,n)}}},3496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OP_MSG=t.OP_COMPRESSED=t.OP_KILL_CURSORS=t.OP_DELETE=t.OP_GETMORE=t.OP_QUERY=t.OP_INSERT=t.OP_UPDATE=t.OP_REPLY=t.MAX_SUPPORTED_WIRE_VERSION=t.MIN_SUPPORTED_WIRE_VERSION=t.MAX_SUPPORTED_SERVER_VERSION=t.MIN_SUPPORTED_SERVER_VERSION=void 0,t.MIN_SUPPORTED_SERVER_VERSION="3.6",t.MAX_SUPPORTED_SERVER_VERSION="5.1",t.MIN_SUPPORTED_WIRE_VERSION=6,t.MAX_SUPPORTED_WIRE_VERSION=14,t.OP_REPLY=1,t.OP_UPDATE=2001,t.OP_INSERT=2002,t.OP_QUERY=2004,t.OP_GETMORE=2005,t.OP_DELETE=2006,t.OP_KILL_CURSORS=2007,t.OP_COMPRESSED=2012,t.OP_MSG=2013},3377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSharded=t.applyCommonQueryOptions=t.getReadPreference=void 0;const r=n(4947),i=n(1228),s=n(5896),o=n(7411);t.getReadPreference=function(e,t){let n=e.readPreference||i.ReadPreference.primary;if((null==t?void 0:t.readPreference)&&(n=t.readPreference),"string"==typeof n&&(n=i.ReadPreference.fromString(n)),!(n instanceof i.ReadPreference))throw new r.MongoInvalidArgumentError('Option "readPreference" must be a ReadPreference instance');return n},t.applyCommonQueryOptions=function(e,t){return Object.assign(e,{raw:"boolean"==typeof t.raw&&t.raw,promoteLongs:"boolean"!=typeof t.promoteLongs||t.promoteLongs,promoteValues:"boolean"!=typeof t.promoteValues||t.promoteValues,promoteBuffers:"boolean"==typeof t.promoteBuffers&&t.promoteBuffers,bsonRegExp:"boolean"==typeof t.bsonRegExp&&t.bsonRegExp,enableUtf8Validation:"boolean"!=typeof t.enableUtf8Validation||t.enableUtf8Validation}),t.session&&(e.session=t.session),e},t.isSharded=function(e){return!(!e.description||e.description.type!==s.ServerType.Mongos)||!!(e.description&&e.description instanceof o.TopologyDescription)&&Array.from(e.description.servers.values()).some((e=>e.type===s.ServerType.Mongos))}},8971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;const r=n(9064),i=n(3868),s=n(1625),o=n(4747),a=n(3490),u=n(6331),l=n(4947),c=n(6192),p=n(2566),h=n(7643),d=n(7237),f=n(9579),m=n(3226),g=n(3345),E=n(7445),y=n(8448),v=n(2139),A=n(7159),C=n(2062),b=n(5856),S=n(2552),x=n(8955),w=n(6577),D=n(5556),_=n(3389),O=n(1228),F=n(2229),T=n(4620);t.Collection=class{constructor(e,t,n){var i,s;(0,F.checkCollectionName)(t),this.s={db:e,options:n,namespace:new F.MongoDBNamespace(e.databaseName,t),pkFactory:null!==(s=null===(i=e.options)||void 0===i?void 0:i.pkFactory)&&void 0!==s?s:F.DEFAULT_PK_FACTORY,readPreference:O.ReadPreference.fromOptions(n),bsonOptions:(0,r.resolveBSONOptions)(n,e),readConcern:_.ReadConcern.fromOptions(n),writeConcern:T.WriteConcern.fromOptions(n)}}get dbName(){return this.s.namespace.db}get collectionName(){return this.s.namespace.collection}get namespace(){return this.s.namespace.toString()}get readConcern(){return null==this.s.readConcern?this.s.db.readConcern:this.s.readConcern}get readPreference(){return null==this.s.readPreference?this.s.db.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return null==this.s.writeConcern?this.s.db.writeConcern:this.s.writeConcern}get hint(){return this.s.collectionHint}set hint(e){this.s.collectionHint=(0,F.normalizeHintField)(e)}insertOne(e,t,n){return"function"==typeof t&&(n=t,t={}),t&&Reflect.get(t,"w")&&(t.writeConcern=T.WriteConcern.fromOptions(Reflect.get(t,"w"))),(0,E.executeOperation)(this,new A.InsertOneOperation(this,e,(0,F.resolveOptions)(this,t)),n)}insertMany(e,t,n){return"function"==typeof t&&(n=t,t={}),t=t?Object.assign({},t):{ordered:!0},(0,E.executeOperation)(this,new A.InsertManyOperation(this,e,(0,F.resolveOptions)(this,t)),n)}bulkWrite(e,t,n){if("function"==typeof t&&(n=t,t={}),t=t||{ordered:!0},!Array.isArray(e))throw new l.MongoInvalidArgumentError('Argument "operations" must be an array of documents');return(0,E.executeOperation)(this,new c.BulkWriteOperation(this,e,(0,F.resolveOptions)(this,t)),n)}updateOne(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,E.executeOperation)(this,new D.UpdateOneOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}replaceOne(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,E.executeOperation)(this,new D.ReplaceOneOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}updateMany(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,E.executeOperation)(this,new D.UpdateManyOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}deleteOne(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new d.DeleteOneOperation(this,e,(0,F.resolveOptions)(this,t)),n)}deleteMany(e,t,n){return null==e?(e={},t={},n=void 0):"function"==typeof e?(n=e,e={},t={}):"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new d.DeleteManyOperation(this,e,(0,F.resolveOptions)(this,t)),n)}rename(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new x.RenameOperation(this,e,{...t,readPreference:O.ReadPreference.PRIMARY}),n)}drop(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},(0,E.executeOperation)(this,new m.DropCollectionOperation(this.s.db,this.collectionName,e),t)}findOne(e,t,n){if(null!=n&&"function"!=typeof n)throw new l.MongoInvalidArgumentError("Third parameter to `findOne()` must be a callback or undefined");"function"==typeof e&&(n=e,e={},t={}),"function"==typeof t&&(n=t,t={});const r=null!=e?e:{},i=null!=t?t:{};return this.find(r,i).limit(-1).batchSize(1).next(n)}find(e,t){if(arguments.length>2)throw new l.MongoInvalidArgumentError('Method "collection.find()" accepts at most two arguments');if("function"==typeof t)throw new l.MongoInvalidArgumentError('Argument "options" must not be function');return new u.FindCursor((0,F.getTopology)(this),this.s.namespace,e,(0,F.resolveOptions)(this,t))}options(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new S.OptionsOperation(this,(0,F.resolveOptions)(this,e)),t)}isCapped(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new C.IsCappedOperation(this,(0,F.resolveOptions)(this,e)),t)}createIndex(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new v.CreateIndexOperation(this,this.collectionName,e,(0,F.resolveOptions)(this,t)),n)}createIndexes(e,t,n){return"function"==typeof t&&(n=t,t={}),"number"!=typeof(t=t?Object.assign({},t):{}).maxTimeMS&&delete t.maxTimeMS,(0,E.executeOperation)(this,new v.CreateIndexesOperation(this,this.collectionName,e,(0,F.resolveOptions)(this,t)),n)}dropIndex(e,t,n){return"function"==typeof t&&(n=t,t={}),(t=(0,F.resolveOptions)(this,t)).readPreference=O.ReadPreference.primary,(0,E.executeOperation)(this,new v.DropIndexOperation(this,e,t),n)}dropIndexes(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new v.DropIndexesOperation(this,(0,F.resolveOptions)(this,e)),t)}listIndexes(e){return new v.ListIndexesCursor(this,(0,F.resolveOptions)(this,e))}indexExists(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new v.IndexExistsOperation(this,e,(0,F.resolveOptions)(this,t)),n)}indexInformation(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new v.IndexInformationOperation(this.s.db,this.collectionName,(0,F.resolveOptions)(this,e)),t)}estimatedDocumentCount(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new g.EstimatedDocumentCountOperation(this,(0,F.resolveOptions)(this,e)),t)}countDocuments(e,t,n){return null==e?(e={},t={},n=void 0):"function"==typeof e?(n=e,e={},t={}):2===arguments.length&&"function"==typeof t&&(n=t,t={}),null!=e||(e={}),(0,E.executeOperation)(this,new h.CountDocumentsOperation(this,e,(0,F.resolveOptions)(this,t)),n)}distinct(e,t,n,r){return"function"==typeof t?(r=t,t={},n={}):3===arguments.length&&"function"==typeof n&&(r=n,n={}),null!=t||(t={}),(0,E.executeOperation)(this,new f.DistinctOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}indexes(e,t){return"function"==typeof e&&(t=e,e={}),(0,E.executeOperation)(this,new v.IndexesOperation(this,(0,F.resolveOptions)(this,e)),t)}stats(e,t){return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},(0,E.executeOperation)(this,new w.CollStatsOperation(this,e),t)}findOneAndDelete(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,E.executeOperation)(this,new y.FindOneAndDeleteOperation(this,e,(0,F.resolveOptions)(this,t)),n)}findOneAndReplace(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,E.executeOperation)(this,new y.FindOneAndReplaceOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}findOneAndUpdate(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,E.executeOperation)(this,new y.FindOneAndUpdateOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}aggregate(e=[],t){if(arguments.length>2)throw new l.MongoInvalidArgumentError('Method "collection.aggregate()" accepts at most two arguments');if(!Array.isArray(e))throw new l.MongoInvalidArgumentError('Argument "pipeline" must be an array of aggregation stages');if("function"==typeof t)throw new l.MongoInvalidArgumentError('Argument "options" must not be function');return new a.AggregationCursor((0,F.getTopology)(this),this.s.namespace,e,(0,F.resolveOptions)(this,t))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new o.ChangeStream(this,e,(0,F.resolveOptions)(this,t))}mapReduce(e,t,n,r){if((0,F.emitWarningOnce)("collection.mapReduce is deprecated. Use the aggregation pipeline instead. Visit https://docs.mongodb.com/manual/reference/map-reduce-to-aggregation-pipeline for more information on how to translate map-reduce operations to the aggregation pipeline."),"function"==typeof n&&(r=n,n={}),null==(null==n?void 0:n.out))throw new l.MongoInvalidArgumentError('Option "out" must be defined, see mongodb docs for possible values');return"function"==typeof e&&(e=e.toString()),"function"==typeof t&&(t=t.toString()),"function"==typeof n.finalize&&(n.finalize=n.finalize.toString()),(0,E.executeOperation)(this,new b.MapReduceOperation(this,e,t,(0,F.resolveOptions)(this,n)),r)}initializeUnorderedBulkOp(e){return new s.UnorderedBulkOperation(this,(0,F.resolveOptions)(this,e))}initializeOrderedBulkOp(e){return new i.OrderedBulkOperation(this,(0,F.resolveOptions)(this,e))}getLogger(){return this.s.db.s.logger}get logger(){return this.s.db.s.logger}insert(e,t,n){return(0,F.emitWarningOnce)("collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead."),"function"==typeof t&&(n=t,t={}),t=t||{ordered:!1},e=Array.isArray(e)?e:[e],!0===t.keepGoing&&(t.ordered=!1),this.insertMany(e,t,n)}update(e,t,n,r){return(0,F.emitWarningOnce)("collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead."),"function"==typeof n&&(r=n,n={}),n=null!=n?n:{},this.updateMany(e,t,n,r)}remove(e,t,n){return(0,F.emitWarningOnce)("collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead."),"function"==typeof t&&(n=t,t={}),t=null!=t?t:{},this.deleteMany(e,t,n)}count(e,t,n){return"function"==typeof e?(n=e,e={},t={}):"function"==typeof t&&(n=t,t={}),null!=e||(e={}),(0,E.executeOperation)(this,new p.CountOperation(F.MongoDBNamespace.fromString(this.namespace),e,(0,F.resolveOptions)(this,t)),n)}}},2395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FEATURE_FLAGS=t.DEFAULT_OPTIONS=t.OPTIONS=t.parseOptions=t.checkTLSOptions=t.resolveSRVRecord=void 0;const r=n(665),i=n(2048),s=n(4680),o=n(7360),a=n(4064),u=n(4511),l=n(942),c=n(3748),p=n(4947),h=n(6326),d=n(2319),f=n(4782),m=n(3389),g=n(1228),E=n(2229),y=n(4620),v=["authSource","replicaSet","loadBalanced"];function A(e,t){const n=/^.*?\./,r=`.${e.replace(n,"")}`,i=`.${t.replace(n,"")}`;return r.endsWith(i)}function C(e){if(!e)return;const t=(t,n)=>{if(Reflect.has(e,t)&&Reflect.has(e,n))throw new p.MongoParseError(`The '${t}' option cannot be used with '${n}'`)};t("tlsInsecure","tlsAllowInvalidCertificates"),t("tlsInsecure","tlsAllowInvalidHostnames"),t("tlsInsecure","tlsDisableCertificateRevocationCheck"),t("tlsInsecure","tlsDisableOCSPEndpointCheck"),t("tlsAllowInvalidCertificates","tlsDisableCertificateRevocationCheck"),t("tlsAllowInvalidCertificates","tlsDisableOCSPEndpointCheck"),t("tlsDisableCertificateRevocationCheck","tlsDisableOCSPEndpointCheck")}t.resolveSRVRecord=function(e,t){if("string"!=typeof e.srvHost)return t(new p.MongoAPIError('Option "srvHost" must not be empty'));if(e.srvHost.split(".").length<3)return t(new p.MongoAPIError("URI must include hostname, domain name, and tld"));const n=e.srvHost;r.resolveSrv(`_${e.srvServiceName}._tcp.${n}`,((i,s)=>{if(i)return t(i);if(0===s.length)return t(new p.MongoAPIError("No addresses found at host"));for(const{name:e}of s)if(!A(e,n))return t(new p.MongoAPIError("Server record does not share hostname with parent URI"));const l=s.map((e=>{var t;return E.HostAddress.fromString(`${e.name}:${null!==(t=e.port)&&void 0!==t?t:27017}`)})),c=F(l,e,!0);if(c)return t(c);r.resolveTxt(n,((n,r)=>{var i,s,c;if(n){if("ENODATA"!==n.code&&"ENOTFOUND"!==n.code)return t(n)}else{if(r.length>1)return t(new p.MongoParseError("Multiple text records not allowed"));const n=new o.URLSearchParams(r[0].join(""));if([...n.keys()].some((e=>!v.includes(e))))return t(new p.MongoParseError(`Text record may only set any of: ${v.join(", ")}`));if(v.some((e=>""===n.get(e))))return t(new p.MongoParseError("Cannot have empty URI params in DNS TXT Record"));const h=null!==(i=n.get("authSource"))&&void 0!==i?i:void 0,d=null!==(s=n.get("replicaSet"))&&void 0!==s?s:void 0,f=null!==(c=n.get("loadBalanced"))&&void 0!==c?c:void 0;if(!e.userSpecifiedAuthSource&&h&&e.credentials&&!u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(e.credentials.mechanism)&&(e.credentials=a.MongoCredentials.merge(e.credentials,{source:h})),!e.userSpecifiedReplicaSet&&d&&(e.replicaSet=d),"true"===f&&(e.loadBalanced=!0),e.replicaSet&&e.srvMaxHosts>0)return t(new p.MongoParseError("Cannot combine replicaSet option with srvMaxHosts"));const m=F(l,e,!0);if(m)return t(m)}t(void 0,l)}))}))},t.checkTLSOptions=C;const b=new Set(["true","t","1","y","yes"]),S=new Set(["false","f","0","n","no","-1"]);function x(e,t){if("boolean"==typeof t)return t;const n=String(t).toLowerCase();if(b.has(n))return"true"!==n&&(0,E.emitWarningOnce)(`deprecated value for ${e} : ${n} - please update to ${e} : true instead`),!0;if(S.has(n))return"false"!==n&&(0,E.emitWarningOnce)(`deprecated value for ${e} : ${n} - please update to ${e} : false instead`),!1;throw new p.MongoParseError(`Expected ${e} to be stringified boolean value, got: ${t}`)}function w(e,t){if("number"==typeof t)return Math.trunc(t);const n=Number.parseInt(String(t),10);if(!Number.isNaN(n))return n;throw new p.MongoParseError(`Expected ${e} to be stringified int value, got: ${t}`)}function D(e,t){const n=w(e,t);if(n<0)throw new p.MongoParseError(`${e} can only be a positive int value, got: ${t}`);return n}function*_(e){const t=e.split(",");for(const e of t){const[t,n]=e.split(":");if(null==n)throw new p.MongoParseError("Cannot have undefined values in key value pairs");yield[t,n]}}class O extends Map{constructor(e=[]){super(e.map((([e,t])=>[e.toLowerCase(),t])))}has(e){return super.has(e.toLowerCase())}get(e){return super.get(e.toLowerCase())}set(e,t){return super.set(e.toLowerCase(),t)}delete(e){return super.delete(e.toLowerCase())}}function F(e,t,n){if(t.loadBalanced){if(e.length>1)return new p.MongoParseError("loadBalanced option only supported with a single host in the URI");if(t.replicaSet)return new p.MongoParseError("loadBalanced option not supported with a replicaSet option");if(t.directConnection)return new p.MongoParseError("loadBalanced option not supported when directConnection is provided");if(n&&t.srvMaxHosts>0)return new p.MongoParseError("Cannot limit srv hosts with loadBalanced enabled")}}function T(e,t,n,r){const{target:i,type:s,transform:o,deprecated:a}=n,u=null!=i?i:t;if(a){const e="string"==typeof a?`: ${a}`:"";(0,E.emitWarning)(`${t} is a deprecated option${e}`)}switch(s){case"boolean":e[u]=x(u,r[0]);break;case"int":e[u]=w(u,r[0]);break;case"uint":e[u]=D(u,r[0]);break;case"string":if(null==r[0])break;e[u]=String(r[0]);break;case"record":if(!(0,E.isRecord)(r[0]))throw new p.MongoParseError(`${u} must be an object`);e[u]=r[0];break;case"any":e[u]=r[0];break;default:{if(!o)throw new p.MongoParseError("Descriptors missing a type must define a transform");const t=o({name:u,options:e,values:r});e[u]=t;break}}}t.parseOptions=function(e,n,r={}){null==n||n instanceof d.MongoClient||(r=n,n=void 0);const i=new s.default(e),{hosts:o,isSRV:l}=i,h=Object.create(null);for(const e of Object.getOwnPropertySymbols(r))t.FEATURE_FLAGS.has(e)&&(h[e]=r[e]);h.hosts=l?[]:o.map(E.HostAddress.fromString);const m=new O;if("/"!==i.pathname&&""!==i.pathname){const e=decodeURIComponent("/"===i.pathname[0]?i.pathname.slice(1):i.pathname);e&&m.set("dbName",[e])}if(""!==i.username){const e={username:decodeURIComponent(i.username)};"string"==typeof i.password&&(e.password=decodeURIComponent(i.password)),m.set("auth",[e])}for(const e of i.searchParams.keys()){const t=[...i.searchParams.getAll(e)];if(t.includes(""))throw new p.MongoAPIError("URI cannot contain options with no value");m.has(e)||m.set(e,t)}const g=new O(Object.entries(r).filter((([,e])=>null!=e)));if(m.has("serverApi"))throw new p.MongoParseError("URI cannot contain `serverApi`, it can only be passed to the client");if(g.has("loadBalanced"))throw new p.MongoParseError("loadBalanced is only a valid option in the URI");const y=new O,v=new Set([...m.keys(),...g.keys(),...t.DEFAULT_OPTIONS.keys()]);for(const e of v){const n=[],r=g.get(e);null!=r&&n.push(r);const i=m.get(e);null!=i&&n.push(...i);const s=t.DEFAULT_OPTIONS.get(e);null!=s&&n.push(s),y.set(e,n)}if(y.has("tlsCertificateKeyFile")&&!y.has("tlsCertificateFile")&&y.set("tlsCertificateFile",y.get("tlsCertificateKeyFile")),y.has("tls")||y.has("ssl")){const e=(y.get("tls")||[]).concat(y.get("ssl")||[]).map(x.bind(null,"tls/ssl"));if(1!==new Set(e).size)throw new p.MongoParseError("All values of tls/ssl must be the same.")}const A=(0,E.setDifference)(v,Array.from(Object.keys(t.OPTIONS)).map((e=>e.toLowerCase())));if(0!==A.size){const e=A.size>1?"options":"option",t=A.size>1?"are":"is";throw new p.MongoParseError(`${e} ${Array.from(A).join(", ")} ${t} not supported`)}for(const[e,n]of Object.entries(t.OPTIONS)){const t=y.get(e);t&&0!==t.length&&T(h,e,n,t)}if(h.credentials){const e=h.credentials.mechanism===u.AuthMechanism.MONGODB_GSSAPI,t=h.credentials.mechanism===u.AuthMechanism.MONGODB_X509,n=h.credentials.mechanism===u.AuthMechanism.MONGODB_AWS;if((e||t)&&y.has("authSource")&&"$external"!==h.credentials.source)throw new p.MongoParseError(`${h.credentials} can only have authSource set to '$external'`);e||t||n||!h.dbName||y.has("authSource")||(h.credentials=a.MongoCredentials.merge(h.credentials,{source:h.dbName})),h.credentials.validate(),""===h.credentials.password&&""===h.credentials.username&&h.credentials.mechanism===u.AuthMechanism.MONGODB_DEFAULT&&0===Object.keys(h.credentials.mechanismProperties).length&&delete h.credentials}h.dbName||(h.dbName="test"),C(h),r.promiseLibrary&&f.PromiseProvider.set(r.promiseLibrary);const b=F(o,h,l);if(b)throw b;if(n&&h.autoEncryption&&(c.Encrypter.checkForMongoCrypt(),h.encrypter=new c.Encrypter(n,e,r),h.autoEncrypter=h.encrypter.autoEncrypter),h.userSpecifiedAuthSource=g.has("authSource")||m.has("authSource"),h.userSpecifiedReplicaSet=g.has("replicaSet")||m.has("replicaSet"),l){if(h.srvHost=o[0],h.directConnection)throw new p.MongoAPIError("SRV URI does not support directConnection");if(h.srvMaxHosts>0&&"string"==typeof h.replicaSet)throw new p.MongoParseError("Cannot use srvMaxHosts option with replicaSet");const e=!g.has("tls")&&!m.has("tls"),t=!g.has("ssl")&&!m.has("ssl");e&&t&&(h.tls=!0)}else if(m.has("srvMaxHosts")||g.has("srvMaxHosts")||m.has("srvServiceName")||g.has("srvServiceName"))throw new p.MongoParseError("Cannot use srvMaxHosts or srvServiceName with a non-srv connection string");if(h.directConnection&&1!==h.hosts.length)throw new p.MongoParseError("directConnection option requires exactly one host");if(!h.proxyHost&&(h.proxyPort||h.proxyUsername||h.proxyPassword))throw new p.MongoParseError("Must specify proxyHost if other proxy options are passed");if(h.proxyUsername&&!h.proxyPassword||!h.proxyUsername&&h.proxyPassword)throw new p.MongoParseError("Can only specify both of proxy username/password or neither");if(["proxyHost","proxyPort","proxyUsername","proxyPassword"].map((e=>{var t;return null!==(t=m.get(e))&&void 0!==t?t:[]})).some((e=>e.length>1)))throw new p.MongoParseError("Proxy options cannot be specified multiple times in the connection string");return h},t.OPTIONS={appName:{target:"metadata",transform:({options:e,values:[t]})=>(0,E.makeClientMetadata)({...e.driverInfo,appName:String(t)})},auth:{target:"credentials",transform({name:e,options:t,values:[n]}){if(!(0,E.isRecord)(n,["username","password"]))throw new p.MongoParseError(`${e} must be an object with 'username' and 'password' properties`);return a.MongoCredentials.merge(t.credentials,{username:n.username,password:n.password})}},authMechanism:{target:"credentials",transform({options:e,values:[t]}){var n,r;const i=Object.values(u.AuthMechanism),[s]=i.filter((e=>e.match(RegExp(String.raw`\b${t}\b`,"i"))));if(!s)throw new p.MongoParseError(`authMechanism one of ${i}, got ${t}`);let o=null===(n=e.credentials)||void 0===n?void 0:n.source;(s===u.AuthMechanism.MONGODB_PLAIN||u.AUTH_MECHS_AUTH_SRC_EXTERNAL.has(s))&&(o="$external");let l=null===(r=e.credentials)||void 0===r?void 0:r.password;return s===u.AuthMechanism.MONGODB_X509&&""===l&&(l=void 0),a.MongoCredentials.merge(e.credentials,{mechanism:s,source:o,password:l})}},authMechanismProperties:{target:"credentials",transform({options:e,values:[t]}){if("string"==typeof t){const n=Object.create(null);for(const[e,r]of _(t))try{n[e]=x(e,r)}catch{n[e]=r}return a.MongoCredentials.merge(e.credentials,{mechanismProperties:n})}if(!(0,E.isRecord)(t))throw new p.MongoParseError("AuthMechanismProperties must be an object");return a.MongoCredentials.merge(e.credentials,{mechanismProperties:t})}},authSource:{target:"credentials",transform({options:e,values:[t]}){const n=String(t);return a.MongoCredentials.merge(e.credentials,{source:n})}},autoEncryption:{type:"record"},bsonRegExp:{type:"boolean"},serverApi:{target:"serverApi",transform({values:[e]}){const t="string"==typeof e?{version:e}:e,n=t&&t.version;if(!n)throw new p.MongoParseError(`Invalid \`serverApi\` property; must specify a version from the following enum: ["${Object.values(d.ServerApiVersion).join('", "')}"]`);if(!Object.values(d.ServerApiVersion).some((e=>e===n)))throw new p.MongoParseError(`Invalid server API version=${n}; must be in the following enum: ["${Object.values(d.ServerApiVersion).join('", "')}"]`);return t}},checkKeys:{type:"boolean"},compressors:{default:"none",target:"compressors",transform({values:e}){const t=new Set;for(const n of e){const e="string"==typeof n?n.split(","):n;if(!Array.isArray(e))throw new p.MongoInvalidArgumentError("compressors must be an array or a comma-delimited list of strings");for(const n of e){if(!Object.keys(l.Compressor).includes(String(n)))throw new p.MongoInvalidArgumentError(`${n} is not a valid compression mechanism. Must be one of: ${Object.keys(l.Compressor)}.`);t.add(String(n))}}return[...t]}},connectTimeoutMS:{default:3e4,type:"uint"},dbName:{type:"string"},directConnection:{default:!1,type:"boolean"},driverInfo:{target:"metadata",default:(0,E.makeClientMetadata)(),transform({options:e,values:[t]}){var n,r;if(!(0,E.isRecord)(t))throw new p.MongoParseError("DriverInfo must be an object");return(0,E.makeClientMetadata)({driverInfo:t,appName:null===(r=null===(n=e.metadata)||void 0===n?void 0:n.application)||void 0===r?void 0:r.name})}},enableUtf8Validation:{type:"boolean",default:!0},family:{transform({name:e,values:[t]}){const n=w(e,t);if(4===n||6===n)return n;throw new p.MongoParseError(`Option 'family' must be 4 or 6 got ${n}.`)}},fieldsAsRaw:{type:"record"},forceServerObjectId:{default:!1,type:"boolean"},fsync:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[n]}){const r=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,fsync:x(e,n)}});if(!r)throw new p.MongoParseError(`Unable to make a writeConcern from fsync=${n}`);return r}},heartbeatFrequencyMS:{default:1e4,type:"uint"},ignoreUndefined:{type:"boolean"},j:{deprecated:"Please use journal instead",target:"writeConcern",transform({name:e,options:t,values:[n]}){const r=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:x(e,n)}});if(!r)throw new p.MongoParseError(`Unable to make a writeConcern from journal=${n}`);return r}},journal:{target:"writeConcern",transform({name:e,options:t,values:[n]}){const r=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,journal:x(e,n)}});if(!r)throw new p.MongoParseError(`Unable to make a writeConcern from journal=${n}`);return r}},keepAlive:{default:!0,type:"boolean"},keepAliveInitialDelay:{default:12e4,type:"uint"},loadBalanced:{default:!1,type:"boolean"},localThresholdMS:{default:15,type:"uint"},logger:{default:new h.Logger("MongoClient"),transform({values:[e]}){if(e instanceof h.Logger)return e;(0,E.emitWarning)("Alternative loggers might not be supported")}},loggerLevel:{target:"logger",transform:({values:[e]})=>new h.Logger("MongoClient",{loggerLevel:e})},maxIdleTimeMS:{default:0,type:"uint"},maxPoolSize:{default:100,type:"uint"},maxStalenessSeconds:{target:"readPreference",transform({name:e,options:t,values:[n]}){const r=D(e,n);return t.readPreference?g.ReadPreference.fromOptions({readPreference:{...t.readPreference,maxStalenessSeconds:r}}):new g.ReadPreference("secondary",void 0,{maxStalenessSeconds:r})}},minInternalBufferSize:{type:"uint"},minPoolSize:{default:0,type:"uint"},minHeartbeatFrequencyMS:{default:500,type:"uint"},monitorCommands:{default:!1,type:"boolean"},name:{target:"driverInfo",transform:({values:[e],options:t})=>({...t.driverInfo,name:String(e)})},noDelay:{default:!0,type:"boolean"},pkFactory:{default:E.DEFAULT_PK_FACTORY,transform({values:[e]}){if((0,E.isRecord)(e,["createPk"])&&"function"==typeof e.createPk)return e;throw new p.MongoParseError(`Option pkFactory must be an object with a createPk function, got ${e}`)}},promiseLibrary:{deprecated:!0,type:"any"},promoteBuffers:{type:"boolean"},promoteLongs:{type:"boolean"},promoteValues:{type:"boolean"},proxyHost:{type:"string"},proxyPassword:{type:"string"},proxyPort:{type:"uint"},proxyUsername:{type:"string"},raw:{default:!1,type:"boolean"},readConcern:{transform({values:[e],options:t}){if(e instanceof m.ReadConcern||(0,E.isRecord)(e,["level"]))return m.ReadConcern.fromOptions({...t.readConcern,...e});throw new p.MongoParseError(`ReadConcern must be an object, got ${JSON.stringify(e)}`)}},readConcernLevel:{target:"readConcern",transform:({values:[e],options:t})=>m.ReadConcern.fromOptions({...t.readConcern,level:e})},readPreference:{default:g.ReadPreference.primary,transform({values:[e],options:t}){var n,r,i;if(e instanceof g.ReadPreference)return g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if((0,E.isRecord)(e,["mode"])){const n=g.ReadPreference.fromOptions({readPreference:{...t.readPreference,...e},...e});if(n)return n;throw new p.MongoParseError(`Cannot make read preference from ${JSON.stringify(e)}`)}if("string"==typeof e){const s={hedge:null===(n=t.readPreference)||void 0===n?void 0:n.hedge,maxStalenessSeconds:null===(r=t.readPreference)||void 0===r?void 0:r.maxStalenessSeconds};return new g.ReadPreference(e,null===(i=t.readPreference)||void 0===i?void 0:i.tags,s)}throw new p.MongoParseError(`Unknown ReadPreference value: ${e}`)}},readPreferenceTags:{target:"readPreference",transform({values:e,options:t}){const n=Array.isArray(e[0])?e[0]:e,r=[];for(const e of n){const t=Object.create(null);if("string"==typeof e)for(const[n,r]of _(e))t[n]=r;if((0,E.isRecord)(e))for(const[n,r]of Object.entries(e))t[n]=r;r.push(t)}return g.ReadPreference.fromOptions({readPreference:t.readPreference,readPreferenceTags:r})}},replicaSet:{type:"string"},retryReads:{default:!0,type:"boolean"},retryWrites:{default:!0,type:"boolean"},serializeFunctions:{type:"boolean"},serverSelectionTimeoutMS:{default:3e4,type:"uint"},servername:{type:"string"},socketTimeoutMS:{default:0,type:"uint"},srvMaxHosts:{type:"uint",default:0},srvServiceName:{type:"string",default:"mongodb"},ssl:{target:"tls",type:"boolean"},sslCA:{target:"ca",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslCRL:{target:"crl",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslCert:{target:"cert",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslKey:{target:"key",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},sslPass:{deprecated:!0,target:"passphrase",type:"string"},sslValidate:{target:"rejectUnauthorized",type:"boolean"},tls:{type:"boolean"},tlsAllowInvalidCertificates:{target:"rejectUnauthorized",transform:({name:e,values:[t]})=>!x(e,t)},tlsAllowInvalidHostnames:{target:"checkServerIdentity",transform:({name:e,values:[t]})=>x(e,t)?()=>{}:void 0},tlsCAFile:{target:"ca",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateFile:{target:"cert",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFile:{target:"key",transform:({values:[e]})=>i.readFileSync(String(e),{encoding:"ascii"})},tlsCertificateKeyFilePassword:{target:"passphrase",type:"any"},tlsInsecure:{transform({name:e,options:t,values:[n]}){const r=x(e,n);return r?(t.checkServerIdentity=()=>{},t.rejectUnauthorized=!1):(t.checkServerIdentity=t.tlsAllowInvalidHostnames?()=>{}:void 0,t.rejectUnauthorized=!t.tlsAllowInvalidCertificates),r}},w:{target:"writeConcern",transform:({values:[e],options:t})=>y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}})},waitQueueTimeoutMS:{default:0,type:"uint"},writeConcern:{target:"writeConcern",transform({values:[e],options:t}){if((0,E.isRecord)(e)||e instanceof y.WriteConcern)return y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,...e}});if("majority"===e||"number"==typeof e)return y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,w:e}});throw new p.MongoParseError(`Invalid WriteConcern cannot parse: ${JSON.stringify(e)}`)}},wtimeout:{deprecated:"Please use wtimeoutMS instead",target:"writeConcern",transform({values:[e],options:t}){const n=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeout:D("wtimeout",e)}});if(n)return n;throw new p.MongoParseError("Cannot make WriteConcern from wtimeout")}},wtimeoutMS:{target:"writeConcern",transform({values:[e],options:t}){const n=y.WriteConcern.fromOptions({writeConcern:{...t.writeConcern,wtimeoutMS:D("wtimeoutMS",e)}});if(n)return n;throw new p.MongoParseError("Cannot make WriteConcern from wtimeout")}},zlibCompressionLevel:{default:0,type:"int"},connectionType:{type:"any"},srvPoller:{type:"any"},minDHSize:{type:"any"},pskCallback:{type:"any"},secureContext:{type:"any"},enableTrace:{type:"any"},requestCert:{type:"any"},rejectUnauthorized:{type:"any"},checkServerIdentity:{type:"any"},ALPNProtocols:{type:"any"},SNICallback:{type:"any"},session:{type:"any"},requestOCSP:{type:"any"},localAddress:{type:"any"},localPort:{type:"any"},hints:{type:"any"},lookup:{type:"any"},ca:{type:"any"},cert:{type:"any"},ciphers:{type:"any"},crl:{type:"any"},ecdhCurve:{type:"any"},key:{type:"any"},passphrase:{type:"any"},pfx:{type:"any"},secureProtocol:{type:"any"},index:{type:"any"},useNewUrlParser:{type:"boolean"},useUnifiedTopology:{type:"boolean"}},t.DEFAULT_OPTIONS=new O(Object.entries(t.OPTIONS).filter((([,e])=>null!=e.default)).map((([e,t])=>[e,t.default]))),t.FEATURE_FLAGS=new Set([Symbol.for("@@mdb.skipPingOnConnect")])},5006:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APM_EVENTS=t.TOPOLOGY_EVENTS=t.CMAP_EVENTS=t.HEARTBEAT_EVENTS=t.RESUME_TOKEN_CHANGED=t.END=t.CHANGE=t.INIT=t.MORE=t.RESPONSE=t.SERVER_HEARTBEAT_FAILED=t.SERVER_HEARTBEAT_SUCCEEDED=t.SERVER_HEARTBEAT_STARTED=t.COMMAND_FAILED=t.COMMAND_SUCCEEDED=t.COMMAND_STARTED=t.CLUSTER_TIME_RECEIVED=t.CONNECTION_CHECKED_IN=t.CONNECTION_CHECKED_OUT=t.CONNECTION_CHECK_OUT_FAILED=t.CONNECTION_CHECK_OUT_STARTED=t.CONNECTION_CLOSED=t.CONNECTION_READY=t.CONNECTION_CREATED=t.CONNECTION_POOL_CLEARED=t.CONNECTION_POOL_CLOSED=t.CONNECTION_POOL_CREATED=t.TOPOLOGY_DESCRIPTION_CHANGED=t.TOPOLOGY_CLOSED=t.TOPOLOGY_OPENING=t.SERVER_DESCRIPTION_CHANGED=t.SERVER_CLOSED=t.SERVER_OPENING=t.DESCRIPTION_RECEIVED=t.UNPINNED=t.PINNED=t.MESSAGE=t.ENDED=t.CLOSED=t.CONNECT=t.OPEN=t.CLOSE=t.TIMEOUT=t.ERROR=t.SYSTEM_JS_COLLECTION=t.SYSTEM_COMMAND_COLLECTION=t.SYSTEM_USER_COLLECTION=t.SYSTEM_PROFILE_COLLECTION=t.SYSTEM_INDEX_COLLECTION=t.SYSTEM_NAMESPACE_COLLECTION=void 0,t.LEGACY_HELLO_COMMAND_CAMEL_CASE=t.LEGACY_HELLO_COMMAND=t.MONGO_CLIENT_EVENTS=t.LOCAL_SERVER_EVENTS=t.SERVER_RELAY_EVENTS=void 0,t.SYSTEM_NAMESPACE_COLLECTION="system.namespaces",t.SYSTEM_INDEX_COLLECTION="system.indexes",t.SYSTEM_PROFILE_COLLECTION="system.profile",t.SYSTEM_USER_COLLECTION="system.users",t.SYSTEM_COMMAND_COLLECTION="$cmd",t.SYSTEM_JS_COLLECTION="system.js",t.ERROR="error",t.TIMEOUT="timeout",t.CLOSE="close",t.OPEN="open",t.CONNECT="connect",t.CLOSED="closed",t.ENDED="ended",t.MESSAGE="message",t.PINNED="pinned",t.UNPINNED="unpinned",t.DESCRIPTION_RECEIVED="descriptionReceived",t.SERVER_OPENING="serverOpening",t.SERVER_CLOSED="serverClosed",t.SERVER_DESCRIPTION_CHANGED="serverDescriptionChanged",t.TOPOLOGY_OPENING="topologyOpening",t.TOPOLOGY_CLOSED="topologyClosed",t.TOPOLOGY_DESCRIPTION_CHANGED="topologyDescriptionChanged",t.CONNECTION_POOL_CREATED="connectionPoolCreated",t.CONNECTION_POOL_CLOSED="connectionPoolClosed",t.CONNECTION_POOL_CLEARED="connectionPoolCleared",t.CONNECTION_CREATED="connectionCreated",t.CONNECTION_READY="connectionReady",t.CONNECTION_CLOSED="connectionClosed",t.CONNECTION_CHECK_OUT_STARTED="connectionCheckOutStarted",t.CONNECTION_CHECK_OUT_FAILED="connectionCheckOutFailed",t.CONNECTION_CHECKED_OUT="connectionCheckedOut",t.CONNECTION_CHECKED_IN="connectionCheckedIn",t.CLUSTER_TIME_RECEIVED="clusterTimeReceived",t.COMMAND_STARTED="commandStarted",t.COMMAND_SUCCEEDED="commandSucceeded",t.COMMAND_FAILED="commandFailed",t.SERVER_HEARTBEAT_STARTED="serverHeartbeatStarted",t.SERVER_HEARTBEAT_SUCCEEDED="serverHeartbeatSucceeded",t.SERVER_HEARTBEAT_FAILED="serverHeartbeatFailed",t.RESPONSE="response",t.MORE="more",t.INIT="init",t.CHANGE="change",t.END="end",t.RESUME_TOKEN_CHANGED="resumeTokenChanged",t.HEARTBEAT_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED]),t.CMAP_EVENTS=Object.freeze([t.CONNECTION_POOL_CREATED,t.CONNECTION_POOL_CLOSED,t.CONNECTION_CREATED,t.CONNECTION_READY,t.CONNECTION_CLOSED,t.CONNECTION_CHECK_OUT_STARTED,t.CONNECTION_CHECK_OUT_FAILED,t.CONNECTION_CHECKED_OUT,t.CONNECTION_CHECKED_IN,t.CONNECTION_POOL_CLEARED]),t.TOPOLOGY_EVENTS=Object.freeze([t.SERVER_OPENING,t.SERVER_CLOSED,t.SERVER_DESCRIPTION_CHANGED,t.TOPOLOGY_OPENING,t.TOPOLOGY_CLOSED,t.TOPOLOGY_DESCRIPTION_CHANGED,t.ERROR,t.TIMEOUT,t.CLOSE]),t.APM_EVENTS=Object.freeze([t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED]),t.SERVER_RELAY_EVENTS=Object.freeze([t.SERVER_HEARTBEAT_STARTED,t.SERVER_HEARTBEAT_SUCCEEDED,t.SERVER_HEARTBEAT_FAILED,t.COMMAND_STARTED,t.COMMAND_SUCCEEDED,t.COMMAND_FAILED,...t.CMAP_EVENTS]),t.LOCAL_SERVER_EVENTS=Object.freeze([t.CONNECT,t.DESCRIPTION_RECEIVED,t.CLOSED,t.ENDED]),t.MONGO_CLIENT_EVENTS=Object.freeze([...t.CMAP_EVENTS,...t.APM_EVENTS,...t.TOPOLOGY_EVENTS,...t.HEARTBEAT_EVENTS]),t.LEGACY_HELLO_COMMAND="ismaster",t.LEGACY_HELLO_COMMAND_CAMEL_CASE="isMaster"},6829:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertUninitialized=t.AbstractCursor=t.CURSOR_FLAGS=void 0;const r=n(6162),i=n(9064),s=n(4947),o=n(334),a=n(7445),u=n(4170),l=n(3389),c=n(1228),p=n(1296),h=n(2229),d=Symbol("id"),f=Symbol("documents"),m=Symbol("server"),g=Symbol("namespace"),E=Symbol("topology"),y=Symbol("session"),v=Symbol("options"),A=Symbol("transform"),C=Symbol("initialized"),b=Symbol("closed"),S=Symbol("killed"),x=Symbol("kInit");t.CURSOR_FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class w extends o.TypedEventEmitter{constructor(e,t,n={}){super(),this[E]=e,this[g]=t,this[f]=[],this[C]=!1,this[b]=!1,this[S]=!1,this[v]={readPreference:n.readPreference&&n.readPreference instanceof c.ReadPreference?n.readPreference:c.ReadPreference.primary,...(0,i.pluckBSONSerializeOptions)(n)};const r=l.ReadConcern.fromOptions(n);r&&(this[v].readConcern=r),"number"==typeof n.batchSize&&(this[v].batchSize=n.batchSize),void 0!==n.comment&&(this[v].comment=n.comment),"number"==typeof n.maxTimeMS&&(this[v].maxTimeMS=n.maxTimeMS),n.session instanceof p.ClientSession&&(this[y]=n.session)}get id(){return this[d]}get topology(){return this[E]}get server(){return this[m]}get namespace(){return this[g]}get readPreference(){return this[v].readPreference}get readConcern(){return this[v].readConcern}get session(){return this[y]}set session(e){this[y]=e}get cursorOptions(){return this[v]}get closed(){return this[b]}get killed(){return this[S]}get loadBalanced(){return this[E].loadBalanced}bufferedCount(){return this[f].length}readBufferedDocuments(e){return this[f].splice(0,null!=e?e:this[f].length)}[Symbol.asyncIterator](){return{next:()=>this.next().then((e=>null!=e?{value:e,done:!1}:{value:void 0,done:!0}))}}stream(e){if(null==e?void 0:e.transform){const t=e.transform;return B(this).pipe(new r.Transform({objectMode:!0,highWaterMark:1,transform(e,n,r){try{r(void 0,t(e))}catch(e){r(e)}}}))}return B(this)}hasNext(e){return(0,h.maybePromise)(e,(e=>this[d]===i.Long.ZERO?e(void 0,!1):this[f].length?e(void 0,!0):void _(this,!0,((t,n)=>t?e(t):n?(this[f].unshift(n),void e(void 0,!0)):void e(void 0,!1)))))}next(e){return(0,h.maybePromise)(e,(e=>{if(this[d]===i.Long.ZERO)return e(new s.MongoCursorExhaustedError);_(this,!0,e)}))}tryNext(e){return(0,h.maybePromise)(e,(e=>{if(this[d]===i.Long.ZERO)return e(new s.MongoCursorExhaustedError);_(this,!1,e)}))}forEach(e,t){if("function"!=typeof e)throw new s.MongoInvalidArgumentError('Argument "iterator" must be a function');return(0,h.maybePromise)(t,(t=>{const n=this[A],r=()=>{_(this,!0,((i,s)=>{if(i||null==s)return t(i);let o;try{o=e(s)}catch(e){return t(e)}if(!1===o)return t();const a=this[f].splice(0,this[f].length);for(let r=0;r<a.length;++r){try{o=e(n?n(a[r]):a[r])}catch(e){return t(e)}if(!1===o)return t()}r()}))};r()}))}close(e,t){"function"==typeof e&&(t=e,e={}),e=null!=e?e:{};const n=!this[b];return this[b]=!0,(0,h.maybePromise)(t,(e=>F(this,{needsToEmitClosed:n},e)))}toArray(e){return(0,h.maybePromise)(e,(e=>{const t=[],n=this[A],r=()=>{_(this,!0,((i,s)=>{if(i)return e(i);if(null==s)return e(void 0,t);t.push(s);const o=n?this[f].splice(0,this[f].length).map(n):this[f].splice(0,this[f].length);o&&t.push(...o),r()}))};r()}))}addCursorFlag(e,n){if(T(this),!t.CURSOR_FLAGS.includes(e))throw new s.MongoInvalidArgumentError(`Flag ${e} is not one of ${t.CURSOR_FLAGS}`);if("boolean"!=typeof n)throw new s.MongoInvalidArgumentError(`Flag ${e} must be a boolean value`);return this[v][e]=n,this}map(e){T(this);const t=this[A];return this[A]=t?n=>e(t(n)):e,this}withReadPreference(e){if(T(this),e instanceof c.ReadPreference)this[v].readPreference=e;else{if("string"!=typeof e)throw new s.MongoInvalidArgumentError(`Invalid read preference: ${e}`);this[v].readPreference=c.ReadPreference.fromString(e)}return this}withReadConcern(e){T(this);const t=l.ReadConcern.fromOptions({readConcern:e});return t&&(this[v].readConcern=t),this}maxTimeMS(e){if(T(this),"number"!=typeof e)throw new s.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[v].maxTimeMS=e,this}batchSize(e){if(T(this),this[v].tailable)throw new s.MongoTailableCursorError("Tailable cursor does not support batchSize");if("number"!=typeof e)throw new s.MongoInvalidArgumentError('Operation "batchSize" requires an integer');return this[v].batchSize=e,this}rewind(){if(!this[C])return;this[d]=void 0,this[f]=[],this[b]=!1,this[S]=!1,this[C]=!1;const e=this[y];e&&(!1!==e.explicit||e.hasEnded||e.endSession(),this[y]=void 0)}_getMore(e,t){const n=this[d],r=this[g],i=this[m];if(null==n)return void t(new s.MongoRuntimeError("Unable to iterate cursor with no id"));if(null==i)return void t(new s.MongoRuntimeError("Unable to iterate cursor without selected server"));const o=new u.GetMoreOperation(r,n,i,{...this[v],session:this[y],batchSize:e});(0,a.executeOperation)(this,o,t)}[x](e){if(null==this[y]){if(this[E].shouldCheckForSessionSupport())return this[E].selectServer(c.ReadPreference.primaryPreferred,{},(t=>t?e(t):this[x](e)));this[E].hasSessionSupport()&&(this[y]=this[E].startSession({owner:this,explicit:!1}))}this._initialize(this[y],((t,n)=>{if(n){const e=n.response;this[m]=n.server,this[y]=n.session,e.cursor&&(this[d]="number"==typeof e.cursor.id?i.Long.fromNumber(e.cursor.id):e.cursor.id,e.cursor.ns&&(this[g]=(0,h.ns)(e.cursor.ns)),this[f]=e.cursor.firstBatch),null==this[d]&&(this[d]=i.Long.ZERO,this[f]=[n.response])}if(this[C]=!0,t||O(this))return F(this,{error:t},(()=>e(t,D(this))));e()}))}}function D(e){if(null==e[f]||!e[f].length)return null;const t=e[f].shift();if(t){const n=e[A];return n?n(t):t}return null}function _(e,t,n){const r=e[d];if(e.closed)return n(void 0,null);if(e[f]&&e[f].length)return void n(void 0,D(e));if(null==r)return void e[x](((r,i)=>r?n(r):i?n(void 0,i):_(e,t,n)));if(O(e))return F(e,void 0,(()=>n(void 0,null)));const s=e[v].batchSize||1e3;e._getMore(s,((r,s)=>{if(s){const t="number"==typeof s.cursor.id?i.Long.fromNumber(s.cursor.id):s.cursor.id;e[f]=s.cursor.nextBatch,e[d]=t}return r||O(e)?F(e,{error:r},(()=>n(r,D(e)))):0===e[f].length&&!1===t?n(void 0,null):void _(e,t,n)}))}function O(e){const t=e[d];return!!t&&t.isZero()}function F(e,t,n){var r;const o=e[d],a=e[g],u=e[m],l=e[y],c=null==t?void 0:t.error,h=null!==(r=null==t?void 0:t.needsToEmitClosed)&&void 0!==r?r:0===e[f].length;if(c&&e.loadBalanced&&c instanceof s.MongoNetworkError)return E();if(null==o||null==u||o.isZero()||null==a){if(h&&(e[b]=!0,e[d]=i.Long.ZERO,e.emit(w.CLOSE)),l){if(l.owner===e)return l.endSession({error:c},n);l.inTransaction()||(0,p.maybeClearPinnedConnection)(l,{error:c})}return n()}function E(){if(l){if(l.owner===e)return l.endSession({error:c},(()=>{e.emit(w.CLOSE),n()}));l.inTransaction()||(0,p.maybeClearPinnedConnection)(l,{error:c})}return e.emit(w.CLOSE),n()}e[S]=!0,u.killCursors(a,[o],{...(0,i.pluckBSONSerializeOptions)(e[v]),session:l},(()=>E()))}function T(e){if(e[C])throw new s.MongoCursorInUseError}function B(e){const t=new r.Readable({objectMode:!0,autoDestroy:!1,highWaterMark:1});let n=!1,i=!1,s=!0;function o(){s=!1,_(e,!0,((n,r)=>{if(s=n?!e.closed:null!=r,n)return n.message.match(/server is closed/)?(e.close(),t.push(null)):n.message.match(/interrupted/)?t.push(null):t.destroy(n);if(null==r)t.push(null);else if(t.destroyed)e.close();else{if(t.push(r))return o();i=!1}}))}return t._read=function(){!1===n&&(s=!1,n=!0),i||(i=!0,o())},t._destroy=function(t,n){s?e.close((e=>process.nextTick(n,e||t))):n(t)},t}t.AbstractCursor=w,w.CLOSE="close",t.assertUninitialized=T},3490:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregationCursor=void 0;const r=n(4213),i=n(7445),s=n(2229),o=n(6829),a=Symbol("pipeline"),u=Symbol("options");class l extends o.AbstractCursor{constructor(e,t,n=[],r={}){super(e,t,r),this[a]=n,this[u]=r}get pipeline(){return this[a]}clone(){const e=(0,s.mergeOptions)({},this[u]);return delete e.session,new l(this.topology,this.namespace,this[a],{...e})}map(e){return super.map(e)}_initialize(e,t){const n=new r.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,session:e});(0,i.executeOperation)(this,n,((r,i)=>{if(r||null==i)return t(r);t(void 0,{server:n.server,session:e,response:i})}))}explain(e,t){return"function"==typeof e&&(t=e,e=!0),null==e&&(e=!0),(0,i.executeOperation)(this,new r.AggregateOperation(this.namespace,this[a],{...this[u],...this.cursorOptions,explain:e}),t)}group(e){return(0,o.assertUninitialized)(this),this[a].push({$group:e}),this}limit(e){return(0,o.assertUninitialized)(this),this[a].push({$limit:e}),this}match(e){return(0,o.assertUninitialized)(this),this[a].push({$match:e}),this}out(e){return(0,o.assertUninitialized)(this),this[a].push({$out:e}),this}project(e){return(0,o.assertUninitialized)(this),this[a].push({$project:e}),this}lookup(e){return(0,o.assertUninitialized)(this),this[a].push({$lookup:e}),this}redact(e){return(0,o.assertUninitialized)(this),this[a].push({$redact:e}),this}skip(e){return(0,o.assertUninitialized)(this),this[a].push({$skip:e}),this}sort(e){return(0,o.assertUninitialized)(this),this[a].push({$sort:e}),this}unwind(e){return(0,o.assertUninitialized)(this),this[a].push({$unwind:e}),this}geoNear(e){return(0,o.assertUninitialized)(this),this[a].push({$geoNear:e}),this}}t.AggregationCursor=l},6331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindCursor=t.FLAGS=void 0;const r=n(4947),i=n(2566),s=n(7445),o=n(1709),a=n(649),u=n(2229),l=n(6829),c=Symbol("filter"),p=Symbol("numReturned"),h=Symbol("builtOptions");t.FLAGS=["tailable","oplogReplay","noCursorTimeout","awaitData","exhaust","partial"];class d extends l.AbstractCursor{constructor(e,t,n,r={}){super(e,t,r),this[c]=n||{},this[h]=r,null!=r.sort&&(this[h].sort=(0,a.formatSort)(r.sort))}clone(){const e=(0,u.mergeOptions)({},this[h]);return delete e.session,new d(this.topology,this.namespace,this[c],{...e})}map(e){return super.map(e)}_initialize(e,t){const n=new o.FindOperation(void 0,this.namespace,this[c],{...this[h],...this.cursorOptions,session:e});(0,s.executeOperation)(this,n,((r,i)=>{if(r||null==i)return t(r);i.cursor?this[p]=i.cursor.firstBatch.length:this[p]=i.documents?i.documents.length:0,t(void 0,{server:n.server,session:e,response:i})}))}_getMore(e,t){const n=this[p];if(n){const r=this[h].limit;if((e=r&&r>0&&n+e>r?r-n:e)<=0)return this.close(t)}super._getMore(e,((e,n)=>{if(e)return t(e);n&&(this[p]=this[p]+n.cursor.nextBatch.length),t(void 0,n)}))}count(e,t){if((0,u.emitWarningOnce)("cursor.count is deprecated and will be removed in the next major version, please use `collection.estimatedDocumentCount` or `collection.countDocuments` instead "),"boolean"==typeof e)throw new r.MongoInvalidArgumentError("Invalid first parameter to count");return"function"==typeof e&&(t=e,e={}),e=null!=e?e:{},(0,s.executeOperation)(this,new i.CountOperation(this.namespace,this[c],{...this[h],...this.cursorOptions,...e}),t)}explain(e,t){return"function"==typeof e&&(t=e,e=!0),null==e&&(e=!0),(0,s.executeOperation)(this,new o.FindOperation(void 0,this.namespace,this[c],{...this[h],...this.cursorOptions,explain:e}),t)}filter(e){return(0,l.assertUninitialized)(this),this[c]=e,this}hint(e){return(0,l.assertUninitialized)(this),this[h].hint=e,this}min(e){return(0,l.assertUninitialized)(this),this[h].min=e,this}max(e){return(0,l.assertUninitialized)(this),this[h].max=e,this}returnKey(e){return(0,l.assertUninitialized)(this),this[h].returnKey=e,this}showRecordId(e){return(0,l.assertUninitialized)(this),this[h].showRecordId=e,this}addQueryModifier(e,t){if((0,l.assertUninitialized)(this),"$"!==e[0])throw new r.MongoInvalidArgumentError(`${e} is not a valid query modifier`);switch(e.substr(1)){case"comment":this[h].comment=t;break;case"explain":this[h].explain=t;break;case"hint":this[h].hint=t;break;case"max":this[h].max=t;break;case"maxTimeMS":this[h].maxTimeMS=t;break;case"min":this[h].min=t;break;case"orderby":this[h].sort=(0,a.formatSort)(t);break;case"query":this[c]=t;break;case"returnKey":this[h].returnKey=t;break;case"showDiskLoc":this[h].showRecordId=t;break;default:throw new r.MongoInvalidArgumentError(`Invalid query modifier: ${e}`)}return this}comment(e){return(0,l.assertUninitialized)(this),this[h].comment=e,this}maxAwaitTimeMS(e){if((0,l.assertUninitialized)(this),"number"!=typeof e)throw new r.MongoInvalidArgumentError("Argument for maxAwaitTimeMS must be a number");return this[h].maxAwaitTimeMS=e,this}maxTimeMS(e){if((0,l.assertUninitialized)(this),"number"!=typeof e)throw new r.MongoInvalidArgumentError("Argument for maxTimeMS must be a number");return this[h].maxTimeMS=e,this}project(e){return(0,l.assertUninitialized)(this),this[h].projection=e,this}sort(e,t){if((0,l.assertUninitialized)(this),this[h].tailable)throw new r.MongoTailableCursorError("Tailable cursor does not support sorting");return this[h].sort=(0,a.formatSort)(e,t),this}allowDiskUse(e=!0){if((0,l.assertUninitialized)(this),!this[h].sort)throw new r.MongoInvalidArgumentError('Option "allowDiskUse" requires a sort specification');return e?(this[h].allowDiskUse=!0,this):(this[h].allowDiskUse=!1,this)}collation(e){return(0,l.assertUninitialized)(this),this[h].collation=e,this}limit(e){if((0,l.assertUninitialized)(this),this[h].tailable)throw new r.MongoTailableCursorError("Tailable cursor does not support limit");if("number"!=typeof e)throw new r.MongoInvalidArgumentError('Operation "limit" requires an integer');return this[h].limit=e,this}skip(e){if((0,l.assertUninitialized)(this),this[h].tailable)throw new r.MongoTailableCursorError("Tailable cursor does not support skip");if("number"!=typeof e)throw new r.MongoInvalidArgumentError('Operation "skip" requires an integer');return this[h].skip=e,this}}t.FindCursor=d},2644:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Db=void 0;const r=n(5716),i=n(9064),s=n(4747),o=n(8971),a=n(5006),u=n(3490),l=n(4947),c=n(6326),p=n(3186),h=n(4916),d=n(7711),f=n(3226),m=n(7445),g=n(2139),E=n(2320),y=n(8528),v=n(8521),A=n(8955),C=n(25),b=n(4671),S=n(6577),x=n(3389),w=n(1228),D=n(2229),_=n(4620),O=["writeConcern","readPreference","readPreferenceTags","native_parser","forceServerObjectId","pkFactory","serializeFunctions","raw","authSource","ignoreUndefined","readConcern","retryMiliSeconds","numberOfRetries","loggerLevel","logger","promoteBuffers","promoteLongs","bsonRegExp","enableUtf8Validation","promoteValues","compression","retryWrites"];class F{constructor(e,t,n){var r;n=null!=n?n:{},n=(0,D.filterOptions)(n,O),function(e){if("string"!=typeof e)throw new l.MongoInvalidArgumentError("Database name must be a string");if(0===e.length)throw new l.MongoInvalidArgumentError("Database name cannot be the empty string");if("$external"===e)return;const t=[" ",".","$","/","\\"];for(let n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))throw new l.MongoAPIError(`database names cannot contain the character '${t[n]}'`)}(t),this.s={client:e,options:n,logger:new c.Logger("Db",n),readPreference:w.ReadPreference.fromOptions(n),bsonOptions:(0,i.resolveBSONOptions)(n,e),pkFactory:null!==(r=null==n?void 0:n.pkFactory)&&void 0!==r?r:D.DEFAULT_PK_FACTORY,readConcern:x.ReadConcern.fromOptions(n),writeConcern:_.WriteConcern.fromOptions(n),namespace:new D.MongoDBNamespace(t)}}get databaseName(){return this.s.namespace.db}get options(){return this.s.options}get slaveOk(){return this.secondaryOk}get secondaryOk(){var e;return"primary"!==(null===(e=this.s.readPreference)||void 0===e?void 0:e.preference)||!1}get readConcern(){return this.s.readConcern}get readPreference(){return null==this.s.readPreference?this.s.client.readPreference:this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get writeConcern(){return this.s.writeConcern}get namespace(){return this.s.namespace.toString()}createCollection(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new d.CreateCollectionOperation(this,e,(0,D.resolveOptions)(this,t)),n)}command(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new C.RunCommandOperation(this,e,null!=t?t:{}),n)}aggregate(e=[],t){if(arguments.length>2)throw new l.MongoInvalidArgumentError('Method "db.aggregate()" accepts at most two arguments');if("function"==typeof e)throw new l.MongoInvalidArgumentError('Argument "pipeline" must not be function');if("function"==typeof t)throw new l.MongoInvalidArgumentError('Argument "options" must not be function');return new u.AggregationCursor((0,D.getTopology)(this),this.s.namespace,e,(0,D.resolveOptions)(this,t))}admin(){return new r.Admin(this)}collection(e,t={}){if("function"==typeof t)throw new l.MongoInvalidArgumentError("The callback form of this helper has been removed.");const n=(0,D.resolveOptions)(this,t);return new o.Collection(this,e,n)}stats(e,t){return"function"==typeof e&&(t=e,e={}),(0,m.executeOperation)(this,new S.DbStatsOperation(this,(0,D.resolveOptions)(this,e)),t)}listCollections(e={},t={}){return new E.ListCollectionsCursor(this,e,(0,D.resolveOptions)(this,t))}renameCollection(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(n={...n,readPreference:w.ReadPreference.PRIMARY}).new_collection=!0,(0,m.executeOperation)(this,new A.RenameOperation(this.collection(e),t,n),r)}dropCollection(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new f.DropCollectionOperation(this,e,(0,D.resolveOptions)(this,t)),n)}dropDatabase(e,t){return"function"==typeof e&&(t=e,e={}),(0,m.executeOperation)(this,new f.DropDatabaseOperation(this,(0,D.resolveOptions)(this,e)),t)}collections(e,t){return"function"==typeof e&&(t=e,e={}),(0,m.executeOperation)(this,new h.CollectionsOperation(this,(0,D.resolveOptions)(this,e)),t)}createIndex(e,t,n,r){return"function"==typeof n&&(r=n,n={}),(0,m.executeOperation)(this,new g.CreateIndexOperation(this,e,t,(0,D.resolveOptions)(this,n)),r)}addUser(e,t,n,r){return"function"==typeof t?(r=t,t=void 0,n={}):"string"!=typeof t?"function"==typeof n?(r=n,n=t,t=void 0):(n=t,r=void 0,t=void 0):"function"==typeof n&&(r=n,n={}),(0,m.executeOperation)(this,new p.AddUserOperation(this,e,t,(0,D.resolveOptions)(this,n)),r)}removeUser(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new v.RemoveUserOperation(this,e,(0,D.resolveOptions)(this,t)),n)}setProfilingLevel(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new b.SetProfilingLevelOperation(this,e,(0,D.resolveOptions)(this,t)),n)}profilingLevel(e,t){return"function"==typeof e&&(t=e,e={}),(0,m.executeOperation)(this,new y.ProfilingLevelOperation(this,(0,D.resolveOptions)(this,e)),t)}indexInformation(e,t,n){return"function"==typeof t&&(n=t,t={}),(0,m.executeOperation)(this,new g.IndexInformationOperation(this,e,(0,D.resolveOptions)(this,t)),n)}unref(){(0,D.getTopology)(this).unref()}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new s.ChangeStream(this,e,(0,D.resolveOptions)(this,t))}getLogger(){return this.s.logger}get logger(){return this.s.logger}}t.Db=F,F.SYSTEM_NAMESPACE_COLLECTION=a.SYSTEM_NAMESPACE_COLLECTION,F.SYSTEM_INDEX_COLLECTION=a.SYSTEM_INDEX_COLLECTION,F.SYSTEM_PROFILE_COLLECTION=a.SYSTEM_PROFILE_COLLECTION,F.SYSTEM_USER_COLLECTION=a.SYSTEM_USER_COLLECTION,F.SYSTEM_COMMAND_COLLECTION=a.SYSTEM_COMMAND_COLLECTION,F.SYSTEM_JS_COLLECTION=a.SYSTEM_JS_COLLECTION},8808:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AutoEncryptionLoggerLevel=t.aws4=t.saslprep=t.Snappy=t.Kerberos=t.PKG_VERSION=void 0;const r=n(4947),i=n(2229);function s(e){return new Proxy(e?{kModuleError:e}:{},{get:(t,n)=>{if("kModuleError"===n)return e;throw e},set:()=>{throw e}})}t.PKG_VERSION=Symbol("kPkgVersion"),t.Kerberos=s(new r.MongoMissingDependencyError("Optional module `kerberos` not found. Please install it to enable kerberos authentication"));try{t.Kerberos=n(3617)}catch{}t.Snappy=s(new r.MongoMissingDependencyError("Optional module `snappy` not found. Please install it to enable snappy compression"));try{t.Snappy=n(8349);try{t.Snappy[t.PKG_VERSION]=(0,i.parsePackageVersion)(n(3081))}catch{}}catch{}t.saslprep=s(new r.MongoMissingDependencyError("Optional module `saslprep` not found. Please install it to enable Stringprep Profile for User Names and Passwords"));try{t.saslprep=n(7017)}catch{}t.aws4=s(new r.MongoMissingDependencyError("Optional module `aws4` not found. Please install it to enable AWS authentication"));try{t.aws4=n(1595)}catch{}t.AutoEncryptionLoggerLevel=Object.freeze({FatalError:0,Error:1,Warning:2,Info:3,Trace:4})},3748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Encrypter=void 0;const r=n(9064),i=n(5006),s=n(4947),o=n(2319);let a;const u=Symbol("internalClient");t.Encrypter=class{constructor(e,t,n){if("object"!=typeof n.autoEncryption)throw new s.MongoInvalidArgumentError('Option "autoEncryption" must be specified');this[u]=null,this.bypassAutoEncryption=!!n.autoEncryption.bypassAutoEncryption,this.needsConnecting=!1,0===n.maxPoolSize&&null==n.autoEncryption.keyVaultClient?n.autoEncryption.keyVaultClient=e:null==n.autoEncryption.keyVaultClient&&(n.autoEncryption.keyVaultClient=this.getInternalClient(e,t,n)),this.bypassAutoEncryption?n.autoEncryption.metadataClient=void 0:0===n.maxPoolSize?n.autoEncryption.metadataClient=e:n.autoEncryption.metadataClient=this.getInternalClient(e,t,n),n.proxyHost&&(n.autoEncryption.proxyOptions={proxyHost:n.proxyHost,proxyPort:n.proxyPort,proxyUsername:n.proxyUsername,proxyPassword:n.proxyPassword}),n.autoEncryption.bson=Object.create(null),n.autoEncryption.bson.serialize=r.serialize,n.autoEncryption.bson.deserialize=r.deserialize,this.autoEncrypter=new a(e,n.autoEncryption)}getInternalClient(e,t,n){let r=this[u];if(null==r){const s={};for(const e of[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)])["autoEncryption","minPoolSize","servers","caseTranslate","dbName"].includes(e)||Reflect.set(s,e,Reflect.get(n,e));s.minPoolSize=0,r=new o.MongoClient(t,s),this[u]=r;for(const t of i.MONGO_CLIENT_EVENTS)for(const n of e.listeners(t))r.on(t,n);e.on("newListener",((e,t)=>{null==r||r.on(e,t)})),this.needsConnecting=!0}return r}connectInternalClient(e){const t=this[u];return this.needsConnecting&&null!=t?(this.needsConnecting=!1,t.connect(e)):e()}close(e,t,n){this.autoEncrypter.teardown(!!t,(r=>{const i=this[u];if(null!=i&&e!==i)return i.close(t,n);n(r)}))}static checkForMongoCrypt(){let e;try{e=n(4529)}catch(e){throw new s.MongoMissingDependencyError("Auto-encryption requested, but the module is not installed. Please add `mongodb-client-encryption` as a dependency of your project")}a=e.extension(n(8761)).AutoEncrypter}}},4947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isResumableError=t.isNetworkTimeoutError=t.isSDAMUnrecoverableError=t.isNodeShuttingDownError=t.isRetryableReadError=t.isRetryableWriteError=t.needsRetryableWriteLabel=t.MongoWriteConcernError=t.MongoServerSelectionError=t.MongoSystemError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoCompatibilityError=t.MongoInvalidArgumentError=t.MongoParseError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.isNetworkErrorBeforeHandshake=t.MongoTopologyClosedError=t.MongoCursorExhaustedError=t.MongoServerClosedError=t.MongoCursorInUseError=t.MongoUnexpectedServerResponseError=t.MongoGridFSChunkError=t.MongoGridFSStreamError=t.MongoTailableCursorError=t.MongoChangeStreamError=t.MongoAWSError=t.MongoKerberosError=t.MongoExpiredSessionError=t.MongoTransactionError=t.MongoNotConnectedError=t.MongoDecompressionError=t.MongoBatchReExecutionError=t.MongoRuntimeError=t.MongoAPIError=t.MongoDriverError=t.MongoServerError=t.MongoError=t.MongoErrorLabel=t.GET_MORE_RESUMABLE_CODES=t.MONGODB_ERROR_CODES=t.NODE_IS_RECOVERING_ERROR_MESSAGE=t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=void 0;const n=Symbol("errorLabels");t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE=new RegExp("not master","i"),t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE=new RegExp("not master or secondary","i"),t.NODE_IS_RECOVERING_ERROR_MESSAGE=new RegExp("node is recovering","i"),t.MONGODB_ERROR_CODES=Object.freeze({HostUnreachable:6,HostNotFound:7,NetworkTimeout:89,ShutdownInProgress:91,PrimarySteppedDown:189,ExceededTimeLimit:262,SocketException:9001,NotWritablePrimary:10107,InterruptedAtShutdown:11600,InterruptedDueToReplStateChange:11602,NotPrimaryNoSecondaryOk:13435,NotPrimaryOrSecondary:13436,StaleShardVersion:63,StaleEpoch:150,StaleConfig:13388,RetryChangeStream:234,FailedToSatisfyReadPreference:133,CursorNotFound:43,LegacyNotPrimary:10058,WriteConcernFailed:64,NamespaceNotFound:26,IllegalOperation:20,MaxTimeMSExpired:50,UnknownReplWriteConcern:79,UnsatisfiableWriteConcern:100}),t.GET_MORE_RESUMABLE_CODES=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.ExceededTimeLimit,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary,t.MONGODB_ERROR_CODES.StaleShardVersion,t.MONGODB_ERROR_CODES.StaleEpoch,t.MONGODB_ERROR_CODES.StaleConfig,t.MONGODB_ERROR_CODES.RetryChangeStream,t.MONGODB_ERROR_CODES.FailedToSatisfyReadPreference,t.MONGODB_ERROR_CODES.CursorNotFound]),t.MongoErrorLabel=Object.freeze({RetryableWriteError:"RetryableWriteError",TransientTransactionError:"TransientTransactionError",UnknownTransactionCommitResult:"UnknownTransactionCommitResult",ResumableChangeStreamError:"ResumableChangeStreamError",HandshakeError:"HandshakeError"});class r extends Error{constructor(e){e instanceof Error?super(e.message):super(e),this[n]=new Set}get name(){return"MongoError"}get errmsg(){return this.message}hasErrorLabel(e){return this[n].has(e)}addErrorLabel(e){this[n].add(e)}get errorLabels(){return Array.from(this[n])}}t.MongoError=r;class i extends r{constructor(e){super(e.message||e.errmsg||e.$err||"n/a"),e.errorLabels&&(this[n]=new Set(e.errorLabels));for(const t in e)"errorLabels"!==t&&"errmsg"!==t&&"message"!==t&&(this[t]=e[t])}get name(){return"MongoServerError"}}t.MongoServerError=i;class s extends r{constructor(e){super(e)}get name(){return"MongoDriverError"}}t.MongoDriverError=s;class o extends s{constructor(e){super(e)}get name(){return"MongoAPIError"}}t.MongoAPIError=o;class a extends s{constructor(e){super(e)}get name(){return"MongoRuntimeError"}}t.MongoRuntimeError=a,t.MongoBatchReExecutionError=class extends o{constructor(e="This batch has already been executed, create new batch to execute"){super(e)}get name(){return"MongoBatchReExecutionError"}},t.MongoDecompressionError=class extends a{constructor(e){super(e)}get name(){return"MongoDecompressionError"}},t.MongoNotConnectedError=class extends o{constructor(e){super(e)}get name(){return"MongoNotConnectedError"}},t.MongoTransactionError=class extends o{constructor(e){super(e)}get name(){return"MongoTransactionError"}},t.MongoExpiredSessionError=class extends o{constructor(e="Cannot use a session that has ended"){super(e)}get name(){return"MongoExpiredSessionError"}},t.MongoKerberosError=class extends a{constructor(e){super(e)}get name(){return"MongoKerberosError"}},t.MongoAWSError=class extends a{constructor(e){super(e)}get name(){return"MongoAWSError"}},t.MongoChangeStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoChangeStreamError"}},t.MongoTailableCursorError=class extends o{constructor(e="Tailable cursor does not support this operation"){super(e)}get name(){return"MongoTailableCursorError"}},t.MongoGridFSStreamError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSStreamError"}},t.MongoGridFSChunkError=class extends a{constructor(e){super(e)}get name(){return"MongoGridFSChunkError"}},t.MongoUnexpectedServerResponseError=class extends a{constructor(e){super(e)}get name(){return"MongoUnexpectedServerResponseError"}},t.MongoCursorInUseError=class extends o{constructor(e="Cursor is already initialized"){super(e)}get name(){return"MongoCursorInUseError"}},t.MongoServerClosedError=class extends o{constructor(e="Server is closed"){super(e)}get name(){return"MongoServerClosedError"}},t.MongoCursorExhaustedError=class extends o{constructor(e){super(e||"Cursor is exhausted")}get name(){return"MongoCursorExhaustedError"}},t.MongoTopologyClosedError=class extends o{constructor(e="Topology is closed"){super(e)}get name(){return"MongoTopologyClosedError"}};const u=Symbol("beforeHandshake");t.isNetworkErrorBeforeHandshake=function(e){return!0===e[u]};class l extends r{constructor(e,t){super(e),t&&"boolean"==typeof t.beforeHandshake&&(this[u]=t.beforeHandshake)}get name(){return"MongoNetworkError"}}t.MongoNetworkError=l,t.MongoNetworkTimeoutError=class extends l{constructor(e,t){super(e,t)}get name(){return"MongoNetworkTimeoutError"}};class c extends s{constructor(e){super(e)}get name(){return"MongoParseError"}}t.MongoParseError=c,t.MongoInvalidArgumentError=class extends o{constructor(e){super(e)}get name(){return"MongoInvalidArgumentError"}},t.MongoCompatibilityError=class extends o{constructor(e){super(e)}get name(){return"MongoCompatibilityError"}},t.MongoMissingCredentialsError=class extends o{constructor(e){super(e)}get name(){return"MongoMissingCredentialsError"}},t.MongoMissingDependencyError=class extends o{constructor(e){super(e)}get name(){return"MongoMissingDependencyError"}};class p extends r{constructor(e,t){var n;t&&t.error?super(t.error.message||t.error):super(e),t&&(this.reason=t),this.code=null===(n=t.error)||void 0===n?void 0:n.code}get name(){return"MongoSystemError"}}t.MongoSystemError=p,t.MongoServerSelectionError=class extends p{constructor(e,t){super(e,t)}get name(){return"MongoServerSelectionError"}};class h extends i{constructor(e,t){t&&Array.isArray(t.errorLabels)&&(e.errorLabels=t.errorLabels),super(e),this.errInfo=e.errInfo,null!=t&&(this.result=function(e){const t=Object.assign({},e);return 0===t.ok&&(t.ok=1,delete t.errmsg,delete t.code,delete t.codeName),t}(t))}get name(){return"MongoWriteConcernError"}}t.MongoWriteConcernError=h;const d=new Set([t.MONGODB_ERROR_CODES.HostUnreachable,t.MONGODB_ERROR_CODES.HostNotFound,t.MONGODB_ERROR_CODES.NetworkTimeout,t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.SocketException,t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),f=new Set([...d,t.MONGODB_ERROR_CODES.ExceededTimeLimit]);t.needsRetryableWriteLabel=function(e,n){var i,s,o;return e instanceof l||!(e instanceof r&&(n>=9||e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError))&&!e.hasErrorLabel(t.MongoErrorLabel.HandshakeError))&&(e instanceof h?f.has(null!==(o=null!==(s=null===(i=e.result)||void 0===i?void 0:i.code)&&void 0!==s?s:e.code)&&void 0!==o?o:0):e instanceof r&&"number"==typeof e.code?f.has(e.code):!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message))},t.isRetryableWriteError=function(e){return e.hasErrorLabel(t.MongoErrorLabel.RetryableWriteError)},t.isRetryableReadError=function(e){return!("number"!=typeof e.code||!d.has(e.code))||e instanceof l||!!t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(e.message)||!!t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)};const m=new Set([t.MONGODB_ERROR_CODES.ShutdownInProgress,t.MONGODB_ERROR_CODES.PrimarySteppedDown,t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.InterruptedDueToReplStateChange,t.MONGODB_ERROR_CODES.NotPrimaryOrSecondary]),g=new Set([t.MONGODB_ERROR_CODES.NotWritablePrimary,t.MONGODB_ERROR_CODES.NotPrimaryNoSecondaryOk,t.MONGODB_ERROR_CODES.LegacyNotPrimary]),E=new Set([t.MONGODB_ERROR_CODES.InterruptedAtShutdown,t.MONGODB_ERROR_CODES.ShutdownInProgress]);function y(e){return"number"==typeof e.code?m.has(e.code):t.LEGACY_NOT_PRIMARY_OR_SECONDARY_ERROR_MESSAGE.test(e.message)||t.NODE_IS_RECOVERING_ERROR_MESSAGE.test(e.message)}t.isNodeShuttingDownError=function(e){return!("number"!=typeof e.code||!E.has(e.code))},t.isSDAMUnrecoverableError=function(e){return e instanceof c||null==e||y(e)||("number"==typeof(n=e).code?g.has(n.code):!y(n)&&t.LEGACY_NOT_WRITABLE_PRIMARY_ERROR_MESSAGE.test(n.message));var n},t.isNetworkTimeoutError=function(e){return!!(e instanceof l&&e.message.match(/timed out/))},t.isResumableError=function(e,n){return null!=e&&e instanceof r&&(e instanceof l||(null!=n&&n>=9?e.code===t.MONGODB_ERROR_CODES.CursorNotFound||e.hasErrorLabel(t.MongoErrorLabel.ResumableChangeStreamError):"number"==typeof e.code&&t.GET_MORE_RESUMABLE_CODES.has(e.code)))}},223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Explain=t.ExplainVerbosity=void 0;const r=n(4947);t.ExplainVerbosity=Object.freeze({queryPlanner:"queryPlanner",queryPlannerExtended:"queryPlannerExtended",executionStats:"executionStats",allPlansExecution:"allPlansExecution"});class i{constructor(e){this.verbosity="boolean"==typeof e?e?t.ExplainVerbosity.allPlansExecution:t.ExplainVerbosity.queryPlanner:e}static fromOptions(e){if(null==(null==e?void 0:e.explain))return;const t=e.explain;if("boolean"==typeof t||"string"==typeof t)return new i(t);throw new r.MongoInvalidArgumentError('Field "explain" must be a string or a boolean')}}t.Explain=i},3890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketReadStream=void 0;const r=n(6162),i=n(4947);class s extends r.Readable{constructor(e,t,n,r,i){super(),this.s={bytesToTrim:0,bytesToSkip:0,bytesRead:0,chunks:e,expected:0,files:t,filter:r,init:!1,expectedEnd:0,options:{start:0,end:0,...i},readPreference:n}}_read(){this.destroyed||function(e,t){if(e.s.file)return t();e.s.init||(function(e){const t={};e.s.readPreference&&(t.readPreference=e.s.readPreference),e.s.options&&e.s.options.sort&&(t.sort=e.s.options.sort),e.s.options&&e.s.options.skip&&(t.skip=e.s.options.skip),e.s.files.findOne(e.s.filter,t,((t,n)=>{if(t)return e.emit(s.ERROR,t);if(!n){const t=`FileNotFound: file ${e.s.filter._id?e.s.filter._id.toString():e.s.filter.filename} was not found`,n=new i.MongoRuntimeError(t);return n.code="ENOENT",e.emit(s.ERROR,n)}if(n.length<=0)return void e.push(null);if(e.destroyed)return void e.emit(s.CLOSE);try{e.s.bytesToSkip=function(e,t,n){if(n&&null!=n.start){if(n.start>t.length)throw new i.MongoInvalidArgumentError(`Stream start (${n.start}) must not be more than the length of the file (${t.length})`);if(n.start<0)throw new i.MongoInvalidArgumentError(`Stream start (${n.start}) must not be negative`);if(null!=n.end&&n.end<n.start)throw new i.MongoInvalidArgumentError(`Stream start (${n.start}) must not be greater than stream end (${n.end})`);return e.s.bytesRead=Math.floor(n.start/t.chunkSize)*t.chunkSize,e.s.expected=Math.floor(n.start/t.chunkSize),n.start-e.s.bytesRead}throw new i.MongoInvalidArgumentError("Start option must be defined")}(e,n,e.s.options)}catch(t){return e.emit(s.ERROR,t)}const r={files_id:n._id};if(e.s.options&&null!=e.s.options.start){const t=Math.floor(e.s.options.start/n.chunkSize);t>0&&(r.n={$gte:t})}e.s.cursor=e.s.chunks.find(r).sort({n:1}),e.s.readPreference&&e.s.cursor.withReadPreference(e.s.readPreference),e.s.expectedEnd=Math.ceil(n.length/n.chunkSize),e.s.file=n;try{e.s.bytesToTrim=function(e,t,n,r){if(r&&null!=r.end){if(r.end>t.length)throw new i.MongoInvalidArgumentError(`Stream end (${r.end}) must not be more than the length of the file (${t.length})`);if(null==r.start||r.start<0)throw new i.MongoInvalidArgumentError(`Stream end (${r.end}) must not be negative`);const s=null!=r.start?Math.floor(r.start/t.chunkSize):0;return n.limit(Math.ceil(r.end/t.chunkSize)-s),e.s.expectedEnd=Math.ceil(r.end/t.chunkSize),Math.ceil(r.end/t.chunkSize)*t.chunkSize-r.end}throw new i.MongoInvalidArgumentError("End option must be defined")}(e,n,e.s.cursor,e.s.options)}catch(t){return e.emit(s.ERROR,t)}e.emit(s.FILE,n)}))}(e),e.s.init=!0),e.once("file",(()=>{t()}))}(this,(()=>{var e;(e=this).destroyed||e.s.cursor&&e.s.file&&e.s.cursor.next(((t,n)=>{if(e.destroyed)return;if(t)return void e.emit(s.ERROR,t);if(!n)return e.push(null),void process.nextTick((()=>{e.s.cursor&&e.s.cursor.close((t=>{t?e.emit(s.ERROR,t):e.emit(s.CLOSE)}))}));if(!e.s.file)return;const r=e.s.file.length-e.s.bytesRead,o=e.s.expected++,a=Math.min(e.s.file.chunkSize,r);if(n.n>o)return e.emit(s.ERROR,new i.MongoGridFSChunkError(`ChunkIsMissing: Got unexpected n: ${n.n}, expected: ${o}`));if(n.n<o)return e.emit(s.ERROR,new i.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${n.n}, expected: ${o}`));let u=Buffer.isBuffer(n.data)?n.data:n.data.buffer;if(u.byteLength!==a)return r<=0?e.emit(s.ERROR,new i.MongoGridFSChunkError(`ExtraChunk: Got unexpected n: ${n.n}, expected file length ${e.s.file.length} bytes but already read ${e.s.bytesRead} bytes`)):e.emit(s.ERROR,new i.MongoGridFSChunkError(`ChunkIsWrongSize: Got unexpected length: ${u.byteLength}, expected: ${a}`));if(e.s.bytesRead+=u.byteLength,0===u.byteLength)return e.push(null);let l=null,c=null;null!=e.s.bytesToSkip&&(l=e.s.bytesToSkip,e.s.bytesToSkip=0);const p=o===e.s.expectedEnd-1,h=e.s.options.end-e.s.bytesToSkip;p&&null!=e.s.bytesToTrim?c=e.s.file.chunkSize-e.s.bytesToTrim:e.s.options.end&&h<n.data.byteLength&&(c=h),null==l&&null==c||(u=u.slice(l||0,c||u.byteLength)),e.push(u)}))}))}start(e=0){return o(this),this.s.options.start=e,this}end(e=0){return o(this),this.s.options.end=e,this}abort(e){this.push(null),this.destroyed=!0,this.s.cursor?this.s.cursor.close((t=>{this.emit(s.CLOSE),e&&e(t)})):(this.s.init||this.emit(s.CLOSE),e&&e())}}function o(e){if(e.s.init)throw new i.MongoGridFSStreamError("Options cannot be changed after the stream is initialized")}t.GridFSBucketReadStream=s,s.ERROR="error",s.FILE="file",s.DATA="data",s.END="end",s.CLOSE="close"},2227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucket=void 0;const r=n(4947),i=n(334),s=n(2229),o=n(4620),a=n(3890),u=n(7632),l={bucketName:"fs",chunkSizeBytes:261120};class c extends i.TypedEventEmitter{constructor(e,t){super(),this.setMaxListeners(0);const n={...l,...t,writeConcern:o.WriteConcern.fromOptions(t)};this.s={db:e,options:n,_chunksCollection:e.collection(n.bucketName+".chunks"),_filesCollection:e.collection(n.bucketName+".files"),checkedIndexes:!1,calledOpenUploadStream:!1}}openUploadStream(e,t){return new u.GridFSBucketWriteStream(this,e,t)}openUploadStreamWithId(e,t,n){return new u.GridFSBucketWriteStream(this,t,{...n,id:e})}openDownloadStream(e,t){return new a.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{_id:e},t)}delete(e,t){return(0,s.maybePromise)(t,(t=>this.s._filesCollection.deleteOne({_id:e},((n,i)=>n?t(n):this.s._chunksCollection.deleteMany({files_id:e},(n=>n?t(n):(null==i?void 0:i.deletedCount)?t():t(new r.MongoRuntimeError(`File not found for id ${e}`))))))))}find(e,t){return null!=e||(e={}),t=null!=t?t:{},this.s._filesCollection.find(e,t)}openDownloadStreamByName(e,t){let n,r={uploadDate:-1};return t&&null!=t.revision&&(t.revision>=0?(r={uploadDate:1},n=t.revision):n=-t.revision-1),new a.GridFSBucketReadStream(this.s._chunksCollection,this.s._filesCollection,this.s.options.readPreference,{filename:e},{...t,sort:r,skip:n})}rename(e,t,n){return(0,s.maybePromise)(n,(n=>{const i={_id:e},s={$set:{filename:t}};return this.s._filesCollection.updateOne(i,s,((t,i)=>t?n(t):(null==i?void 0:i.matchedCount)?n():n(new r.MongoRuntimeError(`File with id ${e} not found`))))}))}drop(e){return(0,s.maybePromise)(e,(e=>this.s._filesCollection.drop((t=>t?e(t):this.s._chunksCollection.drop((t=>t?e(t):e()))))))}getLogger(){return this.s.db.s.logger}}t.GridFSBucket=c,c.INDEX="index"},7632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GridFSBucketWriteStream=void 0;const r=n(6162),i=n(9064),s=n(4947),o=n(2229),a=n(4620);class u extends r.Writable{constructor(e,t,n){var r,o;super(),n=null!=n?n:{},this.bucket=e,this.chunks=e.s._chunksCollection,this.filename=t,this.files=e.s._filesCollection,this.options=n,this.writeConcern=a.WriteConcern.fromOptions(n)||e.s.options.writeConcern,this.done=!1,this.id=n.id?n.id:new i.ObjectId,this.chunkSizeBytes=n.chunkSizeBytes||this.bucket.s.options.chunkSizeBytes,this.bufToStore=Buffer.alloc(this.chunkSizeBytes),this.length=0,this.n=0,this.pos=0,this.state={streamEnd:!1,outstandingRequests:0,errored:!1,aborted:!1},this.bucket.s.calledOpenUploadStream||(this.bucket.s.calledOpenUploadStream=!0,o=()=>{this.bucket.s.checkedIndexes=!0,this.bucket.emit("index")},(r=this).files.findOne({},{projection:{_id:1}},((e,t)=>e||t?o():void r.files.listIndexes().toArray(((e,t)=>{let n;if(e)return e instanceof s.MongoError&&e.code===s.MONGODB_ERROR_CODES.NamespaceNotFound?(n={filename:1,uploadDate:1},void r.files.createIndex(n,{background:!1},(e=>{if(e)return o();p(r,o)}))):o();let i=!1;if(t&&t.forEach((e=>{2===Object.keys(e.key).length&&1===e.key.filename&&1===e.key.uploadDate&&(i=!0)})),i)p(r,o);else{n={filename:1,uploadDate:1};const e=d(r);r.files.createIndex(n,{...e,background:!1},(e=>{if(e)return o();p(r,o)}))}})))))}write(e,t,n){const r="function"==typeof t?void 0:t;return n="function"==typeof t?t:n,f(this,(()=>function(e,t,n,r){if(g(e,r))return!1;const i=Buffer.isBuffer(t)?t:Buffer.from(t,n);if(e.length+=i.length,e.pos+i.length<e.chunkSizeBytes)return i.copy(e.bufToStore,e.pos),e.pos+=i.length,r&&r(),!0;let s=i.length,o=e.chunkSizeBytes-e.pos,a=Math.min(o,i.length),u=0;for(;s>0;){const t=i.length-s;let n;if(i.copy(e.bufToStore,e.pos,t,t+a),e.pos+=a,o-=a,0===o){if(n=c(e.id,e.n,Buffer.from(e.bufToStore)),++e.state.outstandingRequests,++u,g(e,r))return!1;e.chunks.insertOne(n,d(e),(t=>{if(t)return l(e,t);--e.state.outstandingRequests,--u,u||(e.emit("drain",n),r&&r(),h(e))})),o=e.chunkSizeBytes,e.pos=0,++e.n}s-=a,a=Math.min(o,s)}return!1}(this,e,r,n)))}abort(e){return(0,o.maybePromise)(e,(e=>this.state.streamEnd?e(new s.MongoAPIError("Cannot abort a stream that has already completed")):this.state.aborted?e(new s.MongoAPIError("Cannot call abort() on a stream twice")):(this.state.aborted=!0,void this.chunks.deleteMany({files_id:this.id},(t=>e(t))))))}end(e,t,n){const r="function"==typeof e?void 0:e,i="function"==typeof t?void 0:t;return n="function"==typeof e?e:"function"==typeof t?t:n,this.state.streamEnd||g(this,n)?this:(this.state.streamEnd=!0,n&&this.once(u.FINISH,(e=>{n&&n(void 0,e)})),r?(this.write(r,i,(()=>{m(this)})),this):(f(this,(()=>!!m(this))),this))}}function l(e,t,n){if(!e.state.errored){if(e.state.errored=!0,n)return n(t);e.emit(u.ERROR,t)}}function c(e,t,n){return{_id:new i.ObjectId,files_id:e,n:t,data:n}}function p(e,t){e.chunks.listIndexes().toArray(((n,r)=>{let i;if(n)return n instanceof s.MongoError&&n.code===s.MONGODB_ERROR_CODES.NamespaceNotFound?(i={files_id:1,n:1},void e.chunks.createIndex(i,{background:!1,unique:!0},(e=>{if(e)return t(e);t()}))):t(n);let o=!1;if(r&&r.forEach((e=>{e.key&&2===Object.keys(e.key).length&&1===e.key.files_id&&1===e.key.n&&(o=!0)})),o)t();else{i={files_id:1,n:1};const n=d(e);e.chunks.createIndex(i,{...n,background:!0,unique:!0},t)}}))}function h(e,t){if(e.done)return!0;if(e.state.streamEnd&&0===e.state.outstandingRequests&&!e.state.errored){e.done=!0;const n=function(e,t,n,r,i,s,o){const a={_id:e,length:t,chunkSize:n,uploadDate:new Date,filename:r};return i&&(a.contentType=i),s&&(a.aliases=s),o&&(a.metadata=o),a}(e.id,e.length,e.chunkSizeBytes,e.filename,e.options.contentType,e.options.aliases,e.options.metadata);return!g(e,t)&&(e.files.insertOne(n,d(e),(r=>{if(r)return l(e,r,t);e.emit(u.FINISH,n),e.emit(u.CLOSE)})),!0)}return!1}function d(e){const t={};return e.writeConcern&&(t.writeConcern={w:e.writeConcern.w,wtimeout:e.writeConcern.wtimeout,j:e.writeConcern.j}),t}function f(e,t){return e.bucket.s.checkedIndexes?t(!1):(e.bucket.once("index",(()=>{t(!0)})),!0)}function m(e,t){if(0===e.pos)return h(e,t);++e.state.outstandingRequests;const n=Buffer.alloc(e.pos);e.bufToStore.copy(n,0,0,e.pos);const r=c(e.id,e.n,n);return!g(e,t)&&(e.chunks.insertOne(r,d(e),(t=>{if(t)return l(e,t);--e.state.outstandingRequests,h(e)})),!0)}function g(e,t){return!!e.state.aborted&&("function"==typeof t&&t(new s.MongoAPIError("Stream has been aborted")),!0)}t.GridFSBucketWriteStream=u,u.CLOSE="close",u.ERROR="error",u.FINISH="finish"},8761:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregationCursor=t.Admin=t.AbstractCursor=t.MongoWriteConcernError=t.MongoUnexpectedServerResponseError=t.MongoTransactionError=t.MongoTopologyClosedError=t.MongoTailableCursorError=t.MongoSystemError=t.MongoServerSelectionError=t.MongoServerError=t.MongoServerClosedError=t.MongoRuntimeError=t.MongoParseError=t.MongoNotConnectedError=t.MongoNetworkTimeoutError=t.MongoNetworkError=t.MongoMissingDependencyError=t.MongoMissingCredentialsError=t.MongoKerberosError=t.MongoInvalidArgumentError=t.MongoGridFSStreamError=t.MongoGridFSChunkError=t.MongoExpiredSessionError=t.MongoError=t.MongoDriverError=t.MongoDecompressionError=t.MongoCursorInUseError=t.MongoCursorExhaustedError=t.MongoCompatibilityError=t.MongoChangeStreamError=t.MongoBatchReExecutionError=t.MongoAWSError=t.MongoAPIError=t.MongoBulkWriteError=t.ObjectID=t.Timestamp=t.ObjectId=t.MinKey=t.MaxKey=t.Map=t.Long=t.Int32=t.Double=t.Decimal128=t.DBRef=t.Code=t.BSONSymbol=t.BSONRegExp=t.Binary=void 0,t.ServerOpeningEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.ServerHeartbeatFailedEvent=t.ServerDescriptionChangedEvent=t.ServerClosedEvent=t.ConnectionReadyEvent=t.ConnectionPoolMonitoringEvent=t.ConnectionPoolCreatedEvent=t.ConnectionPoolClosedEvent=t.ConnectionPoolClearedEvent=t.ConnectionCreatedEvent=t.ConnectionClosedEvent=t.ConnectionCheckOutStartedEvent=t.ConnectionCheckOutFailedEvent=t.ConnectionCheckedOutEvent=t.ConnectionCheckedInEvent=t.CommandSucceededEvent=t.CommandStartedEvent=t.CommandFailedEvent=t.WriteConcern=t.ReadPreference=t.ReadConcern=t.TopologyType=t.ServerType=t.ReadPreferenceMode=t.ReadConcernLevel=t.ProfilingLevel=t.ReturnDocument=t.BSONType=t.ServerApiVersion=t.LoggerLevel=t.ExplainVerbosity=t.MongoErrorLabel=t.AutoEncryptionLoggerLevel=t.CURSOR_FLAGS=t.Compressor=t.AuthMechanism=t.GSSAPICanonicalizationValue=t.BatchType=t.Promise=t.MongoClient=t.Logger=t.ListIndexesCursor=t.ListCollectionsCursor=t.GridFSBucket=t.FindCursor=t.Db=t.Collection=t.CancellationToken=void 0,t.SrvPollingEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.TopologyClosedEvent=void 0;const r=n(5716);Object.defineProperty(t,"Admin",{enumerable:!0,get:function(){return r.Admin}});const i=n(9064),s=n(8971);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return s.Collection}});const o=n(6829);Object.defineProperty(t,"AbstractCursor",{enumerable:!0,get:function(){return o.AbstractCursor}});const a=n(3490);Object.defineProperty(t,"AggregationCursor",{enumerable:!0,get:function(){return a.AggregationCursor}});const u=n(6331);Object.defineProperty(t,"FindCursor",{enumerable:!0,get:function(){return u.FindCursor}});const l=n(2644);Object.defineProperty(t,"Db",{enumerable:!0,get:function(){return l.Db}});const c=n(2227);Object.defineProperty(t,"GridFSBucket",{enumerable:!0,get:function(){return c.GridFSBucket}});const p=n(6326);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return p.Logger}});const h=n(2319);Object.defineProperty(t,"MongoClient",{enumerable:!0,get:function(){return h.MongoClient}});const d=n(334);Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return d.CancellationToken}});const f=n(2139);Object.defineProperty(t,"ListIndexesCursor",{enumerable:!0,get:function(){return f.ListIndexesCursor}});const m=n(2320);Object.defineProperty(t,"ListCollectionsCursor",{enumerable:!0,get:function(){return m.ListCollectionsCursor}});const g=n(4782);Object.defineProperty(t,"Promise",{enumerable:!0,get:function(){return g.PromiseProvider}});var E=n(9064);Object.defineProperty(t,"Binary",{enumerable:!0,get:function(){return E.Binary}}),Object.defineProperty(t,"BSONRegExp",{enumerable:!0,get:function(){return E.BSONRegExp}}),Object.defineProperty(t,"BSONSymbol",{enumerable:!0,get:function(){return E.BSONSymbol}}),Object.defineProperty(t,"Code",{enumerable:!0,get:function(){return E.Code}}),Object.defineProperty(t,"DBRef",{enumerable:!0,get:function(){return E.DBRef}}),Object.defineProperty(t,"Decimal128",{enumerable:!0,get:function(){return E.Decimal128}}),Object.defineProperty(t,"Double",{enumerable:!0,get:function(){return E.Double}}),Object.defineProperty(t,"Int32",{enumerable:!0,get:function(){return E.Int32}}),Object.defineProperty(t,"Long",{enumerable:!0,get:function(){return E.Long}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return E.Map}}),Object.defineProperty(t,"MaxKey",{enumerable:!0,get:function(){return E.MaxKey}}),Object.defineProperty(t,"MinKey",{enumerable:!0,get:function(){return E.MinKey}}),Object.defineProperty(t,"ObjectId",{enumerable:!0,get:function(){return E.ObjectId}}),Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return E.Timestamp}}),t.ObjectID=i.ObjectId;var y=n(363);Object.defineProperty(t,"MongoBulkWriteError",{enumerable:!0,get:function(){return y.MongoBulkWriteError}});var v=n(4947);Object.defineProperty(t,"MongoAPIError",{enumerable:!0,get:function(){return v.MongoAPIError}}),Object.defineProperty(t,"MongoAWSError",{enumerable:!0,get:function(){return v.MongoAWSError}}),Object.defineProperty(t,"MongoBatchReExecutionError",{enumerable:!0,get:function(){return v.MongoBatchReExecutionError}}),Object.defineProperty(t,"MongoChangeStreamError",{enumerable:!0,get:function(){return v.MongoChangeStreamError}}),Object.defineProperty(t,"MongoCompatibilityError",{enumerable:!0,get:function(){return v.MongoCompatibilityError}}),Object.defineProperty(t,"MongoCursorExhaustedError",{enumerable:!0,get:function(){return v.MongoCursorExhaustedError}}),Object.defineProperty(t,"MongoCursorInUseError",{enumerable:!0,get:function(){return v.MongoCursorInUseError}}),Object.defineProperty(t,"MongoDecompressionError",{enumerable:!0,get:function(){return v.MongoDecompressionError}}),Object.defineProperty(t,"MongoDriverError",{enumerable:!0,get:function(){return v.MongoDriverError}}),Object.defineProperty(t,"MongoError",{enumerable:!0,get:function(){return v.MongoError}}),Object.defineProperty(t,"MongoExpiredSessionError",{enumerable:!0,get:function(){return v.MongoExpiredSessionError}}),Object.defineProperty(t,"MongoGridFSChunkError",{enumerable:!0,get:function(){return v.MongoGridFSChunkError}}),Object.defineProperty(t,"MongoGridFSStreamError",{enumerable:!0,get:function(){return v.MongoGridFSStreamError}}),Object.defineProperty(t,"MongoInvalidArgumentError",{enumerable:!0,get:function(){return v.MongoInvalidArgumentError}}),Object.defineProperty(t,"MongoKerberosError",{enumerable:!0,get:function(){return v.MongoKerberosError}}),Object.defineProperty(t,"MongoMissingCredentialsError",{enumerable:!0,get:function(){return v.MongoMissingCredentialsError}}),Object.defineProperty(t,"MongoMissingDependencyError",{enumerable:!0,get:function(){return v.MongoMissingDependencyError}}),Object.defineProperty(t,"MongoNetworkError",{enumerable:!0,get:function(){return v.MongoNetworkError}}),Object.defineProperty(t,"MongoNetworkTimeoutError",{enumerable:!0,get:function(){return v.MongoNetworkTimeoutError}}),Object.defineProperty(t,"MongoNotConnectedError",{enumerable:!0,get:function(){return v.MongoNotConnectedError}}),Object.defineProperty(t,"MongoParseError",{enumerable:!0,get:function(){return v.MongoParseError}}),Object.defineProperty(t,"MongoRuntimeError",{enumerable:!0,get:function(){return v.MongoRuntimeError}}),Object.defineProperty(t,"MongoServerClosedError",{enumerable:!0,get:function(){return v.MongoServerClosedError}}),Object.defineProperty(t,"MongoServerError",{enumerable:!0,get:function(){return v.MongoServerError}}),Object.defineProperty(t,"MongoServerSelectionError",{enumerable:!0,get:function(){return v.MongoServerSelectionError}}),Object.defineProperty(t,"MongoSystemError",{enumerable:!0,get:function(){return v.MongoSystemError}}),Object.defineProperty(t,"MongoTailableCursorError",{enumerable:!0,get:function(){return v.MongoTailableCursorError}}),Object.defineProperty(t,"MongoTopologyClosedError",{enumerable:!0,get:function(){return v.MongoTopologyClosedError}}),Object.defineProperty(t,"MongoTransactionError",{enumerable:!0,get:function(){return v.MongoTransactionError}}),Object.defineProperty(t,"MongoUnexpectedServerResponseError",{enumerable:!0,get:function(){return v.MongoUnexpectedServerResponseError}}),Object.defineProperty(t,"MongoWriteConcernError",{enumerable:!0,get:function(){return v.MongoWriteConcernError}});var A=n(363);Object.defineProperty(t,"BatchType",{enumerable:!0,get:function(){return A.BatchType}});var C=n(2403);Object.defineProperty(t,"GSSAPICanonicalizationValue",{enumerable:!0,get:function(){return C.GSSAPICanonicalizationValue}});var b=n(4511);Object.defineProperty(t,"AuthMechanism",{enumerable:!0,get:function(){return b.AuthMechanism}});var S=n(942);Object.defineProperty(t,"Compressor",{enumerable:!0,get:function(){return S.Compressor}});var x=n(6829);Object.defineProperty(t,"CURSOR_FLAGS",{enumerable:!0,get:function(){return x.CURSOR_FLAGS}});var w=n(8808);Object.defineProperty(t,"AutoEncryptionLoggerLevel",{enumerable:!0,get:function(){return w.AutoEncryptionLoggerLevel}});var D=n(4947);Object.defineProperty(t,"MongoErrorLabel",{enumerable:!0,get:function(){return D.MongoErrorLabel}});var _=n(223);Object.defineProperty(t,"ExplainVerbosity",{enumerable:!0,get:function(){return _.ExplainVerbosity}});var O=n(6326);Object.defineProperty(t,"LoggerLevel",{enumerable:!0,get:function(){return O.LoggerLevel}});var F=n(2319);Object.defineProperty(t,"ServerApiVersion",{enumerable:!0,get:function(){return F.ServerApiVersion}});var T=n(334);Object.defineProperty(t,"BSONType",{enumerable:!0,get:function(){return T.BSONType}});var B=n(8448);Object.defineProperty(t,"ReturnDocument",{enumerable:!0,get:function(){return B.ReturnDocument}});var k=n(4671);Object.defineProperty(t,"ProfilingLevel",{enumerable:!0,get:function(){return k.ProfilingLevel}});var R=n(3389);Object.defineProperty(t,"ReadConcernLevel",{enumerable:!0,get:function(){return R.ReadConcernLevel}});var I=n(1228);Object.defineProperty(t,"ReadPreferenceMode",{enumerable:!0,get:function(){return I.ReadPreferenceMode}});var N=n(5896);Object.defineProperty(t,"ServerType",{enumerable:!0,get:function(){return N.ServerType}}),Object.defineProperty(t,"TopologyType",{enumerable:!0,get:function(){return N.TopologyType}});var P=n(3389);Object.defineProperty(t,"ReadConcern",{enumerable:!0,get:function(){return P.ReadConcern}});var M=n(1228);Object.defineProperty(t,"ReadPreference",{enumerable:!0,get:function(){return M.ReadPreference}});var L=n(4620);Object.defineProperty(t,"WriteConcern",{enumerable:!0,get:function(){return L.WriteConcern}});var j=n(2457);Object.defineProperty(t,"CommandFailedEvent",{enumerable:!0,get:function(){return j.CommandFailedEvent}}),Object.defineProperty(t,"CommandStartedEvent",{enumerable:!0,get:function(){return j.CommandStartedEvent}}),Object.defineProperty(t,"CommandSucceededEvent",{enumerable:!0,get:function(){return j.CommandSucceededEvent}});var V=n(1654);Object.defineProperty(t,"ConnectionCheckedInEvent",{enumerable:!0,get:function(){return V.ConnectionCheckedInEvent}}),Object.defineProperty(t,"ConnectionCheckedOutEvent",{enumerable:!0,get:function(){return V.ConnectionCheckedOutEvent}}),Object.defineProperty(t,"ConnectionCheckOutFailedEvent",{enumerable:!0,get:function(){return V.ConnectionCheckOutFailedEvent}}),Object.defineProperty(t,"ConnectionCheckOutStartedEvent",{enumerable:!0,get:function(){return V.ConnectionCheckOutStartedEvent}}),Object.defineProperty(t,"ConnectionClosedEvent",{enumerable:!0,get:function(){return V.ConnectionClosedEvent}}),Object.defineProperty(t,"ConnectionCreatedEvent",{enumerable:!0,get:function(){return V.ConnectionCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolClearedEvent",{enumerable:!0,get:function(){return V.ConnectionPoolClearedEvent}}),Object.defineProperty(t,"ConnectionPoolClosedEvent",{enumerable:!0,get:function(){return V.ConnectionPoolClosedEvent}}),Object.defineProperty(t,"ConnectionPoolCreatedEvent",{enumerable:!0,get:function(){return V.ConnectionPoolCreatedEvent}}),Object.defineProperty(t,"ConnectionPoolMonitoringEvent",{enumerable:!0,get:function(){return V.ConnectionPoolMonitoringEvent}}),Object.defineProperty(t,"ConnectionReadyEvent",{enumerable:!0,get:function(){return V.ConnectionReadyEvent}});var U=n(8214);Object.defineProperty(t,"ServerClosedEvent",{enumerable:!0,get:function(){return U.ServerClosedEvent}}),Object.defineProperty(t,"ServerDescriptionChangedEvent",{enumerable:!0,get:function(){return U.ServerDescriptionChangedEvent}}),Object.defineProperty(t,"ServerHeartbeatFailedEvent",{enumerable:!0,get:function(){return U.ServerHeartbeatFailedEvent}}),Object.defineProperty(t,"ServerHeartbeatStartedEvent",{enumerable:!0,get:function(){return U.ServerHeartbeatStartedEvent}}),Object.defineProperty(t,"ServerHeartbeatSucceededEvent",{enumerable:!0,get:function(){return U.ServerHeartbeatSucceededEvent}}),Object.defineProperty(t,"ServerOpeningEvent",{enumerable:!0,get:function(){return U.ServerOpeningEvent}}),Object.defineProperty(t,"TopologyClosedEvent",{enumerable:!0,get:function(){return U.TopologyClosedEvent}}),Object.defineProperty(t,"TopologyDescriptionChangedEvent",{enumerable:!0,get:function(){return U.TopologyDescriptionChangedEvent}}),Object.defineProperty(t,"TopologyOpeningEvent",{enumerable:!0,get:function(){return U.TopologyOpeningEvent}});var z=n(8709);Object.defineProperty(t,"SrvPollingEvent",{enumerable:!0,get:function(){return z.SrvPollingEvent}})},6326:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.LoggerLevel=void 0;const r=n(1764),i=n(4947),s=n(2229),o={};let a,u={};const l=process.pid;let c=console.warn;t.LoggerLevel=Object.freeze({ERROR:"error",WARN:"warn",INFO:"info",DEBUG:"debug",error:"error",warn:"warn",info:"info",debug:"debug"});class p{constructor(e,n){n=null!=n?n:{},this.className=e,n.logger instanceof p||"function"!=typeof n.logger||(c=n.logger),n.loggerLevel&&(a=n.loggerLevel||t.LoggerLevel.ERROR),null==u[this.className]&&(o[this.className]=!0)}debug(e,n){if(this.isDebug()&&(Object.keys(u).length>0&&u[this.className]||0===Object.keys(u).length&&o[this.className])){const i=(new Date).getTime(),s=(0,r.format)("[%s-%s:%s] %s %s","DEBUG",this.className,l,i,e),o={type:t.LoggerLevel.DEBUG,message:e,className:this.className,pid:l,date:i};n&&(o.meta=n),c(s,o)}}warn(e,n){if(this.isWarn()&&(Object.keys(u).length>0&&u[this.className]||0===Object.keys(u).length&&o[this.className])){const i=(new Date).getTime(),s=(0,r.format)("[%s-%s:%s] %s %s","WARN",this.className,l,i,e),o={type:t.LoggerLevel.WARN,message:e,className:this.className,pid:l,date:i};n&&(o.meta=n),c(s,o)}}info(e,n){if(this.isInfo()&&(Object.keys(u).length>0&&u[this.className]||0===Object.keys(u).length&&o[this.className])){const i=(new Date).getTime(),s=(0,r.format)("[%s-%s:%s] %s %s","INFO",this.className,l,i,e),o={type:t.LoggerLevel.INFO,message:e,className:this.className,pid:l,date:i};n&&(o.meta=n),c(s,o)}}error(e,n){if(this.isError()&&(Object.keys(u).length>0&&u[this.className]||0===Object.keys(u).length&&o[this.className])){const i=(new Date).getTime(),s=(0,r.format)("[%s-%s:%s] %s %s","ERROR",this.className,l,i,e),o={type:t.LoggerLevel.ERROR,message:e,className:this.className,pid:l,date:i};n&&(o.meta=n),c(s,o)}}isInfo(){return a===t.LoggerLevel.INFO||a===t.LoggerLevel.DEBUG}isError(){return a===t.LoggerLevel.ERROR||a===t.LoggerLevel.INFO||a===t.LoggerLevel.DEBUG}isWarn(){return a===t.LoggerLevel.ERROR||a===t.LoggerLevel.WARN||a===t.LoggerLevel.INFO||a===t.LoggerLevel.DEBUG}isDebug(){return a===t.LoggerLevel.DEBUG}static reset(){a=t.LoggerLevel.ERROR,u={}}static currentLogger(){return c}static setCurrentLogger(e){if("function"!=typeof e)throw new i.MongoInvalidArgumentError("Current logger must be a function");c=e}static filter(e,t){"class"===e&&Array.isArray(t)&&(u={},t.forEach((e=>u[e]=!0)))}static setLevel(e){if(e!==t.LoggerLevel.INFO&&e!==t.LoggerLevel.ERROR&&e!==t.LoggerLevel.DEBUG&&e!==t.LoggerLevel.WARN)throw new i.MongoInvalidArgumentError(`Argument "newLevel" should be one of ${(0,s.enumToString)(t.LoggerLevel)}`);a=e}}t.Logger=p},2319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MongoClient=t.ServerApiVersion=void 0;const r=n(9064),i=n(4747),s=n(2395),o=n(2644),a=n(4947),u=n(334),l=n(7991),c=n(4782),p=n(2229);t.ServerApiVersion=Object.freeze({v1:"1"});const h=Symbol("options");class d extends u.TypedEventEmitter{constructor(e,t){super(),this[h]=(0,s.parseOptions)(e,this,t);const n=this;this.s={url:e,sessions:new Set,bsonOptions:(0,r.resolveBSONOptions)(this[h]),namespace:(0,p.ns)("admin"),get options(){return n[h]},get readConcern(){return n[h].readConcern},get writeConcern(){return n[h].writeConcern},get readPreference(){return n[h].readPreference},get logger(){return n[h].logger}}}get options(){return Object.freeze({...this[h]})}get serverApi(){return this[h].serverApi&&Object.freeze({...this[h].serverApi})}get monitorCommands(){return this[h].monitorCommands}set monitorCommands(e){this[h].monitorCommands=e}get autoEncrypter(){return this[h].autoEncrypter}get readConcern(){return this.s.readConcern}get writeConcern(){return this.s.writeConcern}get readPreference(){return this.s.readPreference}get bsonOptions(){return this.s.bsonOptions}get logger(){return this.s.logger}connect(e){if(e&&"function"!=typeof e)throw new a.MongoInvalidArgumentError("Method `connect` only accepts a callback");return(0,p.maybePromise)(e,(e=>{(0,l.connect)(this,this[h],(t=>{if(t)return e(t);e(void 0,this)}))}))}close(e,t){"function"==typeof e&&(t=e);const n="boolean"==typeof e&&e;return(0,p.maybePromise)(t,(e=>{if(null==this.topology)return e();const t=this.topology;this.topology=void 0,t.close({force:n},(t=>{if(t)return e(t);const{encrypter:r}=this[h];if(r)return r.close(this,n,(t=>{e(t)}));e()}))}))}db(e,t){t=null!=t?t:{},e||(e=this.options.dbName);const n=Object.assign({},this[h],t);return new o.Db(this,e,n)}static connect(e,t,n){"function"==typeof t&&(n=t,t={}),t=null!=t?t:{};try{const r=new d(e,t);return n?r.connect(n):r.connect()}catch(e){return n?n(e):c.PromiseProvider.get().reject(e)}}startSession(e){if(e=Object.assign({explicit:!0},e),!this.topology)throw new a.MongoNotConnectedError("MongoClient must be connected to start a session");return this.topology.startSession(e,this.s.options)}withSession(e,t){const n={owner:Symbol(),..."object"==typeof e?e:{}},r="function"==typeof e?e:t;if(null==r)throw new a.MongoInvalidArgumentError("Missing required callback parameter");const i=this.startSession(n);return c.PromiseProvider.get().resolve().then((()=>r(i))).then((()=>{})).finally((()=>i.endSession()))}watch(e=[],t={}){return Array.isArray(e)||(t=e,e=[]),new i.ChangeStream(this,e,(0,p.resolveOptions)(this,t))}getLogger(){return this.s.logger}}t.MongoClient=d},334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationToken=t.TypedEventEmitter=t.BSONType=void 0;const r=n(7702);t.BSONType=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class i extends r.EventEmitter{}t.TypedEventEmitter=i,t.CancellationToken=class extends i{}},3186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddUserOperation=void 0;const r=n(4770),i=n(4947),s=n(2229),o=n(8945),a=n(5172);class u extends o.CommandOperation{constructor(e,t,n,r){super(e,r),this.db=e,this.username=t,this.password=n,this.options=null!=r?r:{}}execute(e,t,n){const o=this.db,a=this.username,u=this.password,l=this.options;if(null!=l.digestPassword)return n(new i.MongoInvalidArgumentError('Option "digestPassword" not supported via addUser, use db.command(...) instead'));let c,p;!l.roles||Array.isArray(l.roles)&&0===l.roles.length?((0,s.emitWarningOnce)('Creating a user without roles is deprecated. Defaults to "root" if db is "admin" or "dbOwner" otherwise'),c="admin"===o.databaseName.toLowerCase()?["root"]:["dbOwner"]):c=Array.isArray(l.roles)?l.roles:[l.roles];try{p=(0,s.getTopology)(o)}catch(e){return n(e)}const h=p.lastHello().maxWireVersion>=7;let d=u;if(!h){const e=r.createHash("md5");e.update(`${a}:mongo:${u}`),d=e.digest("hex")}const f={createUser:a,customData:l.customData||{},roles:c,digestPassword:h};"string"==typeof u&&(f.pwd=d),super.executeCommand(e,t,f,n)}}t.AddUserOperation=u,(0,a.defineAspects)(u,[a.Aspect.WRITE_OPERATION])},4213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateOperation=t.DB_AGGREGATE_COLLECTION=void 0;const r=n(4947),i=n(2229),s=n(8945),o=n(5172);t.DB_AGGREGATE_COLLECTION=1;class a extends s.CommandOperation{constructor(e,n,i){if(super(void 0,{...i,dbName:e.db}),this.options=null!=i?i:{},this.target=e.collection||t.DB_AGGREGATE_COLLECTION,this.pipeline=n,this.hasWriteStage=!1,"string"==typeof(null==i?void 0:i.out))this.pipeline=this.pipeline.concat({$out:i.out}),this.hasWriteStage=!0;else if(n.length>0){const e=n[n.length-1];(e.$out||e.$merge)&&(this.hasWriteStage=!0)}if(this.hasWriteStage&&(this.trySecondaryWrite=!0),this.explain&&this.writeConcern)throw new r.MongoInvalidArgumentError('Option "explain" cannot be used on an aggregate call with writeConcern');if(null!=(null==i?void 0:i.cursor)&&"object"!=typeof i.cursor)throw new r.MongoInvalidArgumentError("Cursor options must be an object")}get canRetryRead(){return!this.hasWriteStage}addToPipeline(e){this.pipeline.push(e)}execute(e,t,n){const r=this.options,s=(0,i.maxWireVersion)(e),o={aggregate:this.target,pipeline:this.pipeline};this.hasWriteStage&&s<8&&(this.readConcern=void 0),s>=5&&this.hasWriteStage&&this.writeConcern&&Object.assign(o,{writeConcern:this.writeConcern}),!0===r.bypassDocumentValidation&&(o.bypassDocumentValidation=r.bypassDocumentValidation),"boolean"==typeof r.allowDiskUse&&(o.allowDiskUse=r.allowDiskUse),r.hint&&(o.hint=r.hint),r.let&&(o.let=r.let),void 0!==r.comment&&(o.comment=r.comment),o.cursor=r.cursor||{},r.batchSize&&!this.hasWriteStage&&(o.cursor.batchSize=r.batchSize),super.executeCommand(e,t,o,n)}}t.AggregateOperation=a,(0,o.defineAspects)(a,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.EXPLAINABLE,o.Aspect.CURSOR_CREATING])},6192:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BulkWriteOperation=void 0;const r=n(5172);class i extends r.AbstractOperation{constructor(e,t,n){super(n),this.options=n,this.collection=e,this.operations=t}execute(e,t,n){const r=this.collection,i=this.operations,s={...this.options,...this.bsonOptions,readPreference:this.readPreference},o=!1===s.ordered?r.initializeUnorderedBulkOp(s):r.initializeOrderedBulkOp(s);try{for(let e=0;e<i.length;e++)o.raw(i[e])}catch(e){return n(e)}o.execute({...s,session:t},((e,t)=>{if(!t&&e)return n(e);n(void 0,t)}))}}t.BulkWriteOperation=i,(0,r.defineAspects)(i,[r.Aspect.WRITE_OPERATION])},4916:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CollectionsOperation=void 0;const r=n(8971),i=n(5172);class s extends i.AbstractOperation{constructor(e,t){super(t),this.options=t,this.db=e}execute(e,t,n){const i=this.db;i.listCollections({},{...this.options,nameOnly:!0,readPreference:this.readPreference,session:t}).toArray(((e,t)=>{if(e||!t)return n(e);t=t.filter((e=>-1===e.name.indexOf("$"))),n(void 0,t.map((e=>new r.Collection(i,e.name,i.s.options))))}))}}t.CollectionsOperation=s},8945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommandOperation=void 0;const r=n(4947),i=n(223),s=n(3389),o=n(114),a=n(2229),u=n(4620),l=n(5172);class c extends l.AbstractOperation{constructor(e,t){super(t),this.options=null!=t?t:{};const n=(null==t?void 0:t.dbName)||(null==t?void 0:t.authdb);if(this.ns=n?new a.MongoDBNamespace(n,"$cmd"):e?e.s.namespace.withCollection("$cmd"):new a.MongoDBNamespace("admin","$cmd"),this.readConcern=s.ReadConcern.fromOptions(t),this.writeConcern=u.WriteConcern.fromOptions(t),e&&e.logger&&(this.logger=e.logger),this.hasAspect(l.Aspect.EXPLAINABLE))this.explain=i.Explain.fromOptions(t);else if(null!=(null==t?void 0:t.explain))throw new r.MongoInvalidArgumentError('Option "explain" is not supported on this command')}get canRetryWrite(){return!this.hasAspect(l.Aspect.EXPLAINABLE)||null==this.explain}executeCommand(e,t,n,i){this.server=e;const s={...this.options,...this.bsonOptions,readPreference:this.readPreference,session:t},u=(0,a.maxWireVersion)(e),c=this.session&&this.session.inTransaction();this.readConcern&&(0,a.commandSupportsReadConcern)(n)&&!c&&Object.assign(n,{readConcern:this.readConcern}),this.trySecondaryWrite&&u<o.MIN_SECONDARY_WRITE_WIRE_VERSION&&(s.omitReadPreference=!0),s.collation&&u<5?i(new r.MongoCompatibilityError(`Server ${e.name}, which reports wire version ${u}, does not support collation`)):(this.writeConcern&&this.hasAspect(l.Aspect.WRITE_OPERATION)&&!c&&Object.assign(n,{writeConcern:this.writeConcern}),u>=5&&s.collation&&"object"==typeof s.collation&&!this.hasAspect(l.Aspect.SKIP_COLLATION)&&Object.assign(n,{collation:s.collation}),"number"==typeof s.maxTimeMS&&(n.maxTimeMS=s.maxTimeMS),this.hasAspect(l.Aspect.EXPLAINABLE)&&this.explain&&(u<6&&n.aggregate?n.explain=!0:n=(0,a.decorateWithExplain)(n,this.explain)),e.command(this.ns,n,s,i))}}t.CommandOperation=c},8741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prepareDocs=t.indexInformation=void 0;const r=n(4947),i=n(2229);t.indexInformation=function(e,t,n,s){let o=n,a=s;"function"==typeof n&&(a=n,o={});const u=null!=o.full&&o.full;let l;try{l=(0,i.getTopology)(e)}catch(e){return a(e)}if(l.isDestroyed())return a(new r.MongoTopologyClosedError);e.collection(t).listIndexes(o).toArray(((e,t)=>e?a(e):Array.isArray(t)?u?a(void 0,t):void a(void 0,function(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[r.name]=[];for(const e in r.key)t[r.name].push([e,r.key[e]])}return t}(t)):a(void 0,[])))},t.prepareDocs=function(e,t,n){var r;return!0===("boolean"==typeof n.forceServerObjectId?n.forceServerObjectId:null===(r=e.s.db.options)||void 0===r?void 0:r.forceServerObjectId)?t:t.map((t=>(null==t._id&&(t._id=e.s.pkFactory.createPk()),t)))}},7991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;const r=n(2395),i=n(5006),s=n(4947),o=n(9281);function a(e,t,n){const r=new o.Topology(t.hosts,t);e.topology=r,r.once(o.Topology.OPEN,(()=>e.emit("open",e)));for(const t of i.MONGO_CLIENT_EVENTS)r.on(t,((...n)=>e.emit(t,...n)));e.autoEncrypter?e.autoEncrypter.init((e=>{if(e)return n(e);r.connect(t,(e=>{if(e)return r.close({force:!0}),n(e);t.encrypter.connectInternalClient((e=>{if(e)return n(e);n(void 0,r)}))}))})):r.connect(t,(e=>{if(e)return r.close({force:!0}),n(e);n(void 0,r)}))}t.connect=function(e,t,n){if(!n)throw new s.MongoInvalidArgumentError("Callback function must be provided");if(e.topology&&e.topology.isConnected())return n(void 0,e);const i=e.logger,o=t=>{const r="seed list contains no mongos proxies, replicaset connections requires the parameter replicaSet to be supplied in the URI or options object, mongodb://server:port/db?replicaSet=name";if(t&&"no mongos proxies found in seed list"===t.message)return i.isWarn()&&i.warn(r),n(new s.MongoRuntimeError(r));n(t,e)};return"string"==typeof t.srvHost?(0,r.resolveSRVRecord)(t,((r,i)=>{if(r||!i)return n(r);for(const[e,n]of i.entries())t.hosts[e]=n;return a(e,t,o)})):a(e,t,o)}},2566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountOperation=void 0;const r=n(8945),i=n(5172);class s extends r.CommandOperation{constructor(e,t,n){super({s:{namespace:e}},n),this.options=n,this.collectionName=e.collection,this.query=t}execute(e,t,n){const r=this.options,i={count:this.collectionName,query:this.query};"number"==typeof r.limit&&(i.limit=r.limit),"number"==typeof r.skip&&(i.skip=r.skip),null!=r.hint&&(i.hint=r.hint),"number"==typeof r.maxTimeMS&&(i.maxTimeMS=r.maxTimeMS),super.executeCommand(e,t,i,((e,t)=>{n(e,t?t.n:0)}))}}t.CountOperation=s,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION,i.Aspect.RETRYABLE])},7643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CountDocumentsOperation=void 0;const r=n(4213);class i extends r.AggregateOperation{constructor(e,t,n){const r=[];r.push({$match:t}),"number"==typeof n.skip&&r.push({$skip:n.skip}),"number"==typeof n.limit&&r.push({$limit:n.limit}),r.push({$group:{_id:1,n:{$sum:1}}}),super(e.s.namespace,r,n)}execute(e,t,n){super.execute(e,t,((e,t)=>{if(e||!t)return void n(e);const r=t;if(null==r.cursor||null==r.cursor.firstBatch)return void n(void 0,0);const i=r.cursor.firstBatch;n(void 0,i.length?i[0].n:0)}))}}t.CountDocumentsOperation=i},7711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CreateCollectionOperation=void 0;const r=n(8971),i=n(8945),s=n(2139),o=n(5172),a=new Set(["w","wtimeout","j","fsync","autoIndexId","pkFactory","raw","readPreference","session","readConcern","writeConcern","raw","fieldsAsRaw","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation"]);class u extends i.CommandOperation{constructor(e,t,n={}){super(e,n),this.options=n,this.db=e,this.name=t}execute(e,t,n){(async()=>{var n,r,i,o,a,l;const c=this.db,p=this.name,h=this.options,d=null!==(n=h.encryptedFields)&&void 0!==n?n:null===(i=null===(r=c.s.client.options.autoEncryption)||void 0===r?void 0:r.encryptedFieldsMap)||void 0===i?void 0:i[`${c.databaseName}.${p}`];if(d){const n=null!==(o=d.escCollection)&&void 0!==o?o:`enxcol_.${p}.esc`,r=null!==(a=d.eccCollection)&&void 0!==a?a:`enxcol_.${p}.ecc`,i=null!==(l=d.ecocCollection)&&void 0!==l?l:`enxcol_.${p}.ecoc`;for(const s of[n,r,i]){const n=new u(c,s);await n.executeWithoutEncryptedFieldsCheck(e,t)}h.encryptedFields||(this.options={...this.options,encryptedFields:d})}const f=await this.executeWithoutEncryptedFieldsCheck(e,t);if(d){const n=new s.CreateIndexOperation(c,p,{__safeContent__:1},{});await new Promise(((r,i)=>{n.execute(e,t,(e=>e?i(e):r()))}))}return f})().then((e=>n(void 0,e)),(e=>n(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((n,i)=>{const s=this.db,o=this.name,u=this.options,l={create:o};for(const e in u)null==u[e]||"function"==typeof u[e]||a.has(e)||(l[e]=u[e]);super.executeCommand(e,t,l,(e=>{if(e)return i(e);n(new r.Collection(s,o,u))}))}))}}t.CreateCollectionOperation=u,(0,o.defineAspects)(u,[o.Aspect.WRITE_OPERATION])},7237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeDeleteStatement=t.DeleteManyOperation=t.DeleteOneOperation=t.DeleteOperation=void 0;const r=n(4947),i=n(2229),s=n(8945),o=n(5172);class a extends s.CommandOperation{constructor(e,t,n){super(void 0,n),this.options=n,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.limit||e.limit>0))}execute(e,t,n){var s;const o=null!==(s=this.options)&&void 0!==s?s:{},a="boolean"!=typeof o.ordered||o.ordered,u={delete:this.ns.collection,deletes:this.statements,ordered:a};if(o.let&&(u.let=o.let),void 0!==o.comment&&(u.comment=o.comment),null!=o.explain&&(0,i.maxWireVersion)(e)<3)return n?n(new r.MongoCompatibilityError(`Server ${e.name} does not support explain on delete`)):void 0;if((this.writeConcern&&0===this.writeConcern.w||(0,i.maxWireVersion)(e)<5)&&this.statements.find((e=>e.hint)))return void n(new r.MongoCompatibilityError("Servers < 3.4 do not support hint on delete"));const l=this.statements.find((e=>!!e.collation));l&&(0,i.collationNotSupported)(e,l)?n(new r.MongoCompatibilityError(`Server ${e.name} does not support collation`)):super.executeCommand(e,t,u,n)}}t.DeleteOperation=a;class u extends a{constructor(e,t,n){super(e.s.namespace,[c(t,{...n,limit:1})],n)}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||null==t?n(e):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):this.explain?n(void 0,t):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,deletedCount:t.n})}))}}t.DeleteOneOperation=u;class l extends a{constructor(e,t,n){super(e.s.namespace,[c(t,n)],n)}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||null==t?n(e):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):this.explain?n(void 0,t):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,deletedCount:t.n})}))}}function c(e,t){const n={q:e,limit:"number"==typeof t.limit?t.limit:0};return!0===t.single&&(n.limit=1),t.collation&&(n.collation=t.collation),t.hint&&(n.hint=t.hint),n}t.DeleteManyOperation=l,t.makeDeleteStatement=c,(0,o.defineAspects)(a,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION]),(0,o.defineAspects)(u,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION]),(0,o.defineAspects)(l,[o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION])},9579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DistinctOperation=void 0;const r=n(4947),i=n(2229),s=n(8945),o=n(5172);class a extends s.CommandOperation{constructor(e,t,n,r){super(e,r),this.options=null!=r?r:{},this.collection=e,this.key=t,this.query=n}execute(e,t,n){const s=this.collection,o=this.key,a=this.query,u=this.options,l={distinct:s.collectionName,key:o,query:a};"number"==typeof u.maxTimeMS&&(l.maxTimeMS=u.maxTimeMS),(0,i.decorateWithReadConcern)(l,s,u);try{(0,i.decorateWithCollation)(l,s,u)}catch(e){return n(e)}this.explain&&(0,i.maxWireVersion)(e)<4?n(new r.MongoCompatibilityError(`Server ${e.name} does not support explain on distinct`)):super.executeCommand(e,t,l,((e,t)=>{e?n(e):n(void 0,this.explain?t:t.values)}))}}t.DistinctOperation=a,(0,o.defineAspects)(a,[o.Aspect.READ_OPERATION,o.Aspect.RETRYABLE,o.Aspect.EXPLAINABLE])},3226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropDatabaseOperation=t.DropCollectionOperation=void 0;const r=n(4947),i=n(8945),s=n(5172);class o extends i.CommandOperation{constructor(e,t,n={}){super(e,n),this.db=e,this.options=n,this.name=t}execute(e,t,n){(async()=>{var n,i,s,a;const u=this.db,l=this.options,c=this.name,p=null===(n=u.s.client.options.autoEncryption)||void 0===n?void 0:n.encryptedFieldsMap;let h,d,f=null!==(i=l.encryptedFields)&&void 0!==i?i:null==p?void 0:p[`${u.databaseName}.${c}`];if(!f&&p){const e=await u.listCollections({name:c},{nameOnly:!1}).toArray();f=null===(a=null===(s=null==e?void 0:e[0])||void 0===s?void 0:s.options)||void 0===a?void 0:a.encryptedFields}try{h=await this.executeWithoutEncryptedFieldsCheck(e,t)}catch(e){if(!(f&&e instanceof r.MongoServerError&&e.code===r.MONGODB_ERROR_CODES.NamespaceNotFound))throw e;d=e}if(f){const n=f.escCollection||`enxcol_.${c}.esc`,i=f.eccCollection||`enxcol_.${c}.ecc`,s=f.ecocCollection||`enxcol_.${c}.ecoc`;for(const a of[n,i,s]){const n=new o(u,a);try{await n.executeWithoutEncryptedFieldsCheck(e,t)}catch(e){if(!(e instanceof r.MongoServerError)||e.code!==r.MONGODB_ERROR_CODES.NamespaceNotFound)throw e}}if(d)throw d}return h})().then((e=>n(void 0,e)),(e=>n(e)))}executeWithoutEncryptedFieldsCheck(e,t){return new Promise(((n,r)=>{super.executeCommand(e,t,{drop:this.name},((e,t)=>{if(e)return r(e);n(!!t.ok)}))}))}}t.DropCollectionOperation=o;class a extends i.CommandOperation{constructor(e,t){super(e,t),this.options=t}execute(e,t,n){super.executeCommand(e,t,{dropDatabase:1},((e,t)=>e?n(e):t.ok?n(void 0,!0):void n(void 0,!1)))}}t.DropDatabaseOperation=a,(0,s.defineAspects)(o,[s.Aspect.WRITE_OPERATION]),(0,s.defineAspects)(a,[s.Aspect.WRITE_OPERATION])},3345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EstimatedDocumentCountOperation=void 0;const r=n(2229),i=n(8945),s=n(5172);class o extends i.CommandOperation{constructor(e,t={}){super(e,t),this.options=t,this.collectionName=e.collectionName}execute(e,t,n){if((0,r.maxWireVersion)(e)<12)return this.executeLegacy(e,t,n);const i={aggregate:this.collectionName,pipeline:[{$collStats:{count:{}}},{$group:{_id:1,n:{$sum:"$count"}}}],cursor:{}};"number"==typeof this.options.maxTimeMS&&(i.maxTimeMS=this.options.maxTimeMS),super.executeCommand(e,t,i,((e,t)=>{var r,i;e&&26!==e.code?n(e):n(void 0,(null===(i=null===(r=null==t?void 0:t.cursor)||void 0===r?void 0:r.firstBatch[0])||void 0===i?void 0:i.n)||0)}))}executeLegacy(e,t,n){const r={count:this.collectionName};"number"==typeof this.options.maxTimeMS&&(r.maxTimeMS=this.options.maxTimeMS),super.executeCommand(e,t,r,((e,t)=>{e?n(e):n(void 0,t.n||0)}))}}t.EstimatedDocumentCountOperation=o,(0,s.defineAspects)(o,[s.Aspect.READ_OPERATION,s.Aspect.RETRYABLE,s.Aspect.CURSOR_CREATING])},7445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeOperation=void 0;const r=n(4947),i=n(1228),s=n(114),o=n(2229),a=n(5172),u=r.MONGODB_ERROR_CODES.IllegalOperation,l="This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.";t.executeOperation=function e(t,n,c){if(!(n instanceof a.AbstractOperation))throw new r.MongoRuntimeError("This method requires a valid operation instance");return(0,o.maybePromise)(c,(c=>{let p;try{p=(0,o.getTopology)(t)}catch(e){return c(e)}if(p.shouldCheckForSessionSupport())return p.selectServer(i.ReadPreference.primaryPreferred,{},(r=>{if(r)return c(r);e(t,n,c)}));let h,d=n.session;if(p.hasSessionSupport())if(null==d)h=Symbol(),d=p.startSession({owner:h,explicit:!1});else{if(d.hasEnded)return c(new r.MongoExpiredSessionError("Use of expired sessions is not permitted"));if(d.snapshotEnabled&&!p.capabilities.supportsSnapshotReads)return c(new r.MongoCompatibilityError("Snapshot reads require MongoDB 5.0 or later"))}else if(d)return c(new r.MongoCompatibilityError("Current topology does not support sessions"));try{!function(e,t,n,c){var p,h;const d=null!==(p=n.readPreference)&&void 0!==p?p:i.ReadPreference.primary,f=!!(null==t?void 0:t.inTransaction());if(f&&!d.equals(i.ReadPreference.primary))return c(new r.MongoTransactionError(`Read preference in a transaction must be primary, not: ${d.mode}`));let m;(null==t?void 0:t.isPinned)&&t.transaction.isCommitted&&!n.bypassPinningCheck&&t.unpin(),m=n.hasAspect(a.Aspect.CURSOR_ITERATING)?(0,s.sameServerSelector)(null===(h=n.server)||void 0===h?void 0:h.description):n.trySecondaryWrite?(0,s.secondaryWritableServerSelector)(e.commonWireVersion,d):d;const g={session:t};d&&!d.equals(i.ReadPreference.primary)&&(null==t?void 0:t.inTransaction())?c(new r.MongoTransactionError(`Read preference in a transaction must be primary, not: ${d.mode}`)):e.selectServer(m,g,((i,s)=>{if(i||!s)return c(i);if(t&&n.hasAspect(a.Aspect.RETRYABLE)){const i=e.s.options.retryReads&&!f&&n.canRetryRead,p=e.s.options.retryWrites&&!f&&(0,o.supportsRetryableWrites)(s)&&n.canRetryWrite,h=n.hasAspect(a.Aspect.READ_OPERATION),d=n.hasAspect(a.Aspect.WRITE_OPERATION);if(h&&i||d&&p)return d&&p&&(n.options.willRetryWrite=!0,t.incrementTransactionNumber()),n.execute(s,t,((i,s)=>i instanceof r.MongoError?function(i){const s=n.hasAspect(a.Aspect.WRITE_OPERATION),p=n.hasAspect(a.Aspect.READ_OPERATION);return s&&i.code===u?c(new r.MongoServerError({message:l,errmsg:l,originalError:i})):s&&!(0,r.isRetryableWriteError)(i)||p&&!(0,r.isRetryableReadError)(i)?c(i):(i instanceof r.MongoNetworkError&&(null==t?void 0:t.isPinned)&&!t.inTransaction()&&n.hasAspect(a.Aspect.CURSOR_CREATING)&&t.unpin({force:!0,forceClear:!0}),void e.selectServer(m,g,((e,i)=>e||!s||(0,o.supportsRetryableWrites)(i)?e||!i?c(null!=e?e:new r.MongoUnexpectedServerResponseError("Server selection failed without error")):void n.execute(i,t,c):c(new r.MongoUnexpectedServerResponseError("Selected server does not support retryable writes")))))}(i):i?c(i):void c(void 0,s)))}return n.execute(s,t,c)}))}(p,d,n,((e,t)=>{if(null!=(null==d?void 0:d.owner)&&d.owner===h)return d.endSession((n=>c(null!=n?n:e,t)));c(e,t)}))}catch(e){throw null!=(null==d?void 0:d.owner)&&d.owner===h&&d.endSession(),e}}))}},1709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOperation=void 0;const r=n(4947),i=n(3389),s=n(649),o=n(2229),a=n(8945),u=n(5172);class l extends a.CommandOperation{constructor(e,t,n={},i={}){if(super(e,i),this.options=i,this.ns=t,"object"!=typeof n||Array.isArray(n))throw new r.MongoInvalidArgumentError("Query filter must be a plain object or ObjectId");if(Buffer.isBuffer(n)){const e=n[0]|n[1]<<8|n[2]<<16|n[3]<<24;if(e!==n.length)throw new r.MongoInvalidArgumentError(`Query filter raw message size does not match message header size [${n.length}] != [${e}]`)}this.filter=null!=n&&"ObjectID"===n._bsontype?{_id:n}:n}execute(e,t,n){this.server=e;const a=(0,o.maxWireVersion)(e),u=this.options;if(null!=u.allowDiskUse&&a<4)return void n(new r.MongoCompatibilityError('Option "allowDiskUse" is not supported on MongoDB < 3.2'));if(u.collation&&a<5)return void n(new r.MongoCompatibilityError(`Server ${e.name}, which reports wire version ${a}, does not support collation`));let l=function(e,t,n){const r={find:e.collection,filter:t};if(n.sort&&(r.sort=(0,s.formatSort)(n.sort)),n.projection){let e=n.projection;e&&Array.isArray(e)&&(e=e.length?e.reduce(((e,t)=>(e[t]=1,e)),{}):{_id:1}),r.projection=e}n.hint&&(r.hint=(0,o.normalizeHintField)(n.hint)),"number"==typeof n.skip&&(r.skip=n.skip),"number"==typeof n.limit&&(n.limit<0?(r.limit=-n.limit,r.singleBatch=!0):r.limit=n.limit),"number"==typeof n.batchSize&&(n.batchSize<0?(n.limit&&0!==n.limit&&Math.abs(n.batchSize)<Math.abs(n.limit)&&(r.limit=-n.batchSize),r.singleBatch=!0):r.batchSize=n.batchSize),"boolean"==typeof n.singleBatch&&(r.singleBatch=n.singleBatch),void 0!==n.comment&&(r.comment=n.comment),"number"==typeof n.maxTimeMS&&(r.maxTimeMS=n.maxTimeMS);const a=i.ReadConcern.fromOptions(n);return a&&(r.readConcern=a.toJSON()),n.max&&(r.max=n.max),n.min&&(r.min=n.min),"boolean"==typeof n.returnKey&&(r.returnKey=n.returnKey),"boolean"==typeof n.showRecordId&&(r.showRecordId=n.showRecordId),"boolean"==typeof n.tailable&&(r.tailable=n.tailable),"boolean"==typeof n.timeout?r.noCursorTimeout=!n.timeout:"boolean"==typeof n.noCursorTimeout&&(r.noCursorTimeout=n.noCursorTimeout),"boolean"==typeof n.awaitData&&(r.awaitData=n.awaitData),"boolean"==typeof n.allowPartialResults&&(r.allowPartialResults=n.allowPartialResults),n.collation&&(r.collation=n.collation),"boolean"==typeof n.allowDiskUse&&(r.allowDiskUse=n.allowDiskUse),n.let&&(r.let=n.let),r}(this.ns,this.filter,u);this.explain&&(l=(0,o.decorateWithExplain)(l,this.explain)),e.command(this.ns,l,{...this.options,...this.bsonOptions,documentsReturnedIn:"firstBatch",session:t},n)}}t.FindOperation=l,(0,u.defineAspects)(l,[u.Aspect.READ_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE,u.Aspect.CURSOR_CREATING])},8448:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindOneAndUpdateOperation=t.FindOneAndReplaceOperation=t.FindOneAndDeleteOperation=t.ReturnDocument=void 0;const r=n(4947),i=n(1228),s=n(649),o=n(2229),a=n(8945),u=n(5172);function l(e,n){return e.new=n.returnDocument===t.ReturnDocument.AFTER,e.upsert=!0===n.upsert,!0===n.bypassDocumentValidation&&(e.bypassDocumentValidation=n.bypassDocumentValidation),e}t.ReturnDocument=Object.freeze({BEFORE:"before",AFTER:"after"});class c extends a.CommandOperation{constructor(e,t,n){super(e,n),this.options=null!=n?n:{},this.cmdBase={remove:!1,new:!1,upsert:!1};const r=(0,s.formatSort)(n.sort);r&&(this.cmdBase.sort=r),n.projection&&(this.cmdBase.fields=n.projection),n.maxTimeMS&&(this.cmdBase.maxTimeMS=n.maxTimeMS),n.writeConcern&&(this.cmdBase.writeConcern=n.writeConcern),n.let&&(this.cmdBase.let=n.let),void 0!==n.comment&&(this.cmdBase.comment=n.comment),this.readPreference=i.ReadPreference.primary,this.collection=e,this.query=t}execute(e,t,n){var i;const s=this.collection,a=this.query,u={...this.options,...this.bsonOptions},l={findAndModify:s.collectionName,query:a,...this.cmdBase};try{(0,o.decorateWithCollation)(l,s,u)}catch(e){return n(e)}if(u.hint){if(0===(null===(i=this.writeConcern)||void 0===i?void 0:i.w)||(0,o.maxWireVersion)(e)<8)return void n(new r.MongoCompatibilityError("The current topology does not support a hint on findAndModify commands"));l.hint=u.hint}this.explain&&(0,o.maxWireVersion)(e)<4?n(new r.MongoCompatibilityError(`Server ${e.name} does not support explain on findAndModify`)):super.executeCommand(e,t,l,((e,t)=>e?n(e):n(void 0,t)))}}t.FindOneAndDeleteOperation=class extends c{constructor(e,t,n){if(null==t||"object"!=typeof t)throw new r.MongoInvalidArgumentError('Argument "filter" must be an object');super(e,t,n),this.cmdBase.remove=!0}},t.FindOneAndReplaceOperation=class extends c{constructor(e,t,n,i){if(null==t||"object"!=typeof t)throw new r.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==n||"object"!=typeof n)throw new r.MongoInvalidArgumentError('Argument "replacement" must be an object');if((0,o.hasAtomicOperators)(n))throw new r.MongoInvalidArgumentError("Replacement document must not contain atomic operators");super(e,t,i),this.cmdBase.update=n,l(this.cmdBase,i)}},t.FindOneAndUpdateOperation=class extends c{constructor(e,t,n,i){if(null==t||"object"!=typeof t)throw new r.MongoInvalidArgumentError('Argument "filter" must be an object');if(null==n||"object"!=typeof n)throw new r.MongoInvalidArgumentError('Argument "update" must be an object');if(!(0,o.hasAtomicOperators)(n))throw new r.MongoInvalidArgumentError("Update document requires atomic operators");super(e,t,i),this.cmdBase.update=n,l(this.cmdBase,i),i.arrayFilters&&(this.cmdBase.arrayFilters=i.arrayFilters)}},(0,u.defineAspects)(c,[u.Aspect.WRITE_OPERATION,u.Aspect.RETRYABLE,u.Aspect.EXPLAINABLE])},4170:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetMoreOperation=void 0;const r=n(4947),i=n(2229),s=n(5172);class o extends s.AbstractOperation{constructor(e,t,n,r={}){super(r),this.options=r,(0,i.maxWireVersion)(n)<9&&delete this.options.comment,this.ns=e,this.cursorId=t,this.server=n}execute(e,t,n){if(e!==this.server)return n(new r.MongoRuntimeError("Getmore must run on the same server operation began on"));e.getMore(this.ns,this.cursorId,this.options,n)}}t.GetMoreOperation=o,(0,s.defineAspects)(o,[s.Aspect.READ_OPERATION,s.Aspect.CURSOR_ITERATING])},2139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexInformationOperation=t.IndexExistsOperation=t.ListIndexesCursor=t.ListIndexesOperation=t.DropIndexesOperation=t.DropIndexOperation=t.EnsureIndexOperation=t.CreateIndexOperation=t.CreateIndexesOperation=t.IndexesOperation=void 0;const r=n(6829),i=n(4947),s=n(1228),o=n(2229),a=n(8945),u=n(8741),l=n(7445),c=n(5172),p=new Set(["background","unique","name","partialFilterExpression","sparse","hidden","expireAfterSeconds","storageEngine","collation","version","weights","default_language","language_override","textIndexVersion","2dsphereIndexVersion","bits","min","max","bucketSize","wildcardProjection"]);function h(e,t){const n=(0,o.parseIndexOptions)(e),r={name:"string"==typeof t.name?t.name:n.name,key:n.fieldHash};for(const e in t)p.has(e)&&(r[e]=t[e]);return r}class d extends c.AbstractOperation{constructor(e,t){super(t),this.options=t,this.collection=e}execute(e,t,n){const r=this.collection,i=this.options;(0,u.indexInformation)(r.s.db,r.collectionName,{full:!0,...i,readPreference:this.readPreference,session:t},n)}}t.IndexesOperation=d;class f extends a.CommandOperation{constructor(e,t,n,r){super(e,r),this.options=null!=r?r:{},this.collectionName=t,this.indexes=n}execute(e,t,n){const r=this.options,s=this.indexes,a=(0,o.maxWireVersion)(e);for(let t=0;t<s.length;t++){if(s[t].collation&&a<5)return void n(new i.MongoCompatibilityError(`Server ${e.name}, which reports wire version ${a}, does not support collation`));if(null==s[t].name){const e=[];for(const n in s[t].key)e.push(`${n}_${s[t].key[n]}`);s[t].name=e.join("_")}}const u={createIndexes:this.collectionName,indexes:s};if(null!=r.commitQuorum){if(a<9)return void n(new i.MongoCompatibilityError("Option `commitQuorum` for `createIndexes` not supported on servers < 4.4"));u.commitQuorum=r.commitQuorum}this.options.collation=void 0,super.executeCommand(e,t,u,(e=>{if(e)return void n(e);const t=s.map((e=>e.name||""));n(void 0,t)}))}}t.CreateIndexesOperation=f;class m extends f{constructor(e,t,n,r){super(e,t,[h(n,r)],r)}execute(e,t,n){super.execute(e,t,((e,t)=>e||!t?n(e):n(void 0,t[0])))}}t.CreateIndexOperation=m;class g extends m{constructor(e,t,n,r){super(e,t,n,r),this.readPreference=s.ReadPreference.primary,this.db=e,this.collectionName=t}execute(e,t,n){const r=this.indexes[0].name;this.db.collection(this.collectionName).listIndexes({session:t}).toArray(((s,o)=>{if(s&&s.code!==i.MONGODB_ERROR_CODES.NamespaceNotFound)return n(s);o&&(o=Array.isArray(o)?o:[o]).some((e=>e.name===r))?n(void 0,r):super.execute(e,t,n)}))}}t.EnsureIndexOperation=g;class E extends a.CommandOperation{constructor(e,t,n){super(e,n),this.options=null!=n?n:{},this.collection=e,this.indexName=t}execute(e,t,n){const r={dropIndexes:this.collection.collectionName,index:this.indexName};super.executeCommand(e,t,r,n)}}t.DropIndexOperation=E;class y extends E{constructor(e,t){super(e,"*",t)}execute(e,t,n){super.execute(e,t,(e=>{if(e)return n(e,!1);n(void 0,!0)}))}}t.DropIndexesOperation=y;class v extends a.CommandOperation{constructor(e,t){super(e,t),this.options=null!=t?t:{},this.collectionNamespace=e.s.namespace}execute(e,t,n){const r=(0,o.maxWireVersion)(e),i=this.options.batchSize?{batchSize:this.options.batchSize}:{},s={listIndexes:this.collectionNamespace.collection,cursor:i};r>=9&&void 0!==this.options.comment&&(s.comment=this.options.comment),super.executeCommand(e,t,s,n)}}t.ListIndexesOperation=v;class A extends r.AbstractCursor{constructor(e,t){super((0,o.getTopology)(e),e.s.namespace,t),this.parent=e,this.options=t}clone(){return new A(this.parent,{...this.options,...this.cursorOptions})}_initialize(e,t){const n=new v(this.parent,{...this.cursorOptions,...this.options,session:e});(0,l.executeOperation)(this.parent,n,((r,i)=>{if(r||null==i)return t(r);t(void 0,{server:n.server,session:e,response:i})}))}}t.ListIndexesCursor=A;class C extends c.AbstractOperation{constructor(e,t,n){super(n),this.options=n,this.collection=e,this.indexes=t}execute(e,t,n){const r=this.collection,i=this.indexes;(0,u.indexInformation)(r.s.db,r.collectionName,{...this.options,readPreference:this.readPreference,session:t},((e,t)=>{if(null!=e)return n(e);if(!Array.isArray(i))return n(void 0,null!=t[i]);for(let e=0;e<i.length;e++)if(null==t[i[e]])return n(void 0,!1);return n(void 0,!0)}))}}t.IndexExistsOperation=C;class b extends c.AbstractOperation{constructor(e,t,n){super(n),this.options=null!=n?n:{},this.db=e,this.name=t}execute(e,t,n){const r=this.db,i=this.name;(0,u.indexInformation)(r,i,{...this.options,readPreference:this.readPreference,session:t},n)}}t.IndexInformationOperation=b,(0,c.defineAspects)(v,[c.Aspect.READ_OPERATION,c.Aspect.RETRYABLE,c.Aspect.CURSOR_CREATING]),(0,c.defineAspects)(f,[c.Aspect.WRITE_OPERATION]),(0,c.defineAspects)(m,[c.Aspect.WRITE_OPERATION]),(0,c.defineAspects)(g,[c.Aspect.WRITE_OPERATION]),(0,c.defineAspects)(E,[c.Aspect.WRITE_OPERATION]),(0,c.defineAspects)(y,[c.Aspect.WRITE_OPERATION])},7159:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertManyOperation=t.InsertOneOperation=t.InsertOperation=void 0;const r=n(4947),i=n(4620),s=n(6192),o=n(8945),a=n(8741),u=n(5172);class l extends o.CommandOperation{constructor(e,t,n){var r;super(void 0,n),this.options={...n,checkKeys:null!==(r=n.checkKeys)&&void 0!==r&&r},this.ns=e,this.documents=t}execute(e,t,n){var r;const i=null!==(r=this.options)&&void 0!==r?r:{},s="boolean"!=typeof i.ordered||i.ordered,o={insert:this.ns.collection,documents:this.documents,ordered:s};"boolean"==typeof i.bypassDocumentValidation&&(o.bypassDocumentValidation=i.bypassDocumentValidation),void 0!==i.comment&&(o.comment=i.comment),super.executeCommand(e,t,o,n)}}t.InsertOperation=l;class c extends l{constructor(e,t,n){super(e.s.namespace,(0,a.prepareDocs)(e,[t],n),n)}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||null==t?n(e):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,insertedId:this.documents[0]._id})}))}}t.InsertOneOperation=c;class p extends u.AbstractOperation{constructor(e,t,n){if(super(n),!Array.isArray(t))throw new r.MongoInvalidArgumentError('Argument "docs" must be an array of documents');this.options=n,this.collection=e,this.docs=t}execute(e,t,n){const o=this.collection,u={...this.options,...this.bsonOptions,readPreference:this.readPreference},l=i.WriteConcern.fromOptions(u);new s.BulkWriteOperation(o,(0,a.prepareDocs)(o,this.docs,u).map((e=>({insertOne:{document:e}}))),u).execute(e,t,((e,t)=>{var i;if(e||null==t)return e&&"Operation must be an object with an operation key"===e.message&&(e=new r.MongoInvalidArgumentError("Collection.insertMany() cannot be called with an array that has null/undefined values")),n(e);n(void 0,{acknowledged:null===(i=0!==(null==l?void 0:l.w))||void 0===i||i,insertedCount:t.insertedCount,insertedIds:t.insertedIds})}))}}t.InsertManyOperation=p,(0,u.defineAspects)(l,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(c,[u.Aspect.RETRYABLE,u.Aspect.WRITE_OPERATION]),(0,u.defineAspects)(p,[u.Aspect.WRITE_OPERATION])},2062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsCappedOperation=void 0;const r=n(4947),i=n(5172);class s extends i.AbstractOperation{constructor(e,t){super(t),this.options=t,this.collection=e}execute(e,t,n){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray(((e,t)=>{if(e||!t)return n(e);if(0===t.length)return n(new r.MongoAPIError(`collection ${i.namespace} not found`));const s=t[0].options;n(void 0,!(!s||!s.capped))}))}}t.IsCappedOperation=s},2320:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListCollectionsCursor=t.ListCollectionsOperation=void 0;const r=n(6829),i=n(2229),s=n(8945),o=n(7445),a=n(5172);class u extends s.CommandOperation{constructor(e,t,n){super(e,n),this.options=null!=n?n:{},this.db=e,this.filter=t,this.nameOnly=!!this.options.nameOnly,this.authorizedCollections=!!this.options.authorizedCollections,"number"==typeof this.options.batchSize&&(this.batchSize=this.options.batchSize)}execute(e,t,n){return super.executeCommand(e,t,this.generateCommand((0,i.maxWireVersion)(e)),n)}generateCommand(e){const t={listCollections:1,filter:this.filter,cursor:this.batchSize?{batchSize:this.batchSize}:{},nameOnly:this.nameOnly,authorizedCollections:this.authorizedCollections};return e>=9&&void 0!==this.options.comment&&(t.comment=this.options.comment),t}}t.ListCollectionsOperation=u;class l extends r.AbstractCursor{constructor(e,t,n){super((0,i.getTopology)(e),e.s.namespace,n),this.parent=e,this.filter=t,this.options=n}clone(){return new l(this.parent,this.filter,{...this.options,...this.cursorOptions})}_initialize(e,t){const n=new u(this.parent,this.filter,{...this.cursorOptions,...this.options,session:e});(0,o.executeOperation)(this.parent,n,((r,i)=>{if(r||null==i)return t(r);t(void 0,{server:n.server,session:e,response:i})}))}}t.ListCollectionsCursor=l,(0,a.defineAspects)(u,[a.Aspect.READ_OPERATION,a.Aspect.RETRYABLE,a.Aspect.CURSOR_CREATING])},1608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListDatabasesOperation=void 0;const r=n(2229),i=n(8945),s=n(5172);class o extends i.CommandOperation{constructor(e,t){super(e,t),this.options=null!=t?t:{},this.ns=new r.MongoDBNamespace("admin","$cmd")}execute(e,t,n){const i={listDatabases:1};this.options.nameOnly&&(i.nameOnly=Number(i.nameOnly)),this.options.filter&&(i.filter=this.options.filter),"boolean"==typeof this.options.authorizedDatabases&&(i.authorizedDatabases=this.options.authorizedDatabases),(0,r.maxWireVersion)(e)>=9&&void 0!==this.options.comment&&(i.comment=this.options.comment),super.executeCommand(e,t,i,n)}}t.ListDatabasesOperation=o,(0,s.defineAspects)(o,[s.Aspect.READ_OPERATION,s.Aspect.RETRYABLE])},5856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapReduceOperation=void 0;const r=n(9064),i=n(4947),s=n(1228),o=n(2229),a=n(8945),u=n(5172),l=["explain","readPreference","readConcern","session","bypassDocumentValidation","writeConcern","raw","fieldsAsRaw","promoteLongs","promoteValues","promoteBuffers","bsonRegExp","serializeFunctions","ignoreUndefined","enableUtf8Validation","scope"];class c extends a.CommandOperation{constructor(e,t,n,r){super(e,r),this.options=null!=r?r:{},this.collection=e,this.map=t,this.reduce=n}execute(e,t,n){const r=this.collection,a=this.map,u=this.reduce;let c=this.options;const h={mapReduce:r.collectionName,map:a,reduce:u};c.scope&&(h.scope=p(c.scope));for(const e in c)-1===l.indexOf(e)&&(h[e]=c[e]);c=Object.assign({},c),this.readPreference.mode===s.ReadPreferenceMode.primary&&c.out&&1!==c.out.inline&&"inline"!==c.out?(c.readPreference=s.ReadPreference.primary,(0,o.applyWriteConcern)(h,{db:r.s.db,collection:r},c)):(0,o.decorateWithReadConcern)(h,r,c),!0===c.bypassDocumentValidation&&(h.bypassDocumentValidation=c.bypassDocumentValidation);try{(0,o.decorateWithCollation)(h,r,c)}catch(e){return n(e)}this.explain&&(0,o.maxWireVersion)(e)<9?n(new i.MongoCompatibilityError(`Server ${e.name} does not support explain on mapReduce`)):super.executeCommand(e,t,h,((e,t)=>{if(e)return n(e);if(1!==t.ok||t.err||t.errmsg)return n(new i.MongoServerError(t));if(this.explain)return n(void 0,t);const s={};if(t.timeMillis&&(s.processtime=t.timeMillis),t.counts&&(s.counts=t.counts),t.timing&&(s.timing=t.timing),t.results)return null!=c.verbose&&c.verbose?n(void 0,{results:t.results,stats:s}):n(void 0,t.results);let o=null;if(null!=t.result&&"object"==typeof t.result){const e=t.result;o=r.s.db.s.client.db(e.db,r.s.db.s.options).collection(e.collection)}else o=r.s.db.collection(t.result);if(null==c.verbose||!c.verbose)return n(e,o);n(e,{collection:o,stats:s})}))}}function p(e){if(!(0,o.isObject)(e)||"ObjectID"===e._bsontype)return e;const t={};for(const n of Object.keys(e))"function"==typeof e[n]?t[n]=new r.Code(String(e[n])):"Code"===e[n]._bsontype?t[n]=e[n]:t[n]=p(e[n]);return t}t.MapReduceOperation=c,(0,u.defineAspects)(c,[u.Aspect.EXPLAINABLE])},5172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defineAspects=t.AbstractOperation=t.Aspect=void 0;const r=n(9064),i=n(1228);t.Aspect={READ_OPERATION:Symbol("READ_OPERATION"),WRITE_OPERATION:Symbol("WRITE_OPERATION"),RETRYABLE:Symbol("RETRYABLE"),EXPLAINABLE:Symbol("EXPLAINABLE"),SKIP_COLLATION:Symbol("SKIP_COLLATION"),CURSOR_CREATING:Symbol("CURSOR_CREATING"),CURSOR_ITERATING:Symbol("CURSOR_ITERATING")};const s=Symbol("session");t.AbstractOperation=class{constructor(e={}){var n;this.readPreference=this.hasAspect(t.Aspect.WRITE_OPERATION)?i.ReadPreference.primary:null!==(n=i.ReadPreference.fromOptions(e))&&void 0!==n?n:i.ReadPreference.primary,this.bsonOptions=(0,r.resolveBSONOptions)(e),this[s]=null!=e.session?e.session:void 0,this.options=e,this.bypassPinningCheck=!!e.bypassPinningCheck,this.trySecondaryWrite=!1}hasAspect(e){const t=this.constructor;return null!=t.aspects&&t.aspects.has(e)}get session(){return this[s]}get canRetryRead(){return!0}get canRetryWrite(){return!0}},t.defineAspects=function(e,t){return Array.isArray(t)||t instanceof Set||(t=[t]),t=new Set(t),Object.defineProperty(e,"aspects",{value:t,writable:!1}),t}},2552:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsOperation=void 0;const r=n(4947),i=n(5172);class s extends i.AbstractOperation{constructor(e,t){super(t),this.options=t,this.collection=e}execute(e,t,n){const i=this.collection;i.s.db.listCollections({name:i.collectionName},{...this.options,nameOnly:!1,readPreference:this.readPreference,session:t}).toArray(((e,t)=>e||!t?n(e):0===t.length?n(new r.MongoAPIError(`collection ${i.namespace} not found`)):void n(e,t[0].options)))}}t.OptionsOperation=s},8528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProfilingLevelOperation=void 0;const r=n(4947),i=n(8945);class s extends i.CommandOperation{constructor(e,t){super(e,t),this.options=t}execute(e,t,n){super.executeCommand(e,t,{profile:-1},((e,t)=>{if(null==e&&1===t.ok){const e=t.was;return 0===e?n(void 0,"off"):1===e?n(void 0,"slow_only"):2===e?n(void 0,"all"):n(new r.MongoRuntimeError(`Illegal profiling level value ${e}`))}n(null!=e?e:new r.MongoRuntimeError("Error with profile command"))}))}}t.ProfilingLevelOperation=s},8521:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveUserOperation=void 0;const r=n(8945),i=n(5172);class s extends r.CommandOperation{constructor(e,t,n){super(e,n),this.options=n,this.username=t}execute(e,t,n){super.executeCommand(e,t,{dropUser:this.username},(e=>{n(e,!e)}))}}t.RemoveUserOperation=s,(0,i.defineAspects)(s,[i.Aspect.WRITE_OPERATION])},8955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameOperation=void 0;const r=n(8971),i=n(4947),s=n(2229),o=n(5172),a=n(25);class u extends a.RunAdminCommandOperation{constructor(e,t,n){(0,s.checkCollectionName)(t);const r=e.namespace,i=e.s.namespace.withCollection(t).toString();super(e,{renameCollection:r,to:i,dropTarget:"boolean"==typeof n.dropTarget&&n.dropTarget},n),this.options=n,this.collection=e,this.newName=t}execute(e,t,n){const s=this.collection;super.execute(e,t,((e,t)=>{if(e)return n(e);if(null==t?void 0:t.errmsg)return n(new i.MongoServerError(t));let o;try{o=new r.Collection(s.s.db,this.newName,s.s.options)}catch(e){return n(e)}return n(void 0,o)}))}}t.RenameOperation=u,(0,o.defineAspects)(u,[o.Aspect.WRITE_OPERATION])},25:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RunAdminCommandOperation=t.RunCommandOperation=void 0;const r=n(2229),i=n(8945);class s extends i.CommandOperation{constructor(e,t,n){super(e,n),this.options=null!=n?n:{},this.command=t}execute(e,t,n){const r=this.command;this.executeCommand(e,t,r,n)}}t.RunCommandOperation=s,t.RunAdminCommandOperation=class extends s{constructor(e,t,n){super(e,t,n),this.ns=new r.MongoDBNamespace("admin")}}},4671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetProfilingLevelOperation=t.ProfilingLevel=void 0;const r=n(4947),i=n(2229),s=n(8945),o=new Set(["off","slow_only","all"]);t.ProfilingLevel=Object.freeze({off:"off",slowOnly:"slow_only",all:"all"});class a extends s.CommandOperation{constructor(e,n,r){switch(super(e,r),this.options=r,n){case t.ProfilingLevel.off:this.profile=0;break;case t.ProfilingLevel.slowOnly:this.profile=1;break;case t.ProfilingLevel.all:this.profile=2;break;default:this.profile=0}this.level=n}execute(e,n,s){const a=this.level;if(!o.has(a))return s(new r.MongoInvalidArgumentError(`Profiling level must be one of "${(0,i.enumToString)(t.ProfilingLevel)}"`));super.executeCommand(e,n,{profile:this.profile},((e,t)=>null==e&&1===t.ok?s(void 0,a):s(null!=e?e:new r.MongoRuntimeError("Error with profile command"))))}}t.SetProfilingLevelOperation=a},6577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DbStatsOperation=t.CollStatsOperation=void 0;const r=n(8945),i=n(5172);class s extends r.CommandOperation{constructor(e,t){super(e,t),this.options=null!=t?t:{},this.collectionName=e.collectionName}execute(e,t,n){const r={collStats:this.collectionName};null!=this.options.scale&&(r.scale=this.options.scale),super.executeCommand(e,t,r,n)}}t.CollStatsOperation=s;class o extends r.CommandOperation{constructor(e,t){super(e,t),this.options=t}execute(e,t,n){const r={dbStats:!0};null!=this.options.scale&&(r.scale=this.options.scale),super.executeCommand(e,t,r,n)}}t.DbStatsOperation=o,(0,i.defineAspects)(s,[i.Aspect.READ_OPERATION]),(0,i.defineAspects)(o,[i.Aspect.READ_OPERATION])},5556:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeUpdateStatement=t.ReplaceOneOperation=t.UpdateManyOperation=t.UpdateOneOperation=t.UpdateOperation=void 0;const r=n(4947),i=n(2229),s=n(8945),o=n(5172);class a extends s.CommandOperation{constructor(e,t,n){super(void 0,n),this.options=n,this.ns=e,this.statements=t}get canRetryWrite(){return!1!==super.canRetryWrite&&this.statements.every((e=>null==e.multi||!1===e.multi))}execute(e,t,n){var s;const o=null!==(s=this.options)&&void 0!==s?s:{},a="boolean"!=typeof o.ordered||o.ordered,u={update:this.ns.collection,updates:this.statements,ordered:a};"boolean"==typeof o.bypassDocumentValidation&&(u.bypassDocumentValidation=o.bypassDocumentValidation),o.let&&(u.let=o.let),void 0!==o.comment&&(u.comment=o.comment);const l=this.statements.find((e=>!!e.collation));(0,i.collationNotSupported)(e,o)||l&&(0,i.collationNotSupported)(e,l)?n(new r.MongoCompatibilityError(`Server ${e.name} does not support collation`)):(this.writeConcern&&0===this.writeConcern.w||(0,i.maxWireVersion)(e)<5)&&this.statements.find((e=>e.hint))?n(new r.MongoCompatibilityError("Servers < 3.4 do not support hint on update")):this.explain&&(0,i.maxWireVersion)(e)<3?n(new r.MongoCompatibilityError(`Server ${e.name} does not support explain on update`)):this.statements.some((e=>!!e.arrayFilters))&&(0,i.maxWireVersion)(e)<6?n(new r.MongoCompatibilityError('Option "arrayFilters" is only supported on MongoDB 3.6+')):super.executeCommand(e,t,u,n)}}t.UpdateOperation=a;class u extends a{constructor(e,t,n,s){if(super(e.s.namespace,[p(t,n,{...s,multi:!1})],s),!(0,i.hasAtomicOperators)(n))throw new r.MongoInvalidArgumentError("Update document requires atomic operators")}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||!t?n(e):null!=this.explain?n(void 0,t):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}t.UpdateOneOperation=u;class l extends a{constructor(e,t,n,s){if(super(e.s.namespace,[p(t,n,{...s,multi:!0})],s),!(0,i.hasAtomicOperators)(n))throw new r.MongoInvalidArgumentError("Update document requires atomic operators")}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||!t?n(e):null!=this.explain?n(void 0,t):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}t.UpdateManyOperation=l;class c extends a{constructor(e,t,n,s){if(super(e.s.namespace,[p(t,n,{...s,multi:!1})],s),(0,i.hasAtomicOperators)(n))throw new r.MongoInvalidArgumentError("Replacement document must not contain atomic operators")}execute(e,t,n){super.execute(e,t,((e,t)=>{var i,s;return e||!t?n(e):null!=this.explain?n(void 0,t):t.code?n(new r.MongoServerError(t)):t.writeErrors?n(new r.MongoServerError(t.writeErrors[0])):void n(void 0,{acknowledged:null===(s=0!==(null===(i=this.writeConcern)||void 0===i?void 0:i.w))||void 0===s||s,modifiedCount:null!=t.nModified?t.nModified:t.n,upsertedId:Array.isArray(t.upserted)&&t.upserted.length>0?t.upserted[0]._id:null,upsertedCount:Array.isArray(t.upserted)&&t.upserted.length?t.upserted.length:0,matchedCount:Array.isArray(t.upserted)&&t.upserted.length>0?0:t.n})}))}}function p(e,t,n){if(null==e||"object"!=typeof e)throw new r.MongoInvalidArgumentError("Selector must be a valid JavaScript object");if(null==t||"object"!=typeof t)throw new r.MongoInvalidArgumentError("Document must be a valid JavaScript object");const i={q:e,u:t};return"boolean"==typeof n.upsert&&(i.upsert=n.upsert),n.multi&&(i.multi=n.multi),n.hint&&(i.hint=n.hint),n.arrayFilters&&(i.arrayFilters=n.arrayFilters),n.collation&&(i.collation=n.collation),i}t.ReplaceOneOperation=c,t.makeUpdateStatement=p,(0,o.defineAspects)(a,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION,o.Aspect.SKIP_COLLATION]),(0,o.defineAspects)(u,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION]),(0,o.defineAspects)(l,[o.Aspect.WRITE_OPERATION,o.Aspect.EXPLAINABLE,o.Aspect.SKIP_COLLATION]),(0,o.defineAspects)(c,[o.Aspect.RETRYABLE,o.Aspect.WRITE_OPERATION,o.Aspect.SKIP_COLLATION])},6540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidateCollectionOperation=void 0;const r=n(4947),i=n(8945);class s extends i.CommandOperation{constructor(e,t,n){const r={validate:t},i=Object.keys(n);for(let e=0;e<i.length;e++)Object.prototype.hasOwnProperty.call(n,i[e])&&"session"!==i[e]&&(r[i[e]]=n[i[e]]);super(e.s.db,n),this.options=n,this.command=r,this.collectionName=t}execute(e,t,n){const i=this.collectionName;super.executeCommand(e,t,this.command,((e,t)=>null!=e?n(e):0===t.ok?n(new r.MongoRuntimeError("Error with validate command")):null!=t.result&&"string"!=typeof t.result?n(new r.MongoRuntimeError("Error with validation data")):null!=t.result&&null!=t.result.match(/exception|corrupt/)?n(new r.MongoRuntimeError(`Invalid collection ${i}`)):null==t.valid||t.valid?n(void 0,t):n(new r.MongoRuntimeError(`Invalid collection ${i}`))))}}t.ValidateCollectionOperation=s},4782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PromiseProvider=void 0;const r=n(4947),i=Symbol("promise"),s={[i]:void 0};class o{static validate(e){if("function"!=typeof e)throw new r.MongoInvalidArgumentError(`Promise must be a function, got ${e}`);return!!e}static set(e){o.validate(e)&&(s[i]=e)}static get(){return s[i]}}t.PromiseProvider=o,o.set(n.g.Promise)},3389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadConcern=t.ReadConcernLevel=void 0,t.ReadConcernLevel=Object.freeze({local:"local",majority:"majority",linearizable:"linearizable",available:"available",snapshot:"snapshot"});class n{constructor(e){var n;this.level=null!==(n=t.ReadConcernLevel[e])&&void 0!==n?n:e}static fromOptions(e){if(null!=e){if(e.readConcern){const{readConcern:t}=e;if(t instanceof n)return t;if("string"==typeof t)return new n(t);if("level"in t&&t.level)return new n(t.level)}return e.level?new n(e.level):void 0}}static get MAJORITY(){return t.ReadConcernLevel.majority}static get AVAILABLE(){return t.ReadConcernLevel.available}static get LINEARIZABLE(){return t.ReadConcernLevel.linearizable}static get SNAPSHOT(){return t.ReadConcernLevel.snapshot}toJSON(){return{level:this.level}}}t.ReadConcern=n},1228:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadPreference=t.ReadPreferenceMode=void 0;const r=n(4947);t.ReadPreferenceMode=Object.freeze({primary:"primary",primaryPreferred:"primaryPreferred",secondary:"secondary",secondaryPreferred:"secondaryPreferred",nearest:"nearest"});class i{constructor(e,t,n){if(!i.isValid(e))throw new r.MongoInvalidArgumentError(`Invalid read preference mode ${JSON.stringify(e)}`);if(null!=n||"object"!=typeof t||Array.isArray(t)){if(t&&!Array.isArray(t))throw new r.MongoInvalidArgumentError("ReadPreference tags must be an array")}else n=t,t=void 0;if(this.mode=e,this.tags=t,this.hedge=null==n?void 0:n.hedge,this.maxStalenessSeconds=void 0,this.minWireVersion=void 0,null!=(n=null!=n?n:{}).maxStalenessSeconds){if(n.maxStalenessSeconds<=0)throw new r.MongoInvalidArgumentError("maxStalenessSeconds must be a positive integer");this.maxStalenessSeconds=n.maxStalenessSeconds,this.minWireVersion=5}if(this.mode===i.PRIMARY){if(this.tags&&Array.isArray(this.tags)&&this.tags.length>0)throw new r.MongoInvalidArgumentError("Primary read preference cannot be combined with tags");if(this.maxStalenessSeconds)throw new r.MongoInvalidArgumentError("Primary read preference cannot be combined with maxStalenessSeconds");if(this.hedge)throw new r.MongoInvalidArgumentError("Primary read preference cannot be combined with hedge")}}get preference(){return this.mode}static fromString(e){return new i(e)}static fromOptions(e){var t,n,r;if(!e)return;const s=null!==(t=e.readPreference)&&void 0!==t?t:null===(n=e.session)||void 0===n?void 0:n.transaction.options.readPreference,o=e.readPreferenceTags;if(null!=s){if("string"==typeof s)return new i(s,o,{maxStalenessSeconds:e.maxStalenessSeconds,hedge:e.hedge});if(!(s instanceof i)&&"object"==typeof s){const t=s.mode||s.preference;if(t&&"string"==typeof t)return new i(t,null!==(r=s.tags)&&void 0!==r?r:o,{maxStalenessSeconds:s.maxStalenessSeconds,hedge:e.hedge})}return o&&(s.tags=o),s}}static translate(e){if(null==e.readPreference)return e;const t=e.readPreference;if("string"==typeof t)e.readPreference=new i(t);else if(!t||t instanceof i||"object"!=typeof t){if(!(t instanceof i))throw new r.MongoInvalidArgumentError(`Invalid read preference: ${t}`)}else{const n=t.mode||t.preference;n&&"string"==typeof n&&(e.readPreference=new i(n,t.tags,{maxStalenessSeconds:t.maxStalenessSeconds}))}return e}static isValid(e){return new Set([i.PRIMARY,i.PRIMARY_PREFERRED,i.SECONDARY,i.SECONDARY_PREFERRED,i.NEAREST,null]).has(e)}isValid(e){return i.isValid("string"==typeof e?e:this.mode)}slaveOk(){return this.secondaryOk()}secondaryOk(){return new Set([i.PRIMARY_PREFERRED,i.SECONDARY,i.SECONDARY_PREFERRED,i.NEAREST]).has(this.mode)}equals(e){return e.mode===this.mode}toJSON(){const e={mode:this.mode};return Array.isArray(this.tags)&&(e.tags=this.tags),this.maxStalenessSeconds&&(e.maxStalenessSeconds=this.maxStalenessSeconds),this.hedge&&(e.hedge=this.hedge),e}}t.ReadPreference=i,i.PRIMARY=t.ReadPreferenceMode.primary,i.PRIMARY_PREFERRED=t.ReadPreferenceMode.primaryPreferred,i.SECONDARY=t.ReadPreferenceMode.secondary,i.SECONDARY_PREFERRED=t.ReadPreferenceMode.secondaryPreferred,i.NEAREST=t.ReadPreferenceMode.nearest,i.primary=new i(t.ReadPreferenceMode.primary),i.primaryPreferred=new i(t.ReadPreferenceMode.primaryPreferred),i.secondary=new i(t.ReadPreferenceMode.secondary),i.secondaryPreferred=new i(t.ReadPreferenceMode.secondaryPreferred),i.nearest=new i(t.ReadPreferenceMode.nearest)},5896:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._advanceClusterTime=t.drainTimerQueue=t.ServerType=t.TopologyType=t.STATE_CONNECTED=t.STATE_CONNECTING=t.STATE_CLOSED=t.STATE_CLOSING=void 0,t.STATE_CLOSING="closing",t.STATE_CLOSED="closed",t.STATE_CONNECTING="connecting",t.STATE_CONNECTED="connected",t.TopologyType=Object.freeze({Single:"Single",ReplicaSetNoPrimary:"ReplicaSetNoPrimary",ReplicaSetWithPrimary:"ReplicaSetWithPrimary",Sharded:"Sharded",Unknown:"Unknown",LoadBalanced:"LoadBalanced"}),t.ServerType=Object.freeze({Standalone:"Standalone",Mongos:"Mongos",PossiblePrimary:"PossiblePrimary",RSPrimary:"RSPrimary",RSSecondary:"RSSecondary",RSArbiter:"RSArbiter",RSOther:"RSOther",RSGhost:"RSGhost",Unknown:"Unknown",LoadBalancer:"LoadBalancer"}),t.drainTimerQueue=function(e){e.forEach(clearTimeout),e.clear()},t._advanceClusterTime=function(e,t){(null==e.clusterTime||t.clusterTime.greaterThan(e.clusterTime.clusterTime))&&(e.clusterTime=t)}},8214:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerHeartbeatFailedEvent=t.ServerHeartbeatSucceededEvent=t.ServerHeartbeatStartedEvent=t.TopologyClosedEvent=t.TopologyOpeningEvent=t.TopologyDescriptionChangedEvent=t.ServerClosedEvent=t.ServerOpeningEvent=t.ServerDescriptionChangedEvent=void 0,t.ServerDescriptionChangedEvent=class{constructor(e,t,n,r){this.topologyId=e,this.address=t,this.previousDescription=n,this.newDescription=r}},t.ServerOpeningEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.ServerClosedEvent=class{constructor(e,t){this.topologyId=e,this.address=t}},t.TopologyDescriptionChangedEvent=class{constructor(e,t,n){this.topologyId=e,this.previousDescription=t,this.newDescription=n}},t.TopologyOpeningEvent=class{constructor(e){this.topologyId=e}},t.TopologyClosedEvent=class{constructor(e){this.topologyId=e}},t.ServerHeartbeatStartedEvent=class{constructor(e){this.connectionId=e}},t.ServerHeartbeatSucceededEvent=class{constructor(e,t,n){this.connectionId=e,this.duration=t,this.reply=null!=n?n:{}}},t.ServerHeartbeatFailedEvent=class{constructor(e,t,n){this.connectionId=e,this.duration=t,this.failure=n}}},2295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RTTPinger=t.Monitor=void 0;const r=n(9064),i=n(231),s=n(8345),o=n(5006),a=n(4947),u=n(334),l=n(2229),c=n(5896),p=n(8214),h=n(8631),d=Symbol("server"),f=Symbol("monitorId"),m=Symbol("connection"),g=Symbol("cancellationToken"),E=Symbol("rttPinger"),y=Symbol("roundTripTime"),v="idle",A="monitoring",C=(0,l.makeStateMachine)({[c.STATE_CLOSING]:[c.STATE_CLOSING,v,c.STATE_CLOSED],[c.STATE_CLOSED]:[c.STATE_CLOSED,A],[v]:[v,A,c.STATE_CLOSING],[A]:[A,v,c.STATE_CLOSING]}),b=new Set([c.STATE_CLOSING,c.STATE_CLOSED,A]);function S(e){return e.s.state===c.STATE_CLOSED||e.s.state===c.STATE_CLOSING}class x extends u.TypedEventEmitter{constructor(e,t){var n,r,i;super(),this[d]=e,this[m]=void 0,this[g]=new u.CancellationToken,this[g].setMaxListeners(1/0),this[f]=void 0,this.s={state:c.STATE_CLOSED},this.address=e.description.address,this.options=Object.freeze({connectTimeoutMS:null!==(n=t.connectTimeoutMS)&&void 0!==n?n:1e4,heartbeatFrequencyMS:null!==(r=t.heartbeatFrequencyMS)&&void 0!==r?r:1e4,minHeartbeatFrequencyMS:null!==(i=t.minHeartbeatFrequencyMS)&&void 0!==i?i:500});const o=this[g],a=Object.assign({id:"<monitor>",generation:e.s.pool.generation,connectionType:s.Connection,cancellationToken:o,hostAddress:e.description.hostAddress},t,{raw:!1,promoteLongs:!0,promoteValues:!0,promoteBuffers:!0});delete a.credentials,a.autoEncrypter&&delete a.autoEncrypter,this.connectOptions=Object.freeze(a)}connect(){if(this.s.state!==c.STATE_CLOSED)return;const e=this.options.heartbeatFrequencyMS,t=this.options.minHeartbeatFrequencyMS;this[f]=(0,l.makeInterruptibleAsyncInterval)(D(this),{interval:e,minInterval:t,immediate:!0})}requestCheck(){var e;b.has(this.s.state)||null===(e=this[f])||void 0===e||e.wake()}reset(){const e=this[d].description.topologyVersion;if(S(this)||null==e)return;C(this,c.STATE_CLOSING),w(this),C(this,v);const t=this.options.heartbeatFrequencyMS,n=this.options.minHeartbeatFrequencyMS;this[f]=(0,l.makeInterruptibleAsyncInterval)(D(this),{interval:t,minInterval:n})}close(){S(this)||(C(this,c.STATE_CLOSING),w(this),this.emit("close"),C(this,c.STATE_CLOSED))}}function w(e){var t,n,r;null===(t=e[f])||void 0===t||t.stop(),e[f]=void 0,null===(n=e[E])||void 0===n||n.close(),e[E]=void 0,e[g].emit("cancel"),null===(r=e[m])||void 0===r||r.destroy({force:!0}),e[m]=void 0}function D(e){return t=>{function n(){S(e)||C(e,v),t()}C(e,A),function(e,t){let n=(0,l.now)();function s(r){var i;null===(i=e[m])||void 0===i||i.destroy({force:!0}),e[m]=void 0,e.emit(h.Server.SERVER_HEARTBEAT_FAILED,new p.ServerHeartbeatFailedEvent(e.address,(0,l.calculateDurationInMs)(n),r)),e.emit("resetServer",r),e.emit("resetConnectionPool"),t(r)}e.emit(h.Server.SERVER_HEARTBEAT_STARTED,new p.ServerHeartbeatStartedEvent(e.address));const u=e[m];if(u&&!u.closed){const{serverApi:i,helloOk:a}=u,f=e.options.connectTimeoutMS,m=e.options.heartbeatFrequencyMS,y=e[d].description.topologyVersion,v=null!=y,A={[(null==i?void 0:i.version)||a?"hello":o.LEGACY_HELLO_COMMAND]:!0,...v&&y?{maxAwaitTimeMS:m,topologyVersion:(c=y,{processId:c.processId,counter:r.Long.isLong(c.counter)?c.counter:r.Long.fromNumber(c.counter)})}:{}},C=v?{socketTimeoutMS:f?f+m:0,exhaustAllowed:!0}:{socketTimeoutMS:f};return v&&null==e[E]&&(e[E]=new _(e[g],Object.assign({heartbeatFrequencyMS:e.options.heartbeatFrequencyMS},e.connectOptions))),void u.command((0,l.ns)("admin.$cmd"),A,C,((r,i)=>{var a;if(r)return s(r);"isWritablePrimary"in i||(i.isWritablePrimary=i[o.LEGACY_HELLO_COMMAND]);const u=e[E],c=v&&u?u.roundTripTime:(0,l.calculateDurationInMs)(n);e.emit(h.Server.SERVER_HEARTBEAT_SUCCEEDED,new p.ServerHeartbeatSucceededEvent(e.address,c,i)),v&&i.topologyVersion?(e.emit(h.Server.SERVER_HEARTBEAT_STARTED,new p.ServerHeartbeatStartedEvent(e.address)),n=(0,l.now)()):(null===(a=e[E])||void 0===a||a.close(),e[E]=void 0,t(void 0,i))}))}var c;(0,i.connect)(e.connectOptions,((r,i)=>{if(r)return e[m]=void 0,r instanceof a.MongoNetworkError||e.emit("resetConnectionPool"),void s(r);if(i){if(S(e))return void i.destroy({force:!0});e[m]=i,e.emit(h.Server.SERVER_HEARTBEAT_SUCCEEDED,new p.ServerHeartbeatSucceededEvent(e.address,(0,l.calculateDurationInMs)(n),i.hello)),t(void 0,i.hello)}}))}(e,((t,r)=>{if(t&&e[d].description.type===c.ServerType.Unknown)return e.emit("resetServer",t),n();r&&r.topologyVersion&&setTimeout((()=>{var t;S(e)||null===(t=e[f])||void 0===t||t.wake()}),0),n()}))}}t.Monitor=x;class _{constructor(e,t){this[m]=void 0,this[g]=e,this[y]=0,this.closed=!1;const n=t.heartbeatFrequencyMS;this[f]=setTimeout((()=>O(this,t)),n)}get roundTripTime(){return this[y]}close(){var e;this.closed=!0,clearTimeout(this[f]),null===(e=this[m])||void 0===e||e.destroy({force:!0}),this[m]=void 0}}function O(e,t){const n=(0,l.now)();t.cancellationToken=e[g];const r=t.heartbeatFrequencyMS;if(e.closed)return;function s(i){e.closed?null==i||i.destroy({force:!0}):(null==e[m]&&(e[m]=i),e[y]=(0,l.calculateDurationInMs)(n),e[f]=setTimeout((()=>O(e,t)),r))}const a=e[m];null!=a?a.command((0,l.ns)("admin.$cmd"),{[o.LEGACY_HELLO_COMMAND]:1},void 0,(t=>{if(t)return e[m]=void 0,void(e[y]=0);s()})):(0,i.connect)(t,((t,n)=>{if(t)return e[m]=void 0,void(e[y]=0);s(n)}))}t.RTTPinger=_},8631:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const r=n(8345),i=n(8343),s=n(5006),o=n(4947),a=n(6326),u=n(334),l=n(6204),c=n(2229),p=n(5896),h=n(2295),d=n(9735),f=(0,c.makeStateMachine)({[p.STATE_CLOSED]:[p.STATE_CLOSED,p.STATE_CONNECTING],[p.STATE_CONNECTING]:[p.STATE_CONNECTING,p.STATE_CLOSING,p.STATE_CONNECTED,p.STATE_CLOSED],[p.STATE_CONNECTED]:[p.STATE_CONNECTED,p.STATE_CLOSING,p.STATE_CLOSED],[p.STATE_CLOSING]:[p.STATE_CLOSING,p.STATE_CLOSED]}),m=Symbol("monitor");class g extends u.TypedEventEmitter{constructor(e,t,n){super(),this.serverApi=n.serverApi;const o={hostAddress:t.hostAddress,...n};this.s={description:t,options:n,logger:new a.Logger("Server"),state:p.STATE_CLOSED,topology:e,pool:new i.ConnectionPool(o),operationCount:0};for(const e of[...s.CMAP_EVENTS,...s.APM_EVENTS])this.s.pool.on(e,(t=>this.emit(e,t)));if(this.s.pool.on(r.Connection.CLUSTER_TIME_RECEIVED,(e=>{this.clusterTime=e})),this.loadBalanced)return void(this[m]=null);const u=new h.Monitor(this,this.s.options);this[m]=u;for(const e of s.HEARTBEAT_EVENTS)u.on(e,(t=>this.emit(e,t)));u.on("resetConnectionPool",(()=>{this.s.pool.clear()})),u.on("resetServer",(e=>y(this,e))),u.on(g.SERVER_HEARTBEAT_SUCCEEDED,(e=>{this.emit(g.DESCRIPTION_RECEIVED,new d.ServerDescription(this.description.hostAddress,e.reply,{roundTripTime:E(this.description.roundTripTime,e.duration)})),this.s.state===p.STATE_CONNECTING&&(f(this,p.STATE_CONNECTED),this.emit(g.CONNECT,this))}))}get clusterTime(){return this.s.topology.clusterTime}set clusterTime(e){this.s.topology.clusterTime=e}get description(){return this.s.description}get name(){return this.s.description.address}get autoEncrypter(){if(this.s.options&&this.s.options.autoEncrypter)return this.s.options.autoEncrypter}get loadBalanced(){return this.s.topology.description.type===p.TopologyType.LoadBalanced}connect(){var e;this.s.state===p.STATE_CLOSED&&(f(this,p.STATE_CONNECTING),this.loadBalanced?(f(this,p.STATE_CONNECTED),this.emit(g.CONNECT,this)):null===(e=this[m])||void 0===e||e.connect())}destroy(e,t){var n;"function"==typeof e&&(t=e,e={}),e=Object.assign({},{force:!1},e),this.s.state!==p.STATE_CLOSED?(f(this,p.STATE_CLOSING),this.loadBalanced||null===(n=this[m])||void 0===n||n.close(),this.s.pool.close(e,(e=>{f(this,p.STATE_CLOSED),this.emit("closed"),"function"==typeof t&&t(e)}))):"function"==typeof t&&t()}requestCheck(){var e;this.loadBalanced||null===(e=this[m])||void 0===e||e.requestCheck()}command(e,t,n,r){if(null==r)throw new o.MongoInvalidArgumentError("Callback must be provided");if(null==e.db||"string"==typeof e)throw new o.MongoInvalidArgumentError("Namespace must not be a string");if(this.s.state===p.STATE_CLOSING||this.s.state===p.STATE_CLOSED)return void r(new o.MongoServerClosedError);const i=Object.assign({},n,{wireProtocolCommand:!1});if(i.omitReadPreference&&delete i.readPreference,(0,c.collationNotSupported)(this,t))return void r(new o.MongoCompatibilityError(`Server ${this.name} does not support collation`));const s=i.session,a=null==s?void 0:s.pinnedConnection;this.loadBalanced&&s&&null==a&&function(e,t){return!!t&&(t.inTransaction()||"aggregate"in e||"find"in e||"getMore"in e||"listCollections"in e||"listIndexes"in e)}(t,s)?this.s.pool.checkOut(((n,o)=>{if(n||null==o)return r?r(n):void 0;s.pin(o),this.command(e,t,i,r)})):(this.s.operationCount+=1,this.s.pool.withConnection(a,((n,r,s)=>{if(n||!r)return this.s.operationCount-=1,y(this,n),s(n);r.command(e,t,i,C(this,r,t,i,((e,t)=>{this.s.operationCount-=1,s(e,t)})))}),r))}getMore(e,t,n,r){var i;this.s.state!==p.STATE_CLOSING&&this.s.state!==p.STATE_CLOSED?(this.s.operationCount+=1,this.s.pool.withConnection(null===(i=n.session)||void 0===i?void 0:i.pinnedConnection,((r,i,s)=>{if(r||!i)return this.s.operationCount-=1,y(this,r),s(r);i.getMore(e,t,n,C(this,i,{},n,((e,t)=>{this.s.operationCount-=1,s(e,t)})))}),r)):r(new o.MongoServerClosedError)}killCursors(e,t,n,r){var i;this.s.state!==p.STATE_CLOSING&&this.s.state!==p.STATE_CLOSED?(this.s.operationCount+=1,this.s.pool.withConnection(null===(i=n.session)||void 0===i?void 0:i.pinnedConnection,((r,i,s)=>{if(r||!i)return this.s.operationCount-=1,y(this,r),s(r);i.killCursors(e,t,n,C(this,i,{},void 0,((e,t)=>{this.s.operationCount-=1,s(e,t)})))}),r)):"function"==typeof r&&r(new o.MongoServerClosedError)}}function E(e,t){return-1===e?t:.2*t+.8*e}function y(e,t){var n;e.loadBalanced||(t instanceof o.MongoNetworkError&&!(t instanceof o.MongoNetworkTimeoutError)&&(null===(n=e[m])||void 0===n||n.reset()),e.emit(g.DESCRIPTION_RECEIVED,new d.ServerDescription(e.description.hostAddress,void 0,{error:t,topologyVersion:t&&t.topologyVersion?t.topologyVersion:e.description.topologyVersion})))}function v(e,t){return e&&e.inTransaction()&&!(0,l.isTransactionCommand)(t)}function A(e){return!1!==e.s.options.retryWrites}function C(e,t,n,r,i){const s=null==r?void 0:r.session;return function(r,a){return null!=a?i(void 0,a):r?r instanceof o.MongoError?(function(e,t){return t.serviceId?t.generation!==e.serviceGenerations.get(t.serviceId.toHexString()):t.generation!==e.generation}(e.s.pool,t)||(r instanceof o.MongoNetworkError?(s&&!s.hasEnded&&s.serverSession&&(s.serverSession.isDirty=!0),v(s,n)&&!r.hasErrorLabel(o.MongoErrorLabel.TransientTransactionError)&&r.addErrorLabel(o.MongoErrorLabel.TransientTransactionError),(A(e.s.topology)||(0,l.isTransactionCommand)(n))&&(0,c.supportsRetryableWrites)(e)&&!v(s,n)&&r.addErrorLabel(o.MongoErrorLabel.RetryableWriteError),r instanceof o.MongoNetworkTimeoutError&&!(0,o.isNetworkErrorBeforeHandshake)(r)||(e.s.pool.clear(t.serviceId),e.loadBalanced||y(e,r))):((A(e.s.topology)||(0,l.isTransactionCommand)(n))&&(0,o.needsRetryableWriteLabel)(r,(0,c.maxWireVersion)(e))&&!v(s,n)&&r.addErrorLabel(o.MongoErrorLabel.RetryableWriteError),(0,o.isSDAMUnrecoverableError)(r)&&function(e,t){const n=t.topologyVersion,r=e.description.topologyVersion;return(0,d.compareTopologyVersion)(r,n)<0}(e,r)&&(((0,c.maxWireVersion)(e)<=7||(0,o.isNodeShuttingDownError)(r))&&e.s.pool.clear(t.serviceId),e.loadBalanced||(y(e,r),process.nextTick((()=>e.requestCheck()))))),s&&s.isPinned&&r.hasErrorLabel(o.MongoErrorLabel.TransientTransactionError)&&s.unpin({force:!0})),i(r)):i(r):i(new o.MongoUnexpectedServerResponseError("Empty response with no error"))}}t.Server=g,g.SERVER_HEARTBEAT_STARTED=s.SERVER_HEARTBEAT_STARTED,g.SERVER_HEARTBEAT_SUCCEEDED=s.SERVER_HEARTBEAT_SUCCEEDED,g.SERVER_HEARTBEAT_FAILED=s.SERVER_HEARTBEAT_FAILED,g.CONNECT=s.CONNECT,g.DESCRIPTION_RECEIVED=s.DESCRIPTION_RECEIVED,g.CLOSED=s.CLOSED,g.ENDED=s.ENDED},9735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareTopologyVersion=t.parseServerType=t.ServerDescription=void 0;const r=n(9064),i=n(2229),s=n(5896),o=new Set([s.ServerType.RSPrimary,s.ServerType.Standalone,s.ServerType.Mongos,s.ServerType.LoadBalancer]),a=new Set([s.ServerType.RSPrimary,s.ServerType.RSSecondary,s.ServerType.Mongos,s.ServerType.Standalone,s.ServerType.LoadBalancer]);function u(e,t){return(null==t?void 0:t.loadBalanced)?s.ServerType.LoadBalancer:e&&e.ok?e.isreplicaset?s.ServerType.RSGhost:e.msg&&"isdbgrid"===e.msg?s.ServerType.Mongos:e.setName?e.hidden?s.ServerType.RSOther:e.isWritablePrimary?s.ServerType.RSPrimary:e.secondary?s.ServerType.RSSecondary:e.arbiterOnly?s.ServerType.RSArbiter:s.ServerType.RSOther:s.ServerType.Standalone:s.ServerType.Unknown}function l(e,t){if(null==e||null==t)return-1;if(e.processId.equals(t.processId)){const n=r.Long.isLong(e.counter)?e.counter:r.Long.fromNumber(e.counter),i=r.Long.isLong(t.counter)?e.counter:r.Long.fromNumber(t.counter);return n.compare(i)}return-1}t.ServerDescription=class{constructor(e,t,n){var r,s,o,a,l,c,p,h,d,f,m,g;"string"==typeof e?(this._hostAddress=new i.HostAddress(e),this.address=this._hostAddress.toString()):(this._hostAddress=e,this.address=this._hostAddress.toString()),this.type=u(t,n),this.hosts=null!==(s=null===(r=null==t?void 0:t.hosts)||void 0===r?void 0:r.map((e=>e.toLowerCase())))&&void 0!==s?s:[],this.passives=null!==(a=null===(o=null==t?void 0:t.passives)||void 0===o?void 0:o.map((e=>e.toLowerCase())))&&void 0!==a?a:[],this.arbiters=null!==(c=null===(l=null==t?void 0:t.arbiters)||void 0===l?void 0:l.map((e=>e.toLowerCase())))&&void 0!==c?c:[],this.tags=null!==(p=null==t?void 0:t.tags)&&void 0!==p?p:{},this.minWireVersion=null!==(h=null==t?void 0:t.minWireVersion)&&void 0!==h?h:0,this.maxWireVersion=null!==(d=null==t?void 0:t.maxWireVersion)&&void 0!==d?d:0,this.roundTripTime=null!==(f=null==n?void 0:n.roundTripTime)&&void 0!==f?f:-1,this.lastUpdateTime=(0,i.now)(),this.lastWriteDate=null!==(g=null===(m=null==t?void 0:t.lastWrite)||void 0===m?void 0:m.lastWriteDate)&&void 0!==g?g:0,(null==n?void 0:n.topologyVersion)?this.topologyVersion=n.topologyVersion:(null==t?void 0:t.topologyVersion)&&(this.topologyVersion=t.topologyVersion),(null==n?void 0:n.error)&&(this.error=n.error),(null==t?void 0:t.primary)&&(this.primary=t.primary),(null==t?void 0:t.me)&&(this.me=t.me.toLowerCase()),(null==t?void 0:t.setName)&&(this.setName=t.setName),(null==t?void 0:t.setVersion)&&(this.setVersion=t.setVersion),(null==t?void 0:t.electionId)&&(this.electionId=t.electionId),(null==t?void 0:t.logicalSessionTimeoutMinutes)&&(this.logicalSessionTimeoutMinutes=t.logicalSessionTimeoutMinutes),(null==t?void 0:t.$clusterTime)&&(this.$clusterTime=t.$clusterTime)}get hostAddress(){return this._hostAddress?this._hostAddress:new i.HostAddress(this.address)}get allHosts(){return this.hosts.concat(this.arbiters).concat(this.passives)}get isReadable(){return this.type===s.ServerType.RSSecondary||this.isWritable}get isDataBearing(){return a.has(this.type)}get isWritable(){return o.has(this.type)}get host(){const e=`:${this.port}`.length;return this.address.slice(0,-e)}get port(){const e=this.address.split(":").pop();return e?Number.parseInt(e,10):27017}equals(e){const t=this.topologyVersion===e.topologyVersion||0===l(this.topologyVersion,e.topologyVersion),n=this.electionId&&e.electionId?e.electionId&&this.electionId.equals(e.electionId):this.electionId===e.electionId;return null!=e&&(0,i.errorStrictEqual)(this.error,e.error)&&this.type===e.type&&this.minWireVersion===e.minWireVersion&&(0,i.arrayStrictEqual)(this.hosts,e.hosts)&&function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>t[n]===e[n]))}(this.tags,e.tags)&&this.setName===e.setName&&this.setVersion===e.setVersion&&n&&this.primary===e.primary&&this.logicalSessionTimeoutMinutes===e.logicalSessionTimeoutMinutes&&t}},t.parseServerType=u,t.compareTopologyVersion=l},114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readPreferenceServerSelector=t.secondaryWritableServerSelector=t.sameServerSelector=t.writableServerSelector=t.MIN_SECONDARY_WRITE_WIRE_VERSION=void 0;const r=n(4947),i=n(1228),s=n(5896);function o(e,t){const n=Object.keys(e),r=Object.keys(t);for(let i=0;i<n.length;++i){const s=n[i];if(-1===r.indexOf(s)||t[s]!==e[s])return!1}return!0}function a(e,t){const n=t.reduce(((e,t)=>-1===e?t.roundTripTime:Math.min(t.roundTripTime,e)),-1),r=n+e.localThresholdMS;return t.reduce(((e,t)=>(t.roundTripTime<=r&&t.roundTripTime>=n&&e.push(t),e)),[])}function u(e){return e.type===s.ServerType.RSPrimary}function l(e){return e.type===s.ServerType.RSSecondary}function c(e){return e.type===s.ServerType.RSSecondary||e.type===s.ServerType.RSPrimary}function p(e){return e.type!==s.ServerType.Unknown}function h(e){return e.type===s.ServerType.LoadBalancer}function d(e){if(!e.isValid())throw new r.MongoInvalidArgumentError("Invalid read preference specified");return(t,n)=>{const d=t.commonWireVersion;if(d&&e.minWireVersion&&e.minWireVersion>d)throw new r.MongoCompatibilityError(`Minimum wire version '${e.minWireVersion}' required, but found '${d}'`);if(t.type===s.TopologyType.LoadBalanced)return n.filter(h);if(t.type===s.TopologyType.Unknown)return[];if(t.type===s.TopologyType.Single||t.type===s.TopologyType.Sharded)return a(t,n.filter(p));const f=e.mode;if(f===i.ReadPreference.PRIMARY)return n.filter(u);if(f===i.ReadPreference.PRIMARY_PREFERRED){const e=n.filter(u);if(e.length)return e}const m=f===i.ReadPreference.NEAREST?c:l,g=a(t,function(e,t){if(null==e.tags||Array.isArray(e.tags)&&0===e.tags.length)return t;for(let n=0;n<e.tags.length;++n){const r=e.tags[n],i=t.reduce(((e,t)=>(o(r,t.tags)&&e.push(t),e)),[]);if(i.length)return i}return[]}(e,function(e,t,n){if(null==e.maxStalenessSeconds||e.maxStalenessSeconds<0)return n;const i=e.maxStalenessSeconds,o=(t.heartbeatFrequencyMS+1e4)/1e3;if(i<o)throw new r.MongoInvalidArgumentError(`Option "maxStalenessSeconds" must be at least ${o} seconds`);if(i<90)throw new r.MongoInvalidArgumentError('Option "maxStalenessSeconds" must be at least 90 seconds');if(t.type===s.TopologyType.ReplicaSetWithPrimary){const r=Array.from(t.servers.values()).filter(u)[0];return n.reduce(((n,i)=>{var s;return(i.lastUpdateTime-i.lastWriteDate-(r.lastUpdateTime-r.lastWriteDate)+t.heartbeatFrequencyMS)/1e3<=(null!==(s=e.maxStalenessSeconds)&&void 0!==s?s:0)&&n.push(i),n}),[])}if(t.type===s.TopologyType.ReplicaSetNoPrimary){if(0===n.length)return n;const r=n.reduce(((e,t)=>t.lastWriteDate>e.lastWriteDate?t:e));return n.reduce(((n,i)=>{var s;return(r.lastWriteDate-i.lastWriteDate+t.heartbeatFrequencyMS)/1e3<=(null!==(s=e.maxStalenessSeconds)&&void 0!==s?s:0)&&n.push(i),n}),[])}return n}(e,t,n.filter(m))));return f===i.ReadPreference.SECONDARY_PREFERRED&&0===g.length?n.filter(u):g}}t.MIN_SECONDARY_WRITE_WIRE_VERSION=13,t.writableServerSelector=function(){return(e,t)=>a(e,t.filter((e=>e.isWritable)))},t.sameServerSelector=function(e){return(t,n)=>e?n.filter((t=>t.address===e.address&&t.type!==s.ServerType.Unknown)):[]},t.secondaryWritableServerSelector=function(e,n){return!n||!e||e&&e<t.MIN_SECONDARY_WRITE_WIRE_VERSION?d(i.ReadPreference.primary):d(n)},t.readPreferenceServerSelector=d},8709:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SrvPoller=t.SrvPollingEvent=void 0;const r=n(665),i=n(4947),s=n(6326),o=n(334),a=n(2229);function u(e,t){const n=/^.*?\./,r=`.${e.replace(n,"")}`,i=`.${t.replace(n,"")}`;return r.endsWith(i)}class l{constructor(e){this.srvRecords=e}hostnames(){return new Set(this.srvRecords.map((e=>a.HostAddress.fromSrvRecord(e).toString())))}}t.SrvPollingEvent=l;class c extends o.TypedEventEmitter{constructor(e){var t,n,r;if(super(),!e||!e.srvHost)throw new i.MongoRuntimeError("Options for SrvPoller must exist and include srvHost");this.srvHost=e.srvHost,this.srvMaxHosts=null!==(t=e.srvMaxHosts)&&void 0!==t?t:0,this.srvServiceName=null!==(n=e.srvServiceName)&&void 0!==n?n:"mongodb",this.rescanSrvIntervalMS=6e4,this.heartbeatFrequencyMS=null!==(r=e.heartbeatFrequencyMS)&&void 0!==r?r:1e4,this.logger=new s.Logger("srvPoller",e),this.haMode=!1,this.generation=0,this._timeout=void 0}get srvAddress(){return`_${this.srvServiceName}._tcp.${this.srvHost}`}get intervalMS(){return this.haMode?this.heartbeatFrequencyMS:this.rescanSrvIntervalMS}start(){this._timeout||this.schedule()}stop(){this._timeout&&(clearTimeout(this._timeout),this.generation+=1,this._timeout=void 0)}schedule(){this._timeout&&clearTimeout(this._timeout),this._timeout=setTimeout((()=>this._poll()),this.intervalMS)}success(e){this.haMode=!1,this.schedule(),this.emit(c.SRV_RECORD_DISCOVERY,new l(e))}failure(e,t){this.logger.warn(e,t),this.haMode=!0,this.schedule()}parentDomainMismatch(e){this.logger.warn(`parent domain mismatch on SRV record (${e.name}:${e.port})`,e)}_poll(){const e=this.generation;r.resolveSrv(this.srvAddress,((t,n)=>{if(e!==this.generation)return;if(t)return void this.failure("DNS error",t);const r=[];for(const e of n)u(e.name,this.srvHost)?r.push(e):this.parentDomainMismatch(e);r.length?this.success(r):this.failure("No valid addresses found at host")}))}}t.SrvPoller=c,c.SRV_RECORD_DISCOVERY="srvRecordDiscovery"},9281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerCapabilities=t.Topology=void 0;const r=n(2334),i=n(9064),s=n(2395),o=n(5006),a=n(4947),u=n(334),l=n(1228),c=n(1296),p=n(2229),h=n(5896),d=n(8214),f=n(8631),m=n(9735),g=n(114),E=n(8709),y=n(7411);let v=0;const A=(0,p.makeStateMachine)({[h.STATE_CLOSED]:[h.STATE_CLOSED,h.STATE_CONNECTING],[h.STATE_CONNECTING]:[h.STATE_CONNECTING,h.STATE_CLOSING,h.STATE_CONNECTED,h.STATE_CLOSED],[h.STATE_CONNECTED]:[h.STATE_CONNECTED,h.STATE_CLOSING,h.STATE_CLOSED],[h.STATE_CLOSING]:[h.STATE_CLOSING,h.STATE_CLOSED]}),C=Symbol("cancelled"),b=Symbol("waitQueue");class S extends u.TypedEventEmitter{constructor(e,t){var n;super(),this.bson=Object.create(null),this.bson.serialize=i.serialize,this.bson.deserialize=i.deserialize,t=null!=t?t:{hosts:[p.HostAddress.fromString("localhost:27017")],...Object.fromEntries(s.DEFAULT_OPTIONS.entries()),...Object.fromEntries(s.FEATURE_FLAGS.entries())},"string"==typeof e?e=[p.HostAddress.fromString(e)]:Array.isArray(e)||(e=[e]);const o=[];for(const t of e)if("string"==typeof t)o.push(p.HostAddress.fromString(t));else{if(!(t instanceof p.HostAddress))throw new a.MongoRuntimeError(`Topology cannot be constructed from ${JSON.stringify(t)}`);o.push(t)}const u=function(e){return(null==e?void 0:e.directConnection)?h.TopologyType.Single:(null==e?void 0:e.replicaSet)?h.TopologyType.ReplicaSetNoPrimary:(null==e?void 0:e.loadBalanced)?h.TopologyType.LoadBalanced:h.TopologyType.Unknown}(t),l=v++,d=null==t.srvMaxHosts||0===t.srvMaxHosts||t.srvMaxHosts>=o.length?o:(0,p.shuffle)(o,t.srvMaxHosts),f=new Map;for(const e of d)f.set(e.toString(),new m.ServerDescription(e));this[b]=new r,this.s={id:l,options:t,seedlist:o,state:h.STATE_CLOSED,description:new y.TopologyDescription(u,f,t.replicaSet,void 0,void 0,void 0,t),serverSelectionTimeoutMS:t.serverSelectionTimeoutMS,heartbeatFrequencyMS:t.heartbeatFrequencyMS,minHeartbeatFrequencyMS:t.minHeartbeatFrequencyMS,servers:new Map,sessionPool:new c.ServerSessionPool(this),sessions:new Set,credentials:null==t?void 0:t.credentials,clusterTime:void 0,connectionTimers:new Set,detectShardedTopology:e=>this.detectShardedTopology(e),detectSrvRecords:e=>this.detectSrvRecords(e)},t.srvHost&&!t.loadBalanced&&(this.s.srvPoller=null!==(n=t.srvPoller)&&void 0!==n?n:new E.SrvPoller({heartbeatFrequencyMS:this.s.heartbeatFrequencyMS,srvHost:t.srvHost,srvMaxHosts:t.srvMaxHosts,srvServiceName:t.srvServiceName}),this.on(S.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology))}detectShardedTopology(e){var t,n,r;const i=e.previousDescription.type,s=e.newDescription.type,o=i!==h.TopologyType.Sharded&&s===h.TopologyType.Sharded,a=null===(t=this.s.srvPoller)||void 0===t?void 0:t.listeners(E.SrvPoller.SRV_RECORD_DISCOVERY),u=!!(null==a?void 0:a.includes(this.s.detectSrvRecords));o&&!u&&(null===(n=this.s.srvPoller)||void 0===n||n.on(E.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords),null===(r=this.s.srvPoller)||void 0===r||r.start())}detectSrvRecords(e){const t=this.s.description;this.s.description=this.s.description.updateFromSrvPollingEvent(e,this.s.options.srvMaxHosts),this.s.description!==t&&(D(this),this.emit(S.TOPOLOGY_DESCRIPTION_CHANGED,new d.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description)))}get description(){return this.s.description}get loadBalanced(){return this.s.options.loadBalanced}get capabilities(){return new F(this.lastHello())}connect(e,t){var n;if("function"==typeof e&&(t=e,e={}),e=null!=e?e:{},this.s.state===h.STATE_CONNECTED)return void("function"==typeof t&&t());A(this,h.STATE_CONNECTING),this.emit(S.TOPOLOGY_OPENING,new d.TopologyOpeningEvent(this.s.id)),this.emit(S.TOPOLOGY_DESCRIPTION_CHANGED,new d.TopologyDescriptionChangedEvent(this.s.id,new y.TopologyDescription(h.TopologyType.Unknown),this.s.description));const r=Array.from(this.s.description.servers.values());if(this.s.servers=new Map(r.map((e=>[e.address,w(this,e)]))),this.s.options.loadBalanced)for(const e of r){const t=new m.ServerDescription(e.hostAddress,void 0,{loadBalanced:this.s.options.loadBalanced});this.serverUpdateHandler(t)}const i=null!==(n=e.readPreference)&&void 0!==n?n:l.ReadPreference.primary;this.selectServer((0,g.readPreferenceServerSelector)(i),e,((e,n)=>{if(e)return this.close(),void("function"==typeof t?t(e):this.emit(S.ERROR,e));!0!==this.s.options[Symbol.for("@@mdb.skipPingOnConnect")]&&n&&this.s.credentials?n.command((0,p.ns)("admin.$cmd"),{ping:1},{},(e=>{e?"function"==typeof t?t(e):this.emit(S.ERROR,e):(A(this,h.STATE_CONNECTED),this.emit(S.OPEN,this),this.emit(S.CONNECT,this),"function"==typeof t&&t(void 0,this))})):(A(this,h.STATE_CONNECTED),this.emit(S.OPEN,this),this.emit(S.CONNECT,this),"function"==typeof t&&t(void 0,this))}))}close(e,t){"function"==typeof e&&(t=e,e={}),"boolean"==typeof e&&(e={force:e}),e=null!=e?e:{},this.s.state!==h.STATE_CLOSED&&this.s.state!==h.STATE_CLOSING?(A(this,h.STATE_CLOSING),_(this[b],new a.MongoTopologyClosedError),(0,h.drainTimerQueue)(this.s.connectionTimers),this.s.srvPoller&&(this.s.srvPoller.stop(),this.s.srvPoller.removeListener(E.SrvPoller.SRV_RECORD_DISCOVERY,this.s.detectSrvRecords)),this.removeListener(S.TOPOLOGY_DESCRIPTION_CHANGED,this.s.detectShardedTopology),(0,p.eachAsync)(Array.from(this.s.sessions.values()),((e,t)=>e.endSession(t)),(()=>{this.s.sessionPool.endAllPooledSessions((()=>{(0,p.eachAsync)(Array.from(this.s.servers.values()),((t,n)=>x(t,this,e,n)),(e=>{this.s.servers.clear(),this.emit(S.TOPOLOGY_CLOSED,new d.TopologyClosedEvent(this.s.id)),A(this,h.STATE_CLOSED),"function"==typeof t&&t(e)}))}))}))):"function"==typeof t&&t()}selectServer(e,t,n){let r;if("function"!=typeof e)if("string"==typeof e)r=(0,g.readPreferenceServerSelector)(l.ReadPreference.fromString(e));else{let n;e instanceof l.ReadPreference?n=e:(l.ReadPreference.translate(t),n=t.readPreference||l.ReadPreference.primary),r=(0,g.readPreferenceServerSelector)(n)}else r=e;t=Object.assign({},{serverSelectionTimeoutMS:this.s.serverSelectionTimeoutMS},t);const i=this.description.type===h.TopologyType.Sharded,s=t.session,o=s&&s.transaction;if(i&&o&&o.server)return void n(void 0,o.server);const u={serverSelector:r,transaction:o,callback:n},c=t.serverSelectionTimeoutMS;c&&(u.timer=setTimeout((()=>{u[C]=!0,u.timer=void 0;const e=new a.MongoServerSelectionError(`Server selection timed out after ${c} ms`,this.description);u.callback(e)}),c)),this[b].push(u),O(this)}shouldCheckForSessionSupport(){return this.description.type===h.TopologyType.Single?!this.description.hasKnownServers:!this.description.hasDataBearingServers}hasSessionSupport(){return this.loadBalanced||null!=this.description.logicalSessionTimeoutMinutes}startSession(e,t){const n=new c.ClientSession(this,this.s.sessionPool,e,t);return n.once("ended",(()=>{this.s.sessions.delete(n)})),this.s.sessions.add(n),n}endSessions(e,t){Array.isArray(e)||(e=[e]),this.selectServer((0,g.readPreferenceServerSelector)(l.ReadPreference.primaryPreferred),{},((n,r)=>{!n&&r?r.command((0,p.ns)("admin.$cmd"),{endSessions:e},{noResponse:!0},((e,n)=>{"function"==typeof t&&t(e,n)})):"function"==typeof t&&t(n)}))}serverUpdateHandler(e){if(!this.s.description.hasServer(e.address))return;if(function(e,t){const n=e.servers.get(t.address),r=null==n?void 0:n.topologyVersion;return(0,m.compareTopologyVersion)(r,t.topologyVersion)>0}(this.s.description,e))return;const t=this.s.description,n=this.s.description.servers.get(e.address);if(!n)return;const r=e.$clusterTime;r&&(0,h._advanceClusterTime)(this,r);const i=n&&n.equals(e);if(this.s.description=this.s.description.update(e),this.s.description.compatibilityError)this.emit(S.ERROR,new a.MongoCompatibilityError(this.s.description.compatibilityError));else{if(!i){const t=this.s.description.servers.get(e.address);t&&this.emit(S.SERVER_DESCRIPTION_CHANGED,new d.ServerDescriptionChangedEvent(this.s.id,e.address,n,t))}D(this,e),this[b].length>0&&O(this),i||this.emit(S.TOPOLOGY_DESCRIPTION_CHANGED,new d.TopologyDescriptionChangedEvent(this.s.id,t,this.s.description))}}auth(e,t){"function"==typeof e&&(t=e,e=void 0),"function"==typeof t&&t(void 0,!0)}get clientMetadata(){return this.s.options.metadata}isConnected(){return this.s.state===h.STATE_CONNECTED}isDestroyed(){return this.s.state===h.STATE_CLOSED}unref(){(0,p.emitWarning)("`unref` is a noop and will be removed in the next major version")}lastHello(){const e=Array.from(this.description.servers.values());return 0===e.length?{}:e.filter((e=>e.type!==h.ServerType.Unknown))[0]||{maxWireVersion:this.description.commonWireVersion}}get commonWireVersion(){return this.description.commonWireVersion}get logicalSessionTimeoutMinutes(){return this.description.logicalSessionTimeoutMinutes}get clusterTime(){return this.s.clusterTime}set clusterTime(e){this.s.clusterTime=e}}function x(e,t,n,r){n=null!=n?n:{};for(const t of o.LOCAL_SERVER_EVENTS)e.removeAllListeners(t);e.destroy(n,(()=>{t.emit(S.SERVER_CLOSED,new d.ServerClosedEvent(t.s.id,e.description.address));for(const t of o.SERVER_RELAY_EVENTS)e.removeAllListeners(t);"function"==typeof r&&r()}))}function w(e,t){e.emit(S.SERVER_OPENING,new d.ServerOpeningEvent(e.s.id,t.address));const n=new f.Server(e,t,e.s.options);for(const t of o.SERVER_RELAY_EVENTS)n.on(t,(n=>e.emit(t,n)));return n.on(f.Server.DESCRIPTION_RECEIVED,(t=>e.serverUpdateHandler(t))),n.connect(),n}function D(e,t){if(t&&e.s.servers.has(t.address)){const n=e.s.servers.get(t.address);n&&(n.s.description=t)}for(const t of e.description.servers.values())if(!e.s.servers.has(t.address)){const n=w(e,t);e.s.servers.set(t.address,n)}for(const t of e.s.servers){const n=t[0];if(e.description.hasServer(n))continue;if(!e.s.servers.has(n))continue;const r=e.s.servers.get(n);e.s.servers.delete(n),r&&x(r,e)}}function _(e,t){for(;e.length;){const n=e.shift();n&&(n.timer&&clearTimeout(n.timer),n[C]||n.callback(t))}}function O(e){if(e.s.state===h.STATE_CLOSED)return void _(e[b],new a.MongoTopologyClosedError);const t=e.description.type===h.TopologyType.Sharded,n=Array.from(e.description.servers.values()),r=e[b].length;for(let i=0;i<r;++i){const r=e[b].shift();if(!r)continue;if(r[C])continue;let i,s;try{const t=r.serverSelector;i=t?t(e.description,n):n}catch(e){r.timer&&clearTimeout(r.timer),r.callback(e);continue}if(0===i.length){e[b].push(r);continue}if(1===i.length)s=e.s.servers.get(i[0].address);else{const t=2===i.length?i:(0,p.shuffle)(i,2),n=e.s.servers.get(t[0].address),r=e.s.servers.get(t[1].address);s=n&&r&&n.s.operationCount<r.s.operationCount?n:r}if(!s)return void r.callback(new a.MongoServerSelectionError("server selection returned a server description but the server was not found in the topology",e.description));const o=r.transaction;t&&o&&o.isActive&&s&&o.pinServer(s),r.timer&&clearTimeout(r.timer),r.callback(void 0,s)}if(e[b].length>0)for(const[,t]of e.s.servers)process.nextTick((function(){return t.requestCheck()}))}t.Topology=S,S.SERVER_OPENING=o.SERVER_OPENING,S.SERVER_CLOSED=o.SERVER_CLOSED,S.SERVER_DESCRIPTION_CHANGED=o.SERVER_DESCRIPTION_CHANGED,S.TOPOLOGY_OPENING=o.TOPOLOGY_OPENING,S.TOPOLOGY_CLOSED=o.TOPOLOGY_CLOSED,S.TOPOLOGY_DESCRIPTION_CHANGED=o.TOPOLOGY_DESCRIPTION_CHANGED,S.ERROR=o.ERROR,S.OPEN=o.OPEN,S.CONNECT=o.CONNECT,S.CLOSE=o.CLOSE,S.TIMEOUT=o.TIMEOUT;class F{constructor(e){this.minWireVersion=e.minWireVersion||0,this.maxWireVersion=e.maxWireVersion||0}get hasAggregationCursor(){return this.maxWireVersion>=1}get hasWriteCommands(){return this.maxWireVersion>=2}get hasTextSearch(){return this.minWireVersion>=0}get hasAuthCommands(){return this.maxWireVersion>=1}get hasListCollectionsCommand(){return this.maxWireVersion>=3}get hasListIndexesCommand(){return this.maxWireVersion>=3}get supportsSnapshotReads(){return this.maxWireVersion>=13}get commandsTakeWriteConcern(){return this.maxWireVersion>=5}get commandsTakeCollation(){return this.maxWireVersion>=5}}t.ServerCapabilities=F},7411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopologyDescription=void 0;const r=n(3496),i=n(4947),s=n(2229),o=n(5896),a=n(9735),u=r.MIN_SUPPORTED_SERVER_VERSION,l=r.MAX_SUPPORTED_SERVER_VERSION,c=r.MIN_SUPPORTED_WIRE_VERSION,p=r.MAX_SUPPORTED_WIRE_VERSION,h=new Set([o.ServerType.Mongos,o.ServerType.Unknown]),d=new Set([o.ServerType.Mongos,o.ServerType.Standalone]),f=new Set([o.ServerType.RSSecondary,o.ServerType.RSArbiter,o.ServerType.RSOther]);class m{constructor(e,t,n,r,i,s,a){var h,d;a=null!=a?a:{},this.type=null!=e?e:o.TopologyType.Unknown,this.servers=null!=t?t:new Map,this.stale=!1,this.compatible=!0,this.heartbeatFrequencyMS=null!==(h=a.heartbeatFrequencyMS)&&void 0!==h?h:0,this.localThresholdMS=null!==(d=a.localThresholdMS)&&void 0!==d?d:15,n&&(this.setName=n),r&&(this.maxSetVersion=r),i&&(this.maxElectionId=i),s&&(this.commonWireVersion=s);for(const e of this.servers.values())if(e.type!==o.ServerType.Unknown&&e.type!==o.ServerType.LoadBalancer&&(e.minWireVersion>p&&(this.compatible=!1,this.compatibilityError=`Server at ${e.address} requires wire version ${e.minWireVersion}, but this version of the driver only supports up to ${p} (MongoDB ${l})`),e.maxWireVersion<c)){this.compatible=!1,this.compatibilityError=`Server at ${e.address} reports wire version ${e.maxWireVersion}, but this version of the driver requires at least ${c} (MongoDB ${u}).`;break}this.logicalSessionTimeoutMinutes=void 0;for(const[,e]of this.servers)if(e.isReadable){if(null==e.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=void 0;break}if(null==this.logicalSessionTimeoutMinutes){this.logicalSessionTimeoutMinutes=e.logicalSessionTimeoutMinutes;continue}this.logicalSessionTimeoutMinutes=Math.min(this.logicalSessionTimeoutMinutes,e.logicalSessionTimeoutMinutes)}}updateFromSrvPollingEvent(e,t=0){const n=e.hostnames(),r=new Set(this.servers.keys()),i=new Set(n),o=new Set;for(const e of r)i.delete(e),n.has(e)||o.add(e);if(0===i.size&&0===o.size)return this;const u=new Map(this.servers);for(const e of o)u.delete(e);if(i.size>0)if(0===t)for(const e of i)u.set(e,new a.ServerDescription(e));else if(u.size<t){const e=(0,s.shuffle)(i,t-u.size);for(const t of e)u.set(t,new a.ServerDescription(t))}return new m(this.type,u,this.setName,this.maxSetVersion,this.maxElectionId,this.commonWireVersion,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}update(e){const t=e.address;let{type:n,setName:r,maxSetVersion:s,maxElectionId:u,commonWireVersion:l}=this;e.setName&&r&&e.setName!==r&&(e=new a.ServerDescription(t,void 0));const c=e.type,p=new Map(this.servers);if(0!==e.maxWireVersion&&(l=null==l?e.maxWireVersion:Math.min(l,e.maxWireVersion)),p.set(t,e),n===o.TopologyType.Single)return new m(o.TopologyType.Single,p,r,s,u,l,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS});if(n===o.TopologyType.Unknown&&(c===o.ServerType.Standalone&&1!==this.servers.size?p.delete(t):n=function(e){switch(e){case o.ServerType.Standalone:return o.TopologyType.Single;case o.ServerType.Mongos:return o.TopologyType.Sharded;case o.ServerType.RSPrimary:return o.TopologyType.ReplicaSetWithPrimary;case o.ServerType.RSOther:case o.ServerType.RSSecondary:return o.TopologyType.ReplicaSetNoPrimary;default:return o.TopologyType.Unknown}}(c)),n===o.TopologyType.Sharded&&(h.has(c)||p.delete(t)),n===o.TopologyType.ReplicaSetNoPrimary)if(d.has(c)&&p.delete(t),c===o.ServerType.RSPrimary){const t=g(p,e,r,s,u);n=t[0],r=t[1],s=t[2],u=t[3]}else if(f.has(c)){const t=function(e,t,n){const r=o.TopologyType.ReplicaSetNoPrimary;return(n=n||t.setName)!==t.setName?(e.delete(t.address),[r,n]):(t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))})),t.me&&t.address!==t.me&&e.delete(t.address),[r,n])}(p,e,r);n=t[0],r=t[1]}if(n===o.TopologyType.ReplicaSetWithPrimary)if(d.has(c))p.delete(t),n=E(p);else if(c===o.ServerType.RSPrimary){const t=g(p,e,r,s,u);n=t[0],r=t[1],s=t[2],u=t[3]}else n=f.has(c)?function(e,t,n){if(null==n)throw new i.MongoRuntimeError('Argument "setName" is required if connected to a replica set');return(n!==t.setName||t.me&&t.address!==t.me)&&e.delete(t.address),E(e)}(p,e,r):E(p);return new m(n,p,r,s,u,l,{heartbeatFrequencyMS:this.heartbeatFrequencyMS,localThresholdMS:this.localThresholdMS})}get error(){const e=Array.from(this.servers.values()).filter((e=>e.error));if(e.length>0)return e[0].error}get hasKnownServers(){return Array.from(this.servers.values()).some((e=>e.type!==o.ServerType.Unknown))}get hasDataBearingServers(){return Array.from(this.servers.values()).some((e=>e.isDataBearing))}hasServer(e){return this.servers.has(e)}}function g(e,t,n,r,i){if((n=n||t.setName)!==t.setName)return e.delete(t.address),[E(e),n,r,i];const s=t.electionId?t.electionId:null;if(t.setVersion&&s){if(r&&i&&(r>t.setVersion||function(e,t){if(null==e)return-1;if(null==t)return 1;if(e.id instanceof Buffer&&t.id instanceof Buffer){const n=e.id,r=t.id;return n.compare(r)}const n=e.toString(),r=t.toString();return n.localeCompare(r)}(i,s)>0))return e.set(t.address,new a.ServerDescription(t.address)),[E(e),n,r,i];i=t.electionId}null!=t.setVersion&&(null==r||t.setVersion>r)&&(r=t.setVersion);for(const[n,r]of e)if(r.type===o.ServerType.RSPrimary&&r.address!==t.address){e.set(n,new a.ServerDescription(r.address));break}t.allHosts.forEach((t=>{e.has(t)||e.set(t,new a.ServerDescription(t))}));const u=Array.from(e.keys()),l=t.allHosts;return u.filter((e=>-1===l.indexOf(e))).forEach((t=>{e.delete(t)})),[E(e),n,r,i]}function E(e){for(const t of e.values())if(t.type===o.ServerType.RSPrimary)return o.TopologyType.ReplicaSetWithPrimary;return o.TopologyType.ReplicaSetNoPrimary}t.TopologyDescription=m},1296:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.updateSessionFromResponse=t.applySession=t.ServerSessionPool=t.ServerSession=t.maybeClearPinnedConnection=t.ClientSession=void 0;const i=n(9064),s=n(8547),o=n(3377),a=n(5006),u=n(4947),l=n(334),c=n(7445),p=n(25),h=n(4782),d=n(3389),f=n(1228),m=n(5896),g=n(6204),E=n(2229),y=Symbol("serverSession"),v=Symbol("snapshotTime"),A=Symbol("snapshotEnabled"),C=Symbol("pinnedConnection"),b=Symbol("txnNumberIncrement");class S extends l.TypedEventEmitter{constructor(e,t,n,i){if(super(),this[r]=!1,null==e)throw new u.MongoRuntimeError("ClientSession requires a topology");if(null==t||!(t instanceof I))throw new u.MongoRuntimeError("ClientSession requires a ServerSessionPool");if(!0===(n=null!=n?n:{}).snapshot&&(this[A]=!0,!0===n.causalConsistency))throw new u.MongoInvalidArgumentError('Properties "causalConsistency" and "snapshot" are mutually exclusive');this.topology=e,this.sessionPool=t,this.hasEnded=!1,this.clientOptions=i,this.explicit=!!n.explicit,this[y]=this.explicit?this.sessionPool.acquire():null,this[b]=0,this.supports={causalConsistency:!0!==n.snapshot&&!1!==n.causalConsistency},this.clusterTime=n.initialClusterTime,this.operationTime=void 0,this.owner=n.owner,this.defaultTransactionOptions=Object.assign({},n.defaultTransactionOptions),this.transaction=new g.Transaction}get id(){var e;return null===(e=this[y])||void 0===e?void 0:e.id}get serverSession(){let e=this[y];if(null==e){if(this.explicit)throw new u.MongoRuntimeError("Unexpected null serverSession for an explicit session");if(this.hasEnded)throw new u.MongoRuntimeError("Unexpected null serverSession for an ended implicit session");e=this.sessionPool.acquire(),this[y]=e}return e}get snapshotEnabled(){return this[A]}get loadBalanced(){return this.topology.description.type===m.TopologyType.LoadBalanced}get pinnedConnection(){return this[C]}pin(e){if(this[C])throw TypeError("Cannot pin multiple connections to the same session");this[C]=e,e.emit(a.PINNED,this.inTransaction()?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR)}unpin(e){if(this.loadBalanced)return _(this,e);this.transaction.unpinServer()}get isPinned(){return this.loadBalanced?!!this[C]:this.transaction.isPinned}endSession(e,t){"function"==typeof e&&(t=e,e={});const n={force:!0,...e};return(0,E.maybePromise)(t,(e=>{if(this.hasEnded)return _(this,n),e();const t=()=>{_(this,n);const t=this[y];null!=t&&(this.sessionPool.release(t),Object.defineProperty(this,y,{value:R.clone(t)})),this.hasEnded=!0,this.emit("ended",this),e()};this.inTransaction()?this.abortTransaction((n=>{if(n)return e(n);t()})):t()}))}advanceOperationTime(e){null!=this.operationTime?e.greaterThan(this.operationTime)&&(this.operationTime=e):this.operationTime=e}advanceClusterTime(e){var t,n;if(!e||"object"!=typeof e)throw new u.MongoInvalidArgumentError("input cluster time must be an object");if(!e.clusterTime||"Timestamp"!==e.clusterTime._bsontype)throw new u.MongoInvalidArgumentError('input cluster time "clusterTime" property must be a valid BSON Timestamp');if(!e.signature||"Binary"!==(null===(t=e.signature.hash)||void 0===t?void 0:t._bsontype)||"number"!=typeof e.signature.keyId&&"Long"!==(null===(n=e.signature.keyId)||void 0===n?void 0:n._bsontype))throw new u.MongoInvalidArgumentError('input cluster time must have a valid "signature" property with BSON Binary hash and BSON Long keyId');(0,m._advanceClusterTime)(this,e)}equals(e){return e instanceof S&&null!=this.id&&null!=e.id&&this.id.id.buffer.equals(e.id.id.buffer)}incrementTransactionNumber(){this[b]+=1}inTransaction(){return this.transaction.isActive}startTransaction(e){var t,n,r,i,s,a,l,c,p,h;if(this[A])throw new u.MongoCompatibilityError("Transactions are not allowed with snapshot sessions");if(this.inTransaction())throw new u.MongoTransactionError("Transaction already in progress");this.isPinned&&this.transaction.isCommitted&&this.unpin();const d=(0,E.maxWireVersion)(this.topology);if((0,o.isSharded)(this.topology)&&null!=d&&d<8)throw new u.MongoCompatibilityError("Transactions are not supported on sharded clusters in MongoDB < 4.2.");this.incrementTransactionNumber(),this.transaction=new g.Transaction({readConcern:null!==(n=null!==(t=null==e?void 0:e.readConcern)&&void 0!==t?t:this.defaultTransactionOptions.readConcern)&&void 0!==n?n:null===(r=this.clientOptions)||void 0===r?void 0:r.readConcern,writeConcern:null!==(s=null!==(i=null==e?void 0:e.writeConcern)&&void 0!==i?i:this.defaultTransactionOptions.writeConcern)&&void 0!==s?s:null===(a=this.clientOptions)||void 0===a?void 0:a.writeConcern,readPreference:null!==(c=null!==(l=null==e?void 0:e.readPreference)&&void 0!==l?l:this.defaultTransactionOptions.readPreference)&&void 0!==c?c:null===(p=this.clientOptions)||void 0===p?void 0:p.readPreference,maxCommitTimeMS:null!==(h=null==e?void 0:e.maxCommitTimeMS)&&void 0!==h?h:this.defaultTransactionOptions.maxCommitTimeMS}),this.transaction.transition(g.TxnState.STARTING_TRANSACTION)}commitTransaction(e){return(0,E.maybePromise)(e,(e=>k(this,"commitTransaction",e)))}abortTransaction(e){return(0,E.maybePromise)(e,(e=>k(this,"abortTransaction",e)))}toBSON(){throw new u.MongoRuntimeError("ClientSession cannot be serialized to BSON.")}withTransaction(e,t){return B(this,(0,E.now)(),e,t)}}t.ClientSession=S,r=A;const x=12e4,w=new Set(["CannotSatisfyWriteConcern","UnknownReplWriteConcern","UnsatisfiableWriteConcern"]);function D(e,t){return(0,E.calculateDurationInMs)(e)<t}function _(e,t){const n=e[C],r=null==t?void 0:t.error;if(!(e.inTransaction()&&r&&r instanceof u.MongoError&&r.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError))&&n){const r=Array.from(e.topology.s.servers.values())[0];(null==(null==t?void 0:t.error)||(null==t?void 0:t.force))&&(r.s.pool.checkIn(n),n.emit(a.UNPINNED,e.transaction.state!==g.TxnState.NO_TRANSACTION?s.ConnectionPoolMetrics.TXN:s.ConnectionPoolMetrics.CURSOR),(null==t?void 0:t.forceClear)&&r.s.pool.clear(n.serviceId)),e[C]=void 0}}function O(e){return null!=e&&e instanceof u.MongoServerError&&(e.code===u.MONGODB_ERROR_CODES.MaxTimeMSExpired||e.writeConcernError&&e.writeConcernError.code===u.MONGODB_ERROR_CODES.MaxTimeMSExpired)}function F(e,t,n,r){return e.commitTransaction().catch((i=>{if(i instanceof u.MongoError&&D(t,x)&&!O(i)){if(i.hasErrorLabel(u.MongoErrorLabel.UnknownTransactionCommitResult))return F(e,t,n,r);if(i.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError))return B(e,t,n,r)}throw i}))}t.maybeClearPinnedConnection=_;const T=new Set([g.TxnState.NO_TRANSACTION,g.TxnState.TRANSACTION_COMMITTED,g.TxnState.TRANSACTION_ABORTED]);function B(e,t,n,r){const i=h.PromiseProvider.get();let s;e.startTransaction(r);try{s=n(e)}catch(e){s=i.reject(e)}if(!(0,E.isPromiseLike)(s))throw e.abortTransaction(),new u.MongoInvalidArgumentError("Function provided to `withTransaction` must return a Promise");return s.then((()=>{if(!function(e){return T.has(e.transaction.state)}(e))return F(e,t,n,r)}),(i=>{function s(i){if(i instanceof u.MongoError&&i.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&D(t,x))return B(e,t,n,r);throw O(i)&&i.addErrorLabel(u.MongoErrorLabel.UnknownTransactionCommitResult),i}return e.inTransaction()?e.abortTransaction().then((()=>s(i))):s(i)}))}function k(e,t,n){const r=e.transaction.state;if(r===g.TxnState.NO_TRANSACTION)return void n(new u.MongoTransactionError("No transaction started"));if("commitTransaction"===t){if(r===g.TxnState.STARTING_TRANSACTION||r===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED_EMPTY),void n();if(r===g.TxnState.TRANSACTION_ABORTED)return void n(new u.MongoTransactionError("Cannot call commitTransaction after calling abortTransaction"))}else{if(r===g.TxnState.STARTING_TRANSACTION)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),void n();if(r===g.TxnState.TRANSACTION_ABORTED)return void n(new u.MongoTransactionError("Cannot call abortTransaction twice"));if(r===g.TxnState.TRANSACTION_COMMITTED||r===g.TxnState.TRANSACTION_COMMITTED_EMPTY)return void n(new u.MongoTransactionError("Cannot call abortTransaction after calling commitTransaction"))}const i={[t]:1};let s;function o(r,i){if("commitTransaction"!==t)return e.transaction.transition(g.TxnState.TRANSACTION_ABORTED),e.loadBalanced&&_(e,{force:!1}),n();e.transaction.transition(g.TxnState.TRANSACTION_COMMITTED),r instanceof u.MongoError&&(r.hasErrorLabel(u.MongoErrorLabel.RetryableWriteError)||r instanceof u.MongoWriteConcernError||O(r)?function(e){const t=e instanceof u.MongoServerError&&e.codeName&&w.has(e.codeName);return O(e)||!t&&e.code!==u.MONGODB_ERROR_CODES.UnsatisfiableWriteConcern&&e.code!==u.MONGODB_ERROR_CODES.UnknownReplWriteConcern}(r)&&(r.addErrorLabel(u.MongoErrorLabel.UnknownTransactionCommitResult),e.unpin({error:r})):r.hasErrorLabel(u.MongoErrorLabel.TransientTransactionError)&&e.unpin({error:r})),n(r,i)}e.transaction.options.writeConcern?s=Object.assign({},e.transaction.options.writeConcern):e.clientOptions&&e.clientOptions.writeConcern&&(s={w:e.clientOptions.writeConcern.w}),r===g.TxnState.TRANSACTION_COMMITTED&&(s=Object.assign({wtimeout:1e4},s,{w:"majority"})),s&&Object.assign(i,{writeConcern:s}),"commitTransaction"===t&&e.transaction.options.maxTimeMS&&Object.assign(i,{maxTimeMS:e.transaction.options.maxTimeMS}),e.transaction.recoveryToken&&(i.recoveryToken=e.transaction.recoveryToken),(0,c.executeOperation)(e,new p.RunAdminCommandOperation(void 0,i,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),((t,n)=>{if(i.abortTransaction&&e.unpin(),t instanceof u.MongoError&&t.hasErrorLabel(u.MongoErrorLabel.RetryableWriteError))return i.commitTransaction&&(e.unpin({force:!0}),i.writeConcern=Object.assign({wtimeout:1e4},i.writeConcern,{w:"majority"})),(0,c.executeOperation)(e,new p.RunAdminCommandOperation(void 0,i,{session:e,readPreference:f.ReadPreference.primary,bypassPinningCheck:!0}),o);o(t,n)}))}class R{constructor(){this.id={id:new i.Binary((0,E.uuidV4)(),i.Binary.SUBTYPE_UUID)},this.lastUse=(0,E.now)(),this.txnNumber=0,this.isDirty=!1}hasTimedOut(e){return Math.round((0,E.calculateDurationInMs)(this.lastUse)%864e5%36e5/6e4)>e-1}static clone(e){const t=new ArrayBuffer(16),n=Buffer.from(t);n.set(e.id.id.buffer);const r=new i.Binary(n,e.id.id.sub_type);return Object.setPrototypeOf({id:{id:r},lastUse:e.lastUse,txnNumber:e.txnNumber,isDirty:e.isDirty},R.prototype)}}t.ServerSession=R;class I{constructor(e){if(null==e)throw new u.MongoRuntimeError("ServerSessionPool requires a topology");this.topology=e,this.sessions=[]}endAllPooledSessions(e){this.sessions.length?this.topology.endSessions(this.sessions.map((e=>e.id)),(()=>{this.sessions=[],"function"==typeof e&&e()})):"function"==typeof e&&e()}acquire(){const e=this.topology.logicalSessionTimeoutMinutes||10;for(;this.sessions.length;){const t=this.sessions.shift();if(t&&(this.topology.loadBalanced||!t.hasTimedOut(e)))return t}return new R}release(e){const t=this.topology.logicalSessionTimeoutMinutes;if(this.topology.loadBalanced&&!t&&this.sessions.unshift(e),t){for(;this.sessions.length&&this.sessions[this.sessions.length-1].hasTimedOut(t);)this.sessions.pop();if(!e.hasTimedOut(t)){if(e.isDirty)return;this.sessions.unshift(e)}}}}t.ServerSessionPool=I,t.applySession=function(e,t,n){var r,s;if(e.hasEnded)return new u.MongoExpiredSessionError;const o=e.serverSession;if(null==o)return new u.MongoRuntimeError("Unable to acquire server session");if(0===(null===(r=n.writeConcern)||void 0===r?void 0:r.w))return e&&e.explicit?new u.MongoAPIError("Cannot have explicit session with unacknowledged writes"):void 0;o.lastUse=(0,E.now)(),t.lsid=o.id;const a=e.inTransaction()||(0,g.isTransactionCommand)(t);if((!!n.willRetryWrite||a)&&(o.txnNumber+=e[b],e[b]=0,t.txnNumber=i.Long.fromNumber(o.txnNumber)),!a)return e.transaction.state!==g.TxnState.NO_TRANSACTION&&e.transaction.transition(g.TxnState.NO_TRANSACTION),void(e.supports.causalConsistency&&e.operationTime&&(0,E.commandSupportsReadConcern)(t,n)?(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime})):e[A]&&(t.readConcern=t.readConcern||{level:d.ReadConcernLevel.snapshot},null!=e[v]&&Object.assign(t.readConcern,{atClusterTime:e[v]})));if(t.autocommit=!1,e.transaction.state===g.TxnState.STARTING_TRANSACTION){e.transaction.transition(g.TxnState.TRANSACTION_IN_PROGRESS),t.startTransaction=!0;const n=e.transaction.options.readConcern||(null===(s=null==e?void 0:e.clientOptions)||void 0===s?void 0:s.readConcern);n&&(t.readConcern=n),e.supports.causalConsistency&&e.operationTime&&(t.readConcern=t.readConcern||{},Object.assign(t.readConcern,{afterClusterTime:e.operationTime}))}},t.updateSessionFromResponse=function(e,t){var n;if(t.$clusterTime&&(0,m._advanceClusterTime)(e,t.$clusterTime),t.operationTime&&e&&e.supports.causalConsistency&&e.advanceOperationTime(t.operationTime),t.recoveryToken&&e&&e.inTransaction()&&(e.transaction._recoveryToken=t.recoveryToken),(null==e?void 0:e[A])&&null==e[v]){const r=(null===(n=t.cursor)||void 0===n?void 0:n.atClusterTime)||t.atClusterTime;r&&(e[v]=r)}}},649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatSort=void 0;const r=n(4947);function i(e=1){const t=`${e}`.toLowerCase();if("object"==typeof(n=e)&&null!=n&&"$meta"in n&&"string"==typeof n.$meta)return e;var n;switch(t){case"ascending":case"asc":case"1":return 1;case"descending":case"desc":case"-1":return-1;default:throw new r.MongoInvalidArgumentError(`Invalid sort direction: ${JSON.stringify(e)}`)}}t.formatSort=function(e,t){if(null!=e){if("string"==typeof e)return new Map([[e,i(t)]]);if("object"!=typeof e)throw new r.MongoInvalidArgumentError(`Invalid sort format: ${JSON.stringify(e)} Sort must be a valid object`);if(!Array.isArray(e))return(n=e)instanceof Map&&n.size>0?function(e){const t=Array.from(e).map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):Object.keys(e).length?function(e){const t=Object.entries(e).map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):void 0;var n,s;if(e.length)return function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?function(e){const t=e.map((([e,t])=>[`${e}`,i(t)]));return new Map(t)}(e):function(e){if(Array.isArray(e)&&2===e.length)try{return i(e[1]),!0}catch(e){return!1}return!1}(e)?(s=e,new Map([[`${s[0]}`,i([s[1]])]])):function(e){const t=e.map((e=>[`${e}`,1]));return new Map(t)}(e)}}},6204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTransactionCommand=t.Transaction=t.TxnState=void 0;const r=n(4947),i=n(3389),s=n(1228),o=n(4620);t.TxnState=Object.freeze({NO_TRANSACTION:"NO_TRANSACTION",STARTING_TRANSACTION:"STARTING_TRANSACTION",TRANSACTION_IN_PROGRESS:"TRANSACTION_IN_PROGRESS",TRANSACTION_COMMITTED:"TRANSACTION_COMMITTED",TRANSACTION_COMMITTED_EMPTY:"TRANSACTION_COMMITTED_EMPTY",TRANSACTION_ABORTED:"TRANSACTION_ABORTED"});const a={[t.TxnState.NO_TRANSACTION]:[t.TxnState.NO_TRANSACTION,t.TxnState.STARTING_TRANSACTION],[t.TxnState.STARTING_TRANSACTION]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_IN_PROGRESS]:[t.TxnState.TRANSACTION_IN_PROGRESS,t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_ABORTED],[t.TxnState.TRANSACTION_COMMITTED]:[t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_ABORTED]:[t.TxnState.STARTING_TRANSACTION,t.TxnState.NO_TRANSACTION],[t.TxnState.TRANSACTION_COMMITTED_EMPTY]:[t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.NO_TRANSACTION]},u=new Set([t.TxnState.STARTING_TRANSACTION,t.TxnState.TRANSACTION_IN_PROGRESS]),l=new Set([t.TxnState.TRANSACTION_COMMITTED,t.TxnState.TRANSACTION_COMMITTED_EMPTY,t.TxnState.TRANSACTION_ABORTED]);t.Transaction=class{constructor(e){e=null!=e?e:{},this.state=t.TxnState.NO_TRANSACTION,this.options={};const n=o.WriteConcern.fromOptions(e);if(n){if(0===n.w)throw new r.MongoTransactionError("Transactions do not support unacknowledged write concern");this.options.writeConcern=n}e.readConcern&&(this.options.readConcern=i.ReadConcern.fromOptions(e)),e.readPreference&&(this.options.readPreference=s.ReadPreference.fromOptions(e)),e.maxCommitTimeMS&&(this.options.maxTimeMS=e.maxCommitTimeMS),this._pinnedServer=void 0,this._recoveryToken=void 0}get server(){return this._pinnedServer}get recoveryToken(){return this._recoveryToken}get isPinned(){return!!this.server}get isStarting(){return this.state===t.TxnState.STARTING_TRANSACTION}get isActive(){return u.has(this.state)}get isCommitted(){return l.has(this.state)}transition(e){const n=a[this.state];if(n&&n.includes(e))return this.state=e,void(this.state!==t.TxnState.NO_TRANSACTION&&this.state!==t.TxnState.STARTING_TRANSACTION&&this.state!==t.TxnState.TRANSACTION_ABORTED||this.unpinServer());throw new r.MongoRuntimeError(`Attempted illegal state transition from [${this.state}] to [${e}]`)}pinServer(e){this.isActive&&(this._pinnedServer=e)}unpinServer(){this._pinnedServer=void 0}},t.isTransactionCommand=function(e){return!(!e.commitTransaction&&!e.abortTransaction)}},2229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shuffle=t.parsePackageVersion=t.supportsRetryableWrites=t.enumToString=t.emitWarningOnce=t.emitWarning=t.MONGODB_WARNING_CODE=t.DEFAULT_PK_FACTORY=t.HostAddress=t.BufferPool=t.deepCopy=t.isRecord=t.setDifference=t.isHello=t.isSuperset=t.resolveOptions=t.hasAtomicOperators=t.makeInterruptibleAsyncInterval=t.calculateDurationInMs=t.now=t.makeClientMetadata=t.makeStateMachine=t.errorStrictEqual=t.arrayStrictEqual=t.eachAsyncSeries=t.eachAsync=t.collationNotSupported=t.maxWireVersion=t.uuidV4=t.databaseNamespace=t.maybePromise=t.makeCounter=t.MongoDBNamespace=t.ns=t.deprecateOptions=t.defaultMsgHandler=t.getTopology=t.decorateWithExplain=t.decorateWithReadConcern=t.decorateWithCollation=t.isPromiseLike=t.applyWriteConcern=t.applyRetryableWrites=t.filterOptions=t.mergeOptions=t.isObject=t.parseIndexOptions=t.normalizeHintField=t.checkCollectionName=t.MAX_JS_INT=void 0,t.commandSupportsReadConcern=void 0;const r=n(4770),i=n(9801),s=n(7360),o=n(9064),a=n(3496),u=n(5006),l=n(4947),c=n(4782),p=n(3389),h=n(1228),d=n(5896),f=n(4620);function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){if("topology"in e&&e.topology)return e.topology;if("s"in e&&"client"in e.s&&e.s.client.topology)return e.s.client.topology;if("s"in e&&"db"in e.s&&e.s.db.s.client.topology)return e.s.db.s.client.topology;throw new l.MongoNotConnectedError("MongoClient must be connected to perform this operation")}function E(e,t){return`${e} option [${t}] is deprecated and will be removed in a later version.`}t.MAX_JS_INT=Number.MAX_SAFE_INTEGER+1,t.checkCollectionName=function(e){if("string"!=typeof e)throw new l.MongoInvalidArgumentError("Collection name must be a String");if(!e||-1!==e.indexOf(".."))throw new l.MongoInvalidArgumentError("Collection names cannot be empty");if(-1!==e.indexOf("$")&&null==e.match(/((^\$cmd)|(oplog\.\$main))/))throw new l.MongoInvalidArgumentError("Collection names must not contain '$'");if(null!=e.match(/^\.|\.$/))throw new l.MongoInvalidArgumentError("Collection names must not start or end with '.'");if(-1!==e.indexOf("\0"))throw new l.MongoInvalidArgumentError("Collection names cannot contain a null character")},t.normalizeHintField=function(e){let t;if("string"==typeof e)t=e;else if(Array.isArray(e))t={},e.forEach((e=>{t[e]=1}));else if(null!=e&&"object"==typeof e){t={};for(const n in e)t[n]=e[n]}return t},t.parseIndexOptions=function(e){const t={},n=[];let r;return"string"==typeof e?(n.push(e+"_1"),t[e]=1):Array.isArray(e)?e.forEach((e=>{"string"==typeof e?(n.push(e+"_1"),t[e]=1):Array.isArray(e)?(n.push(e[0]+"_"+(e[1]||1)),t[e[0]]=e[1]||1):m(e)&&(r=Object.keys(e),r.forEach((r=>{n.push(r+"_"+e[r]),t[r]=e[r]})))})):m(e)&&(r=Object.keys(e),Object.entries(e).forEach((([e,r])=>{n.push(e+"_"+r),t[e]=r}))),{name:n.join("_"),keys:r,fieldHash:t}},t.isObject=m,t.mergeOptions=function(e,t){return{...e,...t}},t.filterOptions=function(e,t){const n={};for(const r in e)t.includes(r)&&(n[r]=e[r]);return n},t.applyRetryableWrites=function(e,t){var n;return t&&(null===(n=t.s.options)||void 0===n?void 0:n.retryWrites)&&(e.retryWrites=!0),e},t.applyWriteConcern=function(e,t,n){n=null!=n?n:{};const r=t.db,i=t.collection;if(n.session&&n.session.inTransaction())return e.writeConcern&&delete e.writeConcern,e;const s=f.WriteConcern.fromOptions(n);return s?Object.assign(e,{writeConcern:s}):i&&i.writeConcern?Object.assign(e,{writeConcern:Object.assign({},i.writeConcern)}):r&&r.writeConcern?Object.assign(e,{writeConcern:Object.assign({},r.writeConcern)}):e},t.isPromiseLike=function(e){return!!e&&"function"==typeof e.then},t.decorateWithCollation=function(e,t,n){const r=g(t).capabilities;if(n.collation&&"object"==typeof n.collation){if(!r||!r.commandsTakeCollation)throw new l.MongoCompatibilityError("Current topology does not support collation");e.collation=n.collation}},t.decorateWithReadConcern=function(e,t,n){if(n&&n.session&&n.session.inTransaction())return;const r=Object.assign({},e.readConcern||{});t.s.readConcern&&Object.assign(r,t.s.readConcern),Object.keys(r).length>0&&Object.assign(e,{readConcern:r})},t.decorateWithExplain=function(e,t){return e.explain?e:{explain:e,verbosity:t.verbosity}},t.getTopology=g,t.defaultMsgHandler=E,t.deprecateOptions=function(e,t){if(!0===process.noDeprecation)return t;const n=e.msgHandler?e.msgHandler:E,r=new Set;function i(...i){const s=i[e.optionsIndex];if(!m(s)||0===Object.keys(s).length)return t.bind(this)(...i);for(const t of e.deprecatedOptions)if(t in s&&!r.has(t)){r.add(t);const i=n(e.name,t);if(_(i),this&&"getLogger"in this){const e=this.getLogger();e&&e.warn(i)}}return t.bind(this)(...i)}return Object.setPrototypeOf(i,t),t.prototype&&(i.prototype=t.prototype),i},t.ns=function(e){return y.fromString(e)};class y{constructor(e,t){this.db=e,this.collection=t}toString(){return this.collection?`${this.db}.${this.collection}`:this.db}withCollection(e){return new y(this.db,e)}static fromString(e){if(!e)throw new l.MongoRuntimeError(`Cannot parse namespace from "${e}"`);const[t,...n]=e.split(".");return new y(t,n.join("."))}}function v(e){if(e){if(e.loadBalanced)return a.MAX_SUPPORTED_WIRE_VERSION;if(e.hello)return e.hello.maxWireVersion;if("lastHello"in e&&"function"==typeof e.lastHello){const t=e.lastHello();if(t)return t.maxWireVersion}if(e.description&&"maxWireVersion"in e.description&&null!=e.description.maxWireVersion)return e.description.maxWireVersion}return 0}t.MongoDBNamespace=y,t.makeCounter=function*(e=0){let t=e;for(;;){const e=t;t+=1,yield e}},t.maybePromise=function(e,t){const n=c.PromiseProvider.get();let r;return"function"!=typeof e&&(r=new n(((t,n)=>{e=(e,r)=>{if(e)return n(e);t(r)}}))),t(((t,n)=>{if(null==t)e(t,n);else try{e(t)}catch(e){process.nextTick((()=>{throw e}))}})),r},t.databaseNamespace=function(e){return e.split(".")[0]},t.uuidV4=function(){const e=r.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e},t.maxWireVersion=v,t.collationNotSupported=function(e,t){return t&&t.collation&&v(e)<5},t.eachAsync=function(e,t,n){e=e||[];let r=0,i=0;for(r=0;r<e.length;++r)i++,t(e[r],s);function s(t){i--,t?n(t):r===e.length&&i<=0&&n()}0!==i||n()},t.eachAsyncSeries=function(e,t,n){let r=0,i=(e=e||[]).length;0!==i?t(e[r],(function s(o){r++,i--,o?n(o):r===e.length&&i<=0?n():t(e[r],s)})):n()},t.arrayStrictEqual=function(e,t){return!(!Array.isArray(e)||!Array.isArray(t))&&e.length===t.length&&e.every(((e,n)=>e===t[n]))},t.errorStrictEqual=function(e,t){return e===t||(e&&t?!(null==e&&null!=t||null!=e&&null==t)&&e.constructor.name===t.constructor.name&&e.message===t.message:e===t)},t.makeStateMachine=function(e){return function(t,n){const r=e[t.s.state];if(r&&r.indexOf(n)<0)throw new l.MongoRuntimeError(`illegal state transition from [${t.s.state}] => [${n}], allowed: [${r}]`);t.emit("stateChanged",t.s.state,n),t.s.state=n}};const A=n(6615).i8;function C(){const e=process.hrtime();return Math.floor(1e3*e[0]+e[1]/1e6)}function b(e,t){e=Array.isArray(e)?new Set(e):e,t=Array.isArray(t)?new Set(t):t;for(const n of t)if(!e.has(n))return!1;return!0}function S(e,t){const n=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=e=>"[object Object]"===n.call(e);if(!i(e))return!1;const s=e.constructor;if(s&&s.prototype){if(!i(s.prototype))return!1;if(!r.call(s.prototype,"isPrototypeOf"))return!1}return!t||b(Object.keys(e),t)}t.makeClientMetadata=function(e){e=null!=e?e:{};const t={driver:{name:"nodejs",version:A},os:{type:i.type(),name:process.platform,architecture:process.arch,version:i.release()},platform:`Node.js ${process.version}, ${i.endianness()} (unified)`};if(e.driverInfo&&(e.driverInfo.name&&(t.driver.name=`${t.driver.name}|${e.driverInfo.name}`),e.driverInfo.version&&(t.version=`${t.driver.version}|${e.driverInfo.version}`),e.driverInfo.platform&&(t.platform=`${t.platform}|${e.driverInfo.platform}`)),e.appName){const n=Buffer.from(e.appName);t.application={name:n.byteLength>128?n.slice(0,128).toString("utf8"):e.appName}}return t},t.now=C,t.calculateDurationInMs=function(e){if("number"!=typeof e)throw new l.MongoInvalidArgumentError("Numeric value required to calculate duration");const t=C()-e;return t<0?0:t},t.makeInterruptibleAsyncInterval=function(e,t){let n,r,i=!1,s=!1;const o=(t=null!=t?t:{}).interval||1e3,a=t.minInterval||500,u="boolean"==typeof t.immediate&&t.immediate,l="function"==typeof t.clock?t.clock:C;function c(e){s||(n&&clearTimeout(n),n=setTimeout(p,e||o))}function p(){i=!1,r=l(),e((e=>{if(e)throw e;c(o)}))}return u?p():(r=l(),c(void 0)),{wake:function(){const e=l(),t=r+o-e;t<0?p():i||t>a&&(c(a),i=!0)},stop:function(){s=!0,n&&(clearTimeout(n),n=void 0),r=0,i=!1}}},t.hasAtomicOperators=function e(t){if(Array.isArray(t)){for(const n of t)if(e(n))return!0;return!1}const n=Object.keys(t);return n.length>0&&"$"===n[0][0]},t.resolveOptions=function(e,t){var n,r,i;const s=Object.assign({},t,(0,o.resolveBSONOptions)(t,e)),a=null==t?void 0:t.session;if(!(null==a?void 0:a.inTransaction())){const i=null!==(n=p.ReadConcern.fromOptions(t))&&void 0!==n?n:null==e?void 0:e.readConcern;i&&(s.readConcern=i);const o=null!==(r=f.WriteConcern.fromOptions(t))&&void 0!==r?r:null==e?void 0:e.writeConcern;o&&(s.writeConcern=o)}const u=null!==(i=h.ReadPreference.fromOptions(t))&&void 0!==i?i:null==e?void 0:e.readPreference;return u&&(s.readPreference=u),s},t.isSuperset=b,t.isHello=function(e){return!(!e[u.LEGACY_HELLO_COMMAND]&&!e.hello)},t.setDifference=function(e,t){const n=new Set(e);for(const e of t)n.delete(e);return n},t.isRecord=S,t.deepCopy=function e(t){if(null==t)return t;if(Array.isArray(t))return t.map((t=>e(t)));if(S(t)){const n={};for(const r in t)n[r]=e(t[r]);return n}const n=t.constructor;if(n)switch(n.name.toLowerCase()){case"date":return new n(Number(t));case"map":return new Map(t);case"set":return new Set(t);case"buffer":return Buffer.from(t)}return t};const x=Symbol("buffers"),w=Symbol("length");t.BufferPool=class{constructor(){this[x]=[],this[w]=0}get length(){return this[w]}append(e){this[x].push(e),this[w]+=e.length}peek(e){return this.read(e,!1)}read(e,t=!0){if("number"!=typeof e||e<0)throw new l.MongoInvalidArgumentError('Argument "size" must be a non-negative number');if(e>this[w])return Buffer.alloc(0);let n;if(e===this.length)n=Buffer.concat(this[x]),t&&(this[x]=[],this[w]=0);else if(e<=this[x][0].length)n=this[x][0].slice(0,e),t&&(this[x][0]=this[x][0].slice(e),this[w]-=e);else{let r;n=Buffer.allocUnsafe(e);let i=0,s=e;for(r=0;r<this[x].length;++r){let e;if(!(s>this[x][r].length)){e=this[x][r].copy(n,i,0,s),t&&(this[x][r]=this[x][r].slice(e)),i+=e;break}e=this[x][r].copy(n,i,0),i+=e,s-=e}t&&(this[x]=this[x].slice(r),this[w]-=e)}return n}};class D{constructor(e){const t=e.split(" ").join("%20"),{hostname:n,port:r}=new s.URL(`mongodb://${t}`);if(n.endsWith(".sock"))this.socketPath=decodeURIComponent(n);else{if("string"!=typeof n)throw new l.MongoInvalidArgumentError("Either socketPath or host must be defined.");{this.isIPv6=!1;let e=decodeURIComponent(n).toLowerCase();if(e.startsWith("[")&&e.endsWith("]")&&(this.isIPv6=!0,e=e.substring(1,n.length-1)),this.host=e.toLowerCase(),this.port="number"==typeof r?r:"string"==typeof r&&""!==r?Number.parseInt(r,10):27017,0===this.port)throw new l.MongoParseError("Invalid port (zero) with hostname")}}Object.freeze(this)}[Symbol.for("nodejs.util.inspect.custom")](){return this.inspect()}inspect(){return`new HostAddress('${this.toString(!0)}')`}toString(e=!1){return"string"==typeof this.host?this.isIPv6&&e?`[${this.host}]:${this.port}`:`${this.host}:${this.port}`:`${this.socketPath}`}static fromString(e){return new D(e)}static fromHostPort(e,t){return e.includes(":")&&(e=`[${e}]`),D.fromString(`${e}:${t}`)}static fromSrvRecord({name:e,port:t}){return D.fromHostPort(e,t)}}function _(e){return process.emitWarning(e,{code:t.MONGODB_WARNING_CODE})}t.HostAddress=D,t.DEFAULT_PK_FACTORY={createPk:()=>new o.ObjectId},t.MONGODB_WARNING_CODE="MONGODB DRIVER",t.emitWarning=_;const O=new Set;t.emitWarningOnce=function(e){if(!O.has(e))return O.add(e),_(e)},t.enumToString=function(e){return Object.values(e).join(", ")},t.supportsRetryableWrites=function(e){return!!e&&(!!e.loadBalanced||null!=e.description.logicalSessionTimeoutMinutes&&e.description.type!==d.ServerType.Standalone)},t.parsePackageVersion=function({version:e}){const[t,n,r]=e.split(".").map((e=>Number.parseInt(e,10)));return{major:t,minor:n,patch:r}},t.shuffle=function(e,t=0){const n=Array.from(e);if(t>n.length)throw new l.MongoRuntimeError("Limit must be less than the number of items");let r=n.length;const i=t%n.length==0?1:n.length-t;for(;r>i;){const e=Math.floor(Math.random()*r);r-=1;const t=n[r];n[r]=n[e],n[e]=t}return t%n.length==0?n:n.slice(i)},t.commandSupportsReadConcern=function(e,t){return!!(e.aggregate||e.count||e.distinct||e.find||e.geoNear)||!(!(e.mapReduce&&t&&t.out)||1!==t.out.inline&&"inline"!==t.out)}},4620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteConcern=t.WRITE_CONCERN_KEYS=void 0,t.WRITE_CONCERN_KEYS=["w","wtimeout","j","journal","fsync"];class n{constructor(e,t,n,r){null!=e&&(Number.isNaN(Number(e))?this.w=e:this.w=Number(e)),null!=t&&(this.wtimeout=t),null!=n&&(this.j=n),null!=r&&(this.fsync=r)}static fromOptions(e,t){if(null==e)return;let r;t=null!=t?t:{},r="string"==typeof e||"number"==typeof e?{w:e}:e instanceof n?e:e.writeConcern;const i=t instanceof n?t:t.writeConcern,{w:s,wtimeout:o,j:a,fsync:u,journal:l,wtimeoutMS:c}={...i,...r};return null!=s||null!=o||null!=c||null!=a||null!=l||null!=u?new n(s,null!=o?o:c,null!=a?a:l,u):void 0}}t.WriteConcern=n},2334:e=>{"use strict";function t(e,t){t=t||{},this._head=0,this._tail=0,this._capacity=t.capacity,this._capacityMask=3,this._list=new Array(4),Array.isArray(e)&&this._fromArray(e)}t.prototype.peekAt=function(e){var t=e;if(t===(0|t)){var n=this.size();if(!(t>=n||t<-n))return t<0&&(t+=n),t=this._head+t&this._capacityMask,this._list[t]}},t.prototype.get=function(e){return this.peekAt(e)},t.prototype.peek=function(){if(this._head!==this._tail)return this._list[this._head]},t.prototype.peekFront=function(){return this.peek()},t.prototype.peekBack=function(){return this.peekAt(-1)},Object.defineProperty(t.prototype,"length",{get:function(){return this.size()}}),t.prototype.size=function(){return this._head===this._tail?0:this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},t.prototype.unshift=function(e){if(0===arguments.length)return this.size();var t=this._list.length;return this._head=this._head-1+t&this._capacityMask,this._list[this._head]=e,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.pop(),this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},t.prototype.shift=function(){var e=this._head;if(e!==this._tail){var t=this._list[e];return this._list[e]=void 0,this._head=e+1&this._capacityMask,e<2&&this._tail>1e4&&this._tail<=this._list.length>>>2&&this._shrinkArray(),t}},t.prototype.push=function(e){if(0===arguments.length)return this.size();var t=this._tail;return this._list[t]=e,this._tail=t+1&this._capacityMask,this._tail===this._head&&this._growArray(),this._capacity&&this.size()>this._capacity&&this.shift(),this._head<this._tail?this._tail-this._head:this._capacityMask+1-(this._head-this._tail)},t.prototype.pop=function(){var e=this._tail;if(e!==this._head){var t=this._list.length;this._tail=e-1+t&this._capacityMask;var n=this._list[this._tail];return this._list[this._tail]=void 0,this._head<2&&e>1e4&&e<=t>>>2&&this._shrinkArray(),n}},t.prototype.removeOne=function(e){var t=e;if(t===(0|t)&&this._head!==this._tail){var n=this.size(),r=this._list.length;if(!(t>=n||t<-n)){t<0&&(t+=n),t=this._head+t&this._capacityMask;var i,s=this._list[t];if(e<n/2){for(i=e;i>0;i--)this._list[t]=this._list[t=t-1+r&this._capacityMask];this._list[t]=void 0,this._head=this._head+1+r&this._capacityMask}else{for(i=n-1-e;i>0;i--)this._list[t]=this._list[t=t+1+r&this._capacityMask];this._list[t]=void 0,this._tail=this._tail-1+r&this._capacityMask}return s}}},t.prototype.remove=function(e,t){var n,r=e,i=t;if(r===(0|r)&&this._head!==this._tail){var s=this.size(),o=this._list.length;if(!(r>=s||r<-s||t<1)){if(r<0&&(r+=s),1===t||!t)return(n=new Array(1))[0]=this.removeOne(r),n;if(0===r&&r+t>=s)return n=this.toArray(),this.clear(),n;var a;for(r+t>s&&(t=s-r),n=new Array(t),a=0;a<t;a++)n[a]=this._list[this._head+r+a&this._capacityMask];if(r=this._head+r&this._capacityMask,e+t===s){for(this._tail=this._tail-t+o&this._capacityMask,a=t;a>0;a--)this._list[r=r+1+o&this._capacityMask]=void 0;return n}if(0===e){for(this._head=this._head+t+o&this._capacityMask,a=t-1;a>0;a--)this._list[r=r+1+o&this._capacityMask]=void 0;return n}if(r<s/2){for(this._head=this._head+e+t+o&this._capacityMask,a=e;a>0;a--)this.unshift(this._list[r=r-1+o&this._capacityMask]);for(r=this._head-1+o&this._capacityMask;i>0;)this._list[r=r-1+o&this._capacityMask]=void 0,i--;e<0&&(this._tail=r)}else{for(this._tail=r,r=r+t+o&this._capacityMask,a=s-(t+e);a>0;a--)this.push(this._list[r++]);for(r=this._tail;i>0;)this._list[r=r+1+o&this._capacityMask]=void 0,i--}return this._head<2&&this._tail>1e4&&this._tail<=o>>>2&&this._shrinkArray(),n}}},t.prototype.splice=function(e,t){var n=e;if(n===(0|n)){var r=this.size();if(n<0&&(n+=r),!(n>r)){if(arguments.length>2){var i,s,o,a=arguments.length,u=this._list.length,l=2;if(!r||n<r/2){for(s=new Array(n),i=0;i<n;i++)s[i]=this._list[this._head+i&this._capacityMask];for(0===t?(o=[],n>0&&(this._head=this._head+n+u&this._capacityMask)):(o=this.remove(n,t),this._head=this._head+n+u&this._capacityMask);a>l;)this.unshift(arguments[--a]);for(i=n;i>0;i--)this.unshift(s[i-1])}else{var c=(s=new Array(r-(n+t))).length;for(i=0;i<c;i++)s[i]=this._list[this._head+n+t+i&this._capacityMask];for(0===t?(o=[],n!=r&&(this._tail=this._head+n+u&this._capacityMask)):(o=this.remove(n,t),this._tail=this._tail-c+u&this._capacityMask);l<a;)this.push(arguments[l++]);for(i=0;i<c;i++)this.push(s[i])}return o}return this.remove(n,t)}}},t.prototype.clear=function(){this._head=0,this._tail=0},t.prototype.isEmpty=function(){return this._head===this._tail},t.prototype.toArray=function(){return this._copyArray(!1)},t.prototype._fromArray=function(e){for(var t=0;t<e.length;t++)this.push(e[t])},t.prototype._copyArray=function(e){var t,n=[],r=this._list,i=r.length;if(e||this._head>this._tail){for(t=this._head;t<i;t++)n.push(r[t]);for(t=0;t<this._tail;t++)n.push(r[t])}else for(t=this._head;t<this._tail;t++)n.push(r[t]);return n},t.prototype._growArray=function(){this._head&&(this._list=this._copyArray(!0),this._head=0),this._tail=this._list.length,this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1},t.prototype._shrinkArray=function(){this._list.length>>>=1,this._capacityMask>>>=1},e.exports=t},1378:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,o){o=o||{};var a,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var o=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===l&&isFinite(e))return o.long?(a=e,(u=Math.abs(a))>=i?s(a,u,i,"day"):u>=r?s(a,u,r,"hour"):u>=n?s(a,u,n,"minute"):u>=t?s(a,u,t,"second"):a+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8726:(e,t,n)=>{"use strict";var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(9497),o=u(s),a=u(n(23));function u(e){return e&&e.__esModule?e:{default:e}}var l={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],p=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},h=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),d=function(){return h?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||d()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||d()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(p(e,this.sizer),this.placeHolderSizer&&p(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return h&&e?o.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){c.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,o.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),o.default.createElement("input",r({},i,{ref:this.inputRef})),o.default.createElement("div",{ref:this.sizerRef,style:l},e),this.props.placeholder?o.default.createElement("div",{ref:this.placeHolderSizerRef,style:l},this.props.placeholder):null)}}]),t}(s.Component);f.propTypes={className:a.default.string,defaultValue:a.default.any,extraWidth:a.default.oneOfType([a.default.number,a.default.string]),id:a.default.string,injectStyles:a.default.bool,inputClassName:a.default.string,inputRef:a.default.func,inputStyle:a.default.object,minWidth:a.default.oneOfType([a.default.number,a.default.string]),onAutosize:a.default.func,onChange:a.default.func,placeholder:a.default.string,placeholderIsMinWidth:a.default.bool,style:a.default.object,value:a.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.Z=f},8559:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=(n&&Symbol.for("react.element"),n&&Symbol.for("react.portal"),n?Symbol.for("react.fragment"):60107),i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,o=n?Symbol.for("react.provider"):60109,a=n?Symbol.for("react.context"):60110,u=(n&&Symbol.for("react.async_mode"),n?Symbol.for("react.concurrent_mode"):60111),l=n?Symbol.for("react.forward_ref"):60112,c=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,d=n?Symbol.for("react.lazy"):60116,f=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===s||e===i||e===c||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===h||e.$$typeof===o||e.$$typeof===a||e.$$typeof===l||e.$$typeof===m||e.$$typeof===g||e.$$typeof===E||e.$$typeof===f)}},3920:(e,t,n)=>{"use strict";e.exports=n(8559)},8139:(e,t,n)=>{"use strict";e.exports=n(1568).gunzipSync(Buffer.from("H4sIAAAAAAACA+3dTYgcWR0A8FfTnekQ47aCkBxiZpYV8RhwYQM7bA/ksoLgSRD0IOSiePAkLrowvWSF4CkHEW856MlTQHA9RKZ1ZJODsEcVcTOyhxUEbXdXtpPp1PNVV39Uz4czEyaTVOb3G6a7XtWrr/devX49/+qekG2Go7Aa2jHGyozG+Dmrzi2mP/xb/zMhLI+WlRm2byubm2h0ivVi7BYzusVjuNkt1l9uFWsutWL8OP4rzV9KeXdsKx1HFhbSc6vIG0fKBZ14UNfLFS6FRrGRtXh98ZvphL/x4uLV/IOzaat/vlikv/TixavxR8PQitfPpKNbffXSwgtr8fV07GX+L1967urwg5W0/t0LV37y/oWFlQtX8ping7reXE3LT680r9yPKyn/3Vn64SwdVs6m/KN0yHrp9D+RvXsqpe6MSia5mH6LSog//Xq/++O74YVTjfDFWK2VIuNSemiPppphcVYeyzcudKqFMiq6cs3vVkrzlcnE0mxeZ1Jf2ZXsSvk8TmRZWYdpalydxd5bc8eUkt1wlEbtqTVLr8XQLFpKMb+dpr9SbSOt4ozTgXUq8+Ihm8cTt0shtCvT6dwao6sxPf5ydmU208/Z0yH8IZtlvZi3e5fG12yn3PLSdPvnQ7vsK9rxyKpqevzFZGVfu3YHezvbnbvit9Xdm5fGbf/MZ7PuuNrTjLJnaofH7gm0h+VKU/g/tdUocrer3cO4yOcuycGoyLrba6Ta+lrlnkZ5ntvWCrfV39wLTuNg9QvsvHb37P8BAGCP0eNTOH5szf154JmnNQIcn7b+FziyAfX4eWnn+C6Lm4M0mj31ubkViiDV4WLvs56qN54xGS3HWER5su6nQtZubl9tcY/4atbr9e5kWewew/g2a8fdy2Yaa97+pgQAAAAAAIBHtt+dYmWwaN/byI5g/9PYVfMvb4YvvDpOLJxvFgueP9VbPXh8/yCZViZxNYATaejmDQAAAACgfjJ/3QUA4JD3Px1InT+5PtQCAAAAAAAAAKD2xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP7E/wEAAAAAAACg/sT/AQAAAAAAAKD+xP8BAAAAAAAAoP6G6+khVCgSAAAAAAAAAKidYQjLYVfNcPSyAE+dhQsnvAAq59/VHAAAAAAAAOCJmv8E/w4HiLqf3nWuWCB1pe0esg/pT3sKd+m4XjhpFpZH3/1THTcU6cfRLnrHf3ZNPZs+bf9rwPuIUPYAWb+j/Zy0EaAxAAAAAADwrPJ1IMBenu6ea99M+0W/17wCAAAAAAAAnGRLm8oA4JnQUAQAAAAAAAAAUHvi/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/4v8AAAAAAAAAUH/i/wAAAAAAAABQf+L/AAAAAAAAAFB/jdX0ECsUCQAAAAAAAADUTiMCAAAAAAAAAHU3VAQAAAAAAAAAUH8hLNf1uwsWbhT/uWBzUEx/ei1Nxc001VqrnN2wuRjCK3G4HuNgtuJoSVj17Q9QyBQBAAAAAAAAHMKpuJ4/+Otc5L2XZi8dJlQ/LCPXhc4keJ9UI9uFre3rDfY9uoXZPQBFHL34HSWWm8sx5rH83d967IfZMRZHHG/2Qi8MFnbscXnhnzHei5NND8P2bW2OT3G8vFeebBHbz9dGEf5jDt+fK4/mTve1bnwndsNL92+mE/75xhs/yz65Ed/ZbP29SP96oxvCDxrxcjj333R262/d6X6tG66lYy/z/+rtMn83nHvv9nfOv/dw4+pvspCl4v7+1npa/nHvtbSvjSJ/mf79/VuLC7N03LiW8o/SMU8ldO+jPOul1OVQ3vVwK+TZqBLCt3/RXvveS7eaD0L8YyhrJeV/cC0WGTdD1hzlCo2H98vzK9a+963V7qRVTeaNa+ZGpWp+N62jSmOetJD8dn67fB4n8nzchG7n4+os2tcgzLWUQVg70rta8lE7nqW7IW710v7eDsV1F7e6433njYfd9j9Gl2KIveptMePVamOXQuhXO5tUk6Pv+kiPX43T7/3YevDy4MN+HLw8CHPX6OqOOwKe73z0+pnf3rvT6pX76j/SUU7/3UjqX5r7ZW7PdZU8Vq2id+29Pphdh3n1Tqp/t0aXaWVOPnsFGre+waRdpKf/TK+7fiX3bOWluVeJg77AAPNDwr37fwAA2GP0+BSOHwcn6/231ghwfPr6X+DIBtTj582d47s8LD3xMeYktt+YHXHe6XQuH9P4Nu+H3ctmGmve/qYEAAAAAACAR7bfnWJlsGgSNNoM54tPZ23EI4vYzPY1/fzq1ud/GP/01jjx8P2tYsG7DzrrB4/vHySTz5YB+n8AAAAAgJrJ/XEXAIDHEf/2yXUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgGdABAAAAAAAAADqbqgIAAAAAAAAAKD2hv8DWK79UBhoBgA=","base64"))},7017:(e,t,n)=>{"use strict";const{unassigned_code_points:r,commonly_mapped_to_nothing:i,non_ASCII_space_characters:s,prohibited_characters:o,bidirectional_r_al:a,bidirectional_l:u}=n(6392);e.exports=function(e,t={}){if("string"!=typeof e)throw new TypeError("Expected string.");if(0===e.length)return"";const n=h(e).map((e=>l.get(e)?32:e)).filter((e=>!c.get(e))),i=String.fromCodePoint.apply(null,n).normalize("NFKC"),s=h(i);if(s.some((e=>o.get(e))))throw new Error("Prohibited character, see https://tools.ietf.org/html/rfc4013#section-2.3");if(!0!==t.allowUnassigned&&s.some((e=>r.get(e))))throw new Error("Unassigned code point, see https://tools.ietf.org/html/rfc4013#section-2.5");const d=s.some((e=>a.get(e))),f=s.some((e=>u.get(e)));if(d&&f)throw new Error("String must not contain RandALCat and LCat at the same time, see https://tools.ietf.org/html/rfc3454#section-6");const m=a.get(p(i[0])),g=a.get(p((e=>e[e.length-1])(i)));if(d&&(!m||!g))throw new Error("Bidirectional RandALCat character must be the first and the last character of the string, see https://tools.ietf.org/html/rfc3454#section-6");return i};const l=s,c=i,p=e=>e.codePointAt(0);function h(e){const t=[],n=e.length;for(let r=0;r<n;r+=1){const i=e.charCodeAt(r);if(i>=55296&&i<=56319&&n>r+1){const n=e.charCodeAt(r+1);if(n>=56320&&n<=57343){t.push(1024*(i-55296)+n-56320+65536),r+=1;continue}}t.push(i)}return t}},6392:(e,t,n)=>{"use strict";const r=n(3184),i=n(8139);let s=0;function o(){const e=i.readUInt32BE(s);s+=4;const t=i.slice(s,s+e);return s+=e,r({buffer:t})}const a=o(),u=o(),l=o(),c=o(),p=o(),h=o();e.exports={unassigned_code_points:a,commonly_mapped_to_nothing:u,non_ASCII_space_characters:l,prohibited_characters:c,bidirectional_r_al:p,bidirectional_l:h}},3619:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(9460);class i{constructor(e){if(this.length=0,this._encoding="utf8",this._writeOffset=0,this._readOffset=0,i.isSmartBufferOptions(e))if(e.encoding&&(r.checkEncoding(e.encoding),this._encoding=e.encoding),e.size){if(!(r.isFiniteInteger(e.size)&&e.size>0))throw new Error(r.ERRORS.INVALID_SMARTBUFFER_SIZE);this._buff=Buffer.allocUnsafe(e.size)}else if(e.buff){if(!Buffer.isBuffer(e.buff))throw new Error(r.ERRORS.INVALID_SMARTBUFFER_BUFFER);this._buff=e.buff,this.length=e.buff.length}else this._buff=Buffer.allocUnsafe(4096);else{if(void 0!==e)throw new Error(r.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(4096)}}static fromSize(e,t){return new this({size:e,encoding:t})}static fromBuffer(e,t){return new this({buff:e,encoding:t})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){const t=e;return t&&(void 0!==t.encoding||void 0!==t.size||void 0!==t.buff)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return r.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return r.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,t),this}insertInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,t)}writeInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}insertInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,t)}writeInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}insertInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,t)}writeInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}insertInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32BE,4,e,t)}writeInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}insertInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeInt32LE,4,e,t)}writeBigInt64BE(e,t){return r.bigIntAndBufferInt64Check("writeBigInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}insertBigInt64BE(e,t){return r.bigIntAndBufferInt64Check("writeBigInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigInt64BE,8,e,t)}writeBigInt64LE(e,t){return r.bigIntAndBufferInt64Check("writeBigInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}insertBigInt64LE(e,t){return r.bigIntAndBufferInt64Check("writeBigInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigInt64LE,8,e,t)}readUInt8(e){return this._readNumberValue(Buffer.prototype.readUInt8,1,e)}readUInt16BE(e){return this._readNumberValue(Buffer.prototype.readUInt16BE,2,e)}readUInt16LE(e){return this._readNumberValue(Buffer.prototype.readUInt16LE,2,e)}readUInt32BE(e){return this._readNumberValue(Buffer.prototype.readUInt32BE,4,e)}readUInt32LE(e){return this._readNumberValue(Buffer.prototype.readUInt32LE,4,e)}readBigUInt64BE(e){return r.bigIntAndBufferInt64Check("readBigUInt64BE"),this._readNumberValue(Buffer.prototype.readBigUInt64BE,8,e)}readBigUInt64LE(e){return r.bigIntAndBufferInt64Check("readBigUInt64LE"),this._readNumberValue(Buffer.prototype.readBigUInt64LE,8,e)}writeUInt8(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt8,1,e,t)}insertUInt8(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt8,1,e,t)}writeUInt16BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}insertUInt16BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16BE,2,e,t)}writeUInt16LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}insertUInt16LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt16LE,2,e,t)}writeUInt32BE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}insertUInt32BE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32BE,4,e,t)}writeUInt32LE(e,t){return this._writeNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}insertUInt32LE(e,t){return this._insertNumberValue(Buffer.prototype.writeUInt32LE,4,e,t)}writeBigUInt64BE(e,t){return r.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}insertBigUInt64BE(e,t){return r.bigIntAndBufferInt64Check("writeBigUInt64BE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64BE,8,e,t)}writeBigUInt64LE(e,t){return r.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._writeNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}insertBigUInt64LE(e,t){return r.bigIntAndBufferInt64Check("writeBigUInt64LE"),this._insertNumberValue(Buffer.prototype.writeBigUInt64LE,8,e,t)}readFloatBE(e){return this._readNumberValue(Buffer.prototype.readFloatBE,4,e)}readFloatLE(e){return this._readNumberValue(Buffer.prototype.readFloatLE,4,e)}writeFloatBE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}insertFloatBE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatBE,4,e,t)}writeFloatLE(e,t){return this._writeNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}insertFloatLE(e,t){return this._insertNumberValue(Buffer.prototype.writeFloatLE,4,e,t)}readDoubleBE(e){return this._readNumberValue(Buffer.prototype.readDoubleBE,8,e)}readDoubleLE(e){return this._readNumberValue(Buffer.prototype.readDoubleLE,8,e)}writeDoubleBE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}insertDoubleBE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleBE,8,e,t)}writeDoubleLE(e,t){return this._writeNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}insertDoubleLE(e,t){return this._insertNumberValue(Buffer.prototype.writeDoubleLE,8,e,t)}readString(e,t){let n;"number"==typeof e?(r.checkLengthValue(e),n=Math.min(e,this.length-this._readOffset)):(t=e,n=this.length-this._readOffset),void 0!==t&&r.checkEncoding(t);const i=this._buff.slice(this._readOffset,this._readOffset+n).toString(t||this._encoding);return this._readOffset+=n,i}insertString(e,t,n){return r.checkOffsetValue(t),this._handleString(e,!0,t,n)}writeString(e,t,n){return this._handleString(e,!1,t,n)}readStringNT(e){void 0!==e&&r.checkEncoding(e);let t=this.length;for(let e=this._readOffset;e<this.length;e++)if(0===this._buff[e]){t=e;break}const n=this._buff.slice(this._readOffset,t);return this._readOffset=t+1,n.toString(e||this._encoding)}insertStringNT(e,t,n){return r.checkOffsetValue(t),this.insertString(e,t,n),this.insertUInt8(0,t+e.length),this}writeStringNT(e,t,n){return this.writeString(e,t,n),this.writeUInt8(0,"number"==typeof t?t+e.length:this.writeOffset),this}readBuffer(e){void 0!==e&&r.checkLengthValue(e);const t="number"==typeof e?e:this.length,n=Math.min(this.length,this._readOffset+t),i=this._buff.slice(this._readOffset,n);return this._readOffset=n,i}insertBuffer(e,t){return r.checkOffsetValue(t),this._handleBuffer(e,!0,t)}writeBuffer(e,t){return this._handleBuffer(e,!1,t)}readBufferNT(){let e=this.length;for(let t=this._readOffset;t<this.length;t++)if(0===this._buff[t]){e=t;break}const t=this._buff.slice(this._readOffset,e);return this._readOffset=e+1,t}insertBufferNT(e,t){return r.checkOffsetValue(t),this.insertBuffer(e,t),this.insertUInt8(0,t+e.length),this}writeBufferNT(e,t){return void 0!==t&&r.checkOffsetValue(t),this.writeBuffer(e,t),this.writeUInt8(0,"number"==typeof t?t+e.length:this._writeOffset),this}clear(){return this._writeOffset=0,this._readOffset=0,this.length=0,this}remaining(){return this.length-this._readOffset}get readOffset(){return this._readOffset}set readOffset(e){r.checkOffsetValue(e),r.checkTargetOffset(e,this),this._readOffset=e}get writeOffset(){return this._writeOffset}set writeOffset(e){r.checkOffsetValue(e),r.checkTargetOffset(e,this),this._writeOffset=e}get encoding(){return this._encoding}set encoding(e){r.checkEncoding(e),this._encoding=e}get internalBuffer(){return this._buff}toBuffer(){return this._buff.slice(0,this.length)}toString(e){const t="string"==typeof e?e:this._encoding;return r.checkEncoding(t),this._buff.toString(t,0,this.length)}destroy(){return this.clear(),this}_handleString(e,t,n,i){let s=this._writeOffset,o=this._encoding;"number"==typeof n?s=n:"string"==typeof n&&(r.checkEncoding(n),o=n),"string"==typeof i&&(r.checkEncoding(i),o=i);const a=Buffer.byteLength(e,o);return t?this.ensureInsertable(a,s):this._ensureWriteable(a,s),this._buff.write(e,s,a,o),t?this._writeOffset+=a:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,s+a):this._writeOffset+=a,this}_handleBuffer(e,t,n){const r="number"==typeof n?n:this._writeOffset;return t?this.ensureInsertable(e.length,r):this._ensureWriteable(e.length,r),e.copy(this._buff,r),t?this._writeOffset+=e.length:"number"==typeof n?this._writeOffset=Math.max(this._writeOffset,r+e.length):this._writeOffset+=e.length,this}ensureReadable(e,t){let n=this._readOffset;if(void 0!==t&&(r.checkOffsetValue(t),n=t),n<0||n+e>this.length)throw new Error(r.ERRORS.INVALID_READ_BEYOND_BOUNDS)}ensureInsertable(e,t){r.checkOffsetValue(t),this._ensureCapacity(this.length+e),t<this.length&&this._buff.copy(this._buff,t+e,t,this._buff.length),t+e>this.length?this.length=t+e:this.length+=e}_ensureWriteable(e,t){const n="number"==typeof t?t:this._writeOffset;this._ensureCapacity(n+e),n+e>this.length&&(this.length=n+e)}_ensureCapacity(e){const t=this._buff.length;if(e>t){let n=this._buff,r=3*t/2+1;r<e&&(r=e),this._buff=Buffer.allocUnsafe(r),n.copy(this._buff,0,0,t)}}_readNumberValue(e,t,n){this.ensureReadable(t,n);const r=e.call(this._buff,"number"==typeof n?n:this._readOffset);return void 0===n&&(this._readOffset+=t),r}_insertNumberValue(e,t,n,i){return r.checkOffsetValue(i),this.ensureInsertable(t,i),e.call(this._buff,n,i),this._writeOffset+=t,this}_writeNumberValue(e,t,n,i){if("number"==typeof i){if(i<0)throw new Error(r.ERRORS.INVALID_WRITE_BEYOND_BOUNDS);r.checkOffsetValue(i)}const s="number"==typeof i?i:this._writeOffset;return this._ensureWriteable(t,s),e.call(this._buff,n,s),"number"==typeof i?this._writeOffset=Math.max(this._writeOffset,s+t):this._writeOffset+=t,this}}t.SmartBuffer=i},9460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8893),i={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};function s(e){return"number"==typeof e&&isFinite(e)&&function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}function o(e,t){if("number"!=typeof e)throw new Error(t?i.INVALID_OFFSET_NON_NUMBER:i.INVALID_LENGTH_NON_NUMBER);if(!s(e)||e<0)throw new Error(t?i.INVALID_OFFSET:i.INVALID_LENGTH)}t.ERRORS=i,t.checkEncoding=function(e){if(!r.Buffer.isEncoding(e))throw new Error(i.INVALID_ENCODING)},t.isFiniteInteger=s,t.checkLengthValue=function(e){o(e,!1)},t.checkOffsetValue=function(e){o(e,!0)},t.checkTargetOffset=function(e,t){if(e<0||e>t.length)throw new Error(i.INVALID_TARGET_OFFSET)},t.bigIntAndBufferInt64Check=function(e){if("undefined"==typeof BigInt)throw new Error("Platform does not support JS BigInt type.");if(void 0===r.Buffer.prototype[e])throw new Error(`Platform does not support Buffer.prototype.${e}.`)}},9875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{u(r.next(e))}catch(e){s(e)}}function a(e){try{u(r.throw(e))}catch(e){s(e)}}function u(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(o,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SocksClientError=t.SocksClient=void 0;const i=n(7702),s=n(8216),o=n(7543),a=n(3619),u=n(9897),l=n(7385),c=n(9520),p=n(5155);Object.defineProperty(t,"SocksClientError",{enumerable:!0,get:function(){return p.SocksClientError}});class h extends i.EventEmitter{constructor(e){super(),this.options=Object.assign({},e),(0,l.validateSocksClientOptions)(e),this.setState(u.SocksClientState.Created)}static createConnection(e,t){return new Promise(((n,r)=>{try{(0,l.validateSocksClientOptions)(e,["connect"])}catch(e){return"function"==typeof t?(t(e),n(e)):r(e)}const i=new h(e);i.connect(e.existing_socket),i.once("established",(e=>{i.removeAllListeners(),"function"==typeof t?(t(null,e),n(e)):n(e)})),i.once("error",(e=>{i.removeAllListeners(),"function"==typeof t?(t(e),n(e)):r(e)}))}))}static createConnectionChain(e,t){return new Promise(((n,i)=>r(this,void 0,void 0,(function*(){try{(0,l.validateSocksClientChainOptions)(e)}catch(e){return"function"==typeof t?(t(e),n(e)):i(e)}let r;e.randomizeChain&&(0,p.shuffleArray)(e.proxies);try{for(let t=0;t<e.proxies.length;t++){const n=e.proxies[t],i=t===e.proxies.length-1?e.destination:{host:e.proxies[t+1].host||e.proxies[t+1].ipaddress,port:e.proxies[t+1].port},s=yield h.createConnection({command:"connect",proxy:n,destination:i});r||(r=s.socket)}"function"==typeof t?(t(null,{socket:r}),n({socket:r})):n({socket:r})}catch(e){"function"==typeof t?(t(e),n(e)):i(e)}}))))}static createUDPFrame(e){const t=new a.SmartBuffer;return t.writeUInt16BE(0),t.writeUInt8(e.frameNumber||0),s.isIPv4(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv4),t.writeUInt32BE(o.toLong(e.remoteHost.host))):s.isIPv6(e.remoteHost.host)?(t.writeUInt8(u.Socks5HostType.IPv6),t.writeBuffer(o.toBuffer(e.remoteHost.host))):(t.writeUInt8(u.Socks5HostType.Hostname),t.writeUInt8(Buffer.byteLength(e.remoteHost.host)),t.writeString(e.remoteHost.host)),t.writeUInt16BE(e.remoteHost.port),t.writeBuffer(e.data),t.toBuffer()}static parseUDPFrame(e){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const n=t.readUInt8(),r=t.readUInt8();let i;return i=r===u.Socks5HostType.IPv4?o.fromLong(t.readUInt32BE()):r===u.Socks5HostType.IPv6?o.toString(t.readBuffer(16)):t.readString(t.readUInt8()),{frameNumber:n,remoteHost:{host:i,port:t.readUInt16BE()},data:t.readBuffer()}}setState(e){this.state!==u.SocksClientState.Error&&(this.state=e)}connect(e){this.onDataReceived=e=>this.onDataReceivedHandler(e),this.onClose=()=>this.onCloseHandler(),this.onError=e=>this.onErrorHandler(e),this.onConnect=()=>this.onConnectHandler();const t=setTimeout((()=>this.onEstablishedTimeout()),this.options.timeout||u.DEFAULT_TIMEOUT);t.unref&&"function"==typeof t.unref&&t.unref(),this.socket=e||new s.Socket,this.socket.once("close",this.onClose),this.socket.once("error",this.onError),this.socket.once("connect",this.onConnect),this.socket.on("data",this.onDataReceived),this.setState(u.SocksClientState.Connecting),this.receiveBuffer=new c.ReceiveBuffer,e?this.socket.emit("connect"):(this.socket.connect(this.getSocketOptions()),void 0!==this.options.set_tcp_nodelay&&null!==this.options.set_tcp_nodelay&&this.socket.setNoDelay(!!this.options.set_tcp_nodelay)),this.prependOnceListener("established",(e=>{setImmediate((()=>{if(this.receiveBuffer.length>0){const t=this.receiveBuffer.get(this.receiveBuffer.length);e.socket.emit("data",t)}e.socket.resume()}))}))}getSocketOptions(){return Object.assign(Object.assign({},this.options.socket_options),{host:this.options.proxy.host||this.options.proxy.ipaddress,port:this.options.proxy.port})}onEstablishedTimeout(){this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.BoundWaitingForConnection&&this.closeSocket(u.ERRORS.ProxyConnectionTimedOut)}onConnectHandler(){this.setState(u.SocksClientState.Connected),4===this.options.proxy.type?this.sendSocks4InitialHandshake():this.sendSocks5InitialHandshake(),this.setState(u.SocksClientState.SentInitialHandshake)}onDataReceivedHandler(e){this.receiveBuffer.append(e),this.processData()}processData(){for(;this.state!==u.SocksClientState.Established&&this.state!==u.SocksClientState.Error&&this.receiveBuffer.length>=this.nextRequiredPacketBufferSize;)if(this.state===u.SocksClientState.SentInitialHandshake)4===this.options.proxy.type?this.handleSocks4FinalHandshakeResponse():this.handleInitialSocks5HandshakeResponse();else if(this.state===u.SocksClientState.SentAuthentication)this.handleInitialSocks5AuthenticationHandshakeResponse();else if(this.state===u.SocksClientState.SentFinalHandshake)this.handleSocks5FinalHandshakeResponse();else{if(this.state!==u.SocksClientState.BoundWaitingForConnection){this.closeSocket(u.ERRORS.InternalError);break}4===this.options.proxy.type?this.handleSocks4IncomingConnectionResponse():this.handleSocks5IncomingConnectionResponse()}}onCloseHandler(){this.closeSocket(u.ERRORS.SocketClosed)}onErrorHandler(e){this.closeSocket(e.message)}removeInternalSocketHandlers(){this.socket.pause(),this.socket.removeListener("data",this.onDataReceived),this.socket.removeListener("close",this.onClose),this.socket.removeListener("error",this.onError),this.socket.removeListener("connect",this.onConnect)}closeSocket(e){this.state!==u.SocksClientState.Error&&(this.setState(u.SocksClientState.Error),this.socket.destroy(),this.removeInternalSocketHandlers(),this.emit("error",new p.SocksClientError(e,this.options)))}sendSocks4InitialHandshake(){const e=this.options.proxy.userId||"",t=new a.SmartBuffer;t.writeUInt8(4),t.writeUInt8(u.SocksCommand[this.options.command]),t.writeUInt16BE(this.options.destination.port),s.isIPv4(this.options.destination.host)?(t.writeBuffer(o.toBuffer(this.options.destination.host)),t.writeStringNT(e)):(t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(0),t.writeUInt8(1),t.writeStringNT(e),t.writeStringNT(this.options.destination.host)),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks4Response,this.socket.write(t.toBuffer())}handleSocks4FinalHandshakeResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedConnection} - (${u.Socks4Response[e[1]]})`);else if(u.SocksCommand[this.options.command]===u.SocksCommand.bind){const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const n={port:t.readUInt16BE(),host:o.fromLong(t.readUInt32BE())};"0.0.0.0"===n.host&&(n.host=this.options.proxy.ipaddress),this.setState(u.SocksClientState.BoundWaitingForConnection),this.emit("bound",{remoteHost:n,socket:this.socket})}else this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{socket:this.socket})}handleSocks4IncomingConnectionResponse(){const e=this.receiveBuffer.get(8);if(e[1]!==u.Socks4Response.Granted)this.closeSocket(`${u.ERRORS.Socks4ProxyRejectedIncomingBoundConnection} - (${u.Socks4Response[e[1]]})`);else{const t=a.SmartBuffer.fromBuffer(e);t.readOffset=2;const n={port:t.readUInt16BE(),host:o.fromLong(t.readUInt32BE())};this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:n,socket:this.socket})}}sendSocks5InitialHandshake(){const e=new a.SmartBuffer,t=[u.Socks5Auth.NoAuth];(this.options.proxy.userId||this.options.proxy.password)&&t.push(u.Socks5Auth.UserPass),void 0!==this.options.proxy.custom_auth_method&&t.push(this.options.proxy.custom_auth_method),e.writeUInt8(5),e.writeUInt8(t.length);for(const n of t)e.writeUInt8(n);this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5InitialHandshakeResponse,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentInitialHandshake)}handleInitialSocks5HandshakeResponse(){const e=this.receiveBuffer.get(2);5!==e[0]?this.closeSocket(u.ERRORS.InvalidSocks5IntiailHandshakeSocksVersion):e[1]===u.SOCKS5_NO_ACCEPTABLE_AUTH?this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeNoAcceptedAuthType):e[1]===u.Socks5Auth.NoAuth?(this.socks5ChosenAuthType=u.Socks5Auth.NoAuth,this.sendSocks5CommandRequest()):e[1]===u.Socks5Auth.UserPass?(this.socks5ChosenAuthType=u.Socks5Auth.UserPass,this.sendSocks5UserPassAuthentication()):e[1]===this.options.proxy.custom_auth_method?(this.socks5ChosenAuthType=this.options.proxy.custom_auth_method,this.sendSocks5CustomAuthentication()):this.closeSocket(u.ERRORS.InvalidSocks5InitialHandshakeUnknownAuthType)}sendSocks5UserPassAuthentication(){const e=this.options.proxy.userId||"",t=this.options.proxy.password||"",n=new a.SmartBuffer;n.writeUInt8(1),n.writeUInt8(Buffer.byteLength(e)),n.writeString(e),n.writeUInt8(Buffer.byteLength(t)),n.writeString(t),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5UserPassAuthenticationResponse,this.socket.write(n.toBuffer()),this.setState(u.SocksClientState.SentAuthentication)}sendSocks5CustomAuthentication(){return r(this,void 0,void 0,(function*(){this.nextRequiredPacketBufferSize=this.options.proxy.custom_auth_response_size,this.socket.write(yield this.options.proxy.custom_auth_request_handler()),this.setState(u.SocksClientState.SentAuthentication)}))}handleSocks5CustomAuthHandshakeResponse(e){return r(this,void 0,void 0,(function*(){return yield this.options.proxy.custom_auth_response_handler(e)}))}handleSocks5AuthenticationNoAuthHandshakeResponse(e){return r(this,void 0,void 0,(function*(){return 0===e[1]}))}handleSocks5AuthenticationUserPassHandshakeResponse(e){return r(this,void 0,void 0,(function*(){return 0===e[1]}))}handleInitialSocks5AuthenticationHandshakeResponse(){return r(this,void 0,void 0,(function*(){this.setState(u.SocksClientState.ReceivedAuthenticationResponse);let e=!1;this.socks5ChosenAuthType===u.Socks5Auth.NoAuth?e=yield this.handleSocks5AuthenticationNoAuthHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===u.Socks5Auth.UserPass?e=yield this.handleSocks5AuthenticationUserPassHandshakeResponse(this.receiveBuffer.get(2)):this.socks5ChosenAuthType===this.options.proxy.custom_auth_method&&(e=yield this.handleSocks5CustomAuthHandshakeResponse(this.receiveBuffer.get(this.options.proxy.custom_auth_response_size))),e?this.sendSocks5CommandRequest():this.closeSocket(u.ERRORS.Socks5AuthenticationFailed)}))}sendSocks5CommandRequest(){const e=new a.SmartBuffer;e.writeUInt8(5),e.writeUInt8(u.SocksCommand[this.options.command]),e.writeUInt8(0),s.isIPv4(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv4),e.writeBuffer(o.toBuffer(this.options.destination.host))):s.isIPv6(this.options.destination.host)?(e.writeUInt8(u.Socks5HostType.IPv6),e.writeBuffer(o.toBuffer(this.options.destination.host))):(e.writeUInt8(u.Socks5HostType.Hostname),e.writeUInt8(this.options.destination.host.length),e.writeString(this.options.destination.host)),e.writeUInt16BE(this.options.destination.port),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.socket.write(e.toBuffer()),this.setState(u.SocksClientState.SentFinalHandshake)}handleSocks5FinalHandshakeResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.InvalidSocks5FinalHandshakeRejected} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let n,r;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),n={host:o.fromLong(r.readUInt32BE()),port:r.readUInt16BE()},"0.0.0.0"===n.host&&(n.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],i=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<i)return void(this.nextRequiredPacketBufferSize=i);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(i).slice(5)),n={host:r.readString(t),port:r.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),n={host:o.toString(r.readBuffer(16)),port:r.readUInt16BE()}}this.setState(u.SocksClientState.ReceivedFinalResponse),u.SocksCommand[this.options.command]===u.SocksCommand.connect?(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:n,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.bind?(this.setState(u.SocksClientState.BoundWaitingForConnection),this.nextRequiredPacketBufferSize=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHeader,this.emit("bound",{remoteHost:n,socket:this.socket})):u.SocksCommand[this.options.command]===u.SocksCommand.associate&&(this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:n,socket:this.socket}))}}handleSocks5IncomingConnectionResponse(){const e=this.receiveBuffer.peek(5);if(5!==e[0]||e[1]!==u.Socks5Response.Granted)this.closeSocket(`${u.ERRORS.Socks5ProxyRejectedIncomingBoundConnection} - ${u.Socks5Response[e[1]]}`);else{const t=e[3];let n,r;if(t===u.Socks5HostType.IPv4){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv4;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),n={host:o.fromLong(r.readUInt32BE()),port:r.readUInt16BE()},"0.0.0.0"===n.host&&(n.host=this.options.proxy.ipaddress)}else if(t===u.Socks5HostType.Hostname){const t=e[4],i=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseHostname(t);if(this.receiveBuffer.length<i)return void(this.nextRequiredPacketBufferSize=i);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(i).slice(5)),n={host:r.readString(t),port:r.readUInt16BE()}}else if(t===u.Socks5HostType.IPv6){const e=u.SOCKS_INCOMING_PACKET_SIZES.Socks5ResponseIPv6;if(this.receiveBuffer.length<e)return void(this.nextRequiredPacketBufferSize=e);r=a.SmartBuffer.fromBuffer(this.receiveBuffer.get(e).slice(4)),n={host:o.toString(r.readBuffer(16)),port:r.readUInt16BE()}}this.setState(u.SocksClientState.Established),this.removeInternalSocketHandlers(),this.emit("established",{remoteHost:n,socket:this.socket})}}get socksClientOptions(){return Object.assign({},this.options)}}t.SocksClient=h},9897:(e,t)=>{"use strict";var n,r,i,s,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKS5_NO_ACCEPTABLE_AUTH=t.SOCKS5_CUSTOM_AUTH_END=t.SOCKS5_CUSTOM_AUTH_START=t.SOCKS_INCOMING_PACKET_SIZES=t.SocksClientState=t.Socks5Response=t.Socks5HostType=t.Socks5Auth=t.Socks4Response=t.SocksCommand=t.ERRORS=t.DEFAULT_TIMEOUT=void 0,t.DEFAULT_TIMEOUT=3e4,t.ERRORS={InvalidSocksCommand:"An invalid SOCKS command was provided. Valid options are connect, bind, and associate.",InvalidSocksCommandForOperation:"An invalid SOCKS command was provided. Only a subset of commands are supported for this operation.",InvalidSocksCommandChain:"An invalid SOCKS command was provided. Chaining currently only supports the connect command.",InvalidSocksClientOptionsDestination:"An invalid destination host was provided.",InvalidSocksClientOptionsExistingSocket:"An invalid existing socket was provided. This should be an instance of stream.Duplex.",InvalidSocksClientOptionsProxy:"Invalid SOCKS proxy details were provided.",InvalidSocksClientOptionsTimeout:"An invalid timeout value was provided. Please enter a value above 0 (in ms).",InvalidSocksClientOptionsProxiesLength:"At least two socks proxies must be provided for chaining.",InvalidSocksClientOptionsCustomAuthRange:"Custom auth must be a value between 0x80 and 0xFE.",InvalidSocksClientOptionsCustomAuthOptions:"When a custom_auth_method is provided, custom_auth_request_handler, custom_auth_response_size, and custom_auth_response_handler must also be provided and valid.",NegotiationError:"Negotiation error",SocketClosed:"Socket closed",ProxyConnectionTimedOut:"Proxy connection timed out",InternalError:"SocksClient internal error (this should not happen)",InvalidSocks4HandshakeResponse:"Received invalid Socks4 handshake response",Socks4ProxyRejectedConnection:"Socks4 Proxy rejected connection",InvalidSocks4IncomingConnectionResponse:"Socks4 invalid incoming connection response",Socks4ProxyRejectedIncomingBoundConnection:"Socks4 Proxy rejected incoming bound connection",InvalidSocks5InitialHandshakeResponse:"Received invalid Socks5 initial handshake response",InvalidSocks5IntiailHandshakeSocksVersion:"Received invalid Socks5 initial handshake (invalid socks version)",InvalidSocks5InitialHandshakeNoAcceptedAuthType:"Received invalid Socks5 initial handshake (no accepted authentication type)",InvalidSocks5InitialHandshakeUnknownAuthType:"Received invalid Socks5 initial handshake (unknown authentication type)",Socks5AuthenticationFailed:"Socks5 Authentication failed",InvalidSocks5FinalHandshake:"Received invalid Socks5 final handshake response",InvalidSocks5FinalHandshakeRejected:"Socks5 proxy rejected connection",InvalidSocks5IncomingConnectionResponse:"Received invalid Socks5 incoming connection response",Socks5ProxyRejectedIncomingBoundConnection:"Socks5 Proxy rejected incoming bound connection"},t.SOCKS_INCOMING_PACKET_SIZES={Socks5InitialHandshakeResponse:2,Socks5UserPassAuthenticationResponse:2,Socks5ResponseHeader:5,Socks5ResponseIPv4:10,Socks5ResponseIPv6:22,Socks5ResponseHostname:e=>e+7,Socks4Response:8},function(e){e[e.connect=1]="connect",e[e.bind=2]="bind",e[e.associate=3]="associate"}(n||(n={})),t.SocksCommand=n,function(e){e[e.Granted=90]="Granted",e[e.Failed=91]="Failed",e[e.Rejected=92]="Rejected",e[e.RejectedIdent=93]="RejectedIdent"}(r||(r={})),t.Socks4Response=r,function(e){e[e.NoAuth=0]="NoAuth",e[e.GSSApi=1]="GSSApi",e[e.UserPass=2]="UserPass"}(i||(i={})),t.Socks5Auth=i,t.SOCKS5_CUSTOM_AUTH_START=128,t.SOCKS5_CUSTOM_AUTH_END=254,t.SOCKS5_NO_ACCEPTABLE_AUTH=255,function(e){e[e.Granted=0]="Granted",e[e.Failure=1]="Failure",e[e.NotAllowed=2]="NotAllowed",e[e.NetworkUnreachable=3]="NetworkUnreachable",e[e.HostUnreachable=4]="HostUnreachable",e[e.ConnectionRefused=5]="ConnectionRefused",e[e.TTLExpired=6]="TTLExpired",e[e.CommandNotSupported=7]="CommandNotSupported",e[e.AddressNotSupported=8]="AddressNotSupported"}(s||(s={})),t.Socks5Response=s,function(e){e[e.IPv4=1]="IPv4",e[e.Hostname=3]="Hostname",e[e.IPv6=4]="IPv6"}(o||(o={})),t.Socks5HostType=o,function(e){e[e.Created=0]="Created",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.SentInitialHandshake=3]="SentInitialHandshake",e[e.ReceivedInitialHandshakeResponse=4]="ReceivedInitialHandshakeResponse",e[e.SentAuthentication=5]="SentAuthentication",e[e.ReceivedAuthenticationResponse=6]="ReceivedAuthenticationResponse",e[e.SentFinalHandshake=7]="SentFinalHandshake",e[e.ReceivedFinalResponse=8]="ReceivedFinalResponse",e[e.BoundWaitingForConnection=9]="BoundWaitingForConnection",e[e.Established=10]="Established",e[e.Disconnected=11]="Disconnected",e[e.Error=99]="Error"}(a||(a={})),t.SocksClientState=a},7385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSocksClientChainOptions=t.validateSocksClientOptions=void 0;const r=n(5155),i=n(9897),s=n(6162);function o(e,t){if(void 0!==e.custom_auth_method){if(e.custom_auth_method<i.SOCKS5_CUSTOM_AUTH_START||e.custom_auth_method>i.SOCKS5_CUSTOM_AUTH_END)throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthRange,t);if(void 0===e.custom_auth_request_handler||"function"!=typeof e.custom_auth_request_handler)throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_size)throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t);if(void 0===e.custom_auth_response_handler||"function"!=typeof e.custom_auth_response_handler)throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsCustomAuthOptions,t)}}function a(e){return e&&"string"==typeof e.host&&"number"==typeof e.port&&e.port>=0&&e.port<=65535}function u(e){return e&&("string"==typeof e.host||"string"==typeof e.ipaddress)&&"number"==typeof e.port&&e.port>=0&&e.port<=65535&&(4===e.type||5===e.type)}function l(e){return"number"==typeof e&&e>0}t.validateSocksClientOptions=function(e,t=["connect","bind","associate"]){if(!i.SocksCommand[e.command])throw new r.SocksClientError(i.ERRORS.InvalidSocksCommand,e);if(-1===t.indexOf(e.command))throw new r.SocksClientError(i.ERRORS.InvalidSocksCommandForOperation,e);if(!a(e.destination))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e);if(!u(e.proxy))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e);if(o(e.proxy,e),e.timeout&&!l(e.timeout))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e);if(e.existing_socket&&!(e.existing_socket instanceof s.Duplex))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsExistingSocket,e)},t.validateSocksClientChainOptions=function(e){if("connect"!==e.command)throw new r.SocksClientError(i.ERRORS.InvalidSocksCommandChain,e);if(!a(e.destination))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsDestination,e);if(!(e.proxies&&Array.isArray(e.proxies)&&e.proxies.length>=2))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxiesLength,e);if(e.proxies.forEach((t=>{if(!u(t))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsProxy,e);o(t,e)})),e.timeout&&!l(e.timeout))throw new r.SocksClientError(i.ERRORS.InvalidSocksClientOptionsTimeout,e)}},9520:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReceiveBuffer=void 0,t.ReceiveBuffer=class{constructor(e=4096){this.buffer=Buffer.allocUnsafe(e),this.offset=0,this.originalSize=e}get length(){return this.offset}append(e){if(!Buffer.isBuffer(e))throw new Error("Attempted to append a non-buffer instance to ReceiveBuffer.");if(this.offset+e.length>=this.buffer.length){const t=this.buffer;this.buffer=Buffer.allocUnsafe(Math.max(this.buffer.length+this.originalSize,this.buffer.length+e.length)),t.copy(this.buffer)}return e.copy(this.buffer,this.offset),this.offset+=e.length}peek(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");return this.buffer.slice(0,e)}get(e){if(e>this.offset)throw new Error("Attempted to read beyond the bounds of the managed internal data.");const t=Buffer.allocUnsafe(e);return this.buffer.slice(0,e).copy(t),this.buffer.copyWithin(0,e,e+this.offset-e),this.offset-=e,t}}},5155:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shuffleArray=t.SocksClientError=void 0;class n extends Error{constructor(e,t){super(e),this.options=t}}t.SocksClientError=n,t.shuffleArray=function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}},2131:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(9875),t)},3184:(e,t,n)=>{var r=n(6902);function i(e){if(!(this instanceof i))return new i(e);if(e||(e={}),Buffer.isBuffer(e)&&(e={buffer:e}),this.pageOffset=e.pageOffset||0,this.pageSize=e.pageSize||1024,this.pages=e.pages||r(this.pageSize),this.byteLength=this.pages.length*this.pageSize,this.length=8*this.byteLength,(t=this.pageSize)&t-1)throw new Error("The page size should be a power of two");var t;if(this._trackUpdates=!!e.trackUpdates,this._pageMask=this.pageSize-1,e.buffer){for(var n=0;n<e.buffer.length;n+=this.pageSize)this.pages.set(n/this.pageSize,e.buffer.slice(n,n+this.pageSize));this.byteLength=e.buffer.length,this.length=8*this.byteLength}}e.exports=i,i.prototype.get=function(e){var t=7&e,n=(e-t)/8;return!!(this.getByte(n)&128>>t)},i.prototype.getByte=function(e){var t=e&this._pageMask,n=(e-t)/this.pageSize,r=this.pages.get(n,!0);return r?r.buffer[t+this.pageOffset]:0},i.prototype.set=function(e,t){var n=7&e,r=(e-n)/8,i=this.getByte(r);return this.setByte(r,t?i|128>>n:i&(255^128>>n))},i.prototype.toBuffer=function(){for(var e=function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t}(this.pages.length*this.pageSize),t=0;t<this.pages.length;t++){var n=this.pages.get(t,!0),r=t*this.pageSize;n&&n.buffer.copy(e,r,this.pageOffset,this.pageOffset+this.pageSize)}return e},i.prototype.setByte=function(e,t){var n=e&this._pageMask,r=(e-n)/this.pageSize,i=this.pages.get(r,!1);return n+=this.pageOffset,i.buffer[n]!==t&&(i.buffer[n]=t,e>=this.byteLength&&(this.byteLength=e+1,this.length=8*this.byteLength),this._trackUpdates&&this.pages.updated(i),!0)}},1227:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2447)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2447:(e,t,n)=>{e.exports=function(e){function t(e){let n,i=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},6625:(e,t)=>{var n;t=e.exports=G,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.src=[],o=0,a=o++;s[a]="0|[1-9]\\d*";var u=o++;s[u]="[0-9]+";var l=o++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var c=o++;s[c]="("+s[a]+")\\.("+s[a]+")\\.("+s[a]+")";var p=o++;s[p]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var h=o++;s[h]="(?:"+s[a]+"|"+s[l]+")";var d=o++;s[d]="(?:"+s[u]+"|"+s[l]+")";var f=o++;s[f]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=o++;s[m]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var g=o++;s[g]="[0-9A-Za-z-]+";var E=o++;s[E]="(?:\\+("+s[g]+"(?:\\."+s[g]+")*))";var y=o++,v="v?"+s[c]+s[f]+"?"+s[E]+"?";s[y]="^"+v+"$";var A="[v=\\s]*"+s[p]+s[m]+"?"+s[E]+"?",C=o++;s[C]="^"+A+"$";var b=o++;s[b]="((?:<|>)?=?)";var S=o++;s[S]=s[u]+"|x|X|\\*";var x=o++;s[x]=s[a]+"|x|X|\\*";var w=o++;s[w]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[f]+")?"+s[E]+"?)?)?";var D=o++;s[D]="[v=\\s]*("+s[S]+")(?:\\.("+s[S]+")(?:\\.("+s[S]+")(?:"+s[m]+")?"+s[E]+"?)?)?";var _=o++;s[_]="^"+s[b]+"\\s*"+s[w]+"$";var O=o++;s[O]="^"+s[b]+"\\s*"+s[D]+"$";var F=o++;s[F]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var T=o++;s[T]="(?:~>?)";var B=o++;s[B]="(\\s*)"+s[T]+"\\s+",i[B]=new RegExp(s[B],"g");var k=o++;s[k]="^"+s[T]+s[w]+"$";var R=o++;s[R]="^"+s[T]+s[D]+"$";var I=o++;s[I]="(?:\\^)";var N=o++;s[N]="(\\s*)"+s[I]+"\\s+",i[N]=new RegExp(s[N],"g");var P=o++;s[P]="^"+s[I]+s[w]+"$";var M=o++;s[M]="^"+s[I]+s[D]+"$";var L=o++;s[L]="^"+s[b]+"\\s*("+A+")$|^$";var j=o++;s[j]="^"+s[b]+"\\s*("+v+")$|^$";var V=o++;s[V]="(\\s*)"+s[b]+"\\s*("+A+"|"+s[w]+")",i[V]=new RegExp(s[V],"g");var U=o++;s[U]="^\\s*("+s[w]+")\\s+-\\s+("+s[w]+")\\s*$";var z=o++;s[z]="^\\s*("+s[D]+")\\s+-\\s+("+s[D]+")\\s*$";var q=o++;s[q]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)n(W,s[W]),i[W]||(i[W]=new RegExp(s[W]));function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[C]:i[y]).test(e))return null;try{return new G(e,t)}catch(e){return null}}function G(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof G){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof G))return new G(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var s=e.trim().match(t.loose?i[C]:i[y]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}t.parse=H,t.valid=function(e,t){var n=H(e,t);return n?n.version:null},t.clean=function(e,t){var n=H(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=G,G.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},G.prototype.toString=function(){return this.version},G.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof G||(e=new G(e,this.options)),this.compareMain(e)||this.comparePre(e)},G.prototype.compareMain=function(e){return e instanceof G||(e=new G(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},G.prototype.comparePre=function(e){if(e instanceof G||(e=new G(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},G.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new G(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Y(e,t))return null;var n=H(e),r=H(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var s="prerelease"}for(var o in n)if(("major"===o||"minor"===o||"patch"===o)&&n[o]!==r[o])return i+o;return s},t.compareIdentifiers=K;var $=/^[0-9]+$/;function K(e,t){var n=$.test(e),r=$.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new G(e,n).compare(new G(t,n))}function J(e,t,n){return X(e,t,n)>0}function Z(e,t,n){return X(e,t,n)<0}function Y(e,t,n){return 0===X(e,t,n)}function Q(e,t,n){return 0!==X(e,t,n)}function ee(e,t,n){return X(e,t,n)>=0}function te(e,t,n){return X(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Y(e,n,r);case"!=":return Q(e,n,r);case">":return J(e,n,r);case">=":return ee(e,n,r);case"<":return Z(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return K(t,e)},t.major=function(e,t){return new G(e,t).major},t.minor=function(e,t){return new G(e,t).minor},t.patch=function(e,t){return new G(e,t).patch},t.compare=X,t.compareLoose=function(e,t){return X(e,t,!0)},t.rcompare=function(e,t,n){return X(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=J,t.lt=Z,t.eq=Y,t.neq=Q,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof re)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function oe(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,s,o,a,u,l,c,p,h){return((t=oe(n)?"":oe(r)?">="+n+".0.0":oe(i)?">="+n+"."+r+".0":">="+t)+" "+(a=oe(u)?"":oe(l)?"<"+(+u+1)+".0.0":oe(c)?"<"+u+"."+(+l+1)+".0":p?"<="+u+"."+l+"."+c+"-"+p:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==ie&&e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}function le(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function ce(e,t,n,r){var i,s,o,a,u;switch(e=new G(e,r),t=new se(t,r),n){case">":i=J,s=te,o=Z,a=">",u=">=";break;case"<":i=Z,s=ee,o=J,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var c=t.set[l],p=null,h=null;if(c.forEach((function(e){e.semver===ie&&(e=new re(">=0.0.0")),p=p||e,h=h||e,i(e.semver,p.semver,r)?p=e:o(e.semver,h.semver,r)&&(h=e)})),p.operator===a||p.operator===u)return!1;if((!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[L]:i[j],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new G(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new G(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new se(e.value,t),le(this.value,n,t);if(""===e.operator)return n=new se(this.value,t),le(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||s&&o||a||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[z]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[V],"$1$2$3"),n("comparator trim",e,i[V]),e=(e=(e=e.replace(i[B],"$1~")).replace(i[N],"$1^")).split(/\s+/).join(" ");var s=t?i[L]:i[j],o=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,s,o){var a;return n("caret",e,t,r,i,s,o),oe(r)?a="":oe(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":oe(s)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":o?(n("replaceCaret pr",o),a="0"===r?"0"===i?">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+i+"."+(+s+1):">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+s+"-"+o+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+s+" <"+r+"."+i+"."+(+s+1):">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+s+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[R]:i[k];return e.replace(r,(function(t,r,i,s,o){var a;return n("tilde",e,t,r,i,s,o),oe(r)?a="":oe(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":oe(s)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":o?(n("replaceTilde pr",o),a=">="+r+"."+i+"."+s+"-"+o+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+s+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[O]:i[_];return e.replace(r,(function(t,r,i,s,o,a){n("xRange",e,t,r,i,s,o,a);var u=oe(i),l=u||oe(s),c=l||oe(o);return"="===r&&c&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&c?(l&&(s=0),o=0,">"===r?(r=">=",l?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===r&&(r="<",l?i=+i+1:s=+s+1),t=r+i+"."+s+"."+o):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":c&&(t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[q],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(s)}))),o.map((function(e){return new re(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new G(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},t.satisfies=le,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var s=new se(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(r&&-1!==i.compare(e)||(i=new G(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var s=new se(t,n)}catch(e){return null}return e.forEach((function(e){s.test(e)&&(r&&1!==i.compare(e)||(i=new G(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new G("0.0.0");if(e.test(n))return n;if(n=new G("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new G(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!J(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ce(e,t,"<",n)},t.gtr=function(e,t,n){return ce(e,t,">",n)},t.outside=ce,t.prerelease=function(e,t){var n=H(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof G)return e;if("string"!=typeof e)return null;var t=e.match(i[F]);return null==t?null:H(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},4880:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,o){o=o||{};var a,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var o=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*o;case"weeks":case"week":case"w":return 6048e5*o;case"days":case"day":case"d":return o*i;case"hours":case"hour":case"hrs":case"hr":case"h":return o*r;case"minutes":case"minute":case"mins":case"min":case"m":return o*n;case"seconds":case"second":case"secs":case"sec":case"s":return o*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return o;default:return}}}}(e);if("number"===l&&isFinite(e))return o.long?(a=e,(u=Math.abs(a))>=i?s(a,u,i,"day"):u>=r?s(a,u,r,"hour"):u>=n?s(a,u,n,"minute"):u>=t?s(a,u,t,"second"):a+" ms"):function(e){var s=Math.abs(e);return s>=i?Math.round(e/i)+"d":s>=r?Math.round(e/r)+"h":s>=n?Math.round(e/n)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},8957:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(2156)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},2156:(e,t,n)=>{e.exports=function(e){function t(e){let n,i=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(4880),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},2069:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(7471)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},7471:(e,t,n)=>{e.exports=function(e){function t(e){let n,i=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const s=t.formatters[i];if("function"==typeof s){const t=e[a];n=s.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(e):i,set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(1378),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},345:e=>{"use strict";e.exports=require("bson")},3678:e=>{"use strict";e.exports=require("bson-ext")},8893:e=>{"use strict";e.exports=require("buffer")},4770:e=>{"use strict";e.exports=require("crypto")},665:e=>{"use strict";e.exports=require("dns")},5840:e=>{"use strict";e.exports=require("electron")},7702:e=>{"use strict";e.exports=require("events")},2048:e=>{"use strict";e.exports=require("fs")},2615:e=>{"use strict";e.exports=require("http")},3617:e=>{"use strict";e.exports=require("kerberos")},4529:e=>{"use strict";e.exports=require("mongodb-client-encryption")},8216:e=>{"use strict";e.exports=require("net")},9801:e=>{"use strict";e.exports=require("os")},5315:e=>{"use strict";e.exports=require("path")},23:e=>{"use strict";e.exports=require("prop-types")},8621:e=>{"use strict";e.exports=require("punycode")},6624:e=>{"use strict";e.exports=require("querystring")},9497:e=>{"use strict";e.exports=require("react")},8349:e=>{"use strict";e.exports=require("snappy")},3081:e=>{"use strict";e.exports=require("snappy/package.json")},6162:e=>{"use strict";e.exports=require("stream")},2452:e=>{"use strict";e.exports=require("tls")},7360:e=>{"use strict";e.exports=require("url")},1764:e=>{"use strict";e.exports=require("util")},9672:e=>{"use strict";e.exports=require("v8")},1568:e=>{"use strict";e.exports=require("zlib")},7443:e=>{"use strict";e.exports=JSON.parse('[[[0,44],4],[[45,46],2],[47,4],[[48,57],2],[[58,64],4],[65,1,"a"],[66,1,"b"],[67,1,"c"],[68,1,"d"],[69,1,"e"],[70,1,"f"],[71,1,"g"],[72,1,"h"],[73,1,"i"],[74,1,"j"],[75,1,"k"],[76,1,"l"],[77,1,"m"],[78,1,"n"],[79,1,"o"],[80,1,"p"],[81,1,"q"],[82,1,"r"],[83,1,"s"],[84,1,"t"],[85,1,"u"],[86,1,"v"],[87,1,"w"],[88,1,"x"],[89,1,"y"],[90,1,"z"],[[91,96],4],[[97,122],2],[[123,127],4],[[128,159],3],[160,5," "],[[161,167],2],[168,5," ̈"],[169,2],[170,1,"a"],[[171,172],2],[173,7],[174,2],[175,5," ̄"],[[176,177],2],[178,1,"2"],[179,1,"3"],[180,5," ́"],[181,1,"μ"],[182,2],[183,2],[184,5," ̧"],[185,1,"1"],[186,1,"o"],[187,2],[188,1,"1⁄4"],[189,1,"1⁄2"],[190,1,"3⁄4"],[191,2],[192,1,"à"],[193,1,"á"],[194,1,"â"],[195,1,"ã"],[196,1,"ä"],[197,1,"å"],[198,1,"æ"],[199,1,"ç"],[200,1,"è"],[201,1,"é"],[202,1,"ê"],[203,1,"ë"],[204,1,"ì"],[205,1,"í"],[206,1,"î"],[207,1,"ï"],[208,1,"ð"],[209,1,"ñ"],[210,1,"ò"],[211,1,"ó"],[212,1,"ô"],[213,1,"õ"],[214,1,"ö"],[215,2],[216,1,"ø"],[217,1,"ù"],[218,1,"ú"],[219,1,"û"],[220,1,"ü"],[221,1,"ý"],[222,1,"þ"],[223,6,"ss"],[[224,246],2],[247,2],[[248,255],2],[256,1,"ā"],[257,2],[258,1,"ă"],[259,2],[260,1,"ą"],[261,2],[262,1,"ć"],[263,2],[264,1,"ĉ"],[265,2],[266,1,"ċ"],[267,2],[268,1,"č"],[269,2],[270,1,"ď"],[271,2],[272,1,"đ"],[273,2],[274,1,"ē"],[275,2],[276,1,"ĕ"],[277,2],[278,1,"ė"],[279,2],[280,1,"ę"],[281,2],[282,1,"ě"],[283,2],[284,1,"ĝ"],[285,2],[286,1,"ğ"],[287,2],[288,1,"ġ"],[289,2],[290,1,"ģ"],[291,2],[292,1,"ĥ"],[293,2],[294,1,"ħ"],[295,2],[296,1,"ĩ"],[297,2],[298,1,"ī"],[299,2],[300,1,"ĭ"],[301,2],[302,1,"į"],[303,2],[304,1,"i̇"],[305,2],[[306,307],1,"ij"],[308,1,"ĵ"],[309,2],[310,1,"ķ"],[[311,312],2],[313,1,"ĺ"],[314,2],[315,1,"ļ"],[316,2],[317,1,"ľ"],[318,2],[[319,320],1,"l·"],[321,1,"ł"],[322,2],[323,1,"ń"],[324,2],[325,1,"ņ"],[326,2],[327,1,"ň"],[328,2],[329,1,"ʼn"],[330,1,"ŋ"],[331,2],[332,1,"ō"],[333,2],[334,1,"ŏ"],[335,2],[336,1,"ő"],[337,2],[338,1,"œ"],[339,2],[340,1,"ŕ"],[341,2],[342,1,"ŗ"],[343,2],[344,1,"ř"],[345,2],[346,1,"ś"],[347,2],[348,1,"ŝ"],[349,2],[350,1,"ş"],[351,2],[352,1,"š"],[353,2],[354,1,"ţ"],[355,2],[356,1,"ť"],[357,2],[358,1,"ŧ"],[359,2],[360,1,"ũ"],[361,2],[362,1,"ū"],[363,2],[364,1,"ŭ"],[365,2],[366,1,"ů"],[367,2],[368,1,"ű"],[369,2],[370,1,"ų"],[371,2],[372,1,"ŵ"],[373,2],[374,1,"ŷ"],[375,2],[376,1,"ÿ"],[377,1,"ź"],[378,2],[379,1,"ż"],[380,2],[381,1,"ž"],[382,2],[383,1,"s"],[384,2],[385,1,"ɓ"],[386,1,"ƃ"],[387,2],[388,1,"ƅ"],[389,2],[390,1,"ɔ"],[391,1,"ƈ"],[392,2],[393,1,"ɖ"],[394,1,"ɗ"],[395,1,"ƌ"],[[396,397],2],[398,1,"ǝ"],[399,1,"ə"],[400,1,"ɛ"],[401,1,"ƒ"],[402,2],[403,1,"ɠ"],[404,1,"ɣ"],[405,2],[406,1,"ɩ"],[407,1,"ɨ"],[408,1,"ƙ"],[[409,411],2],[412,1,"ɯ"],[413,1,"ɲ"],[414,2],[415,1,"ɵ"],[416,1,"ơ"],[417,2],[418,1,"ƣ"],[419,2],[420,1,"ƥ"],[421,2],[422,1,"ʀ"],[423,1,"ƨ"],[424,2],[425,1,"ʃ"],[[426,427],2],[428,1,"ƭ"],[429,2],[430,1,"ʈ"],[431,1,"ư"],[432,2],[433,1,"ʊ"],[434,1,"ʋ"],[435,1,"ƴ"],[436,2],[437,1,"ƶ"],[438,2],[439,1,"ʒ"],[440,1,"ƹ"],[[441,443],2],[444,1,"ƽ"],[[445,451],2],[[452,454],1,"dž"],[[455,457],1,"lj"],[[458,460],1,"nj"],[461,1,"ǎ"],[462,2],[463,1,"ǐ"],[464,2],[465,1,"ǒ"],[466,2],[467,1,"ǔ"],[468,2],[469,1,"ǖ"],[470,2],[471,1,"ǘ"],[472,2],[473,1,"ǚ"],[474,2],[475,1,"ǜ"],[[476,477],2],[478,1,"ǟ"],[479,2],[480,1,"ǡ"],[481,2],[482,1,"ǣ"],[483,2],[484,1,"ǥ"],[485,2],[486,1,"ǧ"],[487,2],[488,1,"ǩ"],[489,2],[490,1,"ǫ"],[491,2],[492,1,"ǭ"],[493,2],[494,1,"ǯ"],[[495,496],2],[[497,499],1,"dz"],[500,1,"ǵ"],[501,2],[502,1,"ƕ"],[503,1,"ƿ"],[504,1,"ǹ"],[505,2],[506,1,"ǻ"],[507,2],[508,1,"ǽ"],[509,2],[510,1,"ǿ"],[511,2],[512,1,"ȁ"],[513,2],[514,1,"ȃ"],[515,2],[516,1,"ȅ"],[517,2],[518,1,"ȇ"],[519,2],[520,1,"ȉ"],[521,2],[522,1,"ȋ"],[523,2],[524,1,"ȍ"],[525,2],[526,1,"ȏ"],[527,2],[528,1,"ȑ"],[529,2],[530,1,"ȓ"],[531,2],[532,1,"ȕ"],[533,2],[534,1,"ȗ"],[535,2],[536,1,"ș"],[537,2],[538,1,"ț"],[539,2],[540,1,"ȝ"],[541,2],[542,1,"ȟ"],[543,2],[544,1,"ƞ"],[545,2],[546,1,"ȣ"],[547,2],[548,1,"ȥ"],[549,2],[550,1,"ȧ"],[551,2],[552,1,"ȩ"],[553,2],[554,1,"ȫ"],[555,2],[556,1,"ȭ"],[557,2],[558,1,"ȯ"],[559,2],[560,1,"ȱ"],[561,2],[562,1,"ȳ"],[563,2],[[564,566],2],[[567,569],2],[570,1,"ⱥ"],[571,1,"ȼ"],[572,2],[573,1,"ƚ"],[574,1,"ⱦ"],[[575,576],2],[577,1,"ɂ"],[578,2],[579,1,"ƀ"],[580,1,"ʉ"],[581,1,"ʌ"],[582,1,"ɇ"],[583,2],[584,1,"ɉ"],[585,2],[586,1,"ɋ"],[587,2],[588,1,"ɍ"],[589,2],[590,1,"ɏ"],[591,2],[[592,680],2],[[681,685],2],[[686,687],2],[688,1,"h"],[689,1,"ɦ"],[690,1,"j"],[691,1,"r"],[692,1,"ɹ"],[693,1,"ɻ"],[694,1,"ʁ"],[695,1,"w"],[696,1,"y"],[[697,705],2],[[706,709],2],[[710,721],2],[[722,727],2],[728,5," ̆"],[729,5," ̇"],[730,5," ̊"],[731,5," ̨"],[732,5," ̃"],[733,5," ̋"],[734,2],[735,2],[736,1,"ɣ"],[737,1,"l"],[738,1,"s"],[739,1,"x"],[740,1,"ʕ"],[[741,745],2],[[746,747],2],[748,2],[749,2],[750,2],[[751,767],2],[[768,831],2],[832,1,"̀"],[833,1,"́"],[834,2],[835,1,"̓"],[836,1,"̈́"],[837,1,"ι"],[[838,846],2],[847,7],[[848,855],2],[[856,860],2],[[861,863],2],[[864,865],2],[866,2],[[867,879],2],[880,1,"ͱ"],[881,2],[882,1,"ͳ"],[883,2],[884,1,"ʹ"],[885,2],[886,1,"ͷ"],[887,2],[[888,889],3],[890,5," ι"],[[891,893],2],[894,5,";"],[895,1,"ϳ"],[[896,899],3],[900,5," ́"],[901,5," ̈́"],[902,1,"ά"],[903,1,"·"],[904,1,"έ"],[905,1,"ή"],[906,1,"ί"],[907,3],[908,1,"ό"],[909,3],[910,1,"ύ"],[911,1,"ώ"],[912,2],[913,1,"α"],[914,1,"β"],[915,1,"γ"],[916,1,"δ"],[917,1,"ε"],[918,1,"ζ"],[919,1,"η"],[920,1,"θ"],[921,1,"ι"],[922,1,"κ"],[923,1,"λ"],[924,1,"μ"],[925,1,"ν"],[926,1,"ξ"],[927,1,"ο"],[928,1,"π"],[929,1,"ρ"],[930,3],[931,1,"σ"],[932,1,"τ"],[933,1,"υ"],[934,1,"φ"],[935,1,"χ"],[936,1,"ψ"],[937,1,"ω"],[938,1,"ϊ"],[939,1,"ϋ"],[[940,961],2],[962,6,"σ"],[[963,974],2],[975,1,"ϗ"],[976,1,"β"],[977,1,"θ"],[978,1,"υ"],[979,1,"ύ"],[980,1,"ϋ"],[981,1,"φ"],[982,1,"π"],[983,2],[984,1,"ϙ"],[985,2],[986,1,"ϛ"],[987,2],[988,1,"ϝ"],[989,2],[990,1,"ϟ"],[991,2],[992,1,"ϡ"],[993,2],[994,1,"ϣ"],[995,2],[996,1,"ϥ"],[997,2],[998,1,"ϧ"],[999,2],[1000,1,"ϩ"],[1001,2],[1002,1,"ϫ"],[1003,2],[1004,1,"ϭ"],[1005,2],[1006,1,"ϯ"],[1007,2],[1008,1,"κ"],[1009,1,"ρ"],[1010,1,"σ"],[1011,2],[1012,1,"θ"],[1013,1,"ε"],[1014,2],[1015,1,"ϸ"],[1016,2],[1017,1,"σ"],[1018,1,"ϻ"],[1019,2],[1020,2],[1021,1,"ͻ"],[1022,1,"ͼ"],[1023,1,"ͽ"],[1024,1,"ѐ"],[1025,1,"ё"],[1026,1,"ђ"],[1027,1,"ѓ"],[1028,1,"є"],[1029,1,"ѕ"],[1030,1,"і"],[1031,1,"ї"],[1032,1,"ј"],[1033,1,"љ"],[1034,1,"њ"],[1035,1,"ћ"],[1036,1,"ќ"],[1037,1,"ѝ"],[1038,1,"ў"],[1039,1,"џ"],[1040,1,"а"],[1041,1,"б"],[1042,1,"в"],[1043,1,"г"],[1044,1,"д"],[1045,1,"е"],[1046,1,"ж"],[1047,1,"з"],[1048,1,"и"],[1049,1,"й"],[1050,1,"к"],[1051,1,"л"],[1052,1,"м"],[1053,1,"н"],[1054,1,"о"],[1055,1,"п"],[1056,1,"р"],[1057,1,"с"],[1058,1,"т"],[1059,1,"у"],[1060,1,"ф"],[1061,1,"х"],[1062,1,"ц"],[1063,1,"ч"],[1064,1,"ш"],[1065,1,"щ"],[1066,1,"ъ"],[1067,1,"ы"],[1068,1,"ь"],[1069,1,"э"],[1070,1,"ю"],[1071,1,"я"],[[1072,1103],2],[1104,2],[[1105,1116],2],[1117,2],[[1118,1119],2],[1120,1,"ѡ"],[1121,2],[1122,1,"ѣ"],[1123,2],[1124,1,"ѥ"],[1125,2],[1126,1,"ѧ"],[1127,2],[1128,1,"ѩ"],[1129,2],[1130,1,"ѫ"],[1131,2],[1132,1,"ѭ"],[1133,2],[1134,1,"ѯ"],[1135,2],[1136,1,"ѱ"],[1137,2],[1138,1,"ѳ"],[1139,2],[1140,1,"ѵ"],[1141,2],[1142,1,"ѷ"],[1143,2],[1144,1,"ѹ"],[1145,2],[1146,1,"ѻ"],[1147,2],[1148,1,"ѽ"],[1149,2],[1150,1,"ѿ"],[1151,2],[1152,1,"ҁ"],[1153,2],[1154,2],[[1155,1158],2],[1159,2],[[1160,1161],2],[1162,1,"ҋ"],[1163,2],[1164,1,"ҍ"],[1165,2],[1166,1,"ҏ"],[1167,2],[1168,1,"ґ"],[1169,2],[1170,1,"ғ"],[1171,2],[1172,1,"ҕ"],[1173,2],[1174,1,"җ"],[1175,2],[1176,1,"ҙ"],[1177,2],[1178,1,"қ"],[1179,2],[1180,1,"ҝ"],[1181,2],[1182,1,"ҟ"],[1183,2],[1184,1,"ҡ"],[1185,2],[1186,1,"ң"],[1187,2],[1188,1,"ҥ"],[1189,2],[1190,1,"ҧ"],[1191,2],[1192,1,"ҩ"],[1193,2],[1194,1,"ҫ"],[1195,2],[1196,1,"ҭ"],[1197,2],[1198,1,"ү"],[1199,2],[1200,1,"ұ"],[1201,2],[1202,1,"ҳ"],[1203,2],[1204,1,"ҵ"],[1205,2],[1206,1,"ҷ"],[1207,2],[1208,1,"ҹ"],[1209,2],[1210,1,"һ"],[1211,2],[1212,1,"ҽ"],[1213,2],[1214,1,"ҿ"],[1215,2],[1216,3],[1217,1,"ӂ"],[1218,2],[1219,1,"ӄ"],[1220,2],[1221,1,"ӆ"],[1222,2],[1223,1,"ӈ"],[1224,2],[1225,1,"ӊ"],[1226,2],[1227,1,"ӌ"],[1228,2],[1229,1,"ӎ"],[1230,2],[1231,2],[1232,1,"ӑ"],[1233,2],[1234,1,"ӓ"],[1235,2],[1236,1,"ӕ"],[1237,2],[1238,1,"ӗ"],[1239,2],[1240,1,"ә"],[1241,2],[1242,1,"ӛ"],[1243,2],[1244,1,"ӝ"],[1245,2],[1246,1,"ӟ"],[1247,2],[1248,1,"ӡ"],[1249,2],[1250,1,"ӣ"],[1251,2],[1252,1,"ӥ"],[1253,2],[1254,1,"ӧ"],[1255,2],[1256,1,"ө"],[1257,2],[1258,1,"ӫ"],[1259,2],[1260,1,"ӭ"],[1261,2],[1262,1,"ӯ"],[1263,2],[1264,1,"ӱ"],[1265,2],[1266,1,"ӳ"],[1267,2],[1268,1,"ӵ"],[1269,2],[1270,1,"ӷ"],[1271,2],[1272,1,"ӹ"],[1273,2],[1274,1,"ӻ"],[1275,2],[1276,1,"ӽ"],[1277,2],[1278,1,"ӿ"],[1279,2],[1280,1,"ԁ"],[1281,2],[1282,1,"ԃ"],[1283,2],[1284,1,"ԅ"],[1285,2],[1286,1,"ԇ"],[1287,2],[1288,1,"ԉ"],[1289,2],[1290,1,"ԋ"],[1291,2],[1292,1,"ԍ"],[1293,2],[1294,1,"ԏ"],[1295,2],[1296,1,"ԑ"],[1297,2],[1298,1,"ԓ"],[1299,2],[1300,1,"ԕ"],[1301,2],[1302,1,"ԗ"],[1303,2],[1304,1,"ԙ"],[1305,2],[1306,1,"ԛ"],[1307,2],[1308,1,"ԝ"],[1309,2],[1310,1,"ԟ"],[1311,2],[1312,1,"ԡ"],[1313,2],[1314,1,"ԣ"],[1315,2],[1316,1,"ԥ"],[1317,2],[1318,1,"ԧ"],[1319,2],[1320,1,"ԩ"],[1321,2],[1322,1,"ԫ"],[1323,2],[1324,1,"ԭ"],[1325,2],[1326,1,"ԯ"],[1327,2],[1328,3],[1329,1,"ա"],[1330,1,"բ"],[1331,1,"գ"],[1332,1,"դ"],[1333,1,"ե"],[1334,1,"զ"],[1335,1,"է"],[1336,1,"ը"],[1337,1,"թ"],[1338,1,"ժ"],[1339,1,"ի"],[1340,1,"լ"],[1341,1,"խ"],[1342,1,"ծ"],[1343,1,"կ"],[1344,1,"հ"],[1345,1,"ձ"],[1346,1,"ղ"],[1347,1,"ճ"],[1348,1,"մ"],[1349,1,"յ"],[1350,1,"ն"],[1351,1,"շ"],[1352,1,"ո"],[1353,1,"չ"],[1354,1,"պ"],[1355,1,"ջ"],[1356,1,"ռ"],[1357,1,"ս"],[1358,1,"վ"],[1359,1,"տ"],[1360,1,"ր"],[1361,1,"ց"],[1362,1,"ւ"],[1363,1,"փ"],[1364,1,"ք"],[1365,1,"օ"],[1366,1,"ֆ"],[[1367,1368],3],[1369,2],[[1370,1375],2],[1376,2],[[1377,1414],2],[1415,1,"եւ"],[1416,2],[1417,2],[1418,2],[[1419,1420],3],[[1421,1422],2],[1423,2],[1424,3],[[1425,1441],2],[1442,2],[[1443,1455],2],[[1456,1465],2],[1466,2],[[1467,1469],2],[1470,2],[1471,2],[1472,2],[[1473,1474],2],[1475,2],[1476,2],[1477,2],[1478,2],[1479,2],[[1480,1487],3],[[1488,1514],2],[[1515,1518],3],[1519,2],[[1520,1524],2],[[1525,1535],3],[[1536,1539],3],[1540,3],[1541,3],[[1542,1546],2],[1547,2],[1548,2],[[1549,1551],2],[[1552,1557],2],[[1558,1562],2],[1563,2],[1564,3],[1565,2],[1566,2],[1567,2],[1568,2],[[1569,1594],2],[[1595,1599],2],[1600,2],[[1601,1618],2],[[1619,1621],2],[[1622,1624],2],[[1625,1630],2],[1631,2],[[1632,1641],2],[[1642,1645],2],[[1646,1647],2],[[1648,1652],2],[1653,1,"اٴ"],[1654,1,"وٴ"],[1655,1,"ۇٴ"],[1656,1,"يٴ"],[[1657,1719],2],[[1720,1721],2],[[1722,1726],2],[1727,2],[[1728,1742],2],[1743,2],[[1744,1747],2],[1748,2],[[1749,1756],2],[1757,3],[1758,2],[[1759,1768],2],[1769,2],[[1770,1773],2],[[1774,1775],2],[[1776,1785],2],[[1786,1790],2],[1791,2],[[1792,1805],2],[1806,3],[1807,3],[[1808,1836],2],[[1837,1839],2],[[1840,1866],2],[[1867,1868],3],[[1869,1871],2],[[1872,1901],2],[[1902,1919],2],[[1920,1968],2],[1969,2],[[1970,1983],3],[[1984,2037],2],[[2038,2042],2],[[2043,2044],3],[2045,2],[[2046,2047],2],[[2048,2093],2],[[2094,2095],3],[[2096,2110],2],[2111,3],[[2112,2139],2],[[2140,2141],3],[2142,2],[2143,3],[[2144,2154],2],[[2155,2159],3],[[2160,2183],2],[2184,2],[[2185,2190],2],[2191,3],[[2192,2193],3],[[2194,2199],3],[[2200,2207],2],[2208,2],[2209,2],[[2210,2220],2],[[2221,2226],2],[[2227,2228],2],[2229,2],[[2230,2237],2],[[2238,2247],2],[[2248,2258],2],[2259,2],[[2260,2273],2],[2274,3],[2275,2],[[2276,2302],2],[2303,2],[2304,2],[[2305,2307],2],[2308,2],[[2309,2361],2],[[2362,2363],2],[[2364,2381],2],[2382,2],[2383,2],[[2384,2388],2],[2389,2],[[2390,2391],2],[2392,1,"क़"],[2393,1,"ख़"],[2394,1,"ग़"],[2395,1,"ज़"],[2396,1,"ड़"],[2397,1,"ढ़"],[2398,1,"फ़"],[2399,1,"य़"],[[2400,2403],2],[[2404,2405],2],[[2406,2415],2],[2416,2],[[2417,2418],2],[[2419,2423],2],[2424,2],[[2425,2426],2],[[2427,2428],2],[2429,2],[[2430,2431],2],[2432,2],[[2433,2435],2],[2436,3],[[2437,2444],2],[[2445,2446],3],[[2447,2448],2],[[2449,2450],3],[[2451,2472],2],[2473,3],[[2474,2480],2],[2481,3],[2482,2],[[2483,2485],3],[[2486,2489],2],[[2490,2491],3],[2492,2],[2493,2],[[2494,2500],2],[[2501,2502],3],[[2503,2504],2],[[2505,2506],3],[[2507,2509],2],[2510,2],[[2511,2518],3],[2519,2],[[2520,2523],3],[2524,1,"ড়"],[2525,1,"ঢ়"],[2526,3],[2527,1,"য়"],[[2528,2531],2],[[2532,2533],3],[[2534,2545],2],[[2546,2554],2],[2555,2],[2556,2],[2557,2],[2558,2],[[2559,2560],3],[2561,2],[2562,2],[2563,2],[2564,3],[[2565,2570],2],[[2571,2574],3],[[2575,2576],2],[[2577,2578],3],[[2579,2600],2],[2601,3],[[2602,2608],2],[2609,3],[2610,2],[2611,1,"ਲ਼"],[2612,3],[2613,2],[2614,1,"ਸ਼"],[2615,3],[[2616,2617],2],[[2618,2619],3],[2620,2],[2621,3],[[2622,2626],2],[[2627,2630],3],[[2631,2632],2],[[2633,2634],3],[[2635,2637],2],[[2638,2640],3],[2641,2],[[2642,2648],3],[2649,1,"ਖ਼"],[2650,1,"ਗ਼"],[2651,1,"ਜ਼"],[2652,2],[2653,3],[2654,1,"ਫ਼"],[[2655,2661],3],[[2662,2676],2],[2677,2],[2678,2],[[2679,2688],3],[[2689,2691],2],[2692,3],[[2693,2699],2],[2700,2],[2701,2],[2702,3],[[2703,2705],2],[2706,3],[[2707,2728],2],[2729,3],[[2730,2736],2],[2737,3],[[2738,2739],2],[2740,3],[[2741,2745],2],[[2746,2747],3],[[2748,2757],2],[2758,3],[[2759,2761],2],[2762,3],[[2763,2765],2],[[2766,2767],3],[2768,2],[[2769,2783],3],[2784,2],[[2785,2787],2],[[2788,2789],3],[[2790,2799],2],[2800,2],[2801,2],[[2802,2808],3],[2809,2],[[2810,2815],2],[2816,3],[[2817,2819],2],[2820,3],[[2821,2828],2],[[2829,2830],3],[[2831,2832],2],[[2833,2834],3],[[2835,2856],2],[2857,3],[[2858,2864],2],[2865,3],[[2866,2867],2],[2868,3],[2869,2],[[2870,2873],2],[[2874,2875],3],[[2876,2883],2],[2884,2],[[2885,2886],3],[[2887,2888],2],[[2889,2890],3],[[2891,2893],2],[[2894,2900],3],[2901,2],[[2902,2903],2],[[2904,2907],3],[2908,1,"ଡ଼"],[2909,1,"ଢ଼"],[2910,3],[[2911,2913],2],[[2914,2915],2],[[2916,2917],3],[[2918,2927],2],[2928,2],[2929,2],[[2930,2935],2],[[2936,2945],3],[[2946,2947],2],[2948,3],[[2949,2954],2],[[2955,2957],3],[[2958,2960],2],[2961,3],[[2962,2965],2],[[2966,2968],3],[[2969,2970],2],[2971,3],[2972,2],[2973,3],[[2974,2975],2],[[2976,2978],3],[[2979,2980],2],[[2981,2983],3],[[2984,2986],2],[[2987,2989],3],[[2990,2997],2],[2998,2],[[2999,3001],2],[[3002,3005],3],[[3006,3010],2],[[3011,3013],3],[[3014,3016],2],[3017,3],[[3018,3021],2],[[3022,3023],3],[3024,2],[[3025,3030],3],[3031,2],[[3032,3045],3],[3046,2],[[3047,3055],2],[[3056,3058],2],[[3059,3066],2],[[3067,3071],3],[3072,2],[[3073,3075],2],[3076,2],[[3077,3084],2],[3085,3],[[3086,3088],2],[3089,3],[[3090,3112],2],[3113,3],[[3114,3123],2],[3124,2],[[3125,3129],2],[[3130,3131],3],[3132,2],[3133,2],[[3134,3140],2],[3141,3],[[3142,3144],2],[3145,3],[[3146,3149],2],[[3150,3156],3],[[3157,3158],2],[3159,3],[[3160,3161],2],[3162,2],[[3163,3164],3],[3165,2],[[3166,3167],3],[[3168,3169],2],[[3170,3171],2],[[3172,3173],3],[[3174,3183],2],[[3184,3190],3],[3191,2],[[3192,3199],2],[3200,2],[3201,2],[[3202,3203],2],[3204,2],[[3205,3212],2],[3213,3],[[3214,3216],2],[3217,3],[[3218,3240],2],[3241,3],[[3242,3251],2],[3252,3],[[3253,3257],2],[[3258,3259],3],[[3260,3261],2],[[3262,3268],2],[3269,3],[[3270,3272],2],[3273,3],[[3274,3277],2],[[3278,3284],3],[[3285,3286],2],[[3287,3292],3],[3293,2],[3294,2],[3295,3],[[3296,3297],2],[[3298,3299],2],[[3300,3301],3],[[3302,3311],2],[3312,3],[[3313,3314],2],[[3315,3327],3],[3328,2],[3329,2],[[3330,3331],2],[3332,2],[[3333,3340],2],[3341,3],[[3342,3344],2],[3345,3],[[3346,3368],2],[3369,2],[[3370,3385],2],[3386,2],[[3387,3388],2],[3389,2],[[3390,3395],2],[3396,2],[3397,3],[[3398,3400],2],[3401,3],[[3402,3405],2],[3406,2],[3407,2],[[3408,3411],3],[[3412,3414],2],[3415,2],[[3416,3422],2],[3423,2],[[3424,3425],2],[[3426,3427],2],[[3428,3429],3],[[3430,3439],2],[[3440,3445],2],[[3446,3448],2],[3449,2],[[3450,3455],2],[3456,3],[3457,2],[[3458,3459],2],[3460,3],[[3461,3478],2],[[3479,3481],3],[[3482,3505],2],[3506,3],[[3507,3515],2],[3516,3],[3517,2],[[3518,3519],3],[[3520,3526],2],[[3527,3529],3],[3530,2],[[3531,3534],3],[[3535,3540],2],[3541,3],[3542,2],[3543,3],[[3544,3551],2],[[3552,3557],3],[[3558,3567],2],[[3568,3569],3],[[3570,3571],2],[3572,2],[[3573,3584],3],[[3585,3634],2],[3635,1,"ํา"],[[3636,3642],2],[[3643,3646],3],[3647,2],[[3648,3662],2],[3663,2],[[3664,3673],2],[[3674,3675],2],[[3676,3712],3],[[3713,3714],2],[3715,3],[3716,2],[3717,3],[3718,2],[[3719,3720],2],[3721,2],[3722,2],[3723,3],[3724,2],[3725,2],[[3726,3731],2],[[3732,3735],2],[3736,2],[[3737,3743],2],[3744,2],[[3745,3747],2],[3748,3],[3749,2],[3750,3],[3751,2],[[3752,3753],2],[[3754,3755],2],[3756,2],[[3757,3762],2],[3763,1,"ໍາ"],[[3764,3769],2],[3770,2],[[3771,3773],2],[[3774,3775],3],[[3776,3780],2],[3781,3],[3782,2],[3783,3],[[3784,3789],2],[[3790,3791],3],[[3792,3801],2],[[3802,3803],3],[3804,1,"ຫນ"],[3805,1,"ຫມ"],[[3806,3807],2],[[3808,3839],3],[3840,2],[[3841,3850],2],[3851,2],[3852,1,"་"],[[3853,3863],2],[[3864,3865],2],[[3866,3871],2],[[3872,3881],2],[[3882,3892],2],[3893,2],[3894,2],[3895,2],[3896,2],[3897,2],[[3898,3901],2],[[3902,3906],2],[3907,1,"གྷ"],[[3908,3911],2],[3912,3],[[3913,3916],2],[3917,1,"ཌྷ"],[[3918,3921],2],[3922,1,"དྷ"],[[3923,3926],2],[3927,1,"བྷ"],[[3928,3931],2],[3932,1,"ཛྷ"],[[3933,3944],2],[3945,1,"ཀྵ"],[3946,2],[[3947,3948],2],[[3949,3952],3],[[3953,3954],2],[3955,1,"ཱི"],[3956,2],[3957,1,"ཱུ"],[3958,1,"ྲྀ"],[3959,1,"ྲཱྀ"],[3960,1,"ླྀ"],[3961,1,"ླཱྀ"],[[3962,3968],2],[3969,1,"ཱྀ"],[[3970,3972],2],[3973,2],[[3974,3979],2],[[3980,3983],2],[[3984,3986],2],[3987,1,"ྒྷ"],[[3988,3989],2],[3990,2],[3991,2],[3992,3],[[3993,3996],2],[3997,1,"ྜྷ"],[[3998,4001],2],[4002,1,"ྡྷ"],[[4003,4006],2],[4007,1,"ྦྷ"],[[4008,4011],2],[4012,1,"ྫྷ"],[4013,2],[[4014,4016],2],[[4017,4023],2],[4024,2],[4025,1,"ྐྵ"],[[4026,4028],2],[4029,3],[[4030,4037],2],[4038,2],[[4039,4044],2],[4045,3],[4046,2],[4047,2],[[4048,4049],2],[[4050,4052],2],[[4053,4056],2],[[4057,4058],2],[[4059,4095],3],[[4096,4129],2],[4130,2],[[4131,4135],2],[4136,2],[[4137,4138],2],[4139,2],[[4140,4146],2],[[4147,4149],2],[[4150,4153],2],[[4154,4159],2],[[4160,4169],2],[[4170,4175],2],[[4176,4185],2],[[4186,4249],2],[[4250,4253],2],[[4254,4255],2],[[4256,4293],3],[4294,3],[4295,1,"ⴧ"],[[4296,4300],3],[4301,1,"ⴭ"],[[4302,4303],3],[[4304,4342],2],[[4343,4344],2],[[4345,4346],2],[4347,2],[4348,1,"ნ"],[[4349,4351],2],[[4352,4441],2],[[4442,4446],2],[[4447,4448],3],[[4449,4514],2],[[4515,4519],2],[[4520,4601],2],[[4602,4607],2],[[4608,4614],2],[4615,2],[[4616,4678],2],[4679,2],[4680,2],[4681,3],[[4682,4685],2],[[4686,4687],3],[[4688,4694],2],[4695,3],[4696,2],[4697,3],[[4698,4701],2],[[4702,4703],3],[[4704,4742],2],[4743,2],[4744,2],[4745,3],[[4746,4749],2],[[4750,4751],3],[[4752,4782],2],[4783,2],[4784,2],[4785,3],[[4786,4789],2],[[4790,4791],3],[[4792,4798],2],[4799,3],[4800,2],[4801,3],[[4802,4805],2],[[4806,4807],3],[[4808,4814],2],[4815,2],[[4816,4822],2],[4823,3],[[4824,4846],2],[4847,2],[[4848,4878],2],[4879,2],[4880,2],[4881,3],[[4882,4885],2],[[4886,4887],3],[[4888,4894],2],[4895,2],[[4896,4934],2],[4935,2],[[4936,4954],2],[[4955,4956],3],[[4957,4958],2],[4959,2],[4960,2],[[4961,4988],2],[[4989,4991],3],[[4992,5007],2],[[5008,5017],2],[[5018,5023],3],[[5024,5108],2],[5109,2],[[5110,5111],3],[5112,1,"Ᏸ"],[5113,1,"Ᏹ"],[5114,1,"Ᏺ"],[5115,1,"Ᏻ"],[5116,1,"Ᏼ"],[5117,1,"Ᏽ"],[[5118,5119],3],[5120,2],[[5121,5740],2],[[5741,5742],2],[[5743,5750],2],[[5751,5759],2],[5760,3],[[5761,5786],2],[[5787,5788],2],[[5789,5791],3],[[5792,5866],2],[[5867,5872],2],[[5873,5880],2],[[5881,5887],3],[[5888,5900],2],[5901,2],[[5902,5908],2],[5909,2],[[5910,5918],3],[5919,2],[[5920,5940],2],[[5941,5942],2],[[5943,5951],3],[[5952,5971],2],[[5972,5983],3],[[5984,5996],2],[5997,3],[[5998,6000],2],[6001,3],[[6002,6003],2],[[6004,6015],3],[[6016,6067],2],[[6068,6069],3],[[6070,6099],2],[[6100,6102],2],[6103,2],[[6104,6107],2],[6108,2],[6109,2],[[6110,6111],3],[[6112,6121],2],[[6122,6127],3],[[6128,6137],2],[[6138,6143],3],[[6144,6149],2],[6150,3],[[6151,6154],2],[[6155,6157],7],[6158,3],[6159,7],[[6160,6169],2],[[6170,6175],3],[[6176,6263],2],[6264,2],[[6265,6271],3],[[6272,6313],2],[6314,2],[[6315,6319],3],[[6320,6389],2],[[6390,6399],3],[[6400,6428],2],[[6429,6430],2],[6431,3],[[6432,6443],2],[[6444,6447],3],[[6448,6459],2],[[6460,6463],3],[6464,2],[[6465,6467],3],[[6468,6469],2],[[6470,6509],2],[[6510,6511],3],[[6512,6516],2],[[6517,6527],3],[[6528,6569],2],[[6570,6571],2],[[6572,6575],3],[[6576,6601],2],[[6602,6607],3],[[6608,6617],2],[6618,2],[[6619,6621],3],[[6622,6623],2],[[6624,6655],2],[[6656,6683],2],[[6684,6685],3],[[6686,6687],2],[[6688,6750],2],[6751,3],[[6752,6780],2],[[6781,6782],3],[[6783,6793],2],[[6794,6799],3],[[6800,6809],2],[[6810,6815],3],[[6816,6822],2],[6823,2],[[6824,6829],2],[[6830,6831],3],[[6832,6845],2],[6846,2],[[6847,6848],2],[[6849,6862],2],[[6863,6911],3],[[6912,6987],2],[6988,2],[[6989,6991],3],[[6992,7001],2],[[7002,7018],2],[[7019,7027],2],[[7028,7036],2],[[7037,7038],2],[7039,3],[[7040,7082],2],[[7083,7085],2],[[7086,7097],2],[[7098,7103],2],[[7104,7155],2],[[7156,7163],3],[[7164,7167],2],[[7168,7223],2],[[7224,7226],3],[[7227,7231],2],[[7232,7241],2],[[7242,7244],3],[[7245,7293],2],[[7294,7295],2],[7296,1,"в"],[7297,1,"д"],[7298,1,"о"],[7299,1,"с"],[[7300,7301],1,"т"],[7302,1,"ъ"],[7303,1,"ѣ"],[7304,1,"ꙋ"],[[7305,7311],3],[7312,1,"ა"],[7313,1,"ბ"],[7314,1,"გ"],[7315,1,"დ"],[7316,1,"ე"],[7317,1,"ვ"],[7318,1,"ზ"],[7319,1,"თ"],[7320,1,"ი"],[7321,1,"კ"],[7322,1,"ლ"],[7323,1,"მ"],[7324,1,"ნ"],[7325,1,"ო"],[7326,1,"პ"],[7327,1,"ჟ"],[7328,1,"რ"],[7329,1,"ს"],[7330,1,"ტ"],[7331,1,"უ"],[7332,1,"ფ"],[7333,1,"ქ"],[7334,1,"ღ"],[7335,1,"ყ"],[7336,1,"შ"],[7337,1,"ჩ"],[7338,1,"ც"],[7339,1,"ძ"],[7340,1,"წ"],[7341,1,"ჭ"],[7342,1,"ხ"],[7343,1,"ჯ"],[7344,1,"ჰ"],[7345,1,"ჱ"],[7346,1,"ჲ"],[7347,1,"ჳ"],[7348,1,"ჴ"],[7349,1,"ჵ"],[7350,1,"ჶ"],[7351,1,"ჷ"],[7352,1,"ჸ"],[7353,1,"ჹ"],[7354,1,"ჺ"],[[7355,7356],3],[7357,1,"ჽ"],[7358,1,"ჾ"],[7359,1,"ჿ"],[[7360,7367],2],[[7368,7375],3],[[7376,7378],2],[7379,2],[[7380,7410],2],[[7411,7414],2],[7415,2],[[7416,7417],2],[7418,2],[[7419,7423],3],[[7424,7467],2],[7468,1,"a"],[7469,1,"æ"],[7470,1,"b"],[7471,2],[7472,1,"d"],[7473,1,"e"],[7474,1,"ǝ"],[7475,1,"g"],[7476,1,"h"],[7477,1,"i"],[7478,1,"j"],[7479,1,"k"],[7480,1,"l"],[7481,1,"m"],[7482,1,"n"],[7483,2],[7484,1,"o"],[7485,1,"ȣ"],[7486,1,"p"],[7487,1,"r"],[7488,1,"t"],[7489,1,"u"],[7490,1,"w"],[7491,1,"a"],[7492,1,"ɐ"],[7493,1,"ɑ"],[7494,1,"ᴂ"],[7495,1,"b"],[7496,1,"d"],[7497,1,"e"],[7498,1,"ə"],[7499,1,"ɛ"],[7500,1,"ɜ"],[7501,1,"g"],[7502,2],[7503,1,"k"],[7504,1,"m"],[7505,1,"ŋ"],[7506,1,"o"],[7507,1,"ɔ"],[7508,1,"ᴖ"],[7509,1,"ᴗ"],[7510,1,"p"],[7511,1,"t"],[7512,1,"u"],[7513,1,"ᴝ"],[7514,1,"ɯ"],[7515,1,"v"],[7516,1,"ᴥ"],[7517,1,"β"],[7518,1,"γ"],[7519,1,"δ"],[7520,1,"φ"],[7521,1,"χ"],[7522,1,"i"],[7523,1,"r"],[7524,1,"u"],[7525,1,"v"],[7526,1,"β"],[7527,1,"γ"],[7528,1,"ρ"],[7529,1,"φ"],[7530,1,"χ"],[7531,2],[[7532,7543],2],[7544,1,"н"],[[7545,7578],2],[7579,1,"ɒ"],[7580,1,"c"],[7581,1,"ɕ"],[7582,1,"ð"],[7583,1,"ɜ"],[7584,1,"f"],[7585,1,"ɟ"],[7586,1,"ɡ"],[7587,1,"ɥ"],[7588,1,"ɨ"],[7589,1,"ɩ"],[7590,1,"ɪ"],[7591,1,"ᵻ"],[7592,1,"ʝ"],[7593,1,"ɭ"],[7594,1,"ᶅ"],[7595,1,"ʟ"],[7596,1,"ɱ"],[7597,1,"ɰ"],[7598,1,"ɲ"],[7599,1,"ɳ"],[7600,1,"ɴ"],[7601,1,"ɵ"],[7602,1,"ɸ"],[7603,1,"ʂ"],[7604,1,"ʃ"],[7605,1,"ƫ"],[7606,1,"ʉ"],[7607,1,"ʊ"],[7608,1,"ᴜ"],[7609,1,"ʋ"],[7610,1,"ʌ"],[7611,1,"z"],[7612,1,"ʐ"],[7613,1,"ʑ"],[7614,1,"ʒ"],[7615,1,"θ"],[[7616,7619],2],[[7620,7626],2],[[7627,7654],2],[[7655,7669],2],[[7670,7673],2],[7674,2],[7675,2],[7676,2],[7677,2],[[7678,7679],2],[7680,1,"ḁ"],[7681,2],[7682,1,"ḃ"],[7683,2],[7684,1,"ḅ"],[7685,2],[7686,1,"ḇ"],[7687,2],[7688,1,"ḉ"],[7689,2],[7690,1,"ḋ"],[7691,2],[7692,1,"ḍ"],[7693,2],[7694,1,"ḏ"],[7695,2],[7696,1,"ḑ"],[7697,2],[7698,1,"ḓ"],[7699,2],[7700,1,"ḕ"],[7701,2],[7702,1,"ḗ"],[7703,2],[7704,1,"ḙ"],[7705,2],[7706,1,"ḛ"],[7707,2],[7708,1,"ḝ"],[7709,2],[7710,1,"ḟ"],[7711,2],[7712,1,"ḡ"],[7713,2],[7714,1,"ḣ"],[7715,2],[7716,1,"ḥ"],[7717,2],[7718,1,"ḧ"],[7719,2],[7720,1,"ḩ"],[7721,2],[7722,1,"ḫ"],[7723,2],[7724,1,"ḭ"],[7725,2],[7726,1,"ḯ"],[7727,2],[7728,1,"ḱ"],[7729,2],[7730,1,"ḳ"],[7731,2],[7732,1,"ḵ"],[7733,2],[7734,1,"ḷ"],[7735,2],[7736,1,"ḹ"],[7737,2],[7738,1,"ḻ"],[7739,2],[7740,1,"ḽ"],[7741,2],[7742,1,"ḿ"],[7743,2],[7744,1,"ṁ"],[7745,2],[7746,1,"ṃ"],[7747,2],[7748,1,"ṅ"],[7749,2],[7750,1,"ṇ"],[7751,2],[7752,1,"ṉ"],[7753,2],[7754,1,"ṋ"],[7755,2],[7756,1,"ṍ"],[7757,2],[7758,1,"ṏ"],[7759,2],[7760,1,"ṑ"],[7761,2],[7762,1,"ṓ"],[7763,2],[7764,1,"ṕ"],[7765,2],[7766,1,"ṗ"],[7767,2],[7768,1,"ṙ"],[7769,2],[7770,1,"ṛ"],[7771,2],[7772,1,"ṝ"],[7773,2],[7774,1,"ṟ"],[7775,2],[7776,1,"ṡ"],[7777,2],[7778,1,"ṣ"],[7779,2],[7780,1,"ṥ"],[7781,2],[7782,1,"ṧ"],[7783,2],[7784,1,"ṩ"],[7785,2],[7786,1,"ṫ"],[7787,2],[7788,1,"ṭ"],[7789,2],[7790,1,"ṯ"],[7791,2],[7792,1,"ṱ"],[7793,2],[7794,1,"ṳ"],[7795,2],[7796,1,"ṵ"],[7797,2],[7798,1,"ṷ"],[7799,2],[7800,1,"ṹ"],[7801,2],[7802,1,"ṻ"],[7803,2],[7804,1,"ṽ"],[7805,2],[7806,1,"ṿ"],[7807,2],[7808,1,"ẁ"],[7809,2],[7810,1,"ẃ"],[7811,2],[7812,1,"ẅ"],[7813,2],[7814,1,"ẇ"],[7815,2],[7816,1,"ẉ"],[7817,2],[7818,1,"ẋ"],[7819,2],[7820,1,"ẍ"],[7821,2],[7822,1,"ẏ"],[7823,2],[7824,1,"ẑ"],[7825,2],[7826,1,"ẓ"],[7827,2],[7828,1,"ẕ"],[[7829,7833],2],[7834,1,"aʾ"],[7835,1,"ṡ"],[[7836,7837],2],[7838,1,"ss"],[7839,2],[7840,1,"ạ"],[7841,2],[7842,1,"ả"],[7843,2],[7844,1,"ấ"],[7845,2],[7846,1,"ầ"],[7847,2],[7848,1,"ẩ"],[7849,2],[7850,1,"ẫ"],[7851,2],[7852,1,"ậ"],[7853,2],[7854,1,"ắ"],[7855,2],[7856,1,"ằ"],[7857,2],[7858,1,"ẳ"],[7859,2],[7860,1,"ẵ"],[7861,2],[7862,1,"ặ"],[7863,2],[7864,1,"ẹ"],[7865,2],[7866,1,"ẻ"],[7867,2],[7868,1,"ẽ"],[7869,2],[7870,1,"ế"],[7871,2],[7872,1,"ề"],[7873,2],[7874,1,"ể"],[7875,2],[7876,1,"ễ"],[7877,2],[7878,1,"ệ"],[7879,2],[7880,1,"ỉ"],[7881,2],[7882,1,"ị"],[7883,2],[7884,1,"ọ"],[7885,2],[7886,1,"ỏ"],[7887,2],[7888,1,"ố"],[7889,2],[7890,1,"ồ"],[7891,2],[7892,1,"ổ"],[7893,2],[7894,1,"ỗ"],[7895,2],[7896,1,"ộ"],[7897,2],[7898,1,"ớ"],[7899,2],[7900,1,"ờ"],[7901,2],[7902,1,"ở"],[7903,2],[7904,1,"ỡ"],[7905,2],[7906,1,"ợ"],[7907,2],[7908,1,"ụ"],[7909,2],[7910,1,"ủ"],[7911,2],[7912,1,"ứ"],[7913,2],[7914,1,"ừ"],[7915,2],[7916,1,"ử"],[7917,2],[7918,1,"ữ"],[7919,2],[7920,1,"ự"],[7921,2],[7922,1,"ỳ"],[7923,2],[7924,1,"ỵ"],[7925,2],[7926,1,"ỷ"],[7927,2],[7928,1,"ỹ"],[7929,2],[7930,1,"ỻ"],[7931,2],[7932,1,"ỽ"],[7933,2],[7934,1,"ỿ"],[7935,2],[[7936,7943],2],[7944,1,"ἀ"],[7945,1,"ἁ"],[7946,1,"ἂ"],[7947,1,"ἃ"],[7948,1,"ἄ"],[7949,1,"ἅ"],[7950,1,"ἆ"],[7951,1,"ἇ"],[[7952,7957],2],[[7958,7959],3],[7960,1,"ἐ"],[7961,1,"ἑ"],[7962,1,"ἒ"],[7963,1,"ἓ"],[7964,1,"ἔ"],[7965,1,"ἕ"],[[7966,7967],3],[[7968,7975],2],[7976,1,"ἠ"],[7977,1,"ἡ"],[7978,1,"ἢ"],[7979,1,"ἣ"],[7980,1,"ἤ"],[7981,1,"ἥ"],[7982,1,"ἦ"],[7983,1,"ἧ"],[[7984,7991],2],[7992,1,"ἰ"],[7993,1,"ἱ"],[7994,1,"ἲ"],[7995,1,"ἳ"],[7996,1,"ἴ"],[7997,1,"ἵ"],[7998,1,"ἶ"],[7999,1,"ἷ"],[[8000,8005],2],[[8006,8007],3],[8008,1,"ὀ"],[8009,1,"ὁ"],[8010,1,"ὂ"],[8011,1,"ὃ"],[8012,1,"ὄ"],[8013,1,"ὅ"],[[8014,8015],3],[[8016,8023],2],[8024,3],[8025,1,"ὑ"],[8026,3],[8027,1,"ὓ"],[8028,3],[8029,1,"ὕ"],[8030,3],[8031,1,"ὗ"],[[8032,8039],2],[8040,1,"ὠ"],[8041,1,"ὡ"],[8042,1,"ὢ"],[8043,1,"ὣ"],[8044,1,"ὤ"],[8045,1,"ὥ"],[8046,1,"ὦ"],[8047,1,"ὧ"],[8048,2],[8049,1,"ά"],[8050,2],[8051,1,"έ"],[8052,2],[8053,1,"ή"],[8054,2],[8055,1,"ί"],[8056,2],[8057,1,"ό"],[8058,2],[8059,1,"ύ"],[8060,2],[8061,1,"ώ"],[[8062,8063],3],[8064,1,"ἀι"],[8065,1,"ἁι"],[8066,1,"ἂι"],[8067,1,"ἃι"],[8068,1,"ἄι"],[8069,1,"ἅι"],[8070,1,"ἆι"],[8071,1,"ἇι"],[8072,1,"ἀι"],[8073,1,"ἁι"],[8074,1,"ἂι"],[8075,1,"ἃι"],[8076,1,"ἄι"],[8077,1,"ἅι"],[8078,1,"ἆι"],[8079,1,"ἇι"],[8080,1,"ἠι"],[8081,1,"ἡι"],[8082,1,"ἢι"],[8083,1,"ἣι"],[8084,1,"ἤι"],[8085,1,"ἥι"],[8086,1,"ἦι"],[8087,1,"ἧι"],[8088,1,"ἠι"],[8089,1,"ἡι"],[8090,1,"ἢι"],[8091,1,"ἣι"],[8092,1,"ἤι"],[8093,1,"ἥι"],[8094,1,"ἦι"],[8095,1,"ἧι"],[8096,1,"ὠι"],[8097,1,"ὡι"],[8098,1,"ὢι"],[8099,1,"ὣι"],[8100,1,"ὤι"],[8101,1,"ὥι"],[8102,1,"ὦι"],[8103,1,"ὧι"],[8104,1,"ὠι"],[8105,1,"ὡι"],[8106,1,"ὢι"],[8107,1,"ὣι"],[8108,1,"ὤι"],[8109,1,"ὥι"],[8110,1,"ὦι"],[8111,1,"ὧι"],[[8112,8113],2],[8114,1,"ὰι"],[8115,1,"αι"],[8116,1,"άι"],[8117,3],[8118,2],[8119,1,"ᾶι"],[8120,1,"ᾰ"],[8121,1,"ᾱ"],[8122,1,"ὰ"],[8123,1,"ά"],[8124,1,"αι"],[8125,5," ̓"],[8126,1,"ι"],[8127,5," ̓"],[8128,5," ͂"],[8129,5," ̈͂"],[8130,1,"ὴι"],[8131,1,"ηι"],[8132,1,"ήι"],[8133,3],[8134,2],[8135,1,"ῆι"],[8136,1,"ὲ"],[8137,1,"έ"],[8138,1,"ὴ"],[8139,1,"ή"],[8140,1,"ηι"],[8141,5," ̓̀"],[8142,5," ̓́"],[8143,5," ̓͂"],[[8144,8146],2],[8147,1,"ΐ"],[[8148,8149],3],[[8150,8151],2],[8152,1,"ῐ"],[8153,1,"ῑ"],[8154,1,"ὶ"],[8155,1,"ί"],[8156,3],[8157,5," ̔̀"],[8158,5," ̔́"],[8159,5," ̔͂"],[[8160,8162],2],[8163,1,"ΰ"],[[8164,8167],2],[8168,1,"ῠ"],[8169,1,"ῡ"],[8170,1,"ὺ"],[8171,1,"ύ"],[8172,1,"ῥ"],[8173,5," ̈̀"],[8174,5," ̈́"],[8175,5,"`"],[[8176,8177],3],[8178,1,"ὼι"],[8179,1,"ωι"],[8180,1,"ώι"],[8181,3],[8182,2],[8183,1,"ῶι"],[8184,1,"ὸ"],[8185,1,"ό"],[8186,1,"ὼ"],[8187,1,"ώ"],[8188,1,"ωι"],[8189,5," ́"],[8190,5," ̔"],[8191,3],[[8192,8202],5," "],[8203,7],[[8204,8205],6,""],[[8206,8207],3],[8208,2],[8209,1,"‐"],[[8210,8214],2],[8215,5," ̳"],[[8216,8227],2],[[8228,8230],3],[8231,2],[[8232,8238],3],[8239,5," "],[[8240,8242],2],[8243,1,"′′"],[8244,1,"′′′"],[8245,2],[8246,1,"‵‵"],[8247,1,"‵‵‵"],[[8248,8251],2],[8252,5,"!!"],[8253,2],[8254,5," ̅"],[[8255,8262],2],[8263,5,"??"],[8264,5,"?!"],[8265,5,"!?"],[[8266,8269],2],[[8270,8274],2],[[8275,8276],2],[[8277,8278],2],[8279,1,"′′′′"],[[8280,8286],2],[8287,5," "],[8288,7],[[8289,8291],3],[8292,7],[8293,3],[[8294,8297],3],[[8298,8303],3],[8304,1,"0"],[8305,1,"i"],[[8306,8307],3],[8308,1,"4"],[8309,1,"5"],[8310,1,"6"],[8311,1,"7"],[8312,1,"8"],[8313,1,"9"],[8314,5,"+"],[8315,1,"−"],[8316,5,"="],[8317,5,"("],[8318,5,")"],[8319,1,"n"],[8320,1,"0"],[8321,1,"1"],[8322,1,"2"],[8323,1,"3"],[8324,1,"4"],[8325,1,"5"],[8326,1,"6"],[8327,1,"7"],[8328,1,"8"],[8329,1,"9"],[8330,5,"+"],[8331,1,"−"],[8332,5,"="],[8333,5,"("],[8334,5,")"],[8335,3],[8336,1,"a"],[8337,1,"e"],[8338,1,"o"],[8339,1,"x"],[8340,1,"ə"],[8341,1,"h"],[8342,1,"k"],[8343,1,"l"],[8344,1,"m"],[8345,1,"n"],[8346,1,"p"],[8347,1,"s"],[8348,1,"t"],[[8349,8351],3],[[8352,8359],2],[8360,1,"rs"],[[8361,8362],2],[8363,2],[8364,2],[[8365,8367],2],[[8368,8369],2],[[8370,8373],2],[[8374,8376],2],[8377,2],[8378,2],[[8379,8381],2],[8382,2],[8383,2],[8384,2],[[8385,8399],3],[[8400,8417],2],[[8418,8419],2],[[8420,8426],2],[8427,2],[[8428,8431],2],[8432,2],[[8433,8447],3],[8448,5,"a/c"],[8449,5,"a/s"],[8450,1,"c"],[8451,1,"°c"],[8452,2],[8453,5,"c/o"],[8454,5,"c/u"],[8455,1,"ɛ"],[8456,2],[8457,1,"°f"],[8458,1,"g"],[[8459,8462],1,"h"],[8463,1,"ħ"],[[8464,8465],1,"i"],[[8466,8467],1,"l"],[8468,2],[8469,1,"n"],[8470,1,"no"],[[8471,8472],2],[8473,1,"p"],[8474,1,"q"],[[8475,8477],1,"r"],[[8478,8479],2],[8480,1,"sm"],[8481,1,"tel"],[8482,1,"tm"],[8483,2],[8484,1,"z"],[8485,2],[8486,1,"ω"],[8487,2],[8488,1,"z"],[8489,2],[8490,1,"k"],[8491,1,"å"],[8492,1,"b"],[8493,1,"c"],[8494,2],[[8495,8496],1,"e"],[8497,1,"f"],[8498,3],[8499,1,"m"],[8500,1,"o"],[8501,1,"א"],[8502,1,"ב"],[8503,1,"ג"],[8504,1,"ד"],[8505,1,"i"],[8506,2],[8507,1,"fax"],[8508,1,"π"],[[8509,8510],1,"γ"],[8511,1,"π"],[8512,1,"∑"],[[8513,8516],2],[[8517,8518],1,"d"],[8519,1,"e"],[8520,1,"i"],[8521,1,"j"],[[8522,8523],2],[8524,2],[8525,2],[8526,2],[8527,2],[8528,1,"1⁄7"],[8529,1,"1⁄9"],[8530,1,"1⁄10"],[8531,1,"1⁄3"],[8532,1,"2⁄3"],[8533,1,"1⁄5"],[8534,1,"2⁄5"],[8535,1,"3⁄5"],[8536,1,"4⁄5"],[8537,1,"1⁄6"],[8538,1,"5⁄6"],[8539,1,"1⁄8"],[8540,1,"3⁄8"],[8541,1,"5⁄8"],[8542,1,"7⁄8"],[8543,1,"1⁄"],[8544,1,"i"],[8545,1,"ii"],[8546,1,"iii"],[8547,1,"iv"],[8548,1,"v"],[8549,1,"vi"],[8550,1,"vii"],[8551,1,"viii"],[8552,1,"ix"],[8553,1,"x"],[8554,1,"xi"],[8555,1,"xii"],[8556,1,"l"],[8557,1,"c"],[8558,1,"d"],[8559,1,"m"],[8560,1,"i"],[8561,1,"ii"],[8562,1,"iii"],[8563,1,"iv"],[8564,1,"v"],[8565,1,"vi"],[8566,1,"vii"],[8567,1,"viii"],[8568,1,"ix"],[8569,1,"x"],[8570,1,"xi"],[8571,1,"xii"],[8572,1,"l"],[8573,1,"c"],[8574,1,"d"],[8575,1,"m"],[[8576,8578],2],[8579,3],[8580,2],[[8581,8584],2],[8585,1,"0⁄3"],[[8586,8587],2],[[8588,8591],3],[[8592,8682],2],[[8683,8691],2],[[8692,8703],2],[[8704,8747],2],[8748,1,"∫∫"],[8749,1,"∫∫∫"],[8750,2],[8751,1,"∮∮"],[8752,1,"∮∮∮"],[[8753,8799],2],[8800,4],[[8801,8813],2],[[8814,8815],4],[[8816,8945],2],[[8946,8959],2],[8960,2],[8961,2],[[8962,9000],2],[9001,1,"〈"],[9002,1,"〉"],[[9003,9082],2],[9083,2],[9084,2],[[9085,9114],2],[[9115,9166],2],[[9167,9168],2],[[9169,9179],2],[[9180,9191],2],[9192,2],[[9193,9203],2],[[9204,9210],2],[[9211,9214],2],[9215,2],[[9216,9252],2],[[9253,9254],2],[[9255,9279],3],[[9280,9290],2],[[9291,9311],3],[9312,1,"1"],[9313,1,"2"],[9314,1,"3"],[9315,1,"4"],[9316,1,"5"],[9317,1,"6"],[9318,1,"7"],[9319,1,"8"],[9320,1,"9"],[9321,1,"10"],[9322,1,"11"],[9323,1,"12"],[9324,1,"13"],[9325,1,"14"],[9326,1,"15"],[9327,1,"16"],[9328,1,"17"],[9329,1,"18"],[9330,1,"19"],[9331,1,"20"],[9332,5,"(1)"],[9333,5,"(2)"],[9334,5,"(3)"],[9335,5,"(4)"],[9336,5,"(5)"],[9337,5,"(6)"],[9338,5,"(7)"],[9339,5,"(8)"],[9340,5,"(9)"],[9341,5,"(10)"],[9342,5,"(11)"],[9343,5,"(12)"],[9344,5,"(13)"],[9345,5,"(14)"],[9346,5,"(15)"],[9347,5,"(16)"],[9348,5,"(17)"],[9349,5,"(18)"],[9350,5,"(19)"],[9351,5,"(20)"],[[9352,9371],3],[9372,5,"(a)"],[9373,5,"(b)"],[9374,5,"(c)"],[9375,5,"(d)"],[9376,5,"(e)"],[9377,5,"(f)"],[9378,5,"(g)"],[9379,5,"(h)"],[9380,5,"(i)"],[9381,5,"(j)"],[9382,5,"(k)"],[9383,5,"(l)"],[9384,5,"(m)"],[9385,5,"(n)"],[9386,5,"(o)"],[9387,5,"(p)"],[9388,5,"(q)"],[9389,5,"(r)"],[9390,5,"(s)"],[9391,5,"(t)"],[9392,5,"(u)"],[9393,5,"(v)"],[9394,5,"(w)"],[9395,5,"(x)"],[9396,5,"(y)"],[9397,5,"(z)"],[9398,1,"a"],[9399,1,"b"],[9400,1,"c"],[9401,1,"d"],[9402,1,"e"],[9403,1,"f"],[9404,1,"g"],[9405,1,"h"],[9406,1,"i"],[9407,1,"j"],[9408,1,"k"],[9409,1,"l"],[9410,1,"m"],[9411,1,"n"],[9412,1,"o"],[9413,1,"p"],[9414,1,"q"],[9415,1,"r"],[9416,1,"s"],[9417,1,"t"],[9418,1,"u"],[9419,1,"v"],[9420,1,"w"],[9421,1,"x"],[9422,1,"y"],[9423,1,"z"],[9424,1,"a"],[9425,1,"b"],[9426,1,"c"],[9427,1,"d"],[9428,1,"e"],[9429,1,"f"],[9430,1,"g"],[9431,1,"h"],[9432,1,"i"],[9433,1,"j"],[9434,1,"k"],[9435,1,"l"],[9436,1,"m"],[9437,1,"n"],[9438,1,"o"],[9439,1,"p"],[9440,1,"q"],[9441,1,"r"],[9442,1,"s"],[9443,1,"t"],[9444,1,"u"],[9445,1,"v"],[9446,1,"w"],[9447,1,"x"],[9448,1,"y"],[9449,1,"z"],[9450,1,"0"],[[9451,9470],2],[9471,2],[[9472,9621],2],[[9622,9631],2],[[9632,9711],2],[[9712,9719],2],[[9720,9727],2],[[9728,9747],2],[[9748,9749],2],[[9750,9751],2],[9752,2],[9753,2],[[9754,9839],2],[[9840,9841],2],[[9842,9853],2],[[9854,9855],2],[[9856,9865],2],[[9866,9873],2],[[9874,9884],2],[9885,2],[[9886,9887],2],[[9888,9889],2],[[9890,9905],2],[9906,2],[[9907,9916],2],[[9917,9919],2],[[9920,9923],2],[[9924,9933],2],[9934,2],[[9935,9953],2],[9954,2],[9955,2],[[9956,9959],2],[[9960,9983],2],[9984,2],[[9985,9988],2],[9989,2],[[9990,9993],2],[[9994,9995],2],[[9996,10023],2],[10024,2],[[10025,10059],2],[10060,2],[10061,2],[10062,2],[[10063,10066],2],[[10067,10069],2],[10070,2],[10071,2],[[10072,10078],2],[[10079,10080],2],[[10081,10087],2],[[10088,10101],2],[[10102,10132],2],[[10133,10135],2],[[10136,10159],2],[10160,2],[[10161,10174],2],[10175,2],[[10176,10182],2],[[10183,10186],2],[10187,2],[10188,2],[10189,2],[[10190,10191],2],[[10192,10219],2],[[10220,10223],2],[[10224,10239],2],[[10240,10495],2],[[10496,10763],2],[10764,1,"∫∫∫∫"],[[10765,10867],2],[10868,5,"::="],[10869,5,"=="],[10870,5,"==="],[[10871,10971],2],[10972,1,"⫝̸"],[[10973,11007],2],[[11008,11021],2],[[11022,11027],2],[[11028,11034],2],[[11035,11039],2],[[11040,11043],2],[[11044,11084],2],[[11085,11087],2],[[11088,11092],2],[[11093,11097],2],[[11098,11123],2],[[11124,11125],3],[[11126,11157],2],[11158,3],[11159,2],[[11160,11193],2],[[11194,11196],2],[[11197,11208],2],[11209,2],[[11210,11217],2],[11218,2],[[11219,11243],2],[[11244,11247],2],[[11248,11262],2],[11263,2],[11264,1,"ⰰ"],[11265,1,"ⰱ"],[11266,1,"ⰲ"],[11267,1,"ⰳ"],[11268,1,"ⰴ"],[11269,1,"ⰵ"],[11270,1,"ⰶ"],[11271,1,"ⰷ"],[11272,1,"ⰸ"],[11273,1,"ⰹ"],[11274,1,"ⰺ"],[11275,1,"ⰻ"],[11276,1,"ⰼ"],[11277,1,"ⰽ"],[11278,1,"ⰾ"],[11279,1,"ⰿ"],[11280,1,"ⱀ"],[11281,1,"ⱁ"],[11282,1,"ⱂ"],[11283,1,"ⱃ"],[11284,1,"ⱄ"],[11285,1,"ⱅ"],[11286,1,"ⱆ"],[11287,1,"ⱇ"],[11288,1,"ⱈ"],[11289,1,"ⱉ"],[11290,1,"ⱊ"],[11291,1,"ⱋ"],[11292,1,"ⱌ"],[11293,1,"ⱍ"],[11294,1,"ⱎ"],[11295,1,"ⱏ"],[11296,1,"ⱐ"],[11297,1,"ⱑ"],[11298,1,"ⱒ"],[11299,1,"ⱓ"],[11300,1,"ⱔ"],[11301,1,"ⱕ"],[11302,1,"ⱖ"],[11303,1,"ⱗ"],[11304,1,"ⱘ"],[11305,1,"ⱙ"],[11306,1,"ⱚ"],[11307,1,"ⱛ"],[11308,1,"ⱜ"],[11309,1,"ⱝ"],[11310,1,"ⱞ"],[11311,1,"ⱟ"],[[11312,11358],2],[11359,2],[11360,1,"ⱡ"],[11361,2],[11362,1,"ɫ"],[11363,1,"ᵽ"],[11364,1,"ɽ"],[[11365,11366],2],[11367,1,"ⱨ"],[11368,2],[11369,1,"ⱪ"],[11370,2],[11371,1,"ⱬ"],[11372,2],[11373,1,"ɑ"],[11374,1,"ɱ"],[11375,1,"ɐ"],[11376,1,"ɒ"],[11377,2],[11378,1,"ⱳ"],[11379,2],[11380,2],[11381,1,"ⱶ"],[[11382,11383],2],[[11384,11387],2],[11388,1,"j"],[11389,1,"v"],[11390,1,"ȿ"],[11391,1,"ɀ"],[11392,1,"ⲁ"],[11393,2],[11394,1,"ⲃ"],[11395,2],[11396,1,"ⲅ"],[11397,2],[11398,1,"ⲇ"],[11399,2],[11400,1,"ⲉ"],[11401,2],[11402,1,"ⲋ"],[11403,2],[11404,1,"ⲍ"],[11405,2],[11406,1,"ⲏ"],[11407,2],[11408,1,"ⲑ"],[11409,2],[11410,1,"ⲓ"],[11411,2],[11412,1,"ⲕ"],[11413,2],[11414,1,"ⲗ"],[11415,2],[11416,1,"ⲙ"],[11417,2],[11418,1,"ⲛ"],[11419,2],[11420,1,"ⲝ"],[11421,2],[11422,1,"ⲟ"],[11423,2],[11424,1,"ⲡ"],[11425,2],[11426,1,"ⲣ"],[11427,2],[11428,1,"ⲥ"],[11429,2],[11430,1,"ⲧ"],[11431,2],[11432,1,"ⲩ"],[11433,2],[11434,1,"ⲫ"],[11435,2],[11436,1,"ⲭ"],[11437,2],[11438,1,"ⲯ"],[11439,2],[11440,1,"ⲱ"],[11441,2],[11442,1,"ⲳ"],[11443,2],[11444,1,"ⲵ"],[11445,2],[11446,1,"ⲷ"],[11447,2],[11448,1,"ⲹ"],[11449,2],[11450,1,"ⲻ"],[11451,2],[11452,1,"ⲽ"],[11453,2],[11454,1,"ⲿ"],[11455,2],[11456,1,"ⳁ"],[11457,2],[11458,1,"ⳃ"],[11459,2],[11460,1,"ⳅ"],[11461,2],[11462,1,"ⳇ"],[11463,2],[11464,1,"ⳉ"],[11465,2],[11466,1,"ⳋ"],[11467,2],[11468,1,"ⳍ"],[11469,2],[11470,1,"ⳏ"],[11471,2],[11472,1,"ⳑ"],[11473,2],[11474,1,"ⳓ"],[11475,2],[11476,1,"ⳕ"],[11477,2],[11478,1,"ⳗ"],[11479,2],[11480,1,"ⳙ"],[11481,2],[11482,1,"ⳛ"],[11483,2],[11484,1,"ⳝ"],[11485,2],[11486,1,"ⳟ"],[11487,2],[11488,1,"ⳡ"],[11489,2],[11490,1,"ⳣ"],[[11491,11492],2],[[11493,11498],2],[11499,1,"ⳬ"],[11500,2],[11501,1,"ⳮ"],[[11502,11505],2],[11506,1,"ⳳ"],[11507,2],[[11508,11512],3],[[11513,11519],2],[[11520,11557],2],[11558,3],[11559,2],[[11560,11564],3],[11565,2],[[11566,11567],3],[[11568,11621],2],[[11622,11623],2],[[11624,11630],3],[11631,1,"ⵡ"],[11632,2],[[11633,11646],3],[11647,2],[[11648,11670],2],[[11671,11679],3],[[11680,11686],2],[11687,3],[[11688,11694],2],[11695,3],[[11696,11702],2],[11703,3],[[11704,11710],2],[11711,3],[[11712,11718],2],[11719,3],[[11720,11726],2],[11727,3],[[11728,11734],2],[11735,3],[[11736,11742],2],[11743,3],[[11744,11775],2],[[11776,11799],2],[[11800,11803],2],[[11804,11805],2],[[11806,11822],2],[11823,2],[11824,2],[11825,2],[[11826,11835],2],[[11836,11842],2],[[11843,11844],2],[[11845,11849],2],[[11850,11854],2],[11855,2],[[11856,11858],2],[[11859,11869],2],[[11870,11903],3],[[11904,11929],2],[11930,3],[[11931,11934],2],[11935,1,"母"],[[11936,12018],2],[12019,1,"龟"],[[12020,12031],3],[12032,1,"一"],[12033,1,"丨"],[12034,1,"丶"],[12035,1,"丿"],[12036,1,"乙"],[12037,1,"亅"],[12038,1,"二"],[12039,1,"亠"],[12040,1,"人"],[12041,1,"儿"],[12042,1,"入"],[12043,1,"八"],[12044,1,"冂"],[12045,1,"冖"],[12046,1,"冫"],[12047,1,"几"],[12048,1,"凵"],[12049,1,"刀"],[12050,1,"力"],[12051,1,"勹"],[12052,1,"匕"],[12053,1,"匚"],[12054,1,"匸"],[12055,1,"十"],[12056,1,"卜"],[12057,1,"卩"],[12058,1,"厂"],[12059,1,"厶"],[12060,1,"又"],[12061,1,"口"],[12062,1,"囗"],[12063,1,"土"],[12064,1,"士"],[12065,1,"夂"],[12066,1,"夊"],[12067,1,"夕"],[12068,1,"大"],[12069,1,"女"],[12070,1,"子"],[12071,1,"宀"],[12072,1,"寸"],[12073,1,"小"],[12074,1,"尢"],[12075,1,"尸"],[12076,1,"屮"],[12077,1,"山"],[12078,1,"巛"],[12079,1,"工"],[12080,1,"己"],[12081,1,"巾"],[12082,1,"干"],[12083,1,"幺"],[12084,1,"广"],[12085,1,"廴"],[12086,1,"廾"],[12087,1,"弋"],[12088,1,"弓"],[12089,1,"彐"],[12090,1,"彡"],[12091,1,"彳"],[12092,1,"心"],[12093,1,"戈"],[12094,1,"戶"],[12095,1,"手"],[12096,1,"支"],[12097,1,"攴"],[12098,1,"文"],[12099,1,"斗"],[12100,1,"斤"],[12101,1,"方"],[12102,1,"无"],[12103,1,"日"],[12104,1,"曰"],[12105,1,"月"],[12106,1,"木"],[12107,1,"欠"],[12108,1,"止"],[12109,1,"歹"],[12110,1,"殳"],[12111,1,"毋"],[12112,1,"比"],[12113,1,"毛"],[12114,1,"氏"],[12115,1,"气"],[12116,1,"水"],[12117,1,"火"],[12118,1,"爪"],[12119,1,"父"],[12120,1,"爻"],[12121,1,"爿"],[12122,1,"片"],[12123,1,"牙"],[12124,1,"牛"],[12125,1,"犬"],[12126,1,"玄"],[12127,1,"玉"],[12128,1,"瓜"],[12129,1,"瓦"],[12130,1,"甘"],[12131,1,"生"],[12132,1,"用"],[12133,1,"田"],[12134,1,"疋"],[12135,1,"疒"],[12136,1,"癶"],[12137,1,"白"],[12138,1,"皮"],[12139,1,"皿"],[12140,1,"目"],[12141,1,"矛"],[12142,1,"矢"],[12143,1,"石"],[12144,1,"示"],[12145,1,"禸"],[12146,1,"禾"],[12147,1,"穴"],[12148,1,"立"],[12149,1,"竹"],[12150,1,"米"],[12151,1,"糸"],[12152,1,"缶"],[12153,1,"网"],[12154,1,"羊"],[12155,1,"羽"],[12156,1,"老"],[12157,1,"而"],[12158,1,"耒"],[12159,1,"耳"],[12160,1,"聿"],[12161,1,"肉"],[12162,1,"臣"],[12163,1,"自"],[12164,1,"至"],[12165,1,"臼"],[12166,1,"舌"],[12167,1,"舛"],[12168,1,"舟"],[12169,1,"艮"],[12170,1,"色"],[12171,1,"艸"],[12172,1,"虍"],[12173,1,"虫"],[12174,1,"血"],[12175,1,"行"],[12176,1,"衣"],[12177,1,"襾"],[12178,1,"見"],[12179,1,"角"],[12180,1,"言"],[12181,1,"谷"],[12182,1,"豆"],[12183,1,"豕"],[12184,1,"豸"],[12185,1,"貝"],[12186,1,"赤"],[12187,1,"走"],[12188,1,"足"],[12189,1,"身"],[12190,1,"車"],[12191,1,"辛"],[12192,1,"辰"],[12193,1,"辵"],[12194,1,"邑"],[12195,1,"酉"],[12196,1,"釆"],[12197,1,"里"],[12198,1,"金"],[12199,1,"長"],[12200,1,"門"],[12201,1,"阜"],[12202,1,"隶"],[12203,1,"隹"],[12204,1,"雨"],[12205,1,"靑"],[12206,1,"非"],[12207,1,"面"],[12208,1,"革"],[12209,1,"韋"],[12210,1,"韭"],[12211,1,"音"],[12212,1,"頁"],[12213,1,"風"],[12214,1,"飛"],[12215,1,"食"],[12216,1,"首"],[12217,1,"香"],[12218,1,"馬"],[12219,1,"骨"],[12220,1,"高"],[12221,1,"髟"],[12222,1,"鬥"],[12223,1,"鬯"],[12224,1,"鬲"],[12225,1,"鬼"],[12226,1,"魚"],[12227,1,"鳥"],[12228,1,"鹵"],[12229,1,"鹿"],[12230,1,"麥"],[12231,1,"麻"],[12232,1,"黃"],[12233,1,"黍"],[12234,1,"黑"],[12235,1,"黹"],[12236,1,"黽"],[12237,1,"鼎"],[12238,1,"鼓"],[12239,1,"鼠"],[12240,1,"鼻"],[12241,1,"齊"],[12242,1,"齒"],[12243,1,"龍"],[12244,1,"龜"],[12245,1,"龠"],[[12246,12271],3],[[12272,12283],3],[[12284,12287],3],[12288,5," "],[12289,2],[12290,1,"."],[[12291,12292],2],[[12293,12295],2],[[12296,12329],2],[[12330,12333],2],[[12334,12341],2],[12342,1,"〒"],[12343,2],[12344,1,"十"],[12345,1,"卄"],[12346,1,"卅"],[12347,2],[12348,2],[12349,2],[12350,2],[12351,2],[12352,3],[[12353,12436],2],[[12437,12438],2],[[12439,12440],3],[[12441,12442],2],[12443,5," ゙"],[12444,5," ゚"],[[12445,12446],2],[12447,1,"より"],[12448,2],[[12449,12542],2],[12543,1,"コト"],[[12544,12548],3],[[12549,12588],2],[12589,2],[12590,2],[12591,2],[12592,3],[12593,1,"ᄀ"],[12594,1,"ᄁ"],[12595,1,"ᆪ"],[12596,1,"ᄂ"],[12597,1,"ᆬ"],[12598,1,"ᆭ"],[12599,1,"ᄃ"],[12600,1,"ᄄ"],[12601,1,"ᄅ"],[12602,1,"ᆰ"],[12603,1,"ᆱ"],[12604,1,"ᆲ"],[12605,1,"ᆳ"],[12606,1,"ᆴ"],[12607,1,"ᆵ"],[12608,1,"ᄚ"],[12609,1,"ᄆ"],[12610,1,"ᄇ"],[12611,1,"ᄈ"],[12612,1,"ᄡ"],[12613,1,"ᄉ"],[12614,1,"ᄊ"],[12615,1,"ᄋ"],[12616,1,"ᄌ"],[12617,1,"ᄍ"],[12618,1,"ᄎ"],[12619,1,"ᄏ"],[12620,1,"ᄐ"],[12621,1,"ᄑ"],[12622,1,"ᄒ"],[12623,1,"ᅡ"],[12624,1,"ᅢ"],[12625,1,"ᅣ"],[12626,1,"ᅤ"],[12627,1,"ᅥ"],[12628,1,"ᅦ"],[12629,1,"ᅧ"],[12630,1,"ᅨ"],[12631,1,"ᅩ"],[12632,1,"ᅪ"],[12633,1,"ᅫ"],[12634,1,"ᅬ"],[12635,1,"ᅭ"],[12636,1,"ᅮ"],[12637,1,"ᅯ"],[12638,1,"ᅰ"],[12639,1,"ᅱ"],[12640,1,"ᅲ"],[12641,1,"ᅳ"],[12642,1,"ᅴ"],[12643,1,"ᅵ"],[12644,3],[12645,1,"ᄔ"],[12646,1,"ᄕ"],[12647,1,"ᇇ"],[12648,1,"ᇈ"],[12649,1,"ᇌ"],[12650,1,"ᇎ"],[12651,1,"ᇓ"],[12652,1,"ᇗ"],[12653,1,"ᇙ"],[12654,1,"ᄜ"],[12655,1,"ᇝ"],[12656,1,"ᇟ"],[12657,1,"ᄝ"],[12658,1,"ᄞ"],[12659,1,"ᄠ"],[12660,1,"ᄢ"],[12661,1,"ᄣ"],[12662,1,"ᄧ"],[12663,1,"ᄩ"],[12664,1,"ᄫ"],[12665,1,"ᄬ"],[12666,1,"ᄭ"],[12667,1,"ᄮ"],[12668,1,"ᄯ"],[12669,1,"ᄲ"],[12670,1,"ᄶ"],[12671,1,"ᅀ"],[12672,1,"ᅇ"],[12673,1,"ᅌ"],[12674,1,"ᇱ"],[12675,1,"ᇲ"],[12676,1,"ᅗ"],[12677,1,"ᅘ"],[12678,1,"ᅙ"],[12679,1,"ᆄ"],[12680,1,"ᆅ"],[12681,1,"ᆈ"],[12682,1,"ᆑ"],[12683,1,"ᆒ"],[12684,1,"ᆔ"],[12685,1,"ᆞ"],[12686,1,"ᆡ"],[12687,3],[[12688,12689],2],[12690,1,"一"],[12691,1,"二"],[12692,1,"三"],[12693,1,"四"],[12694,1,"上"],[12695,1,"中"],[12696,1,"下"],[12697,1,"甲"],[12698,1,"乙"],[12699,1,"丙"],[12700,1,"丁"],[12701,1,"天"],[12702,1,"地"],[12703,1,"人"],[[12704,12727],2],[[12728,12730],2],[[12731,12735],2],[[12736,12751],2],[[12752,12771],2],[[12772,12783],3],[[12784,12799],2],[12800,5,"(ᄀ)"],[12801,5,"(ᄂ)"],[12802,5,"(ᄃ)"],[12803,5,"(ᄅ)"],[12804,5,"(ᄆ)"],[12805,5,"(ᄇ)"],[12806,5,"(ᄉ)"],[12807,5,"(ᄋ)"],[12808,5,"(ᄌ)"],[12809,5,"(ᄎ)"],[12810,5,"(ᄏ)"],[12811,5,"(ᄐ)"],[12812,5,"(ᄑ)"],[12813,5,"(ᄒ)"],[12814,5,"(가)"],[12815,5,"(나)"],[12816,5,"(다)"],[12817,5,"(라)"],[12818,5,"(마)"],[12819,5,"(바)"],[12820,5,"(사)"],[12821,5,"(아)"],[12822,5,"(자)"],[12823,5,"(차)"],[12824,5,"(카)"],[12825,5,"(타)"],[12826,5,"(파)"],[12827,5,"(하)"],[12828,5,"(주)"],[12829,5,"(오전)"],[12830,5,"(오후)"],[12831,3],[12832,5,"(一)"],[12833,5,"(二)"],[12834,5,"(三)"],[12835,5,"(四)"],[12836,5,"(五)"],[12837,5,"(六)"],[12838,5,"(七)"],[12839,5,"(八)"],[12840,5,"(九)"],[12841,5,"(十)"],[12842,5,"(月)"],[12843,5,"(火)"],[12844,5,"(水)"],[12845,5,"(木)"],[12846,5,"(金)"],[12847,5,"(土)"],[12848,5,"(日)"],[12849,5,"(株)"],[12850,5,"(有)"],[12851,5,"(社)"],[12852,5,"(名)"],[12853,5,"(特)"],[12854,5,"(財)"],[12855,5,"(祝)"],[12856,5,"(労)"],[12857,5,"(代)"],[12858,5,"(呼)"],[12859,5,"(学)"],[12860,5,"(監)"],[12861,5,"(企)"],[12862,5,"(資)"],[12863,5,"(協)"],[12864,5,"(祭)"],[12865,5,"(休)"],[12866,5,"(自)"],[12867,5,"(至)"],[12868,1,"問"],[12869,1,"幼"],[12870,1,"文"],[12871,1,"箏"],[[12872,12879],2],[12880,1,"pte"],[12881,1,"21"],[12882,1,"22"],[12883,1,"23"],[12884,1,"24"],[12885,1,"25"],[12886,1,"26"],[12887,1,"27"],[12888,1,"28"],[12889,1,"29"],[12890,1,"30"],[12891,1,"31"],[12892,1,"32"],[12893,1,"33"],[12894,1,"34"],[12895,1,"35"],[12896,1,"ᄀ"],[12897,1,"ᄂ"],[12898,1,"ᄃ"],[12899,1,"ᄅ"],[12900,1,"ᄆ"],[12901,1,"ᄇ"],[12902,1,"ᄉ"],[12903,1,"ᄋ"],[12904,1,"ᄌ"],[12905,1,"ᄎ"],[12906,1,"ᄏ"],[12907,1,"ᄐ"],[12908,1,"ᄑ"],[12909,1,"ᄒ"],[12910,1,"가"],[12911,1,"나"],[12912,1,"다"],[12913,1,"라"],[12914,1,"마"],[12915,1,"바"],[12916,1,"사"],[12917,1,"아"],[12918,1,"자"],[12919,1,"차"],[12920,1,"카"],[12921,1,"타"],[12922,1,"파"],[12923,1,"하"],[12924,1,"참고"],[12925,1,"주의"],[12926,1,"우"],[12927,2],[12928,1,"一"],[12929,1,"二"],[12930,1,"三"],[12931,1,"四"],[12932,1,"五"],[12933,1,"六"],[12934,1,"七"],[12935,1,"八"],[12936,1,"九"],[12937,1,"十"],[12938,1,"月"],[12939,1,"火"],[12940,1,"水"],[12941,1,"木"],[12942,1,"金"],[12943,1,"土"],[12944,1,"日"],[12945,1,"株"],[12946,1,"有"],[12947,1,"社"],[12948,1,"名"],[12949,1,"特"],[12950,1,"財"],[12951,1,"祝"],[12952,1,"労"],[12953,1,"秘"],[12954,1,"男"],[12955,1,"女"],[12956,1,"適"],[12957,1,"優"],[12958,1,"印"],[12959,1,"注"],[12960,1,"項"],[12961,1,"休"],[12962,1,"写"],[12963,1,"正"],[12964,1,"上"],[12965,1,"中"],[12966,1,"下"],[12967,1,"左"],[12968,1,"右"],[12969,1,"医"],[12970,1,"宗"],[12971,1,"学"],[12972,1,"監"],[12973,1,"企"],[12974,1,"資"],[12975,1,"協"],[12976,1,"夜"],[12977,1,"36"],[12978,1,"37"],[12979,1,"38"],[12980,1,"39"],[12981,1,"40"],[12982,1,"41"],[12983,1,"42"],[12984,1,"43"],[12985,1,"44"],[12986,1,"45"],[12987,1,"46"],[12988,1,"47"],[12989,1,"48"],[12990,1,"49"],[12991,1,"50"],[12992,1,"1月"],[12993,1,"2月"],[12994,1,"3月"],[12995,1,"4月"],[12996,1,"5月"],[12997,1,"6月"],[12998,1,"7月"],[12999,1,"8月"],[13000,1,"9月"],[13001,1,"10月"],[13002,1,"11月"],[13003,1,"12月"],[13004,1,"hg"],[13005,1,"erg"],[13006,1,"ev"],[13007,1,"ltd"],[13008,1,"ア"],[13009,1,"イ"],[13010,1,"ウ"],[13011,1,"エ"],[13012,1,"オ"],[13013,1,"カ"],[13014,1,"キ"],[13015,1,"ク"],[13016,1,"ケ"],[13017,1,"コ"],[13018,1,"サ"],[13019,1,"シ"],[13020,1,"ス"],[13021,1,"セ"],[13022,1,"ソ"],[13023,1,"タ"],[13024,1,"チ"],[13025,1,"ツ"],[13026,1,"テ"],[13027,1,"ト"],[13028,1,"ナ"],[13029,1,"ニ"],[13030,1,"ヌ"],[13031,1,"ネ"],[13032,1,"ノ"],[13033,1,"ハ"],[13034,1,"ヒ"],[13035,1,"フ"],[13036,1,"ヘ"],[13037,1,"ホ"],[13038,1,"マ"],[13039,1,"ミ"],[13040,1,"ム"],[13041,1,"メ"],[13042,1,"モ"],[13043,1,"ヤ"],[13044,1,"ユ"],[13045,1,"ヨ"],[13046,1,"ラ"],[13047,1,"リ"],[13048,1,"ル"],[13049,1,"レ"],[13050,1,"ロ"],[13051,1,"ワ"],[13052,1,"ヰ"],[13053,1,"ヱ"],[13054,1,"ヲ"],[13055,1,"令和"],[13056,1,"アパート"],[13057,1,"アルファ"],[13058,1,"アンペア"],[13059,1,"アール"],[13060,1,"イニング"],[13061,1,"インチ"],[13062,1,"ウォン"],[13063,1,"エスクード"],[13064,1,"エーカー"],[13065,1,"オンス"],[13066,1,"オーム"],[13067,1,"カイリ"],[13068,1,"カラット"],[13069,1,"カロリー"],[13070,1,"ガロン"],[13071,1,"ガンマ"],[13072,1,"ギガ"],[13073,1,"ギニー"],[13074,1,"キュリー"],[13075,1,"ギルダー"],[13076,1,"キロ"],[13077,1,"キログラム"],[13078,1,"キロメートル"],[13079,1,"キロワット"],[13080,1,"グラム"],[13081,1,"グラムトン"],[13082,1,"クルゼイロ"],[13083,1,"クローネ"],[13084,1,"ケース"],[13085,1,"コルナ"],[13086,1,"コーポ"],[13087,1,"サイクル"],[13088,1,"サンチーム"],[13089,1,"シリング"],[13090,1,"センチ"],[13091,1,"セント"],[13092,1,"ダース"],[13093,1,"デシ"],[13094,1,"ドル"],[13095,1,"トン"],[13096,1,"ナノ"],[13097,1,"ノット"],[13098,1,"ハイツ"],[13099,1,"パーセント"],[13100,1,"パーツ"],[13101,1,"バーレル"],[13102,1,"ピアストル"],[13103,1,"ピクル"],[13104,1,"ピコ"],[13105,1,"ビル"],[13106,1,"ファラッド"],[13107,1,"フィート"],[13108,1,"ブッシェル"],[13109,1,"フラン"],[13110,1,"ヘクタール"],[13111,1,"ペソ"],[13112,1,"ペニヒ"],[13113,1,"ヘルツ"],[13114,1,"ペンス"],[13115,1,"ページ"],[13116,1,"ベータ"],[13117,1,"ポイント"],[13118,1,"ボルト"],[13119,1,"ホン"],[13120,1,"ポンド"],[13121,1,"ホール"],[13122,1,"ホーン"],[13123,1,"マイクロ"],[13124,1,"マイル"],[13125,1,"マッハ"],[13126,1,"マルク"],[13127,1,"マンション"],[13128,1,"ミクロン"],[13129,1,"ミリ"],[13130,1,"ミリバール"],[13131,1,"メガ"],[13132,1,"メガトン"],[13133,1,"メートル"],[13134,1,"ヤード"],[13135,1,"ヤール"],[13136,1,"ユアン"],[13137,1,"リットル"],[13138,1,"リラ"],[13139,1,"ルピー"],[13140,1,"ルーブル"],[13141,1,"レム"],[13142,1,"レントゲン"],[13143,1,"ワット"],[13144,1,"0点"],[13145,1,"1点"],[13146,1,"2点"],[13147,1,"3点"],[13148,1,"4点"],[13149,1,"5点"],[13150,1,"6点"],[13151,1,"7点"],[13152,1,"8点"],[13153,1,"9点"],[13154,1,"10点"],[13155,1,"11点"],[13156,1,"12点"],[13157,1,"13点"],[13158,1,"14点"],[13159,1,"15点"],[13160,1,"16点"],[13161,1,"17点"],[13162,1,"18点"],[13163,1,"19点"],[13164,1,"20点"],[13165,1,"21点"],[13166,1,"22点"],[13167,1,"23点"],[13168,1,"24点"],[13169,1,"hpa"],[13170,1,"da"],[13171,1,"au"],[13172,1,"bar"],[13173,1,"ov"],[13174,1,"pc"],[13175,1,"dm"],[13176,1,"dm2"],[13177,1,"dm3"],[13178,1,"iu"],[13179,1,"平成"],[13180,1,"昭和"],[13181,1,"大正"],[13182,1,"明治"],[13183,1,"株式会社"],[13184,1,"pa"],[13185,1,"na"],[13186,1,"μa"],[13187,1,"ma"],[13188,1,"ka"],[13189,1,"kb"],[13190,1,"mb"],[13191,1,"gb"],[13192,1,"cal"],[13193,1,"kcal"],[13194,1,"pf"],[13195,1,"nf"],[13196,1,"μf"],[13197,1,"μg"],[13198,1,"mg"],[13199,1,"kg"],[13200,1,"hz"],[13201,1,"khz"],[13202,1,"mhz"],[13203,1,"ghz"],[13204,1,"thz"],[13205,1,"μl"],[13206,1,"ml"],[13207,1,"dl"],[13208,1,"kl"],[13209,1,"fm"],[13210,1,"nm"],[13211,1,"μm"],[13212,1,"mm"],[13213,1,"cm"],[13214,1,"km"],[13215,1,"mm2"],[13216,1,"cm2"],[13217,1,"m2"],[13218,1,"km2"],[13219,1,"mm3"],[13220,1,"cm3"],[13221,1,"m3"],[13222,1,"km3"],[13223,1,"m∕s"],[13224,1,"m∕s2"],[13225,1,"pa"],[13226,1,"kpa"],[13227,1,"mpa"],[13228,1,"gpa"],[13229,1,"rad"],[13230,1,"rad∕s"],[13231,1,"rad∕s2"],[13232,1,"ps"],[13233,1,"ns"],[13234,1,"μs"],[13235,1,"ms"],[13236,1,"pv"],[13237,1,"nv"],[13238,1,"μv"],[13239,1,"mv"],[13240,1,"kv"],[13241,1,"mv"],[13242,1,"pw"],[13243,1,"nw"],[13244,1,"μw"],[13245,1,"mw"],[13246,1,"kw"],[13247,1,"mw"],[13248,1,"kω"],[13249,1,"mω"],[13250,3],[13251,1,"bq"],[13252,1,"cc"],[13253,1,"cd"],[13254,1,"c∕kg"],[13255,3],[13256,1,"db"],[13257,1,"gy"],[13258,1,"ha"],[13259,1,"hp"],[13260,1,"in"],[13261,1,"kk"],[13262,1,"km"],[13263,1,"kt"],[13264,1,"lm"],[13265,1,"ln"],[13266,1,"log"],[13267,1,"lx"],[13268,1,"mb"],[13269,1,"mil"],[13270,1,"mol"],[13271,1,"ph"],[13272,3],[13273,1,"ppm"],[13274,1,"pr"],[13275,1,"sr"],[13276,1,"sv"],[13277,1,"wb"],[13278,1,"v∕m"],[13279,1,"a∕m"],[13280,1,"1日"],[13281,1,"2日"],[13282,1,"3日"],[13283,1,"4日"],[13284,1,"5日"],[13285,1,"6日"],[13286,1,"7日"],[13287,1,"8日"],[13288,1,"9日"],[13289,1,"10日"],[13290,1,"11日"],[13291,1,"12日"],[13292,1,"13日"],[13293,1,"14日"],[13294,1,"15日"],[13295,1,"16日"],[13296,1,"17日"],[13297,1,"18日"],[13298,1,"19日"],[13299,1,"20日"],[13300,1,"21日"],[13301,1,"22日"],[13302,1,"23日"],[13303,1,"24日"],[13304,1,"25日"],[13305,1,"26日"],[13306,1,"27日"],[13307,1,"28日"],[13308,1,"29日"],[13309,1,"30日"],[13310,1,"31日"],[13311,1,"gal"],[[13312,19893],2],[[19894,19903],2],[[19904,19967],2],[[19968,40869],2],[[40870,40891],2],[[40892,40899],2],[[40900,40907],2],[40908,2],[[40909,40917],2],[[40918,40938],2],[[40939,40943],2],[[40944,40956],2],[[40957,40959],2],[[40960,42124],2],[[42125,42127],3],[[42128,42145],2],[[42146,42147],2],[[42148,42163],2],[42164,2],[[42165,42176],2],[42177,2],[[42178,42180],2],[42181,2],[42182,2],[[42183,42191],3],[[42192,42237],2],[[42238,42239],2],[[42240,42508],2],[[42509,42511],2],[[42512,42539],2],[[42540,42559],3],[42560,1,"ꙁ"],[42561,2],[42562,1,"ꙃ"],[42563,2],[42564,1,"ꙅ"],[42565,2],[42566,1,"ꙇ"],[42567,2],[42568,1,"ꙉ"],[42569,2],[42570,1,"ꙋ"],[42571,2],[42572,1,"ꙍ"],[42573,2],[42574,1,"ꙏ"],[42575,2],[42576,1,"ꙑ"],[42577,2],[42578,1,"ꙓ"],[42579,2],[42580,1,"ꙕ"],[42581,2],[42582,1,"ꙗ"],[42583,2],[42584,1,"ꙙ"],[42585,2],[42586,1,"ꙛ"],[42587,2],[42588,1,"ꙝ"],[42589,2],[42590,1,"ꙟ"],[42591,2],[42592,1,"ꙡ"],[42593,2],[42594,1,"ꙣ"],[42595,2],[42596,1,"ꙥ"],[42597,2],[42598,1,"ꙧ"],[42599,2],[42600,1,"ꙩ"],[42601,2],[42602,1,"ꙫ"],[42603,2],[42604,1,"ꙭ"],[[42605,42607],2],[[42608,42611],2],[[42612,42619],2],[[42620,42621],2],[42622,2],[42623,2],[42624,1,"ꚁ"],[42625,2],[42626,1,"ꚃ"],[42627,2],[42628,1,"ꚅ"],[42629,2],[42630,1,"ꚇ"],[42631,2],[42632,1,"ꚉ"],[42633,2],[42634,1,"ꚋ"],[42635,2],[42636,1,"ꚍ"],[42637,2],[42638,1,"ꚏ"],[42639,2],[42640,1,"ꚑ"],[42641,2],[42642,1,"ꚓ"],[42643,2],[42644,1,"ꚕ"],[42645,2],[42646,1,"ꚗ"],[42647,2],[42648,1,"ꚙ"],[42649,2],[42650,1,"ꚛ"],[42651,2],[42652,1,"ъ"],[42653,1,"ь"],[42654,2],[42655,2],[[42656,42725],2],[[42726,42735],2],[[42736,42737],2],[[42738,42743],2],[[42744,42751],3],[[42752,42774],2],[[42775,42778],2],[[42779,42783],2],[[42784,42785],2],[42786,1,"ꜣ"],[42787,2],[42788,1,"ꜥ"],[42789,2],[42790,1,"ꜧ"],[42791,2],[42792,1,"ꜩ"],[42793,2],[42794,1,"ꜫ"],[42795,2],[42796,1,"ꜭ"],[42797,2],[42798,1,"ꜯ"],[[42799,42801],2],[42802,1,"ꜳ"],[42803,2],[42804,1,"ꜵ"],[42805,2],[42806,1,"ꜷ"],[42807,2],[42808,1,"ꜹ"],[42809,2],[42810,1,"ꜻ"],[42811,2],[42812,1,"ꜽ"],[42813,2],[42814,1,"ꜿ"],[42815,2],[42816,1,"ꝁ"],[42817,2],[42818,1,"ꝃ"],[42819,2],[42820,1,"ꝅ"],[42821,2],[42822,1,"ꝇ"],[42823,2],[42824,1,"ꝉ"],[42825,2],[42826,1,"ꝋ"],[42827,2],[42828,1,"ꝍ"],[42829,2],[42830,1,"ꝏ"],[42831,2],[42832,1,"ꝑ"],[42833,2],[42834,1,"ꝓ"],[42835,2],[42836,1,"ꝕ"],[42837,2],[42838,1,"ꝗ"],[42839,2],[42840,1,"ꝙ"],[42841,2],[42842,1,"ꝛ"],[42843,2],[42844,1,"ꝝ"],[42845,2],[42846,1,"ꝟ"],[42847,2],[42848,1,"ꝡ"],[42849,2],[42850,1,"ꝣ"],[42851,2],[42852,1,"ꝥ"],[42853,2],[42854,1,"ꝧ"],[42855,2],[42856,1,"ꝩ"],[42857,2],[42858,1,"ꝫ"],[42859,2],[42860,1,"ꝭ"],[42861,2],[42862,1,"ꝯ"],[42863,2],[42864,1,"ꝯ"],[[42865,42872],2],[42873,1,"ꝺ"],[42874,2],[42875,1,"ꝼ"],[42876,2],[42877,1,"ᵹ"],[42878,1,"ꝿ"],[42879,2],[42880,1,"ꞁ"],[42881,2],[42882,1,"ꞃ"],[42883,2],[42884,1,"ꞅ"],[42885,2],[42886,1,"ꞇ"],[[42887,42888],2],[[42889,42890],2],[42891,1,"ꞌ"],[42892,2],[42893,1,"ɥ"],[42894,2],[42895,2],[42896,1,"ꞑ"],[42897,2],[42898,1,"ꞓ"],[42899,2],[[42900,42901],2],[42902,1,"ꞗ"],[42903,2],[42904,1,"ꞙ"],[42905,2],[42906,1,"ꞛ"],[42907,2],[42908,1,"ꞝ"],[42909,2],[42910,1,"ꞟ"],[42911,2],[42912,1,"ꞡ"],[42913,2],[42914,1,"ꞣ"],[42915,2],[42916,1,"ꞥ"],[42917,2],[42918,1,"ꞧ"],[42919,2],[42920,1,"ꞩ"],[42921,2],[42922,1,"ɦ"],[42923,1,"ɜ"],[42924,1,"ɡ"],[42925,1,"ɬ"],[42926,1,"ɪ"],[42927,2],[42928,1,"ʞ"],[42929,1,"ʇ"],[42930,1,"ʝ"],[42931,1,"ꭓ"],[42932,1,"ꞵ"],[42933,2],[42934,1,"ꞷ"],[42935,2],[42936,1,"ꞹ"],[42937,2],[42938,1,"ꞻ"],[42939,2],[42940,1,"ꞽ"],[42941,2],[42942,1,"ꞿ"],[42943,2],[42944,1,"ꟁ"],[42945,2],[42946,1,"ꟃ"],[42947,2],[42948,1,"ꞔ"],[42949,1,"ʂ"],[42950,1,"ᶎ"],[42951,1,"ꟈ"],[42952,2],[42953,1,"ꟊ"],[42954,2],[[42955,42959],3],[42960,1,"ꟑ"],[42961,2],[42962,3],[42963,2],[42964,3],[42965,2],[42966,1,"ꟗ"],[42967,2],[42968,1,"ꟙ"],[42969,2],[[42970,42993],3],[42994,1,"c"],[42995,1,"f"],[42996,1,"q"],[42997,1,"ꟶ"],[42998,2],[42999,2],[43000,1,"ħ"],[43001,1,"œ"],[43002,2],[[43003,43007],2],[[43008,43047],2],[[43048,43051],2],[43052,2],[[43053,43055],3],[[43056,43065],2],[[43066,43071],3],[[43072,43123],2],[[43124,43127],2],[[43128,43135],3],[[43136,43204],2],[43205,2],[[43206,43213],3],[[43214,43215],2],[[43216,43225],2],[[43226,43231],3],[[43232,43255],2],[[43256,43258],2],[43259,2],[43260,2],[43261,2],[[43262,43263],2],[[43264,43309],2],[[43310,43311],2],[[43312,43347],2],[[43348,43358],3],[43359,2],[[43360,43388],2],[[43389,43391],3],[[43392,43456],2],[[43457,43469],2],[43470,3],[[43471,43481],2],[[43482,43485],3],[[43486,43487],2],[[43488,43518],2],[43519,3],[[43520,43574],2],[[43575,43583],3],[[43584,43597],2],[[43598,43599],3],[[43600,43609],2],[[43610,43611],3],[[43612,43615],2],[[43616,43638],2],[[43639,43641],2],[[43642,43643],2],[[43644,43647],2],[[43648,43714],2],[[43715,43738],3],[[43739,43741],2],[[43742,43743],2],[[43744,43759],2],[[43760,43761],2],[[43762,43766],2],[[43767,43776],3],[[43777,43782],2],[[43783,43784],3],[[43785,43790],2],[[43791,43792],3],[[43793,43798],2],[[43799,43807],3],[[43808,43814],2],[43815,3],[[43816,43822],2],[43823,3],[[43824,43866],2],[43867,2],[43868,1,"ꜧ"],[43869,1,"ꬷ"],[43870,1,"ɫ"],[43871,1,"ꭒ"],[[43872,43875],2],[[43876,43877],2],[[43878,43879],2],[43880,2],[43881,1,"ʍ"],[[43882,43883],2],[[43884,43887],3],[43888,1,"Ꭰ"],[43889,1,"Ꭱ"],[43890,1,"Ꭲ"],[43891,1,"Ꭳ"],[43892,1,"Ꭴ"],[43893,1,"Ꭵ"],[43894,1,"Ꭶ"],[43895,1,"Ꭷ"],[43896,1,"Ꭸ"],[43897,1,"Ꭹ"],[43898,1,"Ꭺ"],[43899,1,"Ꭻ"],[43900,1,"Ꭼ"],[43901,1,"Ꭽ"],[43902,1,"Ꭾ"],[43903,1,"Ꭿ"],[43904,1,"Ꮀ"],[43905,1,"Ꮁ"],[43906,1,"Ꮂ"],[43907,1,"Ꮃ"],[43908,1,"Ꮄ"],[43909,1,"Ꮅ"],[43910,1,"Ꮆ"],[43911,1,"Ꮇ"],[43912,1,"Ꮈ"],[43913,1,"Ꮉ"],[43914,1,"Ꮊ"],[43915,1,"Ꮋ"],[43916,1,"Ꮌ"],[43917,1,"Ꮍ"],[43918,1,"Ꮎ"],[43919,1,"Ꮏ"],[43920,1,"Ꮐ"],[43921,1,"Ꮑ"],[43922,1,"Ꮒ"],[43923,1,"Ꮓ"],[43924,1,"Ꮔ"],[43925,1,"Ꮕ"],[43926,1,"Ꮖ"],[43927,1,"Ꮗ"],[43928,1,"Ꮘ"],[43929,1,"Ꮙ"],[43930,1,"Ꮚ"],[43931,1,"Ꮛ"],[43932,1,"Ꮜ"],[43933,1,"Ꮝ"],[43934,1,"Ꮞ"],[43935,1,"Ꮟ"],[43936,1,"Ꮠ"],[43937,1,"Ꮡ"],[43938,1,"Ꮢ"],[43939,1,"Ꮣ"],[43940,1,"Ꮤ"],[43941,1,"Ꮥ"],[43942,1,"Ꮦ"],[43943,1,"Ꮧ"],[43944,1,"Ꮨ"],[43945,1,"Ꮩ"],[43946,1,"Ꮪ"],[43947,1,"Ꮫ"],[43948,1,"Ꮬ"],[43949,1,"Ꮭ"],[43950,1,"Ꮮ"],[43951,1,"Ꮯ"],[43952,1,"Ꮰ"],[43953,1,"Ꮱ"],[43954,1,"Ꮲ"],[43955,1,"Ꮳ"],[43956,1,"Ꮴ"],[43957,1,"Ꮵ"],[43958,1,"Ꮶ"],[43959,1,"Ꮷ"],[43960,1,"Ꮸ"],[43961,1,"Ꮹ"],[43962,1,"Ꮺ"],[43963,1,"Ꮻ"],[43964,1,"Ꮼ"],[43965,1,"Ꮽ"],[43966,1,"Ꮾ"],[43967,1,"Ꮿ"],[[43968,44010],2],[44011,2],[[44012,44013],2],[[44014,44015],3],[[44016,44025],2],[[44026,44031],3],[[44032,55203],2],[[55204,55215],3],[[55216,55238],2],[[55239,55242],3],[[55243,55291],2],[[55292,55295],3],[[55296,57343],3],[[57344,63743],3],[63744,1,"豈"],[63745,1,"更"],[63746,1,"車"],[63747,1,"賈"],[63748,1,"滑"],[63749,1,"串"],[63750,1,"句"],[[63751,63752],1,"龜"],[63753,1,"契"],[63754,1,"金"],[63755,1,"喇"],[63756,1,"奈"],[63757,1,"懶"],[63758,1,"癩"],[63759,1,"羅"],[63760,1,"蘿"],[63761,1,"螺"],[63762,1,"裸"],[63763,1,"邏"],[63764,1,"樂"],[63765,1,"洛"],[63766,1,"烙"],[63767,1,"珞"],[63768,1,"落"],[63769,1,"酪"],[63770,1,"駱"],[63771,1,"亂"],[63772,1,"卵"],[63773,1,"欄"],[63774,1,"爛"],[63775,1,"蘭"],[63776,1,"鸞"],[63777,1,"嵐"],[63778,1,"濫"],[63779,1,"藍"],[63780,1,"襤"],[63781,1,"拉"],[63782,1,"臘"],[63783,1,"蠟"],[63784,1,"廊"],[63785,1,"朗"],[63786,1,"浪"],[63787,1,"狼"],[63788,1,"郎"],[63789,1,"來"],[63790,1,"冷"],[63791,1,"勞"],[63792,1,"擄"],[63793,1,"櫓"],[63794,1,"爐"],[63795,1,"盧"],[63796,1,"老"],[63797,1,"蘆"],[63798,1,"虜"],[63799,1,"路"],[63800,1,"露"],[63801,1,"魯"],[63802,1,"鷺"],[63803,1,"碌"],[63804,1,"祿"],[63805,1,"綠"],[63806,1,"菉"],[63807,1,"錄"],[63808,1,"鹿"],[63809,1,"論"],[63810,1,"壟"],[63811,1,"弄"],[63812,1,"籠"],[63813,1,"聾"],[63814,1,"牢"],[63815,1,"磊"],[63816,1,"賂"],[63817,1,"雷"],[63818,1,"壘"],[63819,1,"屢"],[63820,1,"樓"],[63821,1,"淚"],[63822,1,"漏"],[63823,1,"累"],[63824,1,"縷"],[63825,1,"陋"],[63826,1,"勒"],[63827,1,"肋"],[63828,1,"凜"],[63829,1,"凌"],[63830,1,"稜"],[63831,1,"綾"],[63832,1,"菱"],[63833,1,"陵"],[63834,1,"讀"],[63835,1,"拏"],[63836,1,"樂"],[63837,1,"諾"],[63838,1,"丹"],[63839,1,"寧"],[63840,1,"怒"],[63841,1,"率"],[63842,1,"異"],[63843,1,"北"],[63844,1,"磻"],[63845,1,"便"],[63846,1,"復"],[63847,1,"不"],[63848,1,"泌"],[63849,1,"數"],[63850,1,"索"],[63851,1,"參"],[63852,1,"塞"],[63853,1,"省"],[63854,1,"葉"],[63855,1,"說"],[63856,1,"殺"],[63857,1,"辰"],[63858,1,"沈"],[63859,1,"拾"],[63860,1,"若"],[63861,1,"掠"],[63862,1,"略"],[63863,1,"亮"],[63864,1,"兩"],[63865,1,"凉"],[63866,1,"梁"],[63867,1,"糧"],[63868,1,"良"],[63869,1,"諒"],[63870,1,"量"],[63871,1,"勵"],[63872,1,"呂"],[63873,1,"女"],[63874,1,"廬"],[63875,1,"旅"],[63876,1,"濾"],[63877,1,"礪"],[63878,1,"閭"],[63879,1,"驪"],[63880,1,"麗"],[63881,1,"黎"],[63882,1,"力"],[63883,1,"曆"],[63884,1,"歷"],[63885,1,"轢"],[63886,1,"年"],[63887,1,"憐"],[63888,1,"戀"],[63889,1,"撚"],[63890,1,"漣"],[63891,1,"煉"],[63892,1,"璉"],[63893,1,"秊"],[63894,1,"練"],[63895,1,"聯"],[63896,1,"輦"],[63897,1,"蓮"],[63898,1,"連"],[63899,1,"鍊"],[63900,1,"列"],[63901,1,"劣"],[63902,1,"咽"],[63903,1,"烈"],[63904,1,"裂"],[63905,1,"說"],[63906,1,"廉"],[63907,1,"念"],[63908,1,"捻"],[63909,1,"殮"],[63910,1,"簾"],[63911,1,"獵"],[63912,1,"令"],[63913,1,"囹"],[63914,1,"寧"],[63915,1,"嶺"],[63916,1,"怜"],[63917,1,"玲"],[63918,1,"瑩"],[63919,1,"羚"],[63920,1,"聆"],[63921,1,"鈴"],[63922,1,"零"],[63923,1,"靈"],[63924,1,"領"],[63925,1,"例"],[63926,1,"禮"],[63927,1,"醴"],[63928,1,"隸"],[63929,1,"惡"],[63930,1,"了"],[63931,1,"僚"],[63932,1,"寮"],[63933,1,"尿"],[63934,1,"料"],[63935,1,"樂"],[63936,1,"燎"],[63937,1,"療"],[63938,1,"蓼"],[63939,1,"遼"],[63940,1,"龍"],[63941,1,"暈"],[63942,1,"阮"],[63943,1,"劉"],[63944,1,"杻"],[63945,1,"柳"],[63946,1,"流"],[63947,1,"溜"],[63948,1,"琉"],[63949,1,"留"],[63950,1,"硫"],[63951,1,"紐"],[63952,1,"類"],[63953,1,"六"],[63954,1,"戮"],[63955,1,"陸"],[63956,1,"倫"],[63957,1,"崙"],[63958,1,"淪"],[63959,1,"輪"],[63960,1,"律"],[63961,1,"慄"],[63962,1,"栗"],[63963,1,"率"],[63964,1,"隆"],[63965,1,"利"],[63966,1,"吏"],[63967,1,"履"],[63968,1,"易"],[63969,1,"李"],[63970,1,"梨"],[63971,1,"泥"],[63972,1,"理"],[63973,1,"痢"],[63974,1,"罹"],[63975,1,"裏"],[63976,1,"裡"],[63977,1,"里"],[63978,1,"離"],[63979,1,"匿"],[63980,1,"溺"],[63981,1,"吝"],[63982,1,"燐"],[63983,1,"璘"],[63984,1,"藺"],[63985,1,"隣"],[63986,1,"鱗"],[63987,1,"麟"],[63988,1,"林"],[63989,1,"淋"],[63990,1,"臨"],[63991,1,"立"],[63992,1,"笠"],[63993,1,"粒"],[63994,1,"狀"],[63995,1,"炙"],[63996,1,"識"],[63997,1,"什"],[63998,1,"茶"],[63999,1,"刺"],[64000,1,"切"],[64001,1,"度"],[64002,1,"拓"],[64003,1,"糖"],[64004,1,"宅"],[64005,1,"洞"],[64006,1,"暴"],[64007,1,"輻"],[64008,1,"行"],[64009,1,"降"],[64010,1,"見"],[64011,1,"廓"],[64012,1,"兀"],[64013,1,"嗀"],[[64014,64015],2],[64016,1,"塚"],[64017,2],[64018,1,"晴"],[[64019,64020],2],[64021,1,"凞"],[64022,1,"猪"],[64023,1,"益"],[64024,1,"礼"],[64025,1,"神"],[64026,1,"祥"],[64027,1,"福"],[64028,1,"靖"],[64029,1,"精"],[64030,1,"羽"],[64031,2],[64032,1,"蘒"],[64033,2],[64034,1,"諸"],[[64035,64036],2],[64037,1,"逸"],[64038,1,"都"],[[64039,64041],2],[64042,1,"飯"],[64043,1,"飼"],[64044,1,"館"],[64045,1,"鶴"],[64046,1,"郞"],[64047,1,"隷"],[64048,1,"侮"],[64049,1,"僧"],[64050,1,"免"],[64051,1,"勉"],[64052,1,"勤"],[64053,1,"卑"],[64054,1,"喝"],[64055,1,"嘆"],[64056,1,"器"],[64057,1,"塀"],[64058,1,"墨"],[64059,1,"層"],[64060,1,"屮"],[64061,1,"悔"],[64062,1,"慨"],[64063,1,"憎"],[64064,1,"懲"],[64065,1,"敏"],[64066,1,"既"],[64067,1,"暑"],[64068,1,"梅"],[64069,1,"海"],[64070,1,"渚"],[64071,1,"漢"],[64072,1,"煮"],[64073,1,"爫"],[64074,1,"琢"],[64075,1,"碑"],[64076,1,"社"],[64077,1,"祉"],[64078,1,"祈"],[64079,1,"祐"],[64080,1,"祖"],[64081,1,"祝"],[64082,1,"禍"],[64083,1,"禎"],[64084,1,"穀"],[64085,1,"突"],[64086,1,"節"],[64087,1,"練"],[64088,1,"縉"],[64089,1,"繁"],[64090,1,"署"],[64091,1,"者"],[64092,1,"臭"],[[64093,64094],1,"艹"],[64095,1,"著"],[64096,1,"褐"],[64097,1,"視"],[64098,1,"謁"],[64099,1,"謹"],[64100,1,"賓"],[64101,1,"贈"],[64102,1,"辶"],[64103,1,"逸"],[64104,1,"難"],[64105,1,"響"],[64106,1,"頻"],[64107,1,"恵"],[64108,1,"𤋮"],[64109,1,"舘"],[[64110,64111],3],[64112,1,"並"],[64113,1,"况"],[64114,1,"全"],[64115,1,"侀"],[64116,1,"充"],[64117,1,"冀"],[64118,1,"勇"],[64119,1,"勺"],[64120,1,"喝"],[64121,1,"啕"],[64122,1,"喙"],[64123,1,"嗢"],[64124,1,"塚"],[64125,1,"墳"],[64126,1,"奄"],[64127,1,"奔"],[64128,1,"婢"],[64129,1,"嬨"],[64130,1,"廒"],[64131,1,"廙"],[64132,1,"彩"],[64133,1,"徭"],[64134,1,"惘"],[64135,1,"慎"],[64136,1,"愈"],[64137,1,"憎"],[64138,1,"慠"],[64139,1,"懲"],[64140,1,"戴"],[64141,1,"揄"],[64142,1,"搜"],[64143,1,"摒"],[64144,1,"敖"],[64145,1,"晴"],[64146,1,"朗"],[64147,1,"望"],[64148,1,"杖"],[64149,1,"歹"],[64150,1,"殺"],[64151,1,"流"],[64152,1,"滛"],[64153,1,"滋"],[64154,1,"漢"],[64155,1,"瀞"],[64156,1,"煮"],[64157,1,"瞧"],[64158,1,"爵"],[64159,1,"犯"],[64160,1,"猪"],[64161,1,"瑱"],[64162,1,"甆"],[64163,1,"画"],[64164,1,"瘝"],[64165,1,"瘟"],[64166,1,"益"],[64167,1,"盛"],[64168,1,"直"],[64169,1,"睊"],[64170,1,"着"],[64171,1,"磌"],[64172,1,"窱"],[64173,1,"節"],[64174,1,"类"],[64175,1,"絛"],[64176,1,"練"],[64177,1,"缾"],[64178,1,"者"],[64179,1,"荒"],[64180,1,"華"],[64181,1,"蝹"],[64182,1,"襁"],[64183,1,"覆"],[64184,1,"視"],[64185,1,"調"],[64186,1,"諸"],[64187,1,"請"],[64188,1,"謁"],[64189,1,"諾"],[64190,1,"諭"],[64191,1,"謹"],[64192,1,"變"],[64193,1,"贈"],[64194,1,"輸"],[64195,1,"遲"],[64196,1,"醙"],[64197,1,"鉶"],[64198,1,"陼"],[64199,1,"難"],[64200,1,"靖"],[64201,1,"韛"],[64202,1,"響"],[64203,1,"頋"],[64204,1,"頻"],[64205,1,"鬒"],[64206,1,"龜"],[64207,1,"𢡊"],[64208,1,"𢡄"],[64209,1,"𣏕"],[64210,1,"㮝"],[64211,1,"䀘"],[64212,1,"䀹"],[64213,1,"𥉉"],[64214,1,"𥳐"],[64215,1,"𧻓"],[64216,1,"齃"],[64217,1,"龎"],[[64218,64255],3],[64256,1,"ff"],[64257,1,"fi"],[64258,1,"fl"],[64259,1,"ffi"],[64260,1,"ffl"],[[64261,64262],1,"st"],[[64263,64274],3],[64275,1,"մն"],[64276,1,"մե"],[64277,1,"մի"],[64278,1,"վն"],[64279,1,"մխ"],[[64280,64284],3],[64285,1,"יִ"],[64286,2],[64287,1,"ײַ"],[64288,1,"ע"],[64289,1,"א"],[64290,1,"ד"],[64291,1,"ה"],[64292,1,"כ"],[64293,1,"ל"],[64294,1,"ם"],[64295,1,"ר"],[64296,1,"ת"],[64297,5,"+"],[64298,1,"שׁ"],[64299,1,"שׂ"],[64300,1,"שּׁ"],[64301,1,"שּׂ"],[64302,1,"אַ"],[64303,1,"אָ"],[64304,1,"אּ"],[64305,1,"בּ"],[64306,1,"גּ"],[64307,1,"דּ"],[64308,1,"הּ"],[64309,1,"וּ"],[64310,1,"זּ"],[64311,3],[64312,1,"טּ"],[64313,1,"יּ"],[64314,1,"ךּ"],[64315,1,"כּ"],[64316,1,"לּ"],[64317,3],[64318,1,"מּ"],[64319,3],[64320,1,"נּ"],[64321,1,"סּ"],[64322,3],[64323,1,"ףּ"],[64324,1,"פּ"],[64325,3],[64326,1,"צּ"],[64327,1,"קּ"],[64328,1,"רּ"],[64329,1,"שּ"],[64330,1,"תּ"],[64331,1,"וֹ"],[64332,1,"בֿ"],[64333,1,"כֿ"],[64334,1,"פֿ"],[64335,1,"אל"],[[64336,64337],1,"ٱ"],[[64338,64341],1,"ٻ"],[[64342,64345],1,"پ"],[[64346,64349],1,"ڀ"],[[64350,64353],1,"ٺ"],[[64354,64357],1,"ٿ"],[[64358,64361],1,"ٹ"],[[64362,64365],1,"ڤ"],[[64366,64369],1,"ڦ"],[[64370,64373],1,"ڄ"],[[64374,64377],1,"ڃ"],[[64378,64381],1,"چ"],[[64382,64385],1,"ڇ"],[[64386,64387],1,"ڍ"],[[64388,64389],1,"ڌ"],[[64390,64391],1,"ڎ"],[[64392,64393],1,"ڈ"],[[64394,64395],1,"ژ"],[[64396,64397],1,"ڑ"],[[64398,64401],1,"ک"],[[64402,64405],1,"گ"],[[64406,64409],1,"ڳ"],[[64410,64413],1,"ڱ"],[[64414,64415],1,"ں"],[[64416,64419],1,"ڻ"],[[64420,64421],1,"ۀ"],[[64422,64425],1,"ہ"],[[64426,64429],1,"ھ"],[[64430,64431],1,"ے"],[[64432,64433],1,"ۓ"],[[64434,64449],2],[64450,2],[[64451,64466],3],[[64467,64470],1,"ڭ"],[[64471,64472],1,"ۇ"],[[64473,64474],1,"ۆ"],[[64475,64476],1,"ۈ"],[64477,1,"ۇٴ"],[[64478,64479],1,"ۋ"],[[64480,64481],1,"ۅ"],[[64482,64483],1,"ۉ"],[[64484,64487],1,"ې"],[[64488,64489],1,"ى"],[[64490,64491],1,"ئا"],[[64492,64493],1,"ئە"],[[64494,64495],1,"ئو"],[[64496,64497],1,"ئۇ"],[[64498,64499],1,"ئۆ"],[[64500,64501],1,"ئۈ"],[[64502,64504],1,"ئې"],[[64505,64507],1,"ئى"],[[64508,64511],1,"ی"],[64512,1,"ئج"],[64513,1,"ئح"],[64514,1,"ئم"],[64515,1,"ئى"],[64516,1,"ئي"],[64517,1,"بج"],[64518,1,"بح"],[64519,1,"بخ"],[64520,1,"بم"],[64521,1,"بى"],[64522,1,"بي"],[64523,1,"تج"],[64524,1,"تح"],[64525,1,"تخ"],[64526,1,"تم"],[64527,1,"تى"],[64528,1,"تي"],[64529,1,"ثج"],[64530,1,"ثم"],[64531,1,"ثى"],[64532,1,"ثي"],[64533,1,"جح"],[64534,1,"جم"],[64535,1,"حج"],[64536,1,"حم"],[64537,1,"خج"],[64538,1,"خح"],[64539,1,"خم"],[64540,1,"سج"],[64541,1,"سح"],[64542,1,"سخ"],[64543,1,"سم"],[64544,1,"صح"],[64545,1,"صم"],[64546,1,"ضج"],[64547,1,"ضح"],[64548,1,"ضخ"],[64549,1,"ضم"],[64550,1,"طح"],[64551,1,"طم"],[64552,1,"ظم"],[64553,1,"عج"],[64554,1,"عم"],[64555,1,"غج"],[64556,1,"غم"],[64557,1,"فج"],[64558,1,"فح"],[64559,1,"فخ"],[64560,1,"فم"],[64561,1,"فى"],[64562,1,"في"],[64563,1,"قح"],[64564,1,"قم"],[64565,1,"قى"],[64566,1,"قي"],[64567,1,"كا"],[64568,1,"كج"],[64569,1,"كح"],[64570,1,"كخ"],[64571,1,"كل"],[64572,1,"كم"],[64573,1,"كى"],[64574,1,"كي"],[64575,1,"لج"],[64576,1,"لح"],[64577,1,"لخ"],[64578,1,"لم"],[64579,1,"لى"],[64580,1,"لي"],[64581,1,"مج"],[64582,1,"مح"],[64583,1,"مخ"],[64584,1,"مم"],[64585,1,"مى"],[64586,1,"مي"],[64587,1,"نج"],[64588,1,"نح"],[64589,1,"نخ"],[64590,1,"نم"],[64591,1,"نى"],[64592,1,"ني"],[64593,1,"هج"],[64594,1,"هم"],[64595,1,"هى"],[64596,1,"هي"],[64597,1,"يج"],[64598,1,"يح"],[64599,1,"يخ"],[64600,1,"يم"],[64601,1,"يى"],[64602,1,"يي"],[64603,1,"ذٰ"],[64604,1,"رٰ"],[64605,1,"ىٰ"],[64606,5," ٌّ"],[64607,5," ٍّ"],[64608,5," َّ"],[64609,5," ُّ"],[64610,5," ِّ"],[64611,5," ّٰ"],[64612,1,"ئر"],[64613,1,"ئز"],[64614,1,"ئم"],[64615,1,"ئن"],[64616,1,"ئى"],[64617,1,"ئي"],[64618,1,"بر"],[64619,1,"بز"],[64620,1,"بم"],[64621,1,"بن"],[64622,1,"بى"],[64623,1,"بي"],[64624,1,"تر"],[64625,1,"تز"],[64626,1,"تم"],[64627,1,"تن"],[64628,1,"تى"],[64629,1,"تي"],[64630,1,"ثر"],[64631,1,"ثز"],[64632,1,"ثم"],[64633,1,"ثن"],[64634,1,"ثى"],[64635,1,"ثي"],[64636,1,"فى"],[64637,1,"في"],[64638,1,"قى"],[64639,1,"قي"],[64640,1,"كا"],[64641,1,"كل"],[64642,1,"كم"],[64643,1,"كى"],[64644,1,"كي"],[64645,1,"لم"],[64646,1,"لى"],[64647,1,"لي"],[64648,1,"ما"],[64649,1,"مم"],[64650,1,"نر"],[64651,1,"نز"],[64652,1,"نم"],[64653,1,"نن"],[64654,1,"نى"],[64655,1,"ني"],[64656,1,"ىٰ"],[64657,1,"ير"],[64658,1,"يز"],[64659,1,"يم"],[64660,1,"ين"],[64661,1,"يى"],[64662,1,"يي"],[64663,1,"ئج"],[64664,1,"ئح"],[64665,1,"ئخ"],[64666,1,"ئم"],[64667,1,"ئه"],[64668,1,"بج"],[64669,1,"بح"],[64670,1,"بخ"],[64671,1,"بم"],[64672,1,"به"],[64673,1,"تج"],[64674,1,"تح"],[64675,1,"تخ"],[64676,1,"تم"],[64677,1,"ته"],[64678,1,"ثم"],[64679,1,"جح"],[64680,1,"جم"],[64681,1,"حج"],[64682,1,"حم"],[64683,1,"خج"],[64684,1,"خم"],[64685,1,"سج"],[64686,1,"سح"],[64687,1,"سخ"],[64688,1,"سم"],[64689,1,"صح"],[64690,1,"صخ"],[64691,1,"صم"],[64692,1,"ضج"],[64693,1,"ضح"],[64694,1,"ضخ"],[64695,1,"ضم"],[64696,1,"طح"],[64697,1,"ظم"],[64698,1,"عج"],[64699,1,"عم"],[64700,1,"غج"],[64701,1,"غم"],[64702,1,"فج"],[64703,1,"فح"],[64704,1,"فخ"],[64705,1,"فم"],[64706,1,"قح"],[64707,1,"قم"],[64708,1,"كج"],[64709,1,"كح"],[64710,1,"كخ"],[64711,1,"كل"],[64712,1,"كم"],[64713,1,"لج"],[64714,1,"لح"],[64715,1,"لخ"],[64716,1,"لم"],[64717,1,"له"],[64718,1,"مج"],[64719,1,"مح"],[64720,1,"مخ"],[64721,1,"مم"],[64722,1,"نج"],[64723,1,"نح"],[64724,1,"نخ"],[64725,1,"نم"],[64726,1,"نه"],[64727,1,"هج"],[64728,1,"هم"],[64729,1,"هٰ"],[64730,1,"يج"],[64731,1,"يح"],[64732,1,"يخ"],[64733,1,"يم"],[64734,1,"يه"],[64735,1,"ئم"],[64736,1,"ئه"],[64737,1,"بم"],[64738,1,"به"],[64739,1,"تم"],[64740,1,"ته"],[64741,1,"ثم"],[64742,1,"ثه"],[64743,1,"سم"],[64744,1,"سه"],[64745,1,"شم"],[64746,1,"شه"],[64747,1,"كل"],[64748,1,"كم"],[64749,1,"لم"],[64750,1,"نم"],[64751,1,"نه"],[64752,1,"يم"],[64753,1,"يه"],[64754,1,"ـَّ"],[64755,1,"ـُّ"],[64756,1,"ـِّ"],[64757,1,"طى"],[64758,1,"طي"],[64759,1,"عى"],[64760,1,"عي"],[64761,1,"غى"],[64762,1,"غي"],[64763,1,"سى"],[64764,1,"سي"],[64765,1,"شى"],[64766,1,"شي"],[64767,1,"حى"],[64768,1,"حي"],[64769,1,"جى"],[64770,1,"جي"],[64771,1,"خى"],[64772,1,"خي"],[64773,1,"صى"],[64774,1,"صي"],[64775,1,"ضى"],[64776,1,"ضي"],[64777,1,"شج"],[64778,1,"شح"],[64779,1,"شخ"],[64780,1,"شم"],[64781,1,"شر"],[64782,1,"سر"],[64783,1,"صر"],[64784,1,"ضر"],[64785,1,"طى"],[64786,1,"طي"],[64787,1,"عى"],[64788,1,"عي"],[64789,1,"غى"],[64790,1,"غي"],[64791,1,"سى"],[64792,1,"سي"],[64793,1,"شى"],[64794,1,"شي"],[64795,1,"حى"],[64796,1,"حي"],[64797,1,"جى"],[64798,1,"جي"],[64799,1,"خى"],[64800,1,"خي"],[64801,1,"صى"],[64802,1,"صي"],[64803,1,"ضى"],[64804,1,"ضي"],[64805,1,"شج"],[64806,1,"شح"],[64807,1,"شخ"],[64808,1,"شم"],[64809,1,"شر"],[64810,1,"سر"],[64811,1,"صر"],[64812,1,"ضر"],[64813,1,"شج"],[64814,1,"شح"],[64815,1,"شخ"],[64816,1,"شم"],[64817,1,"سه"],[64818,1,"شه"],[64819,1,"طم"],[64820,1,"سج"],[64821,1,"سح"],[64822,1,"سخ"],[64823,1,"شج"],[64824,1,"شح"],[64825,1,"شخ"],[64826,1,"طم"],[64827,1,"ظم"],[[64828,64829],1,"اً"],[[64830,64831],2],[[64832,64847],2],[64848,1,"تجم"],[[64849,64850],1,"تحج"],[64851,1,"تحم"],[64852,1,"تخم"],[64853,1,"تمج"],[64854,1,"تمح"],[64855,1,"تمخ"],[[64856,64857],1,"جمح"],[64858,1,"حمي"],[64859,1,"حمى"],[64860,1,"سحج"],[64861,1,"سجح"],[64862,1,"سجى"],[[64863,64864],1,"سمح"],[64865,1,"سمج"],[[64866,64867],1,"سمم"],[[64868,64869],1,"صحح"],[64870,1,"صمم"],[[64871,64872],1,"شحم"],[64873,1,"شجي"],[[64874,64875],1,"شمخ"],[[64876,64877],1,"شمم"],[64878,1,"ضحى"],[[64879,64880],1,"ضخم"],[[64881,64882],1,"طمح"],[64883,1,"طمم"],[64884,1,"طمي"],[64885,1,"عجم"],[[64886,64887],1,"عمم"],[64888,1,"عمى"],[64889,1,"غمم"],[64890,1,"غمي"],[64891,1,"غمى"],[[64892,64893],1,"فخم"],[64894,1,"قمح"],[64895,1,"قمم"],[64896,1,"لحم"],[64897,1,"لحي"],[64898,1,"لحى"],[[64899,64900],1,"لجج"],[[64901,64902],1,"لخم"],[[64903,64904],1,"لمح"],[64905,1,"محج"],[64906,1,"محم"],[64907,1,"محي"],[64908,1,"مجح"],[64909,1,"مجم"],[64910,1,"مخج"],[64911,1,"مخم"],[[64912,64913],3],[64914,1,"مجخ"],[64915,1,"همج"],[64916,1,"همم"],[64917,1,"نحم"],[64918,1,"نحى"],[[64919,64920],1,"نجم"],[64921,1,"نجى"],[64922,1,"نمي"],[64923,1,"نمى"],[[64924,64925],1,"يمم"],[64926,1,"بخي"],[64927,1,"تجي"],[64928,1,"تجى"],[64929,1,"تخي"],[64930,1,"تخى"],[64931,1,"تمي"],[64932,1,"تمى"],[64933,1,"جمي"],[64934,1,"جحى"],[64935,1,"جمى"],[64936,1,"سخى"],[64937,1,"صحي"],[64938,1,"شحي"],[64939,1,"ضحي"],[64940,1,"لجي"],[64941,1,"لمي"],[64942,1,"يحي"],[64943,1,"يجي"],[64944,1,"يمي"],[64945,1,"ممي"],[64946,1,"قمي"],[64947,1,"نحي"],[64948,1,"قمح"],[64949,1,"لحم"],[64950,1,"عمي"],[64951,1,"كمي"],[64952,1,"نجح"],[64953,1,"مخي"],[64954,1,"لجم"],[64955,1,"كمم"],[64956,1,"لجم"],[64957,1,"نجح"],[64958,1,"جحي"],[64959,1,"حجي"],[64960,1,"مجي"],[64961,1,"فمي"],[64962,1,"بحي"],[64963,1,"كمم"],[64964,1,"عجم"],[64965,1,"صمم"],[64966,1,"سخي"],[64967,1,"نجي"],[[64968,64974],3],[64975,2],[[64976,65007],3],[65008,1,"صلے"],[65009,1,"قلے"],[65010,1,"الله"],[65011,1,"اكبر"],[65012,1,"محمد"],[65013,1,"صلعم"],[65014,1,"رسول"],[65015,1,"عليه"],[65016,1,"وسلم"],[65017,1,"صلى"],[65018,5,"صلى الله عليه وسلم"],[65019,5,"جل جلاله"],[65020,1,"ریال"],[65021,2],[[65022,65023],2],[[65024,65039],7],[65040,5,","],[65041,1,"、"],[65042,3],[65043,5,":"],[65044,5,";"],[65045,5,"!"],[65046,5,"?"],[65047,1,"〖"],[65048,1,"〗"],[65049,3],[[65050,65055],3],[[65056,65059],2],[[65060,65062],2],[[65063,65069],2],[[65070,65071],2],[65072,3],[65073,1,"—"],[65074,1,"–"],[[65075,65076],5,"_"],[65077,5,"("],[65078,5,")"],[65079,5,"{"],[65080,5,"}"],[65081,1,"〔"],[65082,1,"〕"],[65083,1,"【"],[65084,1,"】"],[65085,1,"《"],[65086,1,"》"],[65087,1,"〈"],[65088,1,"〉"],[65089,1,"「"],[65090,1,"」"],[65091,1,"『"],[65092,1,"』"],[[65093,65094],2],[65095,5,"["],[65096,5,"]"],[[65097,65100],5," ̅"],[[65101,65103],5,"_"],[65104,5,","],[65105,1,"、"],[65106,3],[65107,3],[65108,5,";"],[65109,5,":"],[65110,5,"?"],[65111,5,"!"],[65112,1,"—"],[65113,5,"("],[65114,5,")"],[65115,5,"{"],[65116,5,"}"],[65117,1,"〔"],[65118,1,"〕"],[65119,5,"#"],[65120,5,"&"],[65121,5,"*"],[65122,5,"+"],[65123,1,"-"],[65124,5,"<"],[65125,5,">"],[65126,5,"="],[65127,3],[65128,5,"\\\\"],[65129,5,"$"],[65130,5,"%"],[65131,5,"@"],[[65132,65135],3],[65136,5," ً"],[65137,1,"ـً"],[65138,5," ٌ"],[65139,2],[65140,5," ٍ"],[65141,3],[65142,5," َ"],[65143,1,"ـَ"],[65144,5," ُ"],[65145,1,"ـُ"],[65146,5," ِ"],[65147,1,"ـِ"],[65148,5," ّ"],[65149,1,"ـّ"],[65150,5," ْ"],[65151,1,"ـْ"],[65152,1,"ء"],[[65153,65154],1,"آ"],[[65155,65156],1,"أ"],[[65157,65158],1,"ؤ"],[[65159,65160],1,"إ"],[[65161,65164],1,"ئ"],[[65165,65166],1,"ا"],[[65167,65170],1,"ب"],[[65171,65172],1,"ة"],[[65173,65176],1,"ت"],[[65177,65180],1,"ث"],[[65181,65184],1,"ج"],[[65185,65188],1,"ح"],[[65189,65192],1,"خ"],[[65193,65194],1,"د"],[[65195,65196],1,"ذ"],[[65197,65198],1,"ر"],[[65199,65200],1,"ز"],[[65201,65204],1,"س"],[[65205,65208],1,"ش"],[[65209,65212],1,"ص"],[[65213,65216],1,"ض"],[[65217,65220],1,"ط"],[[65221,65224],1,"ظ"],[[65225,65228],1,"ع"],[[65229,65232],1,"غ"],[[65233,65236],1,"ف"],[[65237,65240],1,"ق"],[[65241,65244],1,"ك"],[[65245,65248],1,"ل"],[[65249,65252],1,"م"],[[65253,65256],1,"ن"],[[65257,65260],1,"ه"],[[65261,65262],1,"و"],[[65263,65264],1,"ى"],[[65265,65268],1,"ي"],[[65269,65270],1,"لآ"],[[65271,65272],1,"لأ"],[[65273,65274],1,"لإ"],[[65275,65276],1,"لا"],[[65277,65278],3],[65279,7],[65280,3],[65281,5,"!"],[65282,5,"\\""],[65283,5,"#"],[65284,5,"$"],[65285,5,"%"],[65286,5,"&"],[65287,5,"\'"],[65288,5,"("],[65289,5,")"],[65290,5,"*"],[65291,5,"+"],[65292,5,","],[65293,1,"-"],[65294,1,"."],[65295,5,"/"],[65296,1,"0"],[65297,1,"1"],[65298,1,"2"],[65299,1,"3"],[65300,1,"4"],[65301,1,"5"],[65302,1,"6"],[65303,1,"7"],[65304,1,"8"],[65305,1,"9"],[65306,5,":"],[65307,5,";"],[65308,5,"<"],[65309,5,"="],[65310,5,">"],[65311,5,"?"],[65312,5,"@"],[65313,1,"a"],[65314,1,"b"],[65315,1,"c"],[65316,1,"d"],[65317,1,"e"],[65318,1,"f"],[65319,1,"g"],[65320,1,"h"],[65321,1,"i"],[65322,1,"j"],[65323,1,"k"],[65324,1,"l"],[65325,1,"m"],[65326,1,"n"],[65327,1,"o"],[65328,1,"p"],[65329,1,"q"],[65330,1,"r"],[65331,1,"s"],[65332,1,"t"],[65333,1,"u"],[65334,1,"v"],[65335,1,"w"],[65336,1,"x"],[65337,1,"y"],[65338,1,"z"],[65339,5,"["],[65340,5,"\\\\"],[65341,5,"]"],[65342,5,"^"],[65343,5,"_"],[65344,5,"`"],[65345,1,"a"],[65346,1,"b"],[65347,1,"c"],[65348,1,"d"],[65349,1,"e"],[65350,1,"f"],[65351,1,"g"],[65352,1,"h"],[65353,1,"i"],[65354,1,"j"],[65355,1,"k"],[65356,1,"l"],[65357,1,"m"],[65358,1,"n"],[65359,1,"o"],[65360,1,"p"],[65361,1,"q"],[65362,1,"r"],[65363,1,"s"],[65364,1,"t"],[65365,1,"u"],[65366,1,"v"],[65367,1,"w"],[65368,1,"x"],[65369,1,"y"],[65370,1,"z"],[65371,5,"{"],[65372,5,"|"],[65373,5,"}"],[65374,5,"~"],[65375,1,"⦅"],[65376,1,"⦆"],[65377,1,"."],[65378,1,"「"],[65379,1,"」"],[65380,1,"、"],[65381,1,"・"],[65382,1,"ヲ"],[65383,1,"ァ"],[65384,1,"ィ"],[65385,1,"ゥ"],[65386,1,"ェ"],[65387,1,"ォ"],[65388,1,"ャ"],[65389,1,"ュ"],[65390,1,"ョ"],[65391,1,"ッ"],[65392,1,"ー"],[65393,1,"ア"],[65394,1,"イ"],[65395,1,"ウ"],[65396,1,"エ"],[65397,1,"オ"],[65398,1,"カ"],[65399,1,"キ"],[65400,1,"ク"],[65401,1,"ケ"],[65402,1,"コ"],[65403,1,"サ"],[65404,1,"シ"],[65405,1,"ス"],[65406,1,"セ"],[65407,1,"ソ"],[65408,1,"タ"],[65409,1,"チ"],[65410,1,"ツ"],[65411,1,"テ"],[65412,1,"ト"],[65413,1,"ナ"],[65414,1,"ニ"],[65415,1,"ヌ"],[65416,1,"ネ"],[65417,1,"ノ"],[65418,1,"ハ"],[65419,1,"ヒ"],[65420,1,"フ"],[65421,1,"ヘ"],[65422,1,"ホ"],[65423,1,"マ"],[65424,1,"ミ"],[65425,1,"ム"],[65426,1,"メ"],[65427,1,"モ"],[65428,1,"ヤ"],[65429,1,"ユ"],[65430,1,"ヨ"],[65431,1,"ラ"],[65432,1,"リ"],[65433,1,"ル"],[65434,1,"レ"],[65435,1,"ロ"],[65436,1,"ワ"],[65437,1,"ン"],[65438,1,"゙"],[65439,1,"゚"],[65440,3],[65441,1,"ᄀ"],[65442,1,"ᄁ"],[65443,1,"ᆪ"],[65444,1,"ᄂ"],[65445,1,"ᆬ"],[65446,1,"ᆭ"],[65447,1,"ᄃ"],[65448,1,"ᄄ"],[65449,1,"ᄅ"],[65450,1,"ᆰ"],[65451,1,"ᆱ"],[65452,1,"ᆲ"],[65453,1,"ᆳ"],[65454,1,"ᆴ"],[65455,1,"ᆵ"],[65456,1,"ᄚ"],[65457,1,"ᄆ"],[65458,1,"ᄇ"],[65459,1,"ᄈ"],[65460,1,"ᄡ"],[65461,1,"ᄉ"],[65462,1,"ᄊ"],[65463,1,"ᄋ"],[65464,1,"ᄌ"],[65465,1,"ᄍ"],[65466,1,"ᄎ"],[65467,1,"ᄏ"],[65468,1,"ᄐ"],[65469,1,"ᄑ"],[65470,1,"ᄒ"],[[65471,65473],3],[65474,1,"ᅡ"],[65475,1,"ᅢ"],[65476,1,"ᅣ"],[65477,1,"ᅤ"],[65478,1,"ᅥ"],[65479,1,"ᅦ"],[[65480,65481],3],[65482,1,"ᅧ"],[65483,1,"ᅨ"],[65484,1,"ᅩ"],[65485,1,"ᅪ"],[65486,1,"ᅫ"],[65487,1,"ᅬ"],[[65488,65489],3],[65490,1,"ᅭ"],[65491,1,"ᅮ"],[65492,1,"ᅯ"],[65493,1,"ᅰ"],[65494,1,"ᅱ"],[65495,1,"ᅲ"],[[65496,65497],3],[65498,1,"ᅳ"],[65499,1,"ᅴ"],[65500,1,"ᅵ"],[[65501,65503],3],[65504,1,"¢"],[65505,1,"£"],[65506,1,"¬"],[65507,5," ̄"],[65508,1,"¦"],[65509,1,"¥"],[65510,1,"₩"],[65511,3],[65512,1,"│"],[65513,1,"←"],[65514,1,"↑"],[65515,1,"→"],[65516,1,"↓"],[65517,1,"■"],[65518,1,"○"],[[65519,65528],3],[[65529,65531],3],[65532,3],[65533,3],[[65534,65535],3],[[65536,65547],2],[65548,3],[[65549,65574],2],[65575,3],[[65576,65594],2],[65595,3],[[65596,65597],2],[65598,3],[[65599,65613],2],[[65614,65615],3],[[65616,65629],2],[[65630,65663],3],[[65664,65786],2],[[65787,65791],3],[[65792,65794],2],[[65795,65798],3],[[65799,65843],2],[[65844,65846],3],[[65847,65855],2],[[65856,65930],2],[[65931,65932],2],[[65933,65934],2],[65935,3],[[65936,65947],2],[65948,2],[[65949,65951],3],[65952,2],[[65953,65999],3],[[66000,66044],2],[66045,2],[[66046,66175],3],[[66176,66204],2],[[66205,66207],3],[[66208,66256],2],[[66257,66271],3],[66272,2],[[66273,66299],2],[[66300,66303],3],[[66304,66334],2],[66335,2],[[66336,66339],2],[[66340,66348],3],[[66349,66351],2],[[66352,66368],2],[66369,2],[[66370,66377],2],[66378,2],[[66379,66383],3],[[66384,66426],2],[[66427,66431],3],[[66432,66461],2],[66462,3],[66463,2],[[66464,66499],2],[[66500,66503],3],[[66504,66511],2],[[66512,66517],2],[[66518,66559],3],[66560,1,"𐐨"],[66561,1,"𐐩"],[66562,1,"𐐪"],[66563,1,"𐐫"],[66564,1,"𐐬"],[66565,1,"𐐭"],[66566,1,"𐐮"],[66567,1,"𐐯"],[66568,1,"𐐰"],[66569,1,"𐐱"],[66570,1,"𐐲"],[66571,1,"𐐳"],[66572,1,"𐐴"],[66573,1,"𐐵"],[66574,1,"𐐶"],[66575,1,"𐐷"],[66576,1,"𐐸"],[66577,1,"𐐹"],[66578,1,"𐐺"],[66579,1,"𐐻"],[66580,1,"𐐼"],[66581,1,"𐐽"],[66582,1,"𐐾"],[66583,1,"𐐿"],[66584,1,"𐑀"],[66585,1,"𐑁"],[66586,1,"𐑂"],[66587,1,"𐑃"],[66588,1,"𐑄"],[66589,1,"𐑅"],[66590,1,"𐑆"],[66591,1,"𐑇"],[66592,1,"𐑈"],[66593,1,"𐑉"],[66594,1,"𐑊"],[66595,1,"𐑋"],[66596,1,"𐑌"],[66597,1,"𐑍"],[66598,1,"𐑎"],[66599,1,"𐑏"],[[66600,66637],2],[[66638,66717],2],[[66718,66719],3],[[66720,66729],2],[[66730,66735],3],[66736,1,"𐓘"],[66737,1,"𐓙"],[66738,1,"𐓚"],[66739,1,"𐓛"],[66740,1,"𐓜"],[66741,1,"𐓝"],[66742,1,"𐓞"],[66743,1,"𐓟"],[66744,1,"𐓠"],[66745,1,"𐓡"],[66746,1,"𐓢"],[66747,1,"𐓣"],[66748,1,"𐓤"],[66749,1,"𐓥"],[66750,1,"𐓦"],[66751,1,"𐓧"],[66752,1,"𐓨"],[66753,1,"𐓩"],[66754,1,"𐓪"],[66755,1,"𐓫"],[66756,1,"𐓬"],[66757,1,"𐓭"],[66758,1,"𐓮"],[66759,1,"𐓯"],[66760,1,"𐓰"],[66761,1,"𐓱"],[66762,1,"𐓲"],[66763,1,"𐓳"],[66764,1,"𐓴"],[66765,1,"𐓵"],[66766,1,"𐓶"],[66767,1,"𐓷"],[66768,1,"𐓸"],[66769,1,"𐓹"],[66770,1,"𐓺"],[66771,1,"𐓻"],[[66772,66775],3],[[66776,66811],2],[[66812,66815],3],[[66816,66855],2],[[66856,66863],3],[[66864,66915],2],[[66916,66926],3],[66927,2],[66928,1,"𐖗"],[66929,1,"𐖘"],[66930,1,"𐖙"],[66931,1,"𐖚"],[66932,1,"𐖛"],[66933,1,"𐖜"],[66934,1,"𐖝"],[66935,1,"𐖞"],[66936,1,"𐖟"],[66937,1,"𐖠"],[66938,1,"𐖡"],[66939,3],[66940,1,"𐖣"],[66941,1,"𐖤"],[66942,1,"𐖥"],[66943,1,"𐖦"],[66944,1,"𐖧"],[66945,1,"𐖨"],[66946,1,"𐖩"],[66947,1,"𐖪"],[66948,1,"𐖫"],[66949,1,"𐖬"],[66950,1,"𐖭"],[66951,1,"𐖮"],[66952,1,"𐖯"],[66953,1,"𐖰"],[66954,1,"𐖱"],[66955,3],[66956,1,"𐖳"],[66957,1,"𐖴"],[66958,1,"𐖵"],[66959,1,"𐖶"],[66960,1,"𐖷"],[66961,1,"𐖸"],[66962,1,"𐖹"],[66963,3],[66964,1,"𐖻"],[66965,1,"𐖼"],[66966,3],[[66967,66977],2],[66978,3],[[66979,66993],2],[66994,3],[[66995,67001],2],[67002,3],[[67003,67004],2],[[67005,67071],3],[[67072,67382],2],[[67383,67391],3],[[67392,67413],2],[[67414,67423],3],[[67424,67431],2],[[67432,67455],3],[67456,2],[67457,1,"ː"],[67458,1,"ˑ"],[67459,1,"æ"],[67460,1,"ʙ"],[67461,1,"ɓ"],[67462,3],[67463,1,"ʣ"],[67464,1,"ꭦ"],[67465,1,"ʥ"],[67466,1,"ʤ"],[67467,1,"ɖ"],[67468,1,"ɗ"],[67469,1,"ᶑ"],[67470,1,"ɘ"],[67471,1,"ɞ"],[67472,1,"ʩ"],[67473,1,"ɤ"],[67474,1,"ɢ"],[67475,1,"ɠ"],[67476,1,"ʛ"],[67477,1,"ħ"],[67478,1,"ʜ"],[67479,1,"ɧ"],[67480,1,"ʄ"],[67481,1,"ʪ"],[67482,1,"ʫ"],[67483,1,"ɬ"],[67484,1,"𝼄"],[67485,1,"ꞎ"],[67486,1,"ɮ"],[67487,1,"𝼅"],[67488,1,"ʎ"],[67489,1,"𝼆"],[67490,1,"ø"],[67491,1,"ɶ"],[67492,1,"ɷ"],[67493,1,"q"],[67494,1,"ɺ"],[67495,1,"𝼈"],[67496,1,"ɽ"],[67497,1,"ɾ"],[67498,1,"ʀ"],[67499,1,"ʨ"],[67500,1,"ʦ"],[67501,1,"ꭧ"],[67502,1,"ʧ"],[67503,1,"ʈ"],[67504,1,"ⱱ"],[67505,3],[67506,1,"ʏ"],[67507,1,"ʡ"],[67508,1,"ʢ"],[67509,1,"ʘ"],[67510,1,"ǀ"],[67511,1,"ǁ"],[67512,1,"ǂ"],[67513,1,"𝼊"],[67514,1,"𝼞"],[[67515,67583],3],[[67584,67589],2],[[67590,67591],3],[67592,2],[67593,3],[[67594,67637],2],[67638,3],[[67639,67640],2],[[67641,67643],3],[67644,2],[[67645,67646],3],[67647,2],[[67648,67669],2],[67670,3],[[67671,67679],2],[[67680,67702],2],[[67703,67711],2],[[67712,67742],2],[[67743,67750],3],[[67751,67759],2],[[67760,67807],3],[[67808,67826],2],[67827,3],[[67828,67829],2],[[67830,67834],3],[[67835,67839],2],[[67840,67861],2],[[67862,67865],2],[[67866,67867],2],[[67868,67870],3],[67871,2],[[67872,67897],2],[[67898,67902],3],[67903,2],[[67904,67967],3],[[67968,68023],2],[[68024,68027],3],[[68028,68029],2],[[68030,68031],2],[[68032,68047],2],[[68048,68049],3],[[68050,68095],2],[[68096,68099],2],[68100,3],[[68101,68102],2],[[68103,68107],3],[[68108,68115],2],[68116,3],[[68117,68119],2],[68120,3],[[68121,68147],2],[[68148,68149],2],[[68150,68151],3],[[68152,68154],2],[[68155,68158],3],[68159,2],[[68160,68167],2],[68168,2],[[68169,68175],3],[[68176,68184],2],[[68185,68191],3],[[68192,68220],2],[[68221,68223],2],[[68224,68252],2],[[68253,68255],2],[[68256,68287],3],[[68288,68295],2],[68296,2],[[68297,68326],2],[[68327,68330],3],[[68331,68342],2],[[68343,68351],3],[[68352,68405],2],[[68406,68408],3],[[68409,68415],2],[[68416,68437],2],[[68438,68439],3],[[68440,68447],2],[[68448,68466],2],[[68467,68471],3],[[68472,68479],2],[[68480,68497],2],[[68498,68504],3],[[68505,68508],2],[[68509,68520],3],[[68521,68527],2],[[68528,68607],3],[[68608,68680],2],[[68681,68735],3],[68736,1,"𐳀"],[68737,1,"𐳁"],[68738,1,"𐳂"],[68739,1,"𐳃"],[68740,1,"𐳄"],[68741,1,"𐳅"],[68742,1,"𐳆"],[68743,1,"𐳇"],[68744,1,"𐳈"],[68745,1,"𐳉"],[68746,1,"𐳊"],[68747,1,"𐳋"],[68748,1,"𐳌"],[68749,1,"𐳍"],[68750,1,"𐳎"],[68751,1,"𐳏"],[68752,1,"𐳐"],[68753,1,"𐳑"],[68754,1,"𐳒"],[68755,1,"𐳓"],[68756,1,"𐳔"],[68757,1,"𐳕"],[68758,1,"𐳖"],[68759,1,"𐳗"],[68760,1,"𐳘"],[68761,1,"𐳙"],[68762,1,"𐳚"],[68763,1,"𐳛"],[68764,1,"𐳜"],[68765,1,"𐳝"],[68766,1,"𐳞"],[68767,1,"𐳟"],[68768,1,"𐳠"],[68769,1,"𐳡"],[68770,1,"𐳢"],[68771,1,"𐳣"],[68772,1,"𐳤"],[68773,1,"𐳥"],[68774,1,"𐳦"],[68775,1,"𐳧"],[68776,1,"𐳨"],[68777,1,"𐳩"],[68778,1,"𐳪"],[68779,1,"𐳫"],[68780,1,"𐳬"],[68781,1,"𐳭"],[68782,1,"𐳮"],[68783,1,"𐳯"],[68784,1,"𐳰"],[68785,1,"𐳱"],[68786,1,"𐳲"],[[68787,68799],3],[[68800,68850],2],[[68851,68857],3],[[68858,68863],2],[[68864,68903],2],[[68904,68911],3],[[68912,68921],2],[[68922,69215],3],[[69216,69246],2],[69247,3],[[69248,69289],2],[69290,3],[[69291,69292],2],[69293,2],[[69294,69295],3],[[69296,69297],2],[[69298,69375],3],[[69376,69404],2],[[69405,69414],2],[69415,2],[[69416,69423],3],[[69424,69456],2],[[69457,69465],2],[[69466,69487],3],[[69488,69509],2],[[69510,69513],2],[[69514,69551],3],[[69552,69572],2],[[69573,69579],2],[[69580,69599],3],[[69600,69622],2],[[69623,69631],3],[[69632,69702],2],[[69703,69709],2],[[69710,69713],3],[[69714,69733],2],[[69734,69743],2],[[69744,69749],2],[[69750,69758],3],[69759,2],[[69760,69818],2],[[69819,69820],2],[69821,3],[[69822,69825],2],[69826,2],[[69827,69836],3],[69837,3],[[69838,69839],3],[[69840,69864],2],[[69865,69871],3],[[69872,69881],2],[[69882,69887],3],[[69888,69940],2],[69941,3],[[69942,69951],2],[[69952,69955],2],[[69956,69958],2],[69959,2],[[69960,69967],3],[[69968,70003],2],[[70004,70005],2],[70006,2],[[70007,70015],3],[[70016,70084],2],[[70085,70088],2],[[70089,70092],2],[70093,2],[[70094,70095],2],[[70096,70105],2],[70106,2],[70107,2],[70108,2],[[70109,70111],2],[70112,3],[[70113,70132],2],[[70133,70143],3],[[70144,70161],2],[70162,3],[[70163,70199],2],[[70200,70205],2],[70206,2],[[70207,70271],3],[[70272,70278],2],[70279,3],[70280,2],[70281,3],[[70282,70285],2],[70286,3],[[70287,70301],2],[70302,3],[[70303,70312],2],[70313,2],[[70314,70319],3],[[70320,70378],2],[[70379,70383],3],[[70384,70393],2],[[70394,70399],3],[70400,2],[[70401,70403],2],[70404,3],[[70405,70412],2],[[70413,70414],3],[[70415,70416],2],[[70417,70418],3],[[70419,70440],2],[70441,3],[[70442,70448],2],[70449,3],[[70450,70451],2],[70452,3],[[70453,70457],2],[70458,3],[70459,2],[[70460,70468],2],[[70469,70470],3],[[70471,70472],2],[[70473,70474],3],[[70475,70477],2],[[70478,70479],3],[70480,2],[[70481,70486],3],[70487,2],[[70488,70492],3],[[70493,70499],2],[[70500,70501],3],[[70502,70508],2],[[70509,70511],3],[[70512,70516],2],[[70517,70655],3],[[70656,70730],2],[[70731,70735],2],[[70736,70745],2],[70746,2],[70747,2],[70748,3],[70749,2],[70750,2],[70751,2],[[70752,70753],2],[[70754,70783],3],[[70784,70853],2],[70854,2],[70855,2],[[70856,70863],3],[[70864,70873],2],[[70874,71039],3],[[71040,71093],2],[[71094,71095],3],[[71096,71104],2],[[71105,71113],2],[[71114,71127],2],[[71128,71133],2],[[71134,71167],3],[[71168,71232],2],[[71233,71235],2],[71236,2],[[71237,71247],3],[[71248,71257],2],[[71258,71263],3],[[71264,71276],2],[[71277,71295],3],[[71296,71351],2],[71352,2],[71353,2],[[71354,71359],3],[[71360,71369],2],[[71370,71423],3],[[71424,71449],2],[71450,2],[[71451,71452],3],[[71453,71467],2],[[71468,71471],3],[[71472,71481],2],[[71482,71487],2],[[71488,71494],2],[[71495,71679],3],[[71680,71738],2],[71739,2],[[71740,71839],3],[71840,1,"𑣀"],[71841,1,"𑣁"],[71842,1,"𑣂"],[71843,1,"𑣃"],[71844,1,"𑣄"],[71845,1,"𑣅"],[71846,1,"𑣆"],[71847,1,"𑣇"],[71848,1,"𑣈"],[71849,1,"𑣉"],[71850,1,"𑣊"],[71851,1,"𑣋"],[71852,1,"𑣌"],[71853,1,"𑣍"],[71854,1,"𑣎"],[71855,1,"𑣏"],[71856,1,"𑣐"],[71857,1,"𑣑"],[71858,1,"𑣒"],[71859,1,"𑣓"],[71860,1,"𑣔"],[71861,1,"𑣕"],[71862,1,"𑣖"],[71863,1,"𑣗"],[71864,1,"𑣘"],[71865,1,"𑣙"],[71866,1,"𑣚"],[71867,1,"𑣛"],[71868,1,"𑣜"],[71869,1,"𑣝"],[71870,1,"𑣞"],[71871,1,"𑣟"],[[71872,71913],2],[[71914,71922],2],[[71923,71934],3],[71935,2],[[71936,71942],2],[[71943,71944],3],[71945,2],[[71946,71947],3],[[71948,71955],2],[71956,3],[[71957,71958],2],[71959,3],[[71960,71989],2],[71990,3],[[71991,71992],2],[[71993,71994],3],[[71995,72003],2],[[72004,72006],2],[[72007,72015],3],[[72016,72025],2],[[72026,72095],3],[[72096,72103],2],[[72104,72105],3],[[72106,72151],2],[[72152,72153],3],[[72154,72161],2],[72162,2],[[72163,72164],2],[[72165,72191],3],[[72192,72254],2],[[72255,72262],2],[72263,2],[[72264,72271],3],[[72272,72323],2],[[72324,72325],2],[[72326,72345],2],[[72346,72348],2],[72349,2],[[72350,72354],2],[[72355,72367],3],[[72368,72383],2],[[72384,72440],2],[[72441,72703],3],[[72704,72712],2],[72713,3],[[72714,72758],2],[72759,3],[[72760,72768],2],[[72769,72773],2],[[72774,72783],3],[[72784,72793],2],[[72794,72812],2],[[72813,72815],3],[[72816,72817],2],[[72818,72847],2],[[72848,72849],3],[[72850,72871],2],[72872,3],[[72873,72886],2],[[72887,72959],3],[[72960,72966],2],[72967,3],[[72968,72969],2],[72970,3],[[72971,73014],2],[[73015,73017],3],[73018,2],[73019,3],[[73020,73021],2],[73022,3],[[73023,73031],2],[[73032,73039],3],[[73040,73049],2],[[73050,73055],3],[[73056,73061],2],[73062,3],[[73063,73064],2],[73065,3],[[73066,73102],2],[73103,3],[[73104,73105],2],[73106,3],[[73107,73112],2],[[73113,73119],3],[[73120,73129],2],[[73130,73439],3],[[73440,73462],2],[[73463,73464],2],[[73465,73647],3],[73648,2],[[73649,73663],3],[[73664,73713],2],[[73714,73726],3],[73727,2],[[73728,74606],2],[[74607,74648],2],[74649,2],[[74650,74751],3],[[74752,74850],2],[[74851,74862],2],[74863,3],[[74864,74867],2],[74868,2],[[74869,74879],3],[[74880,75075],2],[[75076,77711],3],[[77712,77808],2],[[77809,77810],2],[[77811,77823],3],[[77824,78894],2],[78895,3],[[78896,78904],3],[[78905,82943],3],[[82944,83526],2],[[83527,92159],3],[[92160,92728],2],[[92729,92735],3],[[92736,92766],2],[92767,3],[[92768,92777],2],[[92778,92781],3],[[92782,92783],2],[[92784,92862],2],[92863,3],[[92864,92873],2],[[92874,92879],3],[[92880,92909],2],[[92910,92911],3],[[92912,92916],2],[92917,2],[[92918,92927],3],[[92928,92982],2],[[92983,92991],2],[[92992,92995],2],[[92996,92997],2],[[92998,93007],3],[[93008,93017],2],[93018,3],[[93019,93025],2],[93026,3],[[93027,93047],2],[[93048,93052],3],[[93053,93071],2],[[93072,93759],3],[93760,1,"𖹠"],[93761,1,"𖹡"],[93762,1,"𖹢"],[93763,1,"𖹣"],[93764,1,"𖹤"],[93765,1,"𖹥"],[93766,1,"𖹦"],[93767,1,"𖹧"],[93768,1,"𖹨"],[93769,1,"𖹩"],[93770,1,"𖹪"],[93771,1,"𖹫"],[93772,1,"𖹬"],[93773,1,"𖹭"],[93774,1,"𖹮"],[93775,1,"𖹯"],[93776,1,"𖹰"],[93777,1,"𖹱"],[93778,1,"𖹲"],[93779,1,"𖹳"],[93780,1,"𖹴"],[93781,1,"𖹵"],[93782,1,"𖹶"],[93783,1,"𖹷"],[93784,1,"𖹸"],[93785,1,"𖹹"],[93786,1,"𖹺"],[93787,1,"𖹻"],[93788,1,"𖹼"],[93789,1,"𖹽"],[93790,1,"𖹾"],[93791,1,"𖹿"],[[93792,93823],2],[[93824,93850],2],[[93851,93951],3],[[93952,94020],2],[[94021,94026],2],[[94027,94030],3],[94031,2],[[94032,94078],2],[[94079,94087],2],[[94088,94094],3],[[94095,94111],2],[[94112,94175],3],[94176,2],[94177,2],[94178,2],[94179,2],[94180,2],[[94181,94191],3],[[94192,94193],2],[[94194,94207],3],[[94208,100332],2],[[100333,100337],2],[[100338,100343],2],[[100344,100351],3],[[100352,101106],2],[[101107,101589],2],[[101590,101631],3],[[101632,101640],2],[[101641,110575],3],[[110576,110579],2],[110580,3],[[110581,110587],2],[110588,3],[[110589,110590],2],[110591,3],[[110592,110593],2],[[110594,110878],2],[[110879,110882],2],[[110883,110927],3],[[110928,110930],2],[[110931,110947],3],[[110948,110951],2],[[110952,110959],3],[[110960,111355],2],[[111356,113663],3],[[113664,113770],2],[[113771,113775],3],[[113776,113788],2],[[113789,113791],3],[[113792,113800],2],[[113801,113807],3],[[113808,113817],2],[[113818,113819],3],[113820,2],[[113821,113822],2],[113823,2],[[113824,113827],7],[[113828,118527],3],[[118528,118573],2],[[118574,118575],3],[[118576,118598],2],[[118599,118607],3],[[118608,118723],2],[[118724,118783],3],[[118784,119029],2],[[119030,119039],3],[[119040,119078],2],[[119079,119080],3],[119081,2],[[119082,119133],2],[119134,1,"𝅗𝅥"],[119135,1,"𝅘𝅥"],[119136,1,"𝅘𝅥𝅮"],[119137,1,"𝅘𝅥𝅯"],[119138,1,"𝅘𝅥𝅰"],[119139,1,"𝅘𝅥𝅱"],[119140,1,"𝅘𝅥𝅲"],[[119141,119154],2],[[119155,119162],3],[[119163,119226],2],[119227,1,"𝆹𝅥"],[119228,1,"𝆺𝅥"],[119229,1,"𝆹𝅥𝅮"],[119230,1,"𝆺𝅥𝅮"],[119231,1,"𝆹𝅥𝅯"],[119232,1,"𝆺𝅥𝅯"],[[119233,119261],2],[[119262,119272],2],[[119273,119274],2],[[119275,119295],3],[[119296,119365],2],[[119366,119519],3],[[119520,119539],2],[[119540,119551],3],[[119552,119638],2],[[119639,119647],3],[[119648,119665],2],[[119666,119672],2],[[119673,119807],3],[119808,1,"a"],[119809,1,"b"],[119810,1,"c"],[119811,1,"d"],[119812,1,"e"],[119813,1,"f"],[119814,1,"g"],[119815,1,"h"],[119816,1,"i"],[119817,1,"j"],[119818,1,"k"],[119819,1,"l"],[119820,1,"m"],[119821,1,"n"],[119822,1,"o"],[119823,1,"p"],[119824,1,"q"],[119825,1,"r"],[119826,1,"s"],[119827,1,"t"],[119828,1,"u"],[119829,1,"v"],[119830,1,"w"],[119831,1,"x"],[119832,1,"y"],[119833,1,"z"],[119834,1,"a"],[119835,1,"b"],[119836,1,"c"],[119837,1,"d"],[119838,1,"e"],[119839,1,"f"],[119840,1,"g"],[119841,1,"h"],[119842,1,"i"],[119843,1,"j"],[119844,1,"k"],[119845,1,"l"],[119846,1,"m"],[119847,1,"n"],[119848,1,"o"],[119849,1,"p"],[119850,1,"q"],[119851,1,"r"],[119852,1,"s"],[119853,1,"t"],[119854,1,"u"],[119855,1,"v"],[119856,1,"w"],[119857,1,"x"],[119858,1,"y"],[119859,1,"z"],[119860,1,"a"],[119861,1,"b"],[119862,1,"c"],[119863,1,"d"],[119864,1,"e"],[119865,1,"f"],[119866,1,"g"],[119867,1,"h"],[119868,1,"i"],[119869,1,"j"],[119870,1,"k"],[119871,1,"l"],[119872,1,"m"],[119873,1,"n"],[119874,1,"o"],[119875,1,"p"],[119876,1,"q"],[119877,1,"r"],[119878,1,"s"],[119879,1,"t"],[119880,1,"u"],[119881,1,"v"],[119882,1,"w"],[119883,1,"x"],[119884,1,"y"],[119885,1,"z"],[119886,1,"a"],[119887,1,"b"],[119888,1,"c"],[119889,1,"d"],[119890,1,"e"],[119891,1,"f"],[119892,1,"g"],[119893,3],[119894,1,"i"],[119895,1,"j"],[119896,1,"k"],[119897,1,"l"],[119898,1,"m"],[119899,1,"n"],[119900,1,"o"],[119901,1,"p"],[119902,1,"q"],[119903,1,"r"],[119904,1,"s"],[119905,1,"t"],[119906,1,"u"],[119907,1,"v"],[119908,1,"w"],[119909,1,"x"],[119910,1,"y"],[119911,1,"z"],[119912,1,"a"],[119913,1,"b"],[119914,1,"c"],[119915,1,"d"],[119916,1,"e"],[119917,1,"f"],[119918,1,"g"],[119919,1,"h"],[119920,1,"i"],[119921,1,"j"],[119922,1,"k"],[119923,1,"l"],[119924,1,"m"],[119925,1,"n"],[119926,1,"o"],[119927,1,"p"],[119928,1,"q"],[119929,1,"r"],[119930,1,"s"],[119931,1,"t"],[119932,1,"u"],[119933,1,"v"],[119934,1,"w"],[119935,1,"x"],[119936,1,"y"],[119937,1,"z"],[119938,1,"a"],[119939,1,"b"],[119940,1,"c"],[119941,1,"d"],[119942,1,"e"],[119943,1,"f"],[119944,1,"g"],[119945,1,"h"],[119946,1,"i"],[119947,1,"j"],[119948,1,"k"],[119949,1,"l"],[119950,1,"m"],[119951,1,"n"],[119952,1,"o"],[119953,1,"p"],[119954,1,"q"],[119955,1,"r"],[119956,1,"s"],[119957,1,"t"],[119958,1,"u"],[119959,1,"v"],[119960,1,"w"],[119961,1,"x"],[119962,1,"y"],[119963,1,"z"],[119964,1,"a"],[119965,3],[119966,1,"c"],[119967,1,"d"],[[119968,119969],3],[119970,1,"g"],[[119971,119972],3],[119973,1,"j"],[119974,1,"k"],[[119975,119976],3],[119977,1,"n"],[119978,1,"o"],[119979,1,"p"],[119980,1,"q"],[119981,3],[119982,1,"s"],[119983,1,"t"],[119984,1,"u"],[119985,1,"v"],[119986,1,"w"],[119987,1,"x"],[119988,1,"y"],[119989,1,"z"],[119990,1,"a"],[119991,1,"b"],[119992,1,"c"],[119993,1,"d"],[119994,3],[119995,1,"f"],[119996,3],[119997,1,"h"],[119998,1,"i"],[119999,1,"j"],[120000,1,"k"],[120001,1,"l"],[120002,1,"m"],[120003,1,"n"],[120004,3],[120005,1,"p"],[120006,1,"q"],[120007,1,"r"],[120008,1,"s"],[120009,1,"t"],[120010,1,"u"],[120011,1,"v"],[120012,1,"w"],[120013,1,"x"],[120014,1,"y"],[120015,1,"z"],[120016,1,"a"],[120017,1,"b"],[120018,1,"c"],[120019,1,"d"],[120020,1,"e"],[120021,1,"f"],[120022,1,"g"],[120023,1,"h"],[120024,1,"i"],[120025,1,"j"],[120026,1,"k"],[120027,1,"l"],[120028,1,"m"],[120029,1,"n"],[120030,1,"o"],[120031,1,"p"],[120032,1,"q"],[120033,1,"r"],[120034,1,"s"],[120035,1,"t"],[120036,1,"u"],[120037,1,"v"],[120038,1,"w"],[120039,1,"x"],[120040,1,"y"],[120041,1,"z"],[120042,1,"a"],[120043,1,"b"],[120044,1,"c"],[120045,1,"d"],[120046,1,"e"],[120047,1,"f"],[120048,1,"g"],[120049,1,"h"],[120050,1,"i"],[120051,1,"j"],[120052,1,"k"],[120053,1,"l"],[120054,1,"m"],[120055,1,"n"],[120056,1,"o"],[120057,1,"p"],[120058,1,"q"],[120059,1,"r"],[120060,1,"s"],[120061,1,"t"],[120062,1,"u"],[120063,1,"v"],[120064,1,"w"],[120065,1,"x"],[120066,1,"y"],[120067,1,"z"],[120068,1,"a"],[120069,1,"b"],[120070,3],[120071,1,"d"],[120072,1,"e"],[120073,1,"f"],[120074,1,"g"],[[120075,120076],3],[120077,1,"j"],[120078,1,"k"],[120079,1,"l"],[120080,1,"m"],[120081,1,"n"],[120082,1,"o"],[120083,1,"p"],[120084,1,"q"],[120085,3],[120086,1,"s"],[120087,1,"t"],[120088,1,"u"],[120089,1,"v"],[120090,1,"w"],[120091,1,"x"],[120092,1,"y"],[120093,3],[120094,1,"a"],[120095,1,"b"],[120096,1,"c"],[120097,1,"d"],[120098,1,"e"],[120099,1,"f"],[120100,1,"g"],[120101,1,"h"],[120102,1,"i"],[120103,1,"j"],[120104,1,"k"],[120105,1,"l"],[120106,1,"m"],[120107,1,"n"],[120108,1,"o"],[120109,1,"p"],[120110,1,"q"],[120111,1,"r"],[120112,1,"s"],[120113,1,"t"],[120114,1,"u"],[120115,1,"v"],[120116,1,"w"],[120117,1,"x"],[120118,1,"y"],[120119,1,"z"],[120120,1,"a"],[120121,1,"b"],[120122,3],[120123,1,"d"],[120124,1,"e"],[120125,1,"f"],[120126,1,"g"],[120127,3],[120128,1,"i"],[120129,1,"j"],[120130,1,"k"],[120131,1,"l"],[120132,1,"m"],[120133,3],[120134,1,"o"],[[120135,120137],3],[120138,1,"s"],[120139,1,"t"],[120140,1,"u"],[120141,1,"v"],[120142,1,"w"],[120143,1,"x"],[120144,1,"y"],[120145,3],[120146,1,"a"],[120147,1,"b"],[120148,1,"c"],[120149,1,"d"],[120150,1,"e"],[120151,1,"f"],[120152,1,"g"],[120153,1,"h"],[120154,1,"i"],[120155,1,"j"],[120156,1,"k"],[120157,1,"l"],[120158,1,"m"],[120159,1,"n"],[120160,1,"o"],[120161,1,"p"],[120162,1,"q"],[120163,1,"r"],[120164,1,"s"],[120165,1,"t"],[120166,1,"u"],[120167,1,"v"],[120168,1,"w"],[120169,1,"x"],[120170,1,"y"],[120171,1,"z"],[120172,1,"a"],[120173,1,"b"],[120174,1,"c"],[120175,1,"d"],[120176,1,"e"],[120177,1,"f"],[120178,1,"g"],[120179,1,"h"],[120180,1,"i"],[120181,1,"j"],[120182,1,"k"],[120183,1,"l"],[120184,1,"m"],[120185,1,"n"],[120186,1,"o"],[120187,1,"p"],[120188,1,"q"],[120189,1,"r"],[120190,1,"s"],[120191,1,"t"],[120192,1,"u"],[120193,1,"v"],[120194,1,"w"],[120195,1,"x"],[120196,1,"y"],[120197,1,"z"],[120198,1,"a"],[120199,1,"b"],[120200,1,"c"],[120201,1,"d"],[120202,1,"e"],[120203,1,"f"],[120204,1,"g"],[120205,1,"h"],[120206,1,"i"],[120207,1,"j"],[120208,1,"k"],[120209,1,"l"],[120210,1,"m"],[120211,1,"n"],[120212,1,"o"],[120213,1,"p"],[120214,1,"q"],[120215,1,"r"],[120216,1,"s"],[120217,1,"t"],[120218,1,"u"],[120219,1,"v"],[120220,1,"w"],[120221,1,"x"],[120222,1,"y"],[120223,1,"z"],[120224,1,"a"],[120225,1,"b"],[120226,1,"c"],[120227,1,"d"],[120228,1,"e"],[120229,1,"f"],[120230,1,"g"],[120231,1,"h"],[120232,1,"i"],[120233,1,"j"],[120234,1,"k"],[120235,1,"l"],[120236,1,"m"],[120237,1,"n"],[120238,1,"o"],[120239,1,"p"],[120240,1,"q"],[120241,1,"r"],[120242,1,"s"],[120243,1,"t"],[120244,1,"u"],[120245,1,"v"],[120246,1,"w"],[120247,1,"x"],[120248,1,"y"],[120249,1,"z"],[120250,1,"a"],[120251,1,"b"],[120252,1,"c"],[120253,1,"d"],[120254,1,"e"],[120255,1,"f"],[120256,1,"g"],[120257,1,"h"],[120258,1,"i"],[120259,1,"j"],[120260,1,"k"],[120261,1,"l"],[120262,1,"m"],[120263,1,"n"],[120264,1,"o"],[120265,1,"p"],[120266,1,"q"],[120267,1,"r"],[120268,1,"s"],[120269,1,"t"],[120270,1,"u"],[120271,1,"v"],[120272,1,"w"],[120273,1,"x"],[120274,1,"y"],[120275,1,"z"],[120276,1,"a"],[120277,1,"b"],[120278,1,"c"],[120279,1,"d"],[120280,1,"e"],[120281,1,"f"],[120282,1,"g"],[120283,1,"h"],[120284,1,"i"],[120285,1,"j"],[120286,1,"k"],[120287,1,"l"],[120288,1,"m"],[120289,1,"n"],[120290,1,"o"],[120291,1,"p"],[120292,1,"q"],[120293,1,"r"],[120294,1,"s"],[120295,1,"t"],[120296,1,"u"],[120297,1,"v"],[120298,1,"w"],[120299,1,"x"],[120300,1,"y"],[120301,1,"z"],[120302,1,"a"],[120303,1,"b"],[120304,1,"c"],[120305,1,"d"],[120306,1,"e"],[120307,1,"f"],[120308,1,"g"],[120309,1,"h"],[120310,1,"i"],[120311,1,"j"],[120312,1,"k"],[120313,1,"l"],[120314,1,"m"],[120315,1,"n"],[120316,1,"o"],[120317,1,"p"],[120318,1,"q"],[120319,1,"r"],[120320,1,"s"],[120321,1,"t"],[120322,1,"u"],[120323,1,"v"],[120324,1,"w"],[120325,1,"x"],[120326,1,"y"],[120327,1,"z"],[120328,1,"a"],[120329,1,"b"],[120330,1,"c"],[120331,1,"d"],[120332,1,"e"],[120333,1,"f"],[120334,1,"g"],[120335,1,"h"],[120336,1,"i"],[120337,1,"j"],[120338,1,"k"],[120339,1,"l"],[120340,1,"m"],[120341,1,"n"],[120342,1,"o"],[120343,1,"p"],[120344,1,"q"],[120345,1,"r"],[120346,1,"s"],[120347,1,"t"],[120348,1,"u"],[120349,1,"v"],[120350,1,"w"],[120351,1,"x"],[120352,1,"y"],[120353,1,"z"],[120354,1,"a"],[120355,1,"b"],[120356,1,"c"],[120357,1,"d"],[120358,1,"e"],[120359,1,"f"],[120360,1,"g"],[120361,1,"h"],[120362,1,"i"],[120363,1,"j"],[120364,1,"k"],[120365,1,"l"],[120366,1,"m"],[120367,1,"n"],[120368,1,"o"],[120369,1,"p"],[120370,1,"q"],[120371,1,"r"],[120372,1,"s"],[120373,1,"t"],[120374,1,"u"],[120375,1,"v"],[120376,1,"w"],[120377,1,"x"],[120378,1,"y"],[120379,1,"z"],[120380,1,"a"],[120381,1,"b"],[120382,1,"c"],[120383,1,"d"],[120384,1,"e"],[120385,1,"f"],[120386,1,"g"],[120387,1,"h"],[120388,1,"i"],[120389,1,"j"],[120390,1,"k"],[120391,1,"l"],[120392,1,"m"],[120393,1,"n"],[120394,1,"o"],[120395,1,"p"],[120396,1,"q"],[120397,1,"r"],[120398,1,"s"],[120399,1,"t"],[120400,1,"u"],[120401,1,"v"],[120402,1,"w"],[120403,1,"x"],[120404,1,"y"],[120405,1,"z"],[120406,1,"a"],[120407,1,"b"],[120408,1,"c"],[120409,1,"d"],[120410,1,"e"],[120411,1,"f"],[120412,1,"g"],[120413,1,"h"],[120414,1,"i"],[120415,1,"j"],[120416,1,"k"],[120417,1,"l"],[120418,1,"m"],[120419,1,"n"],[120420,1,"o"],[120421,1,"p"],[120422,1,"q"],[120423,1,"r"],[120424,1,"s"],[120425,1,"t"],[120426,1,"u"],[120427,1,"v"],[120428,1,"w"],[120429,1,"x"],[120430,1,"y"],[120431,1,"z"],[120432,1,"a"],[120433,1,"b"],[120434,1,"c"],[120435,1,"d"],[120436,1,"e"],[120437,1,"f"],[120438,1,"g"],[120439,1,"h"],[120440,1,"i"],[120441,1,"j"],[120442,1,"k"],[120443,1,"l"],[120444,1,"m"],[120445,1,"n"],[120446,1,"o"],[120447,1,"p"],[120448,1,"q"],[120449,1,"r"],[120450,1,"s"],[120451,1,"t"],[120452,1,"u"],[120453,1,"v"],[120454,1,"w"],[120455,1,"x"],[120456,1,"y"],[120457,1,"z"],[120458,1,"a"],[120459,1,"b"],[120460,1,"c"],[120461,1,"d"],[120462,1,"e"],[120463,1,"f"],[120464,1,"g"],[120465,1,"h"],[120466,1,"i"],[120467,1,"j"],[120468,1,"k"],[120469,1,"l"],[120470,1,"m"],[120471,1,"n"],[120472,1,"o"],[120473,1,"p"],[120474,1,"q"],[120475,1,"r"],[120476,1,"s"],[120477,1,"t"],[120478,1,"u"],[120479,1,"v"],[120480,1,"w"],[120481,1,"x"],[120482,1,"y"],[120483,1,"z"],[120484,1,"ı"],[120485,1,"ȷ"],[[120486,120487],3],[120488,1,"α"],[120489,1,"β"],[120490,1,"γ"],[120491,1,"δ"],[120492,1,"ε"],[120493,1,"ζ"],[120494,1,"η"],[120495,1,"θ"],[120496,1,"ι"],[120497,1,"κ"],[120498,1,"λ"],[120499,1,"μ"],[120500,1,"ν"],[120501,1,"ξ"],[120502,1,"ο"],[120503,1,"π"],[120504,1,"ρ"],[120505,1,"θ"],[120506,1,"σ"],[120507,1,"τ"],[120508,1,"υ"],[120509,1,"φ"],[120510,1,"χ"],[120511,1,"ψ"],[120512,1,"ω"],[120513,1,"∇"],[120514,1,"α"],[120515,1,"β"],[120516,1,"γ"],[120517,1,"δ"],[120518,1,"ε"],[120519,1,"ζ"],[120520,1,"η"],[120521,1,"θ"],[120522,1,"ι"],[120523,1,"κ"],[120524,1,"λ"],[120525,1,"μ"],[120526,1,"ν"],[120527,1,"ξ"],[120528,1,"ο"],[120529,1,"π"],[120530,1,"ρ"],[[120531,120532],1,"σ"],[120533,1,"τ"],[120534,1,"υ"],[120535,1,"φ"],[120536,1,"χ"],[120537,1,"ψ"],[120538,1,"ω"],[120539,1,"∂"],[120540,1,"ε"],[120541,1,"θ"],[120542,1,"κ"],[120543,1,"φ"],[120544,1,"ρ"],[120545,1,"π"],[120546,1,"α"],[120547,1,"β"],[120548,1,"γ"],[120549,1,"δ"],[120550,1,"ε"],[120551,1,"ζ"],[120552,1,"η"],[120553,1,"θ"],[120554,1,"ι"],[120555,1,"κ"],[120556,1,"λ"],[120557,1,"μ"],[120558,1,"ν"],[120559,1,"ξ"],[120560,1,"ο"],[120561,1,"π"],[120562,1,"ρ"],[120563,1,"θ"],[120564,1,"σ"],[120565,1,"τ"],[120566,1,"υ"],[120567,1,"φ"],[120568,1,"χ"],[120569,1,"ψ"],[120570,1,"ω"],[120571,1,"∇"],[120572,1,"α"],[120573,1,"β"],[120574,1,"γ"],[120575,1,"δ"],[120576,1,"ε"],[120577,1,"ζ"],[120578,1,"η"],[120579,1,"θ"],[120580,1,"ι"],[120581,1,"κ"],[120582,1,"λ"],[120583,1,"μ"],[120584,1,"ν"],[120585,1,"ξ"],[120586,1,"ο"],[120587,1,"π"],[120588,1,"ρ"],[[120589,120590],1,"σ"],[120591,1,"τ"],[120592,1,"υ"],[120593,1,"φ"],[120594,1,"χ"],[120595,1,"ψ"],[120596,1,"ω"],[120597,1,"∂"],[120598,1,"ε"],[120599,1,"θ"],[120600,1,"κ"],[120601,1,"φ"],[120602,1,"ρ"],[120603,1,"π"],[120604,1,"α"],[120605,1,"β"],[120606,1,"γ"],[120607,1,"δ"],[120608,1,"ε"],[120609,1,"ζ"],[120610,1,"η"],[120611,1,"θ"],[120612,1,"ι"],[120613,1,"κ"],[120614,1,"λ"],[120615,1,"μ"],[120616,1,"ν"],[120617,1,"ξ"],[120618,1,"ο"],[120619,1,"π"],[120620,1,"ρ"],[120621,1,"θ"],[120622,1,"σ"],[120623,1,"τ"],[120624,1,"υ"],[120625,1,"φ"],[120626,1,"χ"],[120627,1,"ψ"],[120628,1,"ω"],[120629,1,"∇"],[120630,1,"α"],[120631,1,"β"],[120632,1,"γ"],[120633,1,"δ"],[120634,1,"ε"],[120635,1,"ζ"],[120636,1,"η"],[120637,1,"θ"],[120638,1,"ι"],[120639,1,"κ"],[120640,1,"λ"],[120641,1,"μ"],[120642,1,"ν"],[120643,1,"ξ"],[120644,1,"ο"],[120645,1,"π"],[120646,1,"ρ"],[[120647,120648],1,"σ"],[120649,1,"τ"],[120650,1,"υ"],[120651,1,"φ"],[120652,1,"χ"],[120653,1,"ψ"],[120654,1,"ω"],[120655,1,"∂"],[120656,1,"ε"],[120657,1,"θ"],[120658,1,"κ"],[120659,1,"φ"],[120660,1,"ρ"],[120661,1,"π"],[120662,1,"α"],[120663,1,"β"],[120664,1,"γ"],[120665,1,"δ"],[120666,1,"ε"],[120667,1,"ζ"],[120668,1,"η"],[120669,1,"θ"],[120670,1,"ι"],[120671,1,"κ"],[120672,1,"λ"],[120673,1,"μ"],[120674,1,"ν"],[120675,1,"ξ"],[120676,1,"ο"],[120677,1,"π"],[120678,1,"ρ"],[120679,1,"θ"],[120680,1,"σ"],[120681,1,"τ"],[120682,1,"υ"],[120683,1,"φ"],[120684,1,"χ"],[120685,1,"ψ"],[120686,1,"ω"],[120687,1,"∇"],[120688,1,"α"],[120689,1,"β"],[120690,1,"γ"],[120691,1,"δ"],[120692,1,"ε"],[120693,1,"ζ"],[120694,1,"η"],[120695,1,"θ"],[120696,1,"ι"],[120697,1,"κ"],[120698,1,"λ"],[120699,1,"μ"],[120700,1,"ν"],[120701,1,"ξ"],[120702,1,"ο"],[120703,1,"π"],[120704,1,"ρ"],[[120705,120706],1,"σ"],[120707,1,"τ"],[120708,1,"υ"],[120709,1,"φ"],[120710,1,"χ"],[120711,1,"ψ"],[120712,1,"ω"],[120713,1,"∂"],[120714,1,"ε"],[120715,1,"θ"],[120716,1,"κ"],[120717,1,"φ"],[120718,1,"ρ"],[120719,1,"π"],[120720,1,"α"],[120721,1,"β"],[120722,1,"γ"],[120723,1,"δ"],[120724,1,"ε"],[120725,1,"ζ"],[120726,1,"η"],[120727,1,"θ"],[120728,1,"ι"],[120729,1,"κ"],[120730,1,"λ"],[120731,1,"μ"],[120732,1,"ν"],[120733,1,"ξ"],[120734,1,"ο"],[120735,1,"π"],[120736,1,"ρ"],[120737,1,"θ"],[120738,1,"σ"],[120739,1,"τ"],[120740,1,"υ"],[120741,1,"φ"],[120742,1,"χ"],[120743,1,"ψ"],[120744,1,"ω"],[120745,1,"∇"],[120746,1,"α"],[120747,1,"β"],[120748,1,"γ"],[120749,1,"δ"],[120750,1,"ε"],[120751,1,"ζ"],[120752,1,"η"],[120753,1,"θ"],[120754,1,"ι"],[120755,1,"κ"],[120756,1,"λ"],[120757,1,"μ"],[120758,1,"ν"],[120759,1,"ξ"],[120760,1,"ο"],[120761,1,"π"],[120762,1,"ρ"],[[120763,120764],1,"σ"],[120765,1,"τ"],[120766,1,"υ"],[120767,1,"φ"],[120768,1,"χ"],[120769,1,"ψ"],[120770,1,"ω"],[120771,1,"∂"],[120772,1,"ε"],[120773,1,"θ"],[120774,1,"κ"],[120775,1,"φ"],[120776,1,"ρ"],[120777,1,"π"],[[120778,120779],1,"ϝ"],[[120780,120781],3],[120782,1,"0"],[120783,1,"1"],[120784,1,"2"],[120785,1,"3"],[120786,1,"4"],[120787,1,"5"],[120788,1,"6"],[120789,1,"7"],[120790,1,"8"],[120791,1,"9"],[120792,1,"0"],[120793,1,"1"],[120794,1,"2"],[120795,1,"3"],[120796,1,"4"],[120797,1,"5"],[120798,1,"6"],[120799,1,"7"],[120800,1,"8"],[120801,1,"9"],[120802,1,"0"],[120803,1,"1"],[120804,1,"2"],[120805,1,"3"],[120806,1,"4"],[120807,1,"5"],[120808,1,"6"],[120809,1,"7"],[120810,1,"8"],[120811,1,"9"],[120812,1,"0"],[120813,1,"1"],[120814,1,"2"],[120815,1,"3"],[120816,1,"4"],[120817,1,"5"],[120818,1,"6"],[120819,1,"7"],[120820,1,"8"],[120821,1,"9"],[120822,1,"0"],[120823,1,"1"],[120824,1,"2"],[120825,1,"3"],[120826,1,"4"],[120827,1,"5"],[120828,1,"6"],[120829,1,"7"],[120830,1,"8"],[120831,1,"9"],[[120832,121343],2],[[121344,121398],2],[[121399,121402],2],[[121403,121452],2],[[121453,121460],2],[121461,2],[[121462,121475],2],[121476,2],[[121477,121483],2],[[121484,121498],3],[[121499,121503],2],[121504,3],[[121505,121519],2],[[121520,122623],3],[[122624,122654],2],[[122655,122879],3],[[122880,122886],2],[122887,3],[[122888,122904],2],[[122905,122906],3],[[122907,122913],2],[122914,3],[[122915,122916],2],[122917,3],[[122918,122922],2],[[122923,123135],3],[[123136,123180],2],[[123181,123183],3],[[123184,123197],2],[[123198,123199],3],[[123200,123209],2],[[123210,123213],3],[123214,2],[123215,2],[[123216,123535],3],[[123536,123566],2],[[123567,123583],3],[[123584,123641],2],[[123642,123646],3],[123647,2],[[123648,124895],3],[[124896,124902],2],[124903,3],[[124904,124907],2],[124908,3],[[124909,124910],2],[124911,3],[[124912,124926],2],[124927,3],[[124928,125124],2],[[125125,125126],3],[[125127,125135],2],[[125136,125142],2],[[125143,125183],3],[125184,1,"𞤢"],[125185,1,"𞤣"],[125186,1,"𞤤"],[125187,1,"𞤥"],[125188,1,"𞤦"],[125189,1,"𞤧"],[125190,1,"𞤨"],[125191,1,"𞤩"],[125192,1,"𞤪"],[125193,1,"𞤫"],[125194,1,"𞤬"],[125195,1,"𞤭"],[125196,1,"𞤮"],[125197,1,"𞤯"],[125198,1,"𞤰"],[125199,1,"𞤱"],[125200,1,"𞤲"],[125201,1,"𞤳"],[125202,1,"𞤴"],[125203,1,"𞤵"],[125204,1,"𞤶"],[125205,1,"𞤷"],[125206,1,"𞤸"],[125207,1,"𞤹"],[125208,1,"𞤺"],[125209,1,"𞤻"],[125210,1,"𞤼"],[125211,1,"𞤽"],[125212,1,"𞤾"],[125213,1,"𞤿"],[125214,1,"𞥀"],[125215,1,"𞥁"],[125216,1,"𞥂"],[125217,1,"𞥃"],[[125218,125258],2],[125259,2],[[125260,125263],3],[[125264,125273],2],[[125274,125277],3],[[125278,125279],2],[[125280,126064],3],[[126065,126132],2],[[126133,126208],3],[[126209,126269],2],[[126270,126463],3],[126464,1,"ا"],[126465,1,"ب"],[126466,1,"ج"],[126467,1,"د"],[126468,3],[126469,1,"و"],[126470,1,"ز"],[126471,1,"ح"],[126472,1,"ط"],[126473,1,"ي"],[126474,1,"ك"],[126475,1,"ل"],[126476,1,"م"],[126477,1,"ن"],[126478,1,"س"],[126479,1,"ع"],[126480,1,"ف"],[126481,1,"ص"],[126482,1,"ق"],[126483,1,"ر"],[126484,1,"ش"],[126485,1,"ت"],[126486,1,"ث"],[126487,1,"خ"],[126488,1,"ذ"],[126489,1,"ض"],[126490,1,"ظ"],[126491,1,"غ"],[126492,1,"ٮ"],[126493,1,"ں"],[126494,1,"ڡ"],[126495,1,"ٯ"],[126496,3],[126497,1,"ب"],[126498,1,"ج"],[126499,3],[126500,1,"ه"],[[126501,126502],3],[126503,1,"ح"],[126504,3],[126505,1,"ي"],[126506,1,"ك"],[126507,1,"ل"],[126508,1,"م"],[126509,1,"ن"],[126510,1,"س"],[126511,1,"ع"],[126512,1,"ف"],[126513,1,"ص"],[126514,1,"ق"],[126515,3],[126516,1,"ش"],[126517,1,"ت"],[126518,1,"ث"],[126519,1,"خ"],[126520,3],[126521,1,"ض"],[126522,3],[126523,1,"غ"],[[126524,126529],3],[126530,1,"ج"],[[126531,126534],3],[126535,1,"ح"],[126536,3],[126537,1,"ي"],[126538,3],[126539,1,"ل"],[126540,3],[126541,1,"ن"],[126542,1,"س"],[126543,1,"ع"],[126544,3],[126545,1,"ص"],[126546,1,"ق"],[126547,3],[126548,1,"ش"],[[126549,126550],3],[126551,1,"خ"],[126552,3],[126553,1,"ض"],[126554,3],[126555,1,"غ"],[126556,3],[126557,1,"ں"],[126558,3],[126559,1,"ٯ"],[126560,3],[126561,1,"ب"],[126562,1,"ج"],[126563,3],[126564,1,"ه"],[[126565,126566],3],[126567,1,"ح"],[126568,1,"ط"],[126569,1,"ي"],[126570,1,"ك"],[126571,3],[126572,1,"م"],[126573,1,"ن"],[126574,1,"س"],[126575,1,"ع"],[126576,1,"ف"],[126577,1,"ص"],[126578,1,"ق"],[126579,3],[126580,1,"ش"],[126581,1,"ت"],[126582,1,"ث"],[126583,1,"خ"],[126584,3],[126585,1,"ض"],[126586,1,"ظ"],[126587,1,"غ"],[126588,1,"ٮ"],[126589,3],[126590,1,"ڡ"],[126591,3],[126592,1,"ا"],[126593,1,"ب"],[126594,1,"ج"],[126595,1,"د"],[126596,1,"ه"],[126597,1,"و"],[126598,1,"ز"],[126599,1,"ح"],[126600,1,"ط"],[126601,1,"ي"],[126602,3],[126603,1,"ل"],[126604,1,"م"],[126605,1,"ن"],[126606,1,"س"],[126607,1,"ع"],[126608,1,"ف"],[126609,1,"ص"],[126610,1,"ق"],[126611,1,"ر"],[126612,1,"ش"],[126613,1,"ت"],[126614,1,"ث"],[126615,1,"خ"],[126616,1,"ذ"],[126617,1,"ض"],[126618,1,"ظ"],[126619,1,"غ"],[[126620,126624],3],[126625,1,"ب"],[126626,1,"ج"],[126627,1,"د"],[126628,3],[126629,1,"و"],[126630,1,"ز"],[126631,1,"ح"],[126632,1,"ط"],[126633,1,"ي"],[126634,3],[126635,1,"ل"],[126636,1,"م"],[126637,1,"ن"],[126638,1,"س"],[126639,1,"ع"],[126640,1,"ف"],[126641,1,"ص"],[126642,1,"ق"],[126643,1,"ر"],[126644,1,"ش"],[126645,1,"ت"],[126646,1,"ث"],[126647,1,"خ"],[126648,1,"ذ"],[126649,1,"ض"],[126650,1,"ظ"],[126651,1,"غ"],[[126652,126703],3],[[126704,126705],2],[[126706,126975],3],[[126976,127019],2],[[127020,127023],3],[[127024,127123],2],[[127124,127135],3],[[127136,127150],2],[[127151,127152],3],[[127153,127166],2],[127167,2],[127168,3],[[127169,127183],2],[127184,3],[[127185,127199],2],[[127200,127221],2],[[127222,127231],3],[127232,3],[127233,5,"0,"],[127234,5,"1,"],[127235,5,"2,"],[127236,5,"3,"],[127237,5,"4,"],[127238,5,"5,"],[127239,5,"6,"],[127240,5,"7,"],[127241,5,"8,"],[127242,5,"9,"],[[127243,127244],2],[[127245,127247],2],[127248,5,"(a)"],[127249,5,"(b)"],[127250,5,"(c)"],[127251,5,"(d)"],[127252,5,"(e)"],[127253,5,"(f)"],[127254,5,"(g)"],[127255,5,"(h)"],[127256,5,"(i)"],[127257,5,"(j)"],[127258,5,"(k)"],[127259,5,"(l)"],[127260,5,"(m)"],[127261,5,"(n)"],[127262,5,"(o)"],[127263,5,"(p)"],[127264,5,"(q)"],[127265,5,"(r)"],[127266,5,"(s)"],[127267,5,"(t)"],[127268,5,"(u)"],[127269,5,"(v)"],[127270,5,"(w)"],[127271,5,"(x)"],[127272,5,"(y)"],[127273,5,"(z)"],[127274,1,"〔s〕"],[127275,1,"c"],[127276,1,"r"],[127277,1,"cd"],[127278,1,"wz"],[127279,2],[127280,1,"a"],[127281,1,"b"],[127282,1,"c"],[127283,1,"d"],[127284,1,"e"],[127285,1,"f"],[127286,1,"g"],[127287,1,"h"],[127288,1,"i"],[127289,1,"j"],[127290,1,"k"],[127291,1,"l"],[127292,1,"m"],[127293,1,"n"],[127294,1,"o"],[127295,1,"p"],[127296,1,"q"],[127297,1,"r"],[127298,1,"s"],[127299,1,"t"],[127300,1,"u"],[127301,1,"v"],[127302,1,"w"],[127303,1,"x"],[127304,1,"y"],[127305,1,"z"],[127306,1,"hv"],[127307,1,"mv"],[127308,1,"sd"],[127309,1,"ss"],[127310,1,"ppv"],[127311,1,"wc"],[[127312,127318],2],[127319,2],[[127320,127326],2],[127327,2],[[127328,127337],2],[127338,1,"mc"],[127339,1,"md"],[127340,1,"mr"],[[127341,127343],2],[[127344,127352],2],[127353,2],[127354,2],[[127355,127356],2],[[127357,127358],2],[127359,2],[[127360,127369],2],[[127370,127373],2],[[127374,127375],2],[127376,1,"dj"],[[127377,127386],2],[[127387,127404],2],[127405,2],[[127406,127461],3],[[127462,127487],2],[127488,1,"ほか"],[127489,1,"ココ"],[127490,1,"サ"],[[127491,127503],3],[127504,1,"手"],[127505,1,"字"],[127506,1,"双"],[127507,1,"デ"],[127508,1,"二"],[127509,1,"多"],[127510,1,"解"],[127511,1,"天"],[127512,1,"交"],[127513,1,"映"],[127514,1,"無"],[127515,1,"料"],[127516,1,"前"],[127517,1,"後"],[127518,1,"再"],[127519,1,"新"],[127520,1,"初"],[127521,1,"終"],[127522,1,"生"],[127523,1,"販"],[127524,1,"声"],[127525,1,"吹"],[127526,1,"演"],[127527,1,"投"],[127528,1,"捕"],[127529,1,"一"],[127530,1,"三"],[127531,1,"遊"],[127532,1,"左"],[127533,1,"中"],[127534,1,"右"],[127535,1,"指"],[127536,1,"走"],[127537,1,"打"],[127538,1,"禁"],[127539,1,"空"],[127540,1,"合"],[127541,1,"満"],[127542,1,"有"],[127543,1,"月"],[127544,1,"申"],[127545,1,"割"],[127546,1,"営"],[127547,1,"配"],[[127548,127551],3],[127552,1,"〔本〕"],[127553,1,"〔三〕"],[127554,1,"〔二〕"],[127555,1,"〔安〕"],[127556,1,"〔点〕"],[127557,1,"〔打〕"],[127558,1,"〔盗〕"],[127559,1,"〔勝〕"],[127560,1,"〔敗〕"],[[127561,127567],3],[127568,1,"得"],[127569,1,"可"],[[127570,127583],3],[[127584,127589],2],[[127590,127743],3],[[127744,127776],2],[[127777,127788],2],[[127789,127791],2],[[127792,127797],2],[127798,2],[[127799,127868],2],[127869,2],[[127870,127871],2],[[127872,127891],2],[[127892,127903],2],[[127904,127940],2],[127941,2],[[127942,127946],2],[[127947,127950],2],[[127951,127955],2],[[127956,127967],2],[[127968,127984],2],[[127985,127991],2],[[127992,127999],2],[[128000,128062],2],[128063,2],[128064,2],[128065,2],[[128066,128247],2],[128248,2],[[128249,128252],2],[[128253,128254],2],[128255,2],[[128256,128317],2],[[128318,128319],2],[[128320,128323],2],[[128324,128330],2],[[128331,128335],2],[[128336,128359],2],[[128360,128377],2],[128378,2],[[128379,128419],2],[128420,2],[[128421,128506],2],[[128507,128511],2],[128512,2],[[128513,128528],2],[128529,2],[[128530,128532],2],[128533,2],[128534,2],[128535,2],[128536,2],[128537,2],[128538,2],[128539,2],[[128540,128542],2],[128543,2],[[128544,128549],2],[[128550,128551],2],[[128552,128555],2],[128556,2],[128557,2],[[128558,128559],2],[[128560,128563],2],[128564,2],[[128565,128576],2],[[128577,128578],2],[[128579,128580],2],[[128581,128591],2],[[128592,128639],2],[[128640,128709],2],[[128710,128719],2],[128720,2],[[128721,128722],2],[[128723,128724],2],[128725,2],[[128726,128727],2],[[128728,128732],3],[[128733,128735],2],[[128736,128748],2],[[128749,128751],3],[[128752,128755],2],[[128756,128758],2],[[128759,128760],2],[128761,2],[128762,2],[[128763,128764],2],[[128765,128767],3],[[128768,128883],2],[[128884,128895],3],[[128896,128980],2],[[128981,128984],2],[[128985,128991],3],[[128992,129003],2],[[129004,129007],3],[129008,2],[[129009,129023],3],[[129024,129035],2],[[129036,129039],3],[[129040,129095],2],[[129096,129103],3],[[129104,129113],2],[[129114,129119],3],[[129120,129159],2],[[129160,129167],3],[[129168,129197],2],[[129198,129199],3],[[129200,129201],2],[[129202,129279],3],[[129280,129291],2],[129292,2],[[129293,129295],2],[[129296,129304],2],[[129305,129310],2],[129311,2],[[129312,129319],2],[[129320,129327],2],[129328,2],[[129329,129330],2],[[129331,129342],2],[129343,2],[[129344,129355],2],[129356,2],[[129357,129359],2],[[129360,129374],2],[[129375,129387],2],[[129388,129392],2],[129393,2],[129394,2],[[129395,129398],2],[[129399,129400],2],[129401,2],[129402,2],[129403,2],[[129404,129407],2],[[129408,129412],2],[[129413,129425],2],[[129426,129431],2],[[129432,129442],2],[[129443,129444],2],[[129445,129450],2],[[129451,129453],2],[[129454,129455],2],[[129456,129465],2],[[129466,129471],2],[129472,2],[[129473,129474],2],[[129475,129482],2],[129483,2],[129484,2],[[129485,129487],2],[[129488,129510],2],[[129511,129535],2],[[129536,129619],2],[[129620,129631],3],[[129632,129645],2],[[129646,129647],3],[[129648,129651],2],[129652,2],[[129653,129655],3],[[129656,129658],2],[[129659,129660],2],[[129661,129663],3],[[129664,129666],2],[[129667,129670],2],[[129671,129679],3],[[129680,129685],2],[[129686,129704],2],[[129705,129708],2],[[129709,129711],3],[[129712,129718],2],[[129719,129722],2],[[129723,129727],3],[[129728,129730],2],[[129731,129733],2],[[129734,129743],3],[[129744,129750],2],[[129751,129753],2],[[129754,129759],3],[[129760,129767],2],[[129768,129775],3],[[129776,129782],2],[[129783,129791],3],[[129792,129938],2],[129939,3],[[129940,129994],2],[[129995,130031],3],[130032,1,"0"],[130033,1,"1"],[130034,1,"2"],[130035,1,"3"],[130036,1,"4"],[130037,1,"5"],[130038,1,"6"],[130039,1,"7"],[130040,1,"8"],[130041,1,"9"],[[130042,131069],3],[[131070,131071],3],[[131072,173782],2],[[173783,173789],2],[[173790,173791],2],[[173792,173823],3],[[173824,177972],2],[[177973,177976],2],[[177977,177983],3],[[177984,178205],2],[[178206,178207],3],[[178208,183969],2],[[183970,183983],3],[[183984,191456],2],[[191457,194559],3],[194560,1,"丽"],[194561,1,"丸"],[194562,1,"乁"],[194563,1,"𠄢"],[194564,1,"你"],[194565,1,"侮"],[194566,1,"侻"],[194567,1,"倂"],[194568,1,"偺"],[194569,1,"備"],[194570,1,"僧"],[194571,1,"像"],[194572,1,"㒞"],[194573,1,"𠘺"],[194574,1,"免"],[194575,1,"兔"],[194576,1,"兤"],[194577,1,"具"],[194578,1,"𠔜"],[194579,1,"㒹"],[194580,1,"內"],[194581,1,"再"],[194582,1,"𠕋"],[194583,1,"冗"],[194584,1,"冤"],[194585,1,"仌"],[194586,1,"冬"],[194587,1,"况"],[194588,1,"𩇟"],[194589,1,"凵"],[194590,1,"刃"],[194591,1,"㓟"],[194592,1,"刻"],[194593,1,"剆"],[194594,1,"割"],[194595,1,"剷"],[194596,1,"㔕"],[194597,1,"勇"],[194598,1,"勉"],[194599,1,"勤"],[194600,1,"勺"],[194601,1,"包"],[194602,1,"匆"],[194603,1,"北"],[194604,1,"卉"],[194605,1,"卑"],[194606,1,"博"],[194607,1,"即"],[194608,1,"卽"],[[194609,194611],1,"卿"],[194612,1,"𠨬"],[194613,1,"灰"],[194614,1,"及"],[194615,1,"叟"],[194616,1,"𠭣"],[194617,1,"叫"],[194618,1,"叱"],[194619,1,"吆"],[194620,1,"咞"],[194621,1,"吸"],[194622,1,"呈"],[194623,1,"周"],[194624,1,"咢"],[194625,1,"哶"],[194626,1,"唐"],[194627,1,"啓"],[194628,1,"啣"],[[194629,194630],1,"善"],[194631,1,"喙"],[194632,1,"喫"],[194633,1,"喳"],[194634,1,"嗂"],[194635,1,"圖"],[194636,1,"嘆"],[194637,1,"圗"],[194638,1,"噑"],[194639,1,"噴"],[194640,1,"切"],[194641,1,"壮"],[194642,1,"城"],[194643,1,"埴"],[194644,1,"堍"],[194645,1,"型"],[194646,1,"堲"],[194647,1,"報"],[194648,1,"墬"],[194649,1,"𡓤"],[194650,1,"売"],[194651,1,"壷"],[194652,1,"夆"],[194653,1,"多"],[194654,1,"夢"],[194655,1,"奢"],[194656,1,"𡚨"],[194657,1,"𡛪"],[194658,1,"姬"],[194659,1,"娛"],[194660,1,"娧"],[194661,1,"姘"],[194662,1,"婦"],[194663,1,"㛮"],[194664,3],[194665,1,"嬈"],[[194666,194667],1,"嬾"],[194668,1,"𡧈"],[194669,1,"寃"],[194670,1,"寘"],[194671,1,"寧"],[194672,1,"寳"],[194673,1,"𡬘"],[194674,1,"寿"],[194675,1,"将"],[194676,3],[194677,1,"尢"],[194678,1,"㞁"],[194679,1,"屠"],[194680,1,"屮"],[194681,1,"峀"],[194682,1,"岍"],[194683,1,"𡷤"],[194684,1,"嵃"],[194685,1,"𡷦"],[194686,1,"嵮"],[194687,1,"嵫"],[194688,1,"嵼"],[194689,1,"巡"],[194690,1,"巢"],[194691,1,"㠯"],[194692,1,"巽"],[194693,1,"帨"],[194694,1,"帽"],[194695,1,"幩"],[194696,1,"㡢"],[194697,1,"𢆃"],[194698,1,"㡼"],[194699,1,"庰"],[194700,1,"庳"],[194701,1,"庶"],[194702,1,"廊"],[194703,1,"𪎒"],[194704,1,"廾"],[[194705,194706],1,"𢌱"],[194707,1,"舁"],[[194708,194709],1,"弢"],[194710,1,"㣇"],[194711,1,"𣊸"],[194712,1,"𦇚"],[194713,1,"形"],[194714,1,"彫"],[194715,1,"㣣"],[194716,1,"徚"],[194717,1,"忍"],[194718,1,"志"],[194719,1,"忹"],[194720,1,"悁"],[194721,1,"㤺"],[194722,1,"㤜"],[194723,1,"悔"],[194724,1,"𢛔"],[194725,1,"惇"],[194726,1,"慈"],[194727,1,"慌"],[194728,1,"慎"],[194729,1,"慌"],[194730,1,"慺"],[194731,1,"憎"],[194732,1,"憲"],[194733,1,"憤"],[194734,1,"憯"],[194735,1,"懞"],[194736,1,"懲"],[194737,1,"懶"],[194738,1,"成"],[194739,1,"戛"],[194740,1,"扝"],[194741,1,"抱"],[194742,1,"拔"],[194743,1,"捐"],[194744,1,"𢬌"],[194745,1,"挽"],[194746,1,"拼"],[194747,1,"捨"],[194748,1,"掃"],[194749,1,"揤"],[194750,1,"𢯱"],[194751,1,"搢"],[194752,1,"揅"],[194753,1,"掩"],[194754,1,"㨮"],[194755,1,"摩"],[194756,1,"摾"],[194757,1,"撝"],[194758,1,"摷"],[194759,1,"㩬"],[194760,1,"敏"],[194761,1,"敬"],[194762,1,"𣀊"],[194763,1,"旣"],[194764,1,"書"],[194765,1,"晉"],[194766,1,"㬙"],[194767,1,"暑"],[194768,1,"㬈"],[194769,1,"㫤"],[194770,1,"冒"],[194771,1,"冕"],[194772,1,"最"],[194773,1,"暜"],[194774,1,"肭"],[194775,1,"䏙"],[194776,1,"朗"],[194777,1,"望"],[194778,1,"朡"],[194779,1,"杞"],[194780,1,"杓"],[194781,1,"𣏃"],[194782,1,"㭉"],[194783,1,"柺"],[194784,1,"枅"],[194785,1,"桒"],[194786,1,"梅"],[194787,1,"𣑭"],[194788,1,"梎"],[194789,1,"栟"],[194790,1,"椔"],[194791,1,"㮝"],[194792,1,"楂"],[194793,1,"榣"],[194794,1,"槪"],[194795,1,"檨"],[194796,1,"𣚣"],[194797,1,"櫛"],[194798,1,"㰘"],[194799,1,"次"],[194800,1,"𣢧"],[194801,1,"歔"],[194802,1,"㱎"],[194803,1,"歲"],[194804,1,"殟"],[194805,1,"殺"],[194806,1,"殻"],[194807,1,"𣪍"],[194808,1,"𡴋"],[194809,1,"𣫺"],[194810,1,"汎"],[194811,1,"𣲼"],[194812,1,"沿"],[194813,1,"泍"],[194814,1,"汧"],[194815,1,"洖"],[194816,1,"派"],[194817,1,"海"],[194818,1,"流"],[194819,1,"浩"],[194820,1,"浸"],[194821,1,"涅"],[194822,1,"𣴞"],[194823,1,"洴"],[194824,1,"港"],[194825,1,"湮"],[194826,1,"㴳"],[194827,1,"滋"],[194828,1,"滇"],[194829,1,"𣻑"],[194830,1,"淹"],[194831,1,"潮"],[194832,1,"𣽞"],[194833,1,"𣾎"],[194834,1,"濆"],[194835,1,"瀹"],[194836,1,"瀞"],[194837,1,"瀛"],[194838,1,"㶖"],[194839,1,"灊"],[194840,1,"災"],[194841,1,"灷"],[194842,1,"炭"],[194843,1,"𠔥"],[194844,1,"煅"],[194845,1,"𤉣"],[194846,1,"熜"],[194847,3],[194848,1,"爨"],[194849,1,"爵"],[194850,1,"牐"],[194851,1,"𤘈"],[194852,1,"犀"],[194853,1,"犕"],[194854,1,"𤜵"],[194855,1,"𤠔"],[194856,1,"獺"],[194857,1,"王"],[194858,1,"㺬"],[194859,1,"玥"],[[194860,194861],1,"㺸"],[194862,1,"瑇"],[194863,1,"瑜"],[194864,1,"瑱"],[194865,1,"璅"],[194866,1,"瓊"],[194867,1,"㼛"],[194868,1,"甤"],[194869,1,"𤰶"],[194870,1,"甾"],[194871,1,"𤲒"],[194872,1,"異"],[194873,1,"𢆟"],[194874,1,"瘐"],[194875,1,"𤾡"],[194876,1,"𤾸"],[194877,1,"𥁄"],[194878,1,"㿼"],[194879,1,"䀈"],[194880,1,"直"],[194881,1,"𥃳"],[194882,1,"𥃲"],[194883,1,"𥄙"],[194884,1,"𥄳"],[194885,1,"眞"],[[194886,194887],1,"真"],[194888,1,"睊"],[194889,1,"䀹"],[194890,1,"瞋"],[194891,1,"䁆"],[194892,1,"䂖"],[194893,1,"𥐝"],[194894,1,"硎"],[194895,1,"碌"],[194896,1,"磌"],[194897,1,"䃣"],[194898,1,"𥘦"],[194899,1,"祖"],[194900,1,"𥚚"],[194901,1,"𥛅"],[194902,1,"福"],[194903,1,"秫"],[194904,1,"䄯"],[194905,1,"穀"],[194906,1,"穊"],[194907,1,"穏"],[194908,1,"𥥼"],[[194909,194910],1,"𥪧"],[194911,3],[194912,1,"䈂"],[194913,1,"𥮫"],[194914,1,"篆"],[194915,1,"築"],[194916,1,"䈧"],[194917,1,"𥲀"],[194918,1,"糒"],[194919,1,"䊠"],[194920,1,"糨"],[194921,1,"糣"],[194922,1,"紀"],[194923,1,"𥾆"],[194924,1,"絣"],[194925,1,"䌁"],[194926,1,"緇"],[194927,1,"縂"],[194928,1,"繅"],[194929,1,"䌴"],[194930,1,"𦈨"],[194931,1,"𦉇"],[194932,1,"䍙"],[194933,1,"𦋙"],[194934,1,"罺"],[194935,1,"𦌾"],[194936,1,"羕"],[194937,1,"翺"],[194938,1,"者"],[194939,1,"𦓚"],[194940,1,"𦔣"],[194941,1,"聠"],[194942,1,"𦖨"],[194943,1,"聰"],[194944,1,"𣍟"],[194945,1,"䏕"],[194946,1,"育"],[194947,1,"脃"],[194948,1,"䐋"],[194949,1,"脾"],[194950,1,"媵"],[194951,1,"𦞧"],[194952,1,"𦞵"],[194953,1,"𣎓"],[194954,1,"𣎜"],[194955,1,"舁"],[194956,1,"舄"],[194957,1,"辞"],[194958,1,"䑫"],[194959,1,"芑"],[194960,1,"芋"],[194961,1,"芝"],[194962,1,"劳"],[194963,1,"花"],[194964,1,"芳"],[194965,1,"芽"],[194966,1,"苦"],[194967,1,"𦬼"],[194968,1,"若"],[194969,1,"茝"],[194970,1,"荣"],[194971,1,"莭"],[194972,1,"茣"],[194973,1,"莽"],[194974,1,"菧"],[194975,1,"著"],[194976,1,"荓"],[194977,1,"菊"],[194978,1,"菌"],[194979,1,"菜"],[194980,1,"𦰶"],[194981,1,"𦵫"],[194982,1,"𦳕"],[194983,1,"䔫"],[194984,1,"蓱"],[194985,1,"蓳"],[194986,1,"蔖"],[194987,1,"𧏊"],[194988,1,"蕤"],[194989,1,"𦼬"],[194990,1,"䕝"],[194991,1,"䕡"],[194992,1,"𦾱"],[194993,1,"𧃒"],[194994,1,"䕫"],[194995,1,"虐"],[194996,1,"虜"],[194997,1,"虧"],[194998,1,"虩"],[194999,1,"蚩"],[195000,1,"蚈"],[195001,1,"蜎"],[195002,1,"蛢"],[195003,1,"蝹"],[195004,1,"蜨"],[195005,1,"蝫"],[195006,1,"螆"],[195007,3],[195008,1,"蟡"],[195009,1,"蠁"],[195010,1,"䗹"],[195011,1,"衠"],[195012,1,"衣"],[195013,1,"𧙧"],[195014,1,"裗"],[195015,1,"裞"],[195016,1,"䘵"],[195017,1,"裺"],[195018,1,"㒻"],[195019,1,"𧢮"],[195020,1,"𧥦"],[195021,1,"䚾"],[195022,1,"䛇"],[195023,1,"誠"],[195024,1,"諭"],[195025,1,"變"],[195026,1,"豕"],[195027,1,"𧲨"],[195028,1,"貫"],[195029,1,"賁"],[195030,1,"贛"],[195031,1,"起"],[195032,1,"𧼯"],[195033,1,"𠠄"],[195034,1,"跋"],[195035,1,"趼"],[195036,1,"跰"],[195037,1,"𠣞"],[195038,1,"軔"],[195039,1,"輸"],[195040,1,"𨗒"],[195041,1,"𨗭"],[195042,1,"邔"],[195043,1,"郱"],[195044,1,"鄑"],[195045,1,"𨜮"],[195046,1,"鄛"],[195047,1,"鈸"],[195048,1,"鋗"],[195049,1,"鋘"],[195050,1,"鉼"],[195051,1,"鏹"],[195052,1,"鐕"],[195053,1,"𨯺"],[195054,1,"開"],[195055,1,"䦕"],[195056,1,"閷"],[195057,1,"𨵷"],[195058,1,"䧦"],[195059,1,"雃"],[195060,1,"嶲"],[195061,1,"霣"],[195062,1,"𩅅"],[195063,1,"𩈚"],[195064,1,"䩮"],[195065,1,"䩶"],[195066,1,"韠"],[195067,1,"𩐊"],[195068,1,"䪲"],[195069,1,"𩒖"],[[195070,195071],1,"頋"],[195072,1,"頩"],[195073,1,"𩖶"],[195074,1,"飢"],[195075,1,"䬳"],[195076,1,"餩"],[195077,1,"馧"],[195078,1,"駂"],[195079,1,"駾"],[195080,1,"䯎"],[195081,1,"𩬰"],[195082,1,"鬒"],[195083,1,"鱀"],[195084,1,"鳽"],[195085,1,"䳎"],[195086,1,"䳭"],[195087,1,"鵧"],[195088,1,"𪃎"],[195089,1,"䳸"],[195090,1,"𪄅"],[195091,1,"𪈎"],[195092,1,"𪊑"],[195093,1,"麻"],[195094,1,"䵖"],[195095,1,"黹"],[195096,1,"黾"],[195097,1,"鼅"],[195098,1,"鼏"],[195099,1,"鼖"],[195100,1,"鼻"],[195101,1,"𪘀"],[[195102,196605],3],[[196606,196607],3],[[196608,201546],2],[[201547,262141],3],[[262142,262143],3],[[262144,327677],3],[[327678,327679],3],[[327680,393213],3],[[393214,393215],3],[[393216,458749],3],[[458750,458751],3],[[458752,524285],3],[[524286,524287],3],[[524288,589821],3],[[589822,589823],3],[[589824,655357],3],[[655358,655359],3],[[655360,720893],3],[[720894,720895],3],[[720896,786429],3],[[786430,786431],3],[[786432,851965],3],[[851966,851967],3],[[851968,917501],3],[[917502,917503],3],[917504,3],[917505,3],[[917506,917535],3],[[917536,917631],3],[[917632,917759],3],[[917760,917999],7],[[918000,983037],3],[[983038,983039],3],[[983040,1048573],3],[[1048574,1048575],3],[[1048576,1114109],3],[[1114110,1114111],3]]')},6615:e=>{"use strict";e.exports={i8:"4.6.0"}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,loaded:!1,exports:{}},o=!0;try{e[r].call(s.exports,s,s.exports,n),o=!1}finally{o&&delete t[r]}return s.loaded=!0,s.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n(4719)})()}));
|